X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=60aa9c430833caa145aa522d7060a9e6e3a9d91b;hb=a9f262f38d7ae9ea4c935c549309bd2f773aa6c2;hp=63f06e5568a0a6224f633be2edc2ece756583ecf;hpb=e081ffe361b06ca74db0a36bf72dd73602abf57b;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index 63f06e55..60aa9c43 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,38 +1,109 @@ Vue.component('my-problems', { data: function () { return { - problems: problemArray, //initial value + problems: [], //oldest first + myProblems: [], //same + curProblems: [], //assigned to either of the ones above + curIdx: 0, //index in (current) problems array newProblem: { fen: "", instructions: "", solution: "", - stage: "nothing", //or "preview" after new problem is filled + preview: false, }, }; }, template: `