kin/web/frontend/src/main.ts
2026-03-18 07:57:15 +02:00

23 lines
836 B
TypeScript

import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import './style.css'
import App from './App.vue'
import Dashboard from './views/Dashboard.vue'
import ProjectView from './views/ProjectView.vue'
import TaskDetail from './views/TaskDetail.vue'
import SettingsView from './views/SettingsView.vue'
import ChatView from './views/ChatView.vue'
import { i18n } from './i18n'
const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: Dashboard },
{ path: '/project/:id', component: ProjectView, props: true },
{ path: '/task/:id', component: TaskDetail, props: true },
{ path: '/settings', component: SettingsView },
{ path: '/chat/:projectId', component: ChatView, props: true },
],
})
createApp(App).use(router).use(i18n).mount('#app')