X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=ddb689d0110a34f78a036e4041d5eadf73f8d4e4;hb=7667307fada9f344e66e664b3bc3001326c36e88;hp=5f183da159db45b1773ca154a2880b04cb736c34;hpb=8d61fc4ab7373b4a576f3f9108cdf7768ae27096;p=vchess.git diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 5f183da1..ddb689d0 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -1,45 +1,5 @@ - -// "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) +