From a1c48034e89a8d5af915ef3874c84888a281ca37 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 31 Jan 2020 16:07:14 +0100 Subject: [PATCH] 'update' --- client/src/components/BaseGame.vue | 31 +++++++-------- client/src/components/Chat.vue | 11 ++++-- client/src/views/Game.vue | 62 ++++++++++++++++++------------ 3 files changed, 61 insertions(+), 43 deletions(-) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 324e534a..635ca643 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -6,21 +6,22 @@ div#baseGame(tabindex=-1 @click="() => focusBg()" @keydown="handleKeys") label.modal-close(for="modalEog") h3#eogMessage.section {{ endgameMessage }} .row - #boardContainer.col-sm-12.col-md-9 - Board(:vr="vr" :last-move="lastMove" :analyze="game.mode=='analyze'" - :user-color="game.mycolor" :orientation="orientation" - :vname="game.vname" @play-move="play") - #controls - button(@click="gotoBegin") << - button(@click="() => undo()") < - button(@click="flip") ⇅ - button(@click="() => play()") > - button(@click="gotoEnd") >> - #pgnDiv - a#download(href="#") - button(@click="download") {{ st.tr["Download PGN"] }} - button(v-if="game.mode!='analyze'" @click="analyzePosition") - | {{ st.tr["Analyze"] }} + .col-sm-12.col-md-9 + #boardContainer + Board(:vr="vr" :last-move="lastMove" :analyze="game.mode=='analyze'" + :user-color="game.mycolor" :orientation="orientation" + :vname="game.vname" @play-move="play") + #controls + button(@click="gotoBegin") << + button(@click="() => undo()") < + button(@click="flip") ⇅ + button(@click="() => play()") > + button(@click="gotoEnd") >> + #pgnDiv + a#download(href="#") + button(@click="download") {{ st.tr["Download PGN"] }} + button(v-if="game.mode!='analyze'" @click="analyzePosition") + | {{ st.tr["Analyze"] }} .col-sm-12.col-md-3 MoveList(v-if="showMoves" :score="game.score" :message="game.scoreMsg" :firstNum="firstMoveNumber" :moves="moves" :cursor="cursor" diff --git a/client/src/components/Chat.vue b/client/src/components/Chat.vue index 8f1646f4..5834cbe1 100644 --- a/client/src/components/Chat.vue +++ b/client/src/components/Chat.vue @@ -1,10 +1,12 @@