X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FAnalyze.vue;fp=client%2Fsrc%2Fviews%2FAnalyze.vue;h=4ec370c52a0871038ebae6347380e42afd7dbd8b;hb=7f3484bd3530cd9f656e215d2d4d832d98bf5906;hp=0000000000000000000000000000000000000000;hpb=0b0dc040acd01ff1855b159c2933cb2eff73b26d;p=vchess.git
diff --git a/client/src/views/Analyze.vue b/client/src/views/Analyze.vue
new file mode 100644
index 00000000..4ec370c5
--- /dev/null
+++ b/client/src/views/Analyze.vue
@@ -0,0 +1,527 @@
+
+.row
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ input#modalAbort.modal(type="checkbox")
+ div(role="dialog" aria-labelledby="abortBoxTitle")
+ .card.smallpad.small-modal.text-center
+ label.modal-close(for="modalAbort")
+ h3#abortBoxTitle.section {{ st.tr["Terminate game?"] }}
+ button(@click="abortGame") {{ st.tr["Sorry I have to go"] }}
+ button(@click="abortGame") {{ st.tr["Game seems over"] }}
+ button(@click="abortGame") {{ st.tr["Opponent is gone"] }}
+ BaseGame(:game="game" :vr="vr" ref="basegame"
+ @newmove="processMove" @gameover="gameOver")
+ div Names: {{ game.players[0].name }} - {{ game.players[1].name }}
+ div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
+ .button-group(v-if="game.mode!='analyze' && game.score=='*'")
+ button(@click="offerDraw") Draw
+ button(@click="() => abortGame()") Abort
+ button(@click="resign") Resign
+ textarea(v-if="game.score=='*'" v-model="corrMsg")
+ Chat(:players="game.players")
+
+
+
+
+