feat: add 9 missing admin routes and nav groups restructure
This commit is contained in:
1 parent
84c3d25c54
commit
effef176e2
2 files changed
+42
-3
No files matched your search
@@ -46,6 +46,15 @@ import Tenant from '@/pages/admin/Tenant';
|
|||||||
import Billing from '@/pages/admin/Billing';
|
import Billing from '@/pages/admin/Billing';
|
||||||
import Analytics from '@/pages/admin/Analytics';
|
import Analytics from '@/pages/admin/Analytics';
|
||||||
import UserPortal from '@/pages/UserPortal';
|
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 App: React.FC = () => {
|
||||||
const [user, setUser] = useState<User | null>(null);
|
const [user, setUser] = useState<User | null>(null);
|
||||||
@@ -134,6 +143,15 @@ const App: React.FC = () => {
|
|||||||
<Route path="tenant" element={<Tenant />} />
|
<Route path="tenant" element={<Tenant />} />
|
||||||
<Route path="billing" element={<Billing />} />
|
<Route path="billing" element={<Billing />} />
|
||||||
<Route path="analytics" element={<Analytics />} />
|
<Route path="analytics" element={<Analytics />} />
|
||||||
|
<Route path="knowledge" element={<AdminKnowledge />} />
|
||||||
|
<Route path="workflow" element={<AdminWorkflow />} />
|
||||||
|
<Route path="storage" element={<AdminStorage />} />
|
||||||
|
<Route path="developer" element={<AdminDeveloper />} />
|
||||||
|
<Route path="developer-tools" element={<AdminDeveloperTools />} />
|
||||||
|
<Route path="automation" element={<AdminAutomation />} />
|
||||||
|
<Route path="mcp" element={<AdminMcp />} />
|
||||||
|
<Route path="apps" element={<AdminApps />} />
|
||||||
|
<Route path="assets" element={<AssetCenter />} />
|
||||||
<Route path="portal" element={<UserPortal />} />
|
<Route path="portal" element={<UserPortal />} />
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ interface NavGroup {
|
|||||||
|
|
||||||
const adminNavGroups: NavGroup[] = [
|
const adminNavGroups: NavGroup[] = [
|
||||||
{
|
{
|
||||||
title: '驾驶舱',
|
title: '驾驶舰',
|
||||||
icon: 'dashboard',
|
icon: 'dashboard',
|
||||||
items: [
|
items: [
|
||||||
{ path: '/admin', icon: 'dashboard', label: '平台驾驶舱', exact: true },
|
{ path: '/admin', icon: 'dashboard', label: '平台驾驶舰', exact: true },
|
||||||
{ path: '/admin/analytics', icon: 'analytics', label: '数据分析' },
|
{ path: '/admin/analytics', icon: 'analytics', label: '数据分析' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -32,8 +32,18 @@ const adminNavGroups: NavGroup[] = [
|
|||||||
{ path: '/admin/agents', icon: 'agents', label: 'Agent 管理' },
|
{ path: '/admin/agents', icon: 'agents', label: 'Agent 管理' },
|
||||||
{ path: '/admin/skills', icon: 'skills', label: '技能管理' },
|
{ path: '/admin/skills', icon: 'skills', label: '技能管理' },
|
||||||
{ path: '/admin/models', icon: 'models', 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/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/payment', icon: 'payment', label: '支付渠道配置' },
|
||||||
{ path: '/admin/services', icon: 'services', label: '增值服务' },
|
{ path: '/admin/services', icon: 'services', label: '增值服务' },
|
||||||
{ path: '/admin/ads', icon: 'ads', label: '广告位管理' },
|
{ path: '/admin/ads', icon: 'ads', label: '广告位管理' },
|
||||||
|
{ path: '/admin/assets', icon: 'assets', label: '资产管理' },
|
||||||
{ path: '/admin/tenant', icon: 'tenant', label: '多租户管理' },
|
{ path: '/admin/tenant', icon: 'tenant', label: '多租户管理' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -68,6 +79,16 @@ const adminNavGroups: NavGroup[] = [
|
|||||||
{ path: '/admin/distributions', icon: 'distro', label: '发行版构建' },
|
{ 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<string, JSX.Element> = {
|
const adminIconPaths: Record<string, JSX.Element> = {
|
||||||
|
|||||||
Reference in new issue
Block a user