From 6c78f08769a0a7d8a14685714e27d7c7dbe69fc2 Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Wed, 25 Mar 2026 14:00:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9B=86=E6=88=90=20OSS=20=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E4=B8=8E=20AI=20=E5=8A=A9=E6=89=8B=20PDF=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - OSS 对象存储集成 - 文档上传后保存OSS URL 和 Key 到数据库,删除文档时同步清理 OSS 文件 - AI 助手 PDF 支持 - 历史详情页将 PDF base64 转换为 File 对象,供 AI 助手直接使用 - 认证状态同步 - 后端 /health 返回 authDisabled 状态,前端自动适配无认证模式 - 添加TODO: 生产环境必须移除的配置 --- .vscode/settings.json | 67 ++++++++++++++- js/api/api.js | 4 +- js/chatbot/actions/chatbot-actions.js | 27 +++++- js/history/history.js | 21 ++++- js/history/history_detail_render.js | 24 ++++++ js/storage/storage-adapter.js | 62 +++++++++++++- js/ui/immersive_layout_logic.js | 46 +++++----- local-proxy/app.js | 2 + local-proxy/auth/middleware.js | 3 + local-proxy/package.json | 5 +- .../migrations/20260325035303_/migration.sql | 3 + local-proxy/prisma/schema.prisma | 4 + local-proxy/routes/documents.js | 84 +++++++++++++++++++ local-proxy/server.js | 1 + views/history/history_detail.html | 31 +++++++ 15 files changed, 354 insertions(+), 30 deletions(-) create mode 100644 local-proxy/prisma/migrations/20260325035303_/migration.sql diff --git a/.vscode/settings.json b/.vscode/settings.json index e02aef2..4ac9877 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,2 +1,67 @@ { -} \ No newline at end of file + "window.title": "${activeEditorShort}${separator}${separator}deer-flow/frontend", + "todo-tree.regex.regex": "((%|#|//|