From 9d58ef95e3affd799571838164f7c5bbfda11f64 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 8 Feb 2019 00:15:37 +0100 Subject: [PATCH] Work on main hall --- client/src/components/Game.vue | 4 +- client/src/components/GameList.vue | 9 +- client/src/data/challengeCheck.js | 85 +++++---- client/src/data/userCheck.js | 4 +- client/src/utils/array.js | 12 +- client/src/views/Hall.vue | 269 ++++++++++++++++------------- 6 files changed, 221 insertions(+), 162 deletions(-) diff --git a/client/src/components/Game.vue b/client/src/components/Game.vue index 3eb8f0c6..2a74a072 100644 --- a/client/src/components/Game.vue +++ b/client/src/components/Game.vue @@ -178,8 +178,8 @@ export default { this.endGame(this.mycolor=="w"?"1-0":"0-1"); break; // TODO: also use (dis)connect info to count online players? - case "connect": - case "disconnect": + case "gameconnect": + case "gamedisconnect": if (this.mode=="human") { const online = (data.code == "connect"); diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index c7f661ca..bb97a742 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -1,16 +1,18 @@