-
-// "My" games: tabs my archived local games, my correspondance games
-// + my imported games (of any type).
-// TODO: later, also add possibility to upload a game (parse PGN).
-Vue.component("my-tab-games", {
- props: ["settings"],
- data: function() {
- return {
- display: "",
- imported: [],
- local: [],
- corr: []
- };
- },
- template: `
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- `,
- created: function() {
- // TODO: fetch corr games, local and corr
- // if any corr game where it's my turn, set display = "corr",
- // else set display = "local" (if any) or imported (if any and no local)
- },
- methods: {
- update: function() {
- // TODO: scan local + imported games, if any new then add it
- },
- },
-});
+ // 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)
+