From 6f48a6cd72cbc9c4bcf4014668824ca5ced40192 Mon Sep 17 00:00:00 2001 From: Alexandre PETIT Date: Mon, 26 Feb 2024 10:11:40 +0100 Subject: [PATCH] Patch build problem and finish session overview --- frontend/src/components/Fleet.vue | 2 +- frontend/src/components/fleet/FleetLobby.vue | 156 ++++++++++-------- frontend/src/vue/templates/BannerTemplate.vue | 30 ++++ 3 files changed, 117 insertions(+), 71 deletions(-) create mode 100644 frontend/src/vue/templates/BannerTemplate.vue diff --git a/frontend/src/components/Fleet.vue b/frontend/src/components/Fleet.vue index 724fb7fa..c391b73a 100644 --- a/frontend/src/components/Fleet.vue +++ b/frontend/src/components/Fleet.vue @@ -23,7 +23,7 @@ onMounted(() => { } }) -function getRandomEnum(anEnum: T): T[keyof T] { +function getRandomEnum(anEnum: any): T[keyof T] { const enumValues = Object.values(anEnum) as T[keyof T][]; const randomIndex = Math.floor(Math.random() * enumValues.length); return enumValues[randomIndex]; diff --git a/frontend/src/components/fleet/FleetLobby.vue b/frontend/src/components/fleet/FleetLobby.vue index 74a4b18f..36827faa 100644 --- a/frontend/src/components/fleet/FleetLobby.vue +++ b/frontend/src/components/fleet/FleetLobby.vue @@ -1,12 +1,16 @@