2024-02-17 17:33:32 +01:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
import HomeView from '../views/HomeView.vue'
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2024-02-24 18:42:58 +01:00
|
|
|
name: 'Home',
|
2024-02-17 17:33:32 +01:00
|
|
|
component: HomeView
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/about',
|
2024-02-24 18:42:58 +01:00
|
|
|
name: 'About',
|
2024-02-17 17:33:32 +01:00
|
|
|
// route level code-splitting
|
|
|
|
// this generates a separate chunk (About.[hash].js) for this route
|
|
|
|
// which is lazy-loaded when the route is visited.
|
2024-02-24 19:00:51 +01:00
|
|
|
component: () => import('@/views/AboutView.vue')
|
2024-02-17 19:33:11 +01:00
|
|
|
},
|
2024-02-24 19:01:26 +01:00
|
|
|
{
|
|
|
|
path: '/game/control',
|
|
|
|
name: 'Game Control (Présentateur)',
|
|
|
|
component: () => import('@/views/GameControl.vue')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/game/display',
|
|
|
|
name: 'Game Display (Projection)',
|
|
|
|
component: () => import('@/views/GameDisplay.vue')
|
|
|
|
},
|
2024-02-17 19:33:11 +01:00
|
|
|
{
|
|
|
|
path: '/mqtt-debugger',
|
|
|
|
name: 'Debugger MQTT',
|
2024-02-24 19:00:51 +01:00
|
|
|
component: () => import('@/views/MQTTDebugView.vue')
|
2024-02-17 17:33:32 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|