feat(frontend): layout header + drawer + router (9 routes)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
15
frontend/src/router/index.js
Normal file
15
frontend/src/router/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', component: () => import('@/views/DashboardView.vue') },
|
||||
{ path: '/jardins', component: () => import('@/views/JardinsView.vue') },
|
||||
{ path: '/jardins/:id', component: () => import('@/views/JardinDetailView.vue') },
|
||||
{ path: '/varietes', component: () => import('@/views/VarietesView.vue') },
|
||||
{ path: '/plantations', component: () => import('@/views/PlantationsView.vue') },
|
||||
{ path: '/planning', component: () => import('@/views/PlanningView.vue') },
|
||||
{ path: '/taches', component: () => import('@/views/TachesView.vue') },
|
||||
{ path: '/lunaire', component: () => import('@/views/LunaireView.vue') },
|
||||
{ path: '/reglages', component: () => import('@/views/ReglagesView.vue') },
|
||||
],
|
||||
});
|
||||
@@ -2,5 +2,15 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [],
|
||||
routes: [
|
||||
{ path: '/', component: () => import('@/views/DashboardView.vue') },
|
||||
{ path: '/jardins', component: () => import('@/views/JardinsView.vue') },
|
||||
{ path: '/jardins/:id', component: () => import('@/views/JardinDetailView.vue') },
|
||||
{ path: '/varietes', component: () => import('@/views/VarietesView.vue') },
|
||||
{ path: '/plantations', component: () => import('@/views/PlantationsView.vue') },
|
||||
{ path: '/planning', component: () => import('@/views/PlanningView.vue') },
|
||||
{ path: '/taches', component: () => import('@/views/TachesView.vue') },
|
||||
{ path: '/lunaire', component: () => import('@/views/LunaireView.vue') },
|
||||
{ path: '/reglages', component: () => import('@/views/ReglagesView.vue') },
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user