projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Chat is working
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
1cb9af5
..
8fbc9d0
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-18,19
+18,17
@@
button(@click="() => abortGame()") Abort
button(@click="resign") Resign
textarea(v-if="game.score=='*'" v-model="corrMsg")
button(@click="() => abortGame()") Abort
button(@click="resign") Resign
textarea(v-if="game.score=='*'" v-model="corrMsg")
+ Chat(:players="game.players")
</template>
<!--
</template>
<!--
-// TODO: movelist dans basegame et chat ici
// ==> après, implémenter/vérifier les passages de challenges + parties en cours
// observer,
// ==> après, implémenter/vérifier les passages de challenges + parties en cours
// observer,
-// when send to chat (or a move), reach only this group (send gid along)
-->
<script>
import BaseGame from "@/components/BaseGame.vue";
-->
<script>
import BaseGame from "@/components/BaseGame.vue";
-//import Chat from "@/components/Chat.vue";
-//import MoveList from "@/components/MoveList.vue";
+import Chat from "@/components/Chat.vue";
import { store } from "@/store";
import { GameStorage } from "@/utils/gameStorage";
import { ppt } from "@/utils/datetime";
import { store } from "@/store";
import { GameStorage } from "@/utils/gameStorage";
import { ppt } from "@/utils/datetime";
@@
-41,6
+39,7
@@
export default {
name: 'my-game',
components: {
BaseGame,
name: 'my-game',
components: {
BaseGame,
+ Chat,
},
// gameRef: to find the game in (potentially remote) storage
data: function() {
},
// gameRef: to find the game in (potentially remote) storage
data: function() {