return {
problems: [], //oldest first
myProblems: [], //same
- curIdx: 0, //index in problems array
- stage: "nothing", //or "preview" after new problem is filled
+ curProblems: [], //assigned to either of the ones above
+ curIdx: 0, //index in (current) problems array
newProblem: {
fen: "",
instructions: "",
solution: "",
+ preview: false,
},
};
},
<i class="material-icons">skip_next</i>
</button>
</div>
-
+ --> OK, mais ces flèches n'ont pas la même action selon les vues
+ --> fetchN si liste, problème suivant/précédent sinon
board qui bouge et activé que si #hash donnant numéro du problème
// Analyse URL: if a single problem required, show it. Otherwise,
// TODO: fetch most recent problems from server
// If the requested problem is in the list, just show it
+ this.tryNavigate();
},
methods: {
translate: function(text) {