X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Findex.js;h=bc4cd9e1d2a23b4940fbb2193643742faf4f5c10;hp=3d35c456a7912142cd71d4abd414566c6b8b1f4a;hb=fd08ab2c5b8931bb8c95cf7e9f2f95122647f991;hpb=2305d34a3f2ab561c20b1fcb7349320145ac1f5c diff --git a/public/javascripts/index.js b/public/javascripts/index.js index 3d35c456..bc4cd9e1 100644 --- a/public/javascripts/index.js +++ b/public/javascripts/index.js @@ -5,10 +5,10 @@ new Vue({ counts: {}, curPrefix: "", conn: null, + display: "variants", }, computed: { sortedCounts: function () { - // TODO: priorité aux parties corr où c'est à nous de jouer ! const capitalizedPrefix = this.curPrefix.replace(/^\w/, c => c.toUpperCase()); const variantsCounts = variantArray .filter( v => { @@ -50,7 +50,7 @@ new Vue({ this.conn.onmessage = socketMessageListener; this.conn.onclose = socketCloseListener; - // TODO: + // 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)