X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=558f0bada06f9099d41ed895d76882c05c9561bd;hb=26b8e4f7c71030d49e44fe1d89632ef91b886d67;hp=ef017e5953798eaa17513de7b40907b5080e92a3;hpb=6b5517b4cdd12d7480b811c94c134982c16d3814;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index ef017e59..558f0bad 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,45 +1,114 @@ Vue.component('my-problems', { data: function () { return { - problems: problemArray, //initial value + problems: [], //oldest first + myProblems: [], //same + curIdx: 0, //index in problems array + stage: "nothing", //or "preview" after new problem is filled newProblem: { fen: "", instructions: "", solution: "", - stage: "nothing", //or "preview" after new problem is filled }, }; }, template: `