From 42c15a75118bfeb3251cea1f65acb01fcd023f01 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 4 Jul 2019 18:20:50 +0200 Subject: [PATCH] Modifs to send current live game --- client/src/components/GameList.vue | 13 ++++----- client/src/utils/gameStorage.js | 13 ++++++++- client/src/views/Hall.vue | 47 +++++++++++++++--------------- server/sockets.js | 11 +++---- 4 files changed, 48 insertions(+), 36 deletions(-) diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index bb97a742..8481048d 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -2,17 +2,16 @@ table tr th Variant - th Players names - th Cadence + th White + th Black + th Time control th(v-if="showResult") Result - th(v-else) Moves count tr(v-for="g in games" @click="$emit('show-game',g)") td {{ g.vname }} - td - span(v-for="p in g.players") {{ p.name }} - td {{ g.mainTime }} + {{ g.increment }} + td {{ g.players[0] }} + td {{ g.players[1] }} + td {{ g.timeControl }} td(v-if="showResult") {{ g.score }} - td(v-else) {{ g.movesCount }}