// "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
},
},
});