refactor: 按新规格重组前后台菜单导航(前台分组+改名、后台5板块+待处理)
This commit is contained in:
1 parent
6e4fcad2b9
commit
fa01b5df5b
2 files changed
+25
-98
No files matched your search
@@ -37,149 +37,76 @@ 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: '数据分析' },
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
title: 'AI技能中心',
|
||||||
title: 'AI 能力',
|
|
||||||
|
|
||||||
icon: 'agents',
|
icon: 'agents',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
|
||||||
{ path: '/admin/agents', icon: 'agents', label: 'Agent 管理' },
|
|
||||||
|
|
||||||
{ path: '/admin/skills', icon: 'skills', label: '技能管理' },
|
|
||||||
|
|
||||||
{ path: '/admin/models', icon: 'models', label: '大模型库' },
|
{ path: '/admin/models', icon: 'models', label: '大模型库' },
|
||||||
|
{ path: '/admin/agents', icon: 'agents', label: 'Agent 管理' },
|
||||||
{ path: '/admin/knowledge', icon: 'knowledge', label: '知识库管理' },
|
{ path: '/admin/skills', icon: 'skills', label: 'Skills 技能管理' },
|
||||||
|
{ path: '/admin/mcp', icon: 'mcp', label: 'MCP Client 管理' },
|
||||||
{ path: '/admin/workflow', icon: 'workflow', label: '工作流编排' },
|
{ path: '/admin/market', icon: 'market', label: 'AI 技能审核' },
|
||||||
|
|
||||||
{ path: '/admin/mcp', icon: 'mcp', label: 'MCP 服务' },
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
title: '平台运营',
|
||||||
title: '应用与市场',
|
|
||||||
|
|
||||||
icon: 'market',
|
|
||||||
|
|
||||||
items: [
|
|
||||||
|
|
||||||
{ path: '/admin/apps', icon: 'apps', label: 'AI 应用管理' },
|
|
||||||
|
|
||||||
{ path: '/admin/market', icon: 'market', label: '应用市场审核' },
|
|
||||||
|
|
||||||
{ path: '/admin/code-exec', icon: 'code', label: '代码执行沙箱' },
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
title: '用户运营',
|
|
||||||
|
|
||||||
icon: 'users',
|
icon: 'users',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
|
||||||
{ path: '/admin/users', icon: 'users', label: '用户管理' },
|
{ path: '/admin/users', icon: 'users', label: '用户管理' },
|
||||||
|
{ path: '/admin/membership', icon: 'membership', label: '会员管理' },
|
||||||
{ path: '/admin/membership', icon: 'membership', label: '会员订阅' },
|
|
||||||
|
|
||||||
{ path: '/admin/promotion', icon: 'promotion', label: '推广系统' },
|
{ path: '/admin/promotion', icon: 'promotion', label: '推广系统' },
|
||||||
|
|
||||||
{ path: '/admin/achievement', icon: 'achievement', label: '成就系统' },
|
{ path: '/admin/achievement', icon: 'achievement', label: '成就系统' },
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
title: '商业变现',
|
title: '商业变现',
|
||||||
|
|
||||||
icon: 'billing',
|
icon: 'billing',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
|
||||||
{ path: '/admin/billing', icon: 'billing', label: '计费与支付' },
|
{ path: '/admin/billing', icon: 'billing', label: '计费与支付' },
|
||||||
|
{ 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/assets', icon: 'assets', label: '资产管理' },
|
||||||
|
|
||||||
{ path: '/admin/tenant', icon: 'tenant', label: '多租户管理' },
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
title: '系统管理',
|
title: '系统管理',
|
||||||
|
|
||||||
icon: 'settings',
|
icon: 'settings',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
|
||||||
{ path: '/admin/settings', icon: 'settings', label: '网站设置' },
|
{ path: '/admin/settings', icon: 'settings', label: '网站设置' },
|
||||||
|
|
||||||
{ path: '/admin/sms', icon: 'sms', label: '短信配置' },
|
|
||||||
|
|
||||||
{ path: '/admin/logs', icon: 'logs', label: '日志与风控' },
|
{ path: '/admin/logs', icon: 'logs', label: '日志与风控' },
|
||||||
|
|
||||||
{ path: '/admin/im-bots', icon: 'imbot', label: 'IM 机器人' },
|
|
||||||
|
|
||||||
{ path: '/admin/privacy', icon: 'privacy', label: '隐私与本地代理' },
|
|
||||||
|
|
||||||
{ path: '/admin/distributions', icon: 'distro', label: '发行版构建' },
|
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
title: '待处理',
|
||||||
title: '开发与集成',
|
|
||||||
|
|
||||||
icon: 'developer',
|
icon: 'developer',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
{ path: '/admin/knowledge', icon: 'knowledge', label: '知识库管理' },
|
||||||
|
{ path: '/admin/workflow', icon: 'workflow', label: '工作流编排' },
|
||||||
|
{ path: '/admin/apps', icon: 'apps', label: 'AI 应用管理' },
|
||||||
|
{ path: '/admin/code-exec', icon: 'code', label: '代码执行沙箱' },
|
||||||
|
{ path: '/admin/tenant', icon: 'tenant', label: '多租户管理' },
|
||||||
|
{ path: '/admin/sms', icon: 'sms', label: '短信配置' },
|
||||||
|
{ path: '/admin/im-bots', icon: 'imbot', label: 'IM 机器人' },
|
||||||
|
{ path: '/admin/privacy', icon: 'privacy', label: '隐私与本地代理' },
|
||||||
|
{ path: '/admin/distributions', icon: 'distro', label: '发行版构建' },
|
||||||
{ path: '/admin/storage', icon: 'storage', label: '存储配置' },
|
{ path: '/admin/storage', icon: 'storage', label: '存储配置' },
|
||||||
|
|
||||||
{ path: '/admin/automation', icon: 'automation', label: '自动化任务' },
|
{ path: '/admin/automation', icon: 'automation', label: '自动化任务' },
|
||||||
|
|
||||||
{ path: '/admin/developer', icon: 'developer', label: '开发者 API' },
|
{ path: '/admin/developer', icon: 'developer', label: '开发者 API' },
|
||||||
|
|
||||||
{ path: '/admin/developer-tools', icon: 'devtools', label: '开发者工具' },
|
{ path: '/admin/developer-tools', icon: 'devtools', label: '开发者工具' },
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -10,27 +10,27 @@ const navGroups = [
|
|||||||
{ path: '/chat', icon: 'chat', label: 'AI聊天' },
|
{ path: '/chat', icon: 'chat', label: 'AI聊天' },
|
||||||
{ path: '/knowledge', icon: 'knowledge', label: '知识库' },
|
{ path: '/knowledge', icon: 'knowledge', label: '知识库' },
|
||||||
{ path: '/market', icon: 'market', label: '技能市场' },
|
{ path: '/market', icon: 'market', label: '技能市场' },
|
||||||
{ path: '/evolution', icon: 'evolution', label: 'AI自进化' },
|
{ path: '/evolution', icon: 'evolution', label: '进化看板' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'IM Bot',
|
title: 'IM Bot',
|
||||||
items: [
|
items: [
|
||||||
{ path: '/wechat-bot', icon: 'wechat', label: '微信机器人' },
|
{ path: '/wechat-bot', icon: 'wechat', label: '微信Bot' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '资源中心',
|
title: '资源中心',
|
||||||
items: [
|
items: [
|
||||||
{ path: '/assets', icon: 'assets', label: '资产文件' },
|
|
||||||
{ path: '/token', icon: 'token', label: 'Token驾驶舱' },
|
{ path: '/token', icon: 'token', label: 'Token驾驶舱' },
|
||||||
{ path: '/pricing', icon: 'pricing', label: '付费中心' },
|
{ path: '/pricing', icon: 'pricing', label: '会员订阅' },
|
||||||
|
{ path: '/assets', icon: 'assets', label: '资产文件' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const bottomItems = [
|
const bottomItems = [
|
||||||
{ path: '/profile', icon: 'profile', label: '个人中心' },
|
{ path: '/profile', icon: 'profile', label: '个人设置' },
|
||||||
{ path: '/notifications', icon: 'notify', label: '消息通知' },
|
{ path: '/notifications', icon: 'notify', label: '消息通知' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user