X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=00cb944d62dc6e6e9c08a26104773af0f9ebc3b3;hp=9288a393a6f9135cd325273cc36a3a30c775d7db;hb=8d7e2786f5a67a1b9a77c742d7951e0efbe8747d;hpb=247356cde3f4e36004942c5f57187d667f7ef27c diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index 9288a393..00cb944d 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,62 +1,121 @@ Vue.component('my-problems', { data: function () { return { - problems: problemArray, //initial value + problems: [], //oldest first + 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: `