X-Git-Url: https://git.auder.net/parser.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=94b5dc70e10be3fd04d5b2153b10e32dbf6514d9;hb=7aa548e72ba8a4af4e2c7f63e7723ad10d2cd3a4;hp=22cf5bf7faac48605d10dac8d4bc56fcbe9ba5dd;hpb=4b0384faf03d3842ba2f80ccd6d104c5e34a355e;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 22cf5bf7..94b5dc70 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,42 +1,37 @@
-
-.row
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- BaseGame(:game="game" :vr="vr" ref="basegame" @newmove="processMove")
- .button-group(v-if="game.mode!='analyze'")
- button(@click="offerDraw") Draw
- button(@click="abortGame") Abort
- button(@click="resign") Resign
- div(v-if="game.mode=='corr'")
- textarea(v-show="score=='*' && vr.turn==game.mycolor" v-model="corrMsg")
- div(v-show="cursor>=0") {{ moves[cursor].message }}
+main
+ .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
+ 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")
+
+