feat(ui): FRO-34 Lobby (#21)

Started with Lobby Component

Co-authored-by: LQ63 <lkhermann@web.de>
Co-authored-by: Janis <janis-e@gmx.de>
Reviewed-on: #21
Reviewed-by: Janis <janis-e@gmx.de>
Co-authored-by: lq64 <lq@blackhole.local>
Co-committed-by: lq64 <lq@blackhole.local>
This commit is contained in:
2025-12-14 15:10:27 +01:00
committed by Janis
parent f0623dbfb2
commit bb6355d9ed
24 changed files with 408 additions and 140 deletions

View File

@@ -7,14 +7,14 @@ import defaultMenu from "../components/DefaultMenu.vue"
import axios from "axios";
import { useUserInfo } from "@/composables/useUserInfo";
import rulesView from "../components/Rules.vue";
import Game from "@/views/Game.vue";
const api = window?.__RUNTIME_CONFIG__?.API_URL;
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/mainmenu/',
path: '/',
component: MainMenuView,
meta: { requiresAuth: true },
children: [
@@ -50,6 +50,12 @@ const router = createRouter({
component: LoginView,
meta: { requiresAuth: false }
},
{
path: '/game',
name: 'game',
component: Game,
meta: {requiresAuth: true }
}
],
})