X-Git-Url: https://git.auder.net/pieces/Checkered/cp.svg?a=blobdiff_plain;ds=sidebyside;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=ad8c54c014148bec9fa063cbd00bacd2328439c5;hb=81da2786f2f497b4416e0488c34a48fb794c28df;hp=bcd069cc389d7b2386514f5016f0af2d3b1df554;hpb=c5fa5762dc441fb1cb669908fae01d0d128e372d;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index bcd069cc..ad8c54c0 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,38 +1,98 @@ Vue.component('my-problems', { data: function () { return { - problems: [], + 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: `