From 4c34172e624322b564e85ecac13b3ab26220b431 Mon Sep 17 00:00:00 2001 From: Settel Date: Tue, 12 Apr 2022 14:27:49 +0200 Subject: [PATCH] feat: show player id, game id on click --- client/src/components/admin/AdminEditPlayer.vue | 8 ++++++++ .../src/components/admin/AdminTileGameinfo.vue | 11 +++++++++++ server/src/game/getGameInfo.go | 15 +++++++-------- server/src/game/player.go | 16 ++++++---------- server/src/game/struct.go | 15 +++++++-------- 5 files changed, 39 insertions(+), 26 deletions(-) diff --git a/client/src/components/admin/AdminEditPlayer.vue b/client/src/components/admin/AdminEditPlayer.vue index 4f30531..bc73737 100644 --- a/client/src/components/admin/AdminEditPlayer.vue +++ b/client/src/components/admin/AdminEditPlayer.vue @@ -20,6 +20,13 @@ generate code + +   + + + id: + {{ id }} +   @@ -40,6 +47,7 @@ export default { props: ['player'], data() { return { + showId: false, name: '', score: 0, authcode: '', diff --git a/client/src/components/admin/AdminTileGameinfo.vue b/client/src/components/admin/AdminTileGameinfo.vue index 6527544..f4684bf 100644 --- a/client/src/components/admin/AdminTileGameinfo.vue +++ b/client/src/components/admin/AdminTileGameinfo.vue @@ -20,6 +20,12 @@ {{ gameinfo.numQuotesTotal - gameinfo.numQuotesLeft }} / {{ gameinfo.numQuotesTotal }} + +   + + + {{ gameinfo.id }} + @@ -27,6 +33,11 @@