X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGame.vue;h=2a74a072d2cd1a9846b45a8992887f5a0e5e7891;hb=98f485791e915563996de4f37430b285ffc773ae;hp=73c37695ea058d30323910196d5f77c896f81bef;hpb=24340cae41e916d91088cc6988d8838b342a9c42;p=vchess.git diff --git a/client/src/components/Game.vue b/client/src/components/Game.vue index 73c37695..2a74a072 100644 --- a/client/src/components/Game.vue +++ b/client/src/components/Game.vue @@ -6,31 +6,31 @@ .card.smallpad.small-modal.text-center label.modal-close(for="modalEog") h3#eogMessage.section {{ endgameMessage }} - //Chat(:opponents="opponents" :people="people") - Board(:vr="vr" :last-move="lastMove" :mode="mode" :user-color="mycolor" - :orientation="orientation" @play-move="play") + //Chat(:opponents="opponents" :people="people") + Board(:vr="vr" :last-move="lastMove" :mode="mode" :user-color="mycolor" + :orientation="orientation" :vname="variant.name" @play-move="play") + .button-group + button(@click="() => play()") Play + button(@click="() => undo()") Undo + button(@click="flip") Flip + button(@click="gotoBegin") GotoBegin + button(@click="gotoEnd") GotoEnd + .button-group(v-if="mode=='human'") + button(@click="offerDraw") Draw + button(@click="abortGame") Abort + button(@click="resign") Resign + div(v-if="mode=='human' && subMode=='corr'") + textarea(v-show="score=='*' && vr.turn==mycolor" v-model="corrMsg") + div(v-show="cursor>=0") {{ moves[cursor].message }} + .section-content(v-if="showFen && !!vr" id="fen-div") + p#fenString.text-center {{ vr.getFen() }} + #pgnDiv.section-content + a#download(href="#") .button-group - button(@click="() => play()") Play - button(@click="() => undo()") Undo - button(@click="flip") Flip - button(@click="gotoBegin") GotoBegin - button(@click="gotoEnd") GotoEnd - .button-group(v-if="mode=='human'") - button(@click="offerDraw") Draw - button(@click="abortGame") Abort - button(@click="resign") Resign - div(v-if="mode=='human' && subMode=='corr'") - textarea(v-show="score=='*' && vr.turn==mycolor" v-model="corrMsg") - div(v-show="cursor>=0") {{ moves[cursor].message }} - .section-content(v-if="showFen && !!vr" id="fen-div") - p#fenString.text-center {{ vr.getFen() }} - #pgnDiv.section-content - a#download(href="#") - .button-group - button#downloadBtn(@click="download") {{ st.tr["Download PGN"] }} - button Import game - //MoveList(v-if="showMoves" - :moves="moves" :cursor="cursor" @goto-move="gotoMove") + button#downloadBtn(@click="download") {{ st.tr["Download PGN"] }} + button Import game + //MoveList(v-if="showMoves" + :moves="moves" :cursor="cursor" @goto-move="gotoMove")