feat(web): add skills menu

This commit is contained in:
zhaoying
2026-02-05 10:53:16 +08:00
parent 161da723b9
commit 60231ec88d
26 changed files with 1722 additions and 47 deletions

View File

@@ -1,8 +1,8 @@
/*
* @Author: ZhaoYing
* @Date: 2026-02-02 16:33:11
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-02 16:33:11
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-04 14:06:45
*/
/**
* Route Configuration
@@ -52,6 +52,7 @@ const componentMap: Record<string, LazyExoticComponent<ComponentType<object>>> =
BasicLayout: lazy(() => import('@/components/Layout/BasicLayout')),
LoginLayout: lazy(() => import('@/components/Layout/LoginLayout')),
NoAuthLayout: lazy(() => import('@/components/Layout/NoAuthLayout')),
BasicAuthLayout: lazy(() => import('@/components/Layout/BasicAuthLayout')),
/** View components */
Index: lazy(() => import('@/views/Index')),
Home: lazy(() => import('@/views/Home')),
@@ -88,6 +89,8 @@ const componentMap: Record<string, LazyExoticComponent<ComponentType<object>>> =
Ontology: lazy(() => import('@/views/Ontology')),
OntologyDetail: lazy(() => import('@/views/Ontology/pages/Detail')),
Prompt: lazy(() => import('@/views/Prompt')),
Skills: lazy(() => import('@/views/Skills')),
SkillConfig: lazy(() => import('@/views/Skills/pages/SkillConfig')),
Login: lazy(() => import('@/views/Login')),
InviteRegister: lazy(() => import('@/views/InviteRegister')),
NoPermission: lazy(() => import('@/views/NoPermission')),

View File

@@ -10,6 +10,7 @@
{ "path": "/pricing", "element": "Pricing" },
{ "path": "/order-pay", "element": "OrderPayment" },
{ "path": "/orders", "element": "OrderHistory" },
{ "path": "/skills", "element": "Skills" },
{ "path": "/no-permission", "element": "NoPermission" }
]
},
@@ -50,6 +51,13 @@
{ "path": "/ontology/:id", "element": "OntologyDetail" }
]
},
{
"element": "BasicAuthLayout",
"children": [
{ "path": "/skills/add", "element": "SkillConfig" },
{ "path": "/skills/config/:id", "element": "SkillConfig" }
]
},
{
"element": "NoAuthLayout",
"children": [