X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=cb00856d99739eccf6829351f5252753beae273c;hb=92b82defacccf9c4d3755924a71fcb584002ccc6;hp=52e97c53f2750054a0692b62916ce6d36b3c4917;hpb=c0b2760655298f07eb403da70307636e57b2813a;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 52e97c53..cb00856d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -11,7 +11,7 @@ button(@click="abortGame") {{ st.tr["Game is too boring"] }} BaseGame(:game="game" :vr="vr" ref="basegame" @newmove="processMove" @gameover="gameOver") - // TODO: also show players names + div Names: {{ game.players[0].name }} - {{ game.players[1].name }} div Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }} .button-group(v-if="game.mode!='analyze' && game.score=='*'") button(@click="offerDraw") Draw @@ -27,15 +27,7 @@ // ==> après, implémenter/vérifier les passages de challenges + parties en cours // observer, // + problèmes, habiller et publier. (+ corr...) - // TODO: how to know who is observing ? Send message to everyone with game ID ? - // and then just listen to (dis)connect events - // server always send "connect on " + URL ; then add to observers if game... -// router when access a game page tell to server I joined + game ID (no need rid) -// and ask server for current joined (= observers) // when send to chat (or a move), reach only this group (send gid along) -// -> doivent être enregistrés comme observers au niveau du serveur... - // non: poll users + events startObserving / stopObserving - // (à faire au niveau du routeur ?) -->