projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename gameId --> id in Game.vue
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
1ad88b4
..
287788a
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-381,8
+381,8
@@
export default {
else
{
this.infoMessage = "New game started: " +
else
{
this.infoMessage = "New game started: " +
- "<a href='#/game/" + data.gameInfo.
gameI
d + "'>" +
- "#/game/" + data.gameInfo.
gameI
d + "</a>";
+ "<a href='#/game/" + data.gameInfo.
i
d + "'>" +
+ "#/game/" + data.gameInfo.
i
d + "</a>";
let modalBox = document.getElementById("modalInfo");
modalBox.checked = true;
setTimeout(() => { modalBox.checked = false; }, 3000);
let modalBox = document.getElementById("modalInfo");
modalBox.checked = true;
setTimeout(() => { modalBox.checked = false; }, 3000);
@@
-539,7
+539,7
@@
export default {
// These game informations will be sent to other players
const gameInfo =
{
// These game informations will be sent to other players
const gameInfo =
{
-
gameI
d: getRandString(),
+
i
d: getRandString(),
fen: c.fen || V.GenRandInitFen(),
players: shuffle([c.from, c.seat]), //white then black
vid: c.vid,
fen: c.fen || V.GenRandInitFen(),
players: shuffle([c.from, c.seat]), //white then black
vid: c.vid,
@@
-572,7
+572,7
@@
export default {
"POST",
{gameInfo: gameInfo, cid: c.id}, //cid useful to delete challenge
response => {
"POST",
{gameInfo: gameInfo, cid: c.id}, //cid useful to delete challenge
response => {
- gameInfo.
gameI
d = response.gameId;
+ gameInfo.
i
d = response.gameId;
tryNotifyOpponent();
this.$router.push("/game/" + response.gameId);
}
tryNotifyOpponent();
this.$router.push("/game/" + response.gameId);
}
@@
-594,7
+594,7
@@
export default {
GameStorage.add(game);
if (this.st.settings.sound >= 1)
new Audio("/sounds/newgame.mp3").play().catch(err => {});
GameStorage.add(game);
if (this.st.settings.sound >= 1)
new Audio("/sounds/newgame.mp3").play().catch(err => {});
- this.$router.push("/game/" + gameInfo.
gameI
d);
+ this.$router.push("/game/" + gameInfo.
i
d);
},
},
};
},
},
};