From f21cd6d9c23da37d729f20ea4c08e56b1a7b10a1 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 17 Jan 2020 15:23:23 +0100 Subject: [PATCH 1/1] MoveList working. TODO: Chat --- client/src/components/BaseGame.vue | 14 +- client/src/components/Chat.vue | 10 +- client/src/components/MoveList.vue | 26 +-- client/src/views/Game.vue | 5 +- server/models/Game.js | 2 +- server/package-lock.json | 354 ++++++++++++++--------------- server/package.json | 1 + server/routes/users.js | 2 +- 8 files changed, 191 insertions(+), 223 deletions(-) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 83311cc1..3b15742d 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -21,17 +21,15 @@ p#fenString.text-center {{ vr.getFen() }} #pgnDiv.section-content a#download(href="#") - .button-group - button#downloadBtn(@click="download") {{ st.tr["Download PGN"] }} - // TODO: Import game button copy game locally in IndexedDB - //button Import game - //MoveList(v-if="showMoves" - :moves="moves" :cursor="cursor" @goto-move="gotoMove") + button#downloadBtn(@click="download") {{ st.tr["Download PGN"] }} + div#movesList + MoveList(v-if="showMoves" + :moves="moves" :cursor="cursor" @goto-move="gotoMove")