Files
JARVIS/frontend/src/app/router/routes.ts
WIN-JHFT4D3SIVT\caoxiaozhu 472528e708 feat(frontend): add memory components, temple/war-room pages, and composables
- Add DailyDigestCard and ReminderToast memory components
- Add temple and war-room page routes
- Add memory API module with TypeScript definitions
- Add chat composables: useClientTime, useDailyDigest, useSidebarPlan
- Simplify chat/logs/settings pages (remove unused code)
- Add settingsPage.css
2026-04-05 20:45:16 +08:00

94 lines
1.9 KiB
TypeScript

import type { RouteRecordRaw } from 'vue-router'
const appChildren: RouteRecordRaw[] = [
{
path: '',
redirect: '/chat',
},
{
path: 'chat',
name: 'chat',
component: () => import('@/pages/chat/index.vue'),
},
{
path: 'knowledge',
name: 'knowledge',
component: () => import('@/pages/knowledge/index.vue'),
},
{
path: 'graph',
name: 'graph',
component: () => import('@/pages/graph/index.vue'),
},
{
path: 'schedule-center',
name: 'schedule-center',
component: () => import('@/pages/schedule-center/index.vue'),
},
{
path: 'kanban',
redirect: '/schedule-center',
},
{
path: 'forum',
name: 'forum',
component: () => import('@/pages/forum/index.vue'),
},
{
path: 'agents',
name: 'agents',
component: () => import('@/pages/agents/index.vue'),
},
{
path: 'skills',
name: 'skills',
component: () => import('@/pages/skills/index.vue'),
},
{
path: 'todo',
redirect: '/schedule-center',
},
{
path: 'settings',
name: 'settings',
component: () => import('@/pages/settings/index.vue'),
},
{
path: 'logs',
name: 'logs',
component: () => import('@/pages/logs/index.vue'),
},
{
path: 'code-commander',
name: 'code-commander',
component: () => import('@/pages/chat/CodeCommander.vue'),
},
{
path: 'temple',
name: 'temple',
component: () => import('@/pages/temple/index.vue'),
},
{
path: 'war-room',
name: 'war-room',
component: () => import('@/pages/war-room/index.vue'),
},
]
export const routes: RouteRecordRaw[] = [
{
path: '/login',
name: 'login',
component: () => import('@/pages/login/index.vue'),
meta: { guest: true },
},
{
path: '/',
component: () => import('@/pages/app/layout.vue'),
meta: { requiresAuth: true },
children: appChildren,
},
]
export { appChildren }