From 388a9133fc16f6780193537047c17afe711ccf1c Mon Sep 17 00:00:00 2001 From: fengxiangdebaozi <10845145+fengxiangdebaozi@user.noreply.gitee.com> Date: Sat, 11 Jul 2026 16:55:08 +0800 Subject: [PATCH 1/2] fix: adapt frontend for legacy Chrome and runtime config --- frontend-web/.env.network | 2 +- frontend-web/index.html | 5 +- frontend-web/package.json | 5 +- frontend-web/postcss.config.js | 16 +- frontend-web/public/runtime-config.js | 96 ++++++ frontend-web/scripts/check-chrome109-css.mjs | 109 +++++++ .../scripts/postcss-legacy-color-fallback.mjs | 70 +++++ .../postcss-lightningcss-chrome109.mjs | 33 ++ .../components/ai-elements/prompt-input.tsx | 71 ++++- .../assistant-ui/document-upload-popup.tsx | 11 +- .../components/assistant-ui/network-actor.tsx | 5 +- .../landing/progressive-skills-animation.tsx | 25 +- .../landing/sections/sandbox-section.tsx | 10 +- .../src/components/ui/input-group.tsx | 23 +- frontend-web/src/components/ui/textarea.tsx | 29 +- .../components/wiki/EmptyDocumentState.tsx | 2 +- .../workspace/admin/tool-metrics-panel.tsx | 2 +- .../components/workspace/agent-welcome.tsx | 2 +- .../workspace/agents/agent-card.tsx | 6 +- .../workspace/agents/agent-chat-sidebar.tsx | 2 +- .../workspace/agents/agent-detail-panel.tsx | 6 +- .../agents/agent-module-settings-dialog.tsx | 2 +- .../workspace/agents/agent-module-sidebar.tsx | 2 +- .../components/workspace/compact-welcome.tsx | 10 +- .../workspace/general-qa-sidebar.tsx | 4 +- .../src/components/workspace/input-box.tsx | 60 ++-- .../workspace/recent-roundtable-list.tsx | 4 +- .../workspace/settings/about-content.ts | 2 +- .../settings/account-settings-page.tsx | 7 +- .../workspace/user-identity-badge.tsx | 21 +- .../src/components/workspace/welcome.tsx | 26 +- .../workspace/workspace-nav-chat-list.tsx | 4 +- frontend-web/src/core/auth/dashboard-input.ts | 5 +- frontend-web/src/core/auth/index.ts | 4 + frontend-web/src/core/auth/task-deeplink.ts | 5 +- .../src/core/auth/use-live-account.ts | 8 +- .../src/core/auth/wujie-ticket-login.ts | 5 +- frontend-web/src/core/auth/yuser-login.ts | 3 +- .../src/core/strategy/external-links.ts | 3 +- frontend-web/src/env.ts | 61 ++-- .../ai-writing/AIWritingFlowChart.tsx | 30 +- .../components/ai-writing/AIWritingForm.tsx | 24 +- .../components/ai-writing/ResearchSidebar.tsx | 191 +++++------ .../src/open-canvas/pages/AIWritingPage.tsx | 3 +- frontend-web/src/pages/ChatPage.tsx | 8 +- frontend-web/src/pages/NewAgentPage.tsx | 2 +- .../src/pages/RoundtableDiagnosticsPage.tsx | 2 +- .../src/pages/StudioNotebookDetailPage.tsx | 10 +- .../components/DagFlowChart.tsx | 17 +- .../components/DagFlowMiniPanel.tsx | 9 +- .../components/DashboardChatPanel.tsx | 2 +- .../components/DispatchChainModal.tsx | 16 +- .../components/RecommendAgentsDialog.tsx | 2 +- .../components/RoundtableJobNotifier.tsx | 4 +- .../components/Step1Panel.tsx | 2 +- .../components/Step3ReportMode.tsx | 2 +- .../components/Step3SummaryMode.tsx | 2 +- .../hooks/useDraftPersistence.ts | 16 +- .../hooks/useStep1Intent.ts | 10 +- .../hooks/useStep2Orchestration.ts | 60 ++-- .../hooks/useStep3Report.ts | 2 +- .../hooks/useStep3Summary.ts | 6 +- .../src/roundtable-planning/lib/flow-graph.ts | 4 +- .../lib/report-template.ts | 12 +- .../pages/BusinessChainEditorPage.tsx | 2 +- .../pages/BusinessChainListPage.tsx | 4 +- .../pages/RoundtablePlanningPage.tsx | 38 +-- .../styles/roundtable-planning.css | 48 ++- .../src/strategy-components/Header.tsx | 6 +- .../components/chat-qa/GeneralQA.tsx | 11 +- .../components/chat-qa/QACommon.tsx | 9 +- .../components/qa/MopeChat.css | 17 +- .../components/qa/components/ConfigPanel.css | 2 + .../components/qa/components/Timeline.css | 4 +- .../task-components/ActionAnalyzes.tsx | 3 +- .../task-components/ActionColumn.tsx | 3 +- .../task-components/SentimentAnalyzes.tsx | 3 +- .../task-components/TaskAnalyzes.tsx | 3 +- frontend-web/src/styles/globals.css | 296 +++++++++++++----- frontend-web/src/utils/request.ts | 7 +- frontend-web/vite.config.ts | 24 +- offline-backend-20260512/backend/CLAUDE.md | 2 +- offline-backend-20260512/backend/README.md | 2 +- .../agents/ai_writing/nodes/_skill_agent.py | 28 +- 84 files changed, 1186 insertions(+), 528 deletions(-) create mode 100644 frontend-web/public/runtime-config.js create mode 100644 frontend-web/scripts/check-chrome109-css.mjs create mode 100644 frontend-web/scripts/postcss-legacy-color-fallback.mjs create mode 100644 frontend-web/scripts/postcss-lightningcss-chrome109.mjs diff --git a/frontend-web/.env.network b/frontend-web/.env.network index d81d70e5..9f770d29 100644 --- a/frontend-web/.env.network +++ b/frontend-web/.env.network @@ -42,7 +42,7 @@ VITE_AIPI_BACKENP_URL=http://47.88.25.99:8000 # VITE_AIPI_FRONTEND_URL=https://knowledgetoolserver.b.uat.4.cn VITE_NOTEBOOK_API_BASE_URL=http://47.88.25.99:8000 VITE_AIPI_FRONTEND_URL=http://47.88.25.99:3000 -VITE_AIPI_CONSUMER_URL=https://ch1.b.uat.4.cn/consumer +VITE_AIPI_CONSUMER_URL=http://10.19.200.5:8002/consumer # A 系统跳转地址(人物/组织/事件等列表项打开链接) VITE_AIPI_PRESENT_URL=http://present.a.uat.4.cn/present/domain # B 系统知识库 iframe 根地址 diff --git a/frontend-web/index.html b/frontend-web/index.html index 65c7d4e3..26b8f4a6 100644 --- a/frontend-web/index.html +++ b/frontend-web/index.html @@ -15,8 +15,9 @@ -