diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 088aec8..2b32509 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -46,6 +46,15 @@ import Tenant from '@/pages/admin/Tenant'; import Billing from '@/pages/admin/Billing'; import Analytics from '@/pages/admin/Analytics'; import UserPortal from '@/pages/UserPortal'; +import AdminKnowledge from '@/pages/admin/Knowledge'; +import AdminWorkflow from '@/pages/admin/Workflow'; +import AdminStorage from '@/pages/admin/Storage'; +import AdminDeveloper from '@/pages/admin/Developer'; +import AdminDeveloperTools from '@/pages/admin/DeveloperTools'; +import AdminAutomation from '@/pages/admin/Automation'; +import AdminMcp from '@/pages/admin/Mcp'; +import AdminApps from '@/pages/admin/Apps'; +import AssetCenter from '@/pages/admin/AssetCenter'; const App: React.FC = () => { const [user, setUser] = useState(null); @@ -134,6 +143,15 @@ const App: React.FC = () => { } /> } /> } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> } /> diff --git a/frontend/src/components/layout/AdminLayout.tsx b/frontend/src/components/layout/AdminLayout.tsx index 25cb75f..ef5686e 100644 --- a/frontend/src/components/layout/AdminLayout.tsx +++ b/frontend/src/components/layout/AdminLayout.tsx @@ -18,10 +18,10 @@ interface NavGroup { const adminNavGroups: NavGroup[] = [ { - title: '驾驶舱', + title: '驾驶舰', icon: 'dashboard', items: [ - { path: '/admin', icon: 'dashboard', label: '平台驾驶舱', exact: true }, + { path: '/admin', icon: 'dashboard', label: '平台驾驶舰', exact: true }, { path: '/admin/analytics', icon: 'analytics', label: '数据分析' }, ], }, @@ -32,8 +32,18 @@ const adminNavGroups: NavGroup[] = [ { path: '/admin/agents', icon: 'agents', label: 'Agent 管理' }, { path: '/admin/skills', icon: 'skills', label: '技能管理' }, { path: '/admin/models', icon: 'models', label: '大模型库' }, - { path: '/admin/code-exec', icon: 'code', label: '代码执行沙箱' }, + { path: '/admin/knowledge', icon: 'knowledge', label: '知识库管理' }, + { path: '/admin/workflow', icon: 'workflow', label: '工作流编排' }, + { path: '/admin/mcp', icon: 'mcp', label: 'MCP 服务' }, + ], + }, + { + title: '应用与市场', + icon: 'market', + items: [ + { path: '/admin/apps', icon: 'apps', label: 'AI 应用管理' }, { path: '/admin/market', icon: 'market', label: '应用市场审核' }, + { path: '/admin/code-exec', icon: 'code', label: '代码执行沙箱' }, ], }, { @@ -54,6 +64,7 @@ const adminNavGroups: NavGroup[] = [ { path: '/admin/payment', icon: 'payment', label: '支付渠道配置' }, { path: '/admin/services', icon: 'services', label: '增值服务' }, { path: '/admin/ads', icon: 'ads', label: '广告位管理' }, + { path: '/admin/assets', icon: 'assets', label: '资产管理' }, { path: '/admin/tenant', icon: 'tenant', label: '多租户管理' }, ], }, @@ -68,6 +79,16 @@ const adminNavGroups: NavGroup[] = [ { path: '/admin/distributions', icon: 'distro', label: '发行版构建' }, ], }, + { + title: '开发与集成', + icon: 'developer', + items: [ + { path: '/admin/storage', icon: 'storage', label: '存储配置' }, + { path: '/admin/automation', icon: 'automation', label: '自动化任务' }, + { path: '/admin/developer', icon: 'developer', label: '开发者 API' }, + { path: '/admin/developer-tools', icon: 'devtools', label: '开发者工具' }, + ], + }, ]; const adminIconPaths: Record = {