新增: 初始化 DevFlow 项目仓库
Tauri 2 + Vue 3 + Vite 6 桌面应用,Rust workspace 含 13 个 crate (df-ai / df-storage / df-workflow / df-core / df-execute 等)。 核心能力:AI 聊天 agentic 循环(工具调用+人工审批)、工作流引擎、 任务/想法/项目/阶段管理、可追溯性,及配套前端组件。
This commit is contained in:
69
src/router/index.ts
Normal file
69
src/router/index.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/ai-home',
|
||||
},
|
||||
{
|
||||
path: '/ai-home',
|
||||
name: 'AiHome',
|
||||
component: () => import('../views/AiHome.vue'),
|
||||
meta: { title: 'AI Chat' },
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
name: 'Dashboard',
|
||||
component: () => import('../views/Dashboard.vue'),
|
||||
meta: { title: '总览', icon: 'icon-dashboard' },
|
||||
},
|
||||
{
|
||||
path: '/ideas',
|
||||
name: 'Ideas',
|
||||
component: () => import('../views/Ideas.vue'),
|
||||
meta: { title: '灵感', icon: 'icon-lightbulb' },
|
||||
},
|
||||
{
|
||||
path: '/projects',
|
||||
name: 'Projects',
|
||||
component: () => import('../views/Projects.vue'),
|
||||
meta: { title: '项目', icon: 'icon-apps' },
|
||||
},
|
||||
{
|
||||
path: '/projects/:id',
|
||||
name: 'ProjectDetail',
|
||||
component: () => import('../views/ProjectDetail.vue'),
|
||||
meta: { title: '项目详情', icon: 'icon-apps' },
|
||||
},
|
||||
{
|
||||
path: '/tasks',
|
||||
name: 'Tasks',
|
||||
component: () => import('../views/Tasks.vue'),
|
||||
meta: { title: '任务', icon: 'icon-thunder' },
|
||||
},
|
||||
{
|
||||
path: '/knowledge',
|
||||
name: 'Knowledge',
|
||||
component: () => import('../views/Knowledge.vue'),
|
||||
meta: { title: '知识库', icon: 'icon-book' },
|
||||
},
|
||||
{
|
||||
path: '/settings',
|
||||
name: 'Settings',
|
||||
component: () => import('../views/Settings.vue'),
|
||||
meta: { title: '设置', icon: 'icon-settings' },
|
||||
},
|
||||
{
|
||||
path: '/ai-detached',
|
||||
name: 'AiDetached',
|
||||
component: () => import('../views/AiDetached.vue'),
|
||||
meta: { title: 'AI Chat', icon: 'icon-ai' },
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user