X-Git-Url: https://git.auder.net/%3C?a=blobdiff_plain;f=client%2Fsrc%2Fmain.js;h=22fe0cd19de750e0577e95344a79f05041f66b41;hb=5a3da96860d36e5131cc5c7c761ac46fb6787685;hp=46d99abec8e26ca48cdf57912d92c68099ed5ea2;hpb=c66a829b3770122fe0ff2fb9db8def9635bbc334;p=vchess.git diff --git a/client/src/main.js b/client/src/main.js index 46d99abe..22fe0cd1 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -20,6 +20,12 @@ new Vue({ // }, created: function() { window.doClick = (elemId) => { document.getElementById(elemId).click() }; + store.initialize(); + + // 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à !) @@ -29,13 +35,6 @@ new Vue({ // if (!!localStorage["variant"]) // location.hash = "#game?id=" + localStorage["gameId"]; }, - // Later, for icons (if using feather): -// mounted: function() { -// feather.replace(); -// }, - mounted: function() { - store.initialize(); - }, }).$mount("#app"); // TODO: get rules, dynamic import