usuarios pre configurados

This commit is contained in:
2025-08-15 18:35:09 -06:00
parent 1c0d777699
commit 811f569391
12 changed files with 508 additions and 172 deletions

View File

@@ -8,24 +8,35 @@ const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
name: 'Lobby',
path: '/:uuid',
name: 'LobbyWithUuid',
component: Lobby
},
{
path: '/game',
name: 'Game',
path: '/:uuid/game',
name: 'GameWithUuid',
component: Game
},
{
path: '/demo',
name: 'DemoGame',
path: '/:uuid/demo',
name: 'DemoGameWithUuid',
component: DemoGame
},
{
path: '/dashboard',
name: 'Dashboard',
component: Dashboard
},
{
path: '/',
redirect: '/missing-uuid'
},
{
// simple fallback for users hitting root without UUID
path: '/missing-uuid',
component: {
template: `<div style="padding:20px;font-family:sans-serif"><h2>Falta UUID</h2><p>Abre el juego escaneando tu código QR: snatchgame.nucleoriofrio.com/{uuid}</p></div>`
}
}
]
});