X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=c630668f278dec84aaa4f3f9e21079fefc026d5a;hb=fd7aea36b8da702df87be3ed055f9a1f59c9f4da;hp=5f183da159db45b1773ca154a2880b04cb736c34;hpb=8d61fc4ab7373b4a576f3f9108cdf7768ae27096;p=vchess.git diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 5f183da1..c630668f 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) +//use GameStorage.getAll()