From 714680114508183fba2c07231dbe8f90b5631b81 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 11 Feb 2020 17:20:26 +0100 Subject: [PATCH] Experimental multi-tabs support (TODO: prevent multi-connect) --- client/src/components/ChallengeList.vue | 2 +- client/src/components/GameList.vue | 3 +- client/src/data/challengeCheck.js | 2 +- client/src/router.js | 2 +- client/src/translations/en.js | 7 +- client/src/translations/es.js | 7 +- client/src/translations/fr.js | 7 +- client/src/utils/gameStorage.js | 2 +- client/src/utils/timeControl.js | 4 +- client/src/views/Game.vue | 234 +++++------ client/src/views/Hall.vue | 494 +++++++++++------------- client/src/views/MyGames.vue | 2 +- server/db/create.sql | 6 +- server/models/Challenge.js | 10 +- server/models/Game.js | 32 +- server/routes/challenges.js | 2 +- server/routes/games.js | 4 +- server/sockets.js | 289 ++++++-------- 18 files changed, 498 insertions(+), 611 deletions(-) diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index f94cb71e..95a71ac2 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -12,7 +12,7 @@ div td(data-label="Variant") {{ c.vname }} td(data-label="From") {{ c.from.name || "@nonymous" }} td(data-label="To") {{ c.to }} - td(data-label="Cadence") {{ c.timeControl }} + td(data-label="Cadence") {{ c.cadence }}