From 05f9112fab59c3be7f62ea28e1391a2137fe7906 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 14 Jun 2026 16:36:27 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20refactor(frontend):=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E9=93=BE=20Tab=20=E7=A7=BB=E5=85=A5=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AD=90=E9=A1=B5=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/App.tsx | 2 -- src/frontend/src/components/SettingsPanel.tsx | 7 ++++++- src/frontend/src/store.ts | 3 +-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index d13bc0e..c860483 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -17,7 +17,6 @@ import CourtCeremony from './components/CourtCeremony'; import CourtDiscussion from './components/CourtDiscussion'; import UsagePanel from './components/UsagePanel'; import SettingsPanel from './components/SettingsPanel'; -import ToolchainPanel from './components/ToolchainPanel'; import GlobalSearch from './components/GlobalSearch'; import NotificationCenter from './components/NotificationCenter'; @@ -101,7 +100,6 @@ export default function App() { usage: , morning: , settings: , - toolchain: , }; return ( diff --git a/src/frontend/src/components/SettingsPanel.tsx b/src/frontend/src/components/SettingsPanel.tsx index 188bb73..47e0ee2 100644 --- a/src/frontend/src/components/SettingsPanel.tsx +++ b/src/frontend/src/components/SettingsPanel.tsx @@ -5,6 +5,7 @@ import { useState, useCallback } from 'react'; import { api, AgentsStatusData } from '../api'; +import ToolchainPanel from './ToolchainPanel'; interface ServiceCheckResult { name: string; @@ -15,7 +16,7 @@ interface ServiceCheckResult { } export default function SettingsPanel() { - const [tab, setTab] = useState<'connections' | 'security' | 'version' | 'logs'>('connections'); + const [tab, setTab] = useState<'connections' | 'security' | 'version' | 'logs' | 'toolchain'>('connections'); // 接线状态巡检 const [checking, setChecking] = useState(false); @@ -95,6 +96,7 @@ export default function SettingsPanel() { { key: 'security' as const, label: '🛡️ 安全防务' }, { key: 'version' as const, label: '📦 版本更新' }, { key: 'logs' as const, label: '📋 城防日志' }, + { key: 'toolchain' as const, label: '⛓️ 工具链' }, ].map((t) => (