X-Git-Url: https://git.auder.net/variants/Dynamo/complete_rules.html?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=edaca5c1dffab1c60630481f18317263f72fd041;hb=5bcc9b31a762645af3d35192e7359771c95d4ff7;hp=262823dfffbdf8873979e6ad2eb65684f803fbcd;hpb=06e79b0783d6e9962ca6b2a25f62d46f46fa5c8b;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 262823df..edaca5c1 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,21 +1,30 @@
main
+ input#modalChat.modal(type="checkbox" @change="toggleChat")
+ div#chatWrap(role="dialog" data-checkbox="modalChat"
+ aria-labelledby="inputChat")
+ #chat.card
+ label.modal-close(for="modalChat")
+ Chat(:players="game.players" :pastChats="game.chats"
+ @newchat-sent="finishSendChat" @newchat-received="processChat")
.row
- .col-sm-12.col-md-3
- Chat(:players="game.players")
- .col-sm-12.col-md-9
- BaseGame(:game="game" :vr="vr" ref="basegame"
- @newmove="processMove" @gameover="gameOver")
- .row
- .col-sm-12.col-md-9.col-md-offset-3
- .button-group(v-if="game.mode!='analyze' && game.score=='*'")
- button(@click="offerDraw") Draw
+ #aboveBoard.col-sm-12.col-md-9.col-md-offset-3.col-lg-10.col-lg-offset-2
+ button#chatBtn(onClick="doClick('modalChat')") Chat
+ #actions(v-if="game.score=='*'")
+ button(@click="clickDraw" :class="{['draw-' + drawOffer]: true}") Draw
button(@click="abortGame") Abort
button(@click="resign") Resign
- div Names: {{ game.players[0].name }} - {{ game.players[1].name }}
- div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
- div(v-if="game.type=='corr'") {{ game.corrMsg }}
- textarea(v-if="game.score=='*'" v-model="corrMsg")
+ #playersInfo
+ p
+ span.name(:class="{connected: isConnected(0)}")
+ | {{ game.players[0].name || "@nonymous" }}
+ span.time(v-if="game.score=='*'") {{ virtualClocks[0] }}
+ span.split-names -
+ span.name(:class="{connected: isConnected(1)}")
+ | {{ game.players[1].name || "@nonymous" }}
+ span.time(v-if="game.score=='*'") {{ virtualClocks[1] }}
+ BaseGame(:game="game" :vr="vr" ref="basegame"
+ @newmove="processMove" @gameover="gameOver")
-