X-Git-Url: https://git.auder.net/game/%22%20%20%20data.gameInfo.gameId%20%20%20%22?a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;h=28b7f86cf2d880c4322feaa8dc15ac3964c8e41c;hb=7c3cd3794ee13c41fc623179f7d4142d0d3e74da;hp=46d99abec8e26ca48cdf57912d92c68099ed5ea2;hpb=c66a829b3770122fe0ff2fb9db8def9635bbc334;p=vchess.git diff --git a/client/src/main.js b/client/src/main.js index 46d99abe..28b7f86c 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -20,6 +20,11 @@ new Vue({ // }, created: function() { window.doClick = (elemId) => { document.getElementById(elemId).click() }; + + // TODO: AJAX call get corr games (all variants) + // si dernier lastMove sur serveur n'est pas le mien et nextColor == moi, alors background orange + // ==> background orange si à moi de jouer par corr (sur main index) + // (helper: static fonction "GetNextCol()" dans base_rules.js) //TODO: si une partie en cours dans storage, rediriger vers cette partie //(à condition que l'URL n'y corresponde pas déjà !) @@ -33,7 +38,7 @@ new Vue({ // mounted: function() { // feather.replace(); // }, - mounted: function() { + created: function() { store.initialize(); }, }).$mount("#app");