2025-05-11 18:04:12 +02:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
|
import HomeView from '../views/HomeView.vue'
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
2026-02-01 13:48:02 +01:00
|
|
|
routes: [{
|
|
|
|
|
path: '/',
|
|
|
|
|
name: 'Accueil',
|
|
|
|
|
component: HomeView
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
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')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/score/display',
|
|
|
|
|
name: 'Score Display (Projection)',
|
|
|
|
|
component: () => import('@/views/ScoreDisplay.vue')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/mqtt-debugger',
|
|
|
|
|
name: 'Debugger MQTT',
|
|
|
|
|
component: () => import('@/views/MQTTDebugView.vue')
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/settings',
|
|
|
|
|
name: 'Paramètres',
|
|
|
|
|
component: () => import('@/views/SettingsView.vue')
|
|
|
|
|
}
|
2025-05-11 18:04:12 +02:00
|
|
|
]
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|