From 2e96f58cce9ad6083ecaaf9a0359e8f700f12f19 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 15 Jul 2024 12:07:49 +0200 Subject: [PATCH] new: [front:active players] Added UI to show active players before an exercise is selected --- src/components/ThePlayerGrid.vue | 46 ++++++++++++++++++++++++++++++++ src/components/TheScores.vue | 27 ++++++++++++++++--- 2 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 src/components/ThePlayerGrid.vue diff --git a/src/components/ThePlayerGrid.vue b/src/components/ThePlayerGrid.vue new file mode 100644 index 0000000..99bc327 --- /dev/null +++ b/src/components/ThePlayerGrid.vue @@ -0,0 +1,46 @@ + + + \ No newline at end of file diff --git a/src/components/TheScores.vue b/src/components/TheScores.vue index 5b7379f..ec77ca5 100644 --- a/src/components/TheScores.vue +++ b/src/components/TheScores.vue @@ -2,9 +2,10 @@ import { ref, computed } from "vue"; import { active_exercises as exercises } from "@/socket"; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' - import { faGraduationCap, faUpRightAndDownLeftFromCenter, faDownLeftAndUpRightToCenter } from '@fortawesome/free-solid-svg-icons' + import { faGraduationCap, faUpRightAndDownLeftFromCenter, faDownLeftAndUpRightToCenter, faWarning, faUser } from '@fortawesome/free-solid-svg-icons' import TheScoreTable from "./scoreViews/TheScoreTable.vue" import TheFullScreenScoreGrid from "./scoreViews/TheFullScreenScoreGrid.vue" + import ThePlayerGrid from "./ThePlayerGrid.vue" import { fullscreenModeOn } from "@/settings.js" const hasExercises = computed(() => exercises.value.length > 0) @@ -29,9 +30,29 @@
- - No Exercise available - +
+ + No Exercise available. + Select an exercise in the Admin panel. +
+ +
+

+ + Active Players +

+ + +