From 6ed88feaa4ed2f21068529384336df7f1e294c5c Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Sat, 1 Aug 2026 05:18:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(static):=20=E6=96=B0=E5=A2=9E=20aibox=20?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E4=BD=93=20Web=20=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=EF=BC=88=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=80=82=E9=85=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - aibox.html:自包含移动端聊天页,经 gateway [WsProxy] 反向代理与 aibox 通信 - 协议兼容 BotOps client.py:chunk 流式渲染 / reasoning 思考区 / task 任务面板 / 指数退避重连 - 移动端适配:100dvh 动态视口 + safe-area 刘海屏 + 44px 触控目标 + 任务面板抽屉式 - 安全:握手由 gateway 强制 is_admin 验签,Token 全程 HttpOnly Cookie,CSP 合规(本地 markdown-it) - README 同步页面清单与功能说明 --- static/README.md | 2 + static/public/aibox.html | 643 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 645 insertions(+) create mode 100644 static/public/aibox.html diff --git a/static/README.md b/static/README.md index 6c7eb50..06ac0d7 100644 --- a/static/README.md +++ b/static/README.md @@ -21,6 +21,7 @@ static :9200 (Flask + CORS) ├── index.html 社区首页 ├── forgot.html 忘记密码 ├── dnfs.html 树状笔记(调用 dnfs:8006) + ├── aibox.html aibox 智能体 Web 客户端(管理员专属,经 gateway WS 反向代理) ├── __view.html 文件浏览器(系统文件,不在列表中显示) ├── allcolor.html 调色板 ├── LICENSE.html 许可证页面 @@ -81,6 +82,7 @@ static :9200 (Flask + CORS) - 深色模式:`css/theme.css` 统一主题,自动适配系统偏好 - 表单组件:注册页图形/邮箱验证码统一 `.code-box` 行内布局(文字标签 + 输入框 + 控件同排,窄屏自动换行),验证码图片样式复用 `theme.css` 的 `.captcha-img` 类 - 特殊节点(dnfs 管理员专属):信封 JSON `{"_sp":...}` 内容差异化渲染 —— 链接(favicon 卡片)/ 网页代码(可审计可运行)/ 图片(直显)/ 文件(下载);发布权限由 dnfs 后端按 `is_admin` 强制 +- aibox Web 客户端:`aibox.html` 移动端适配聊天页,经 gateway `[WsProxy]` 反向代理(如 `/ws/aibox → ws://127.0.0.1:8765`)与 aibox 智能体通信,握手由 gateway 强制 `is_admin` 验签;协议与 BotOps/client.py 兼容(chunk 流式 / reasoning 思考区 / task 任务面板 / 指数退避重连) - 路径遍历防护:`safe_path_join` 限制访问范围在 `directory.root` 内 - Nuitka 编译:可打包为独立二进制 `fsys.bin`(`sys.frozen` 检测 + BASE_DIR 锚定) - 安全头注入:`security_middleware.py` 为所有响应注入 CSP、X-Frame-Options 等安全头 diff --git a/static/public/aibox.html b/static/public/aibox.html new file mode 100644 index 0000000..5436da9 --- /dev/null +++ b/static/public/aibox.html @@ -0,0 +1,643 @@ + + +
+ + + +