X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=3bd13f63baf8856259deca647cfece614feaef7f;hb=45109880413a50dec3a07298b987fb07d60630b2;hp=dbd8340c96236d023f1d88b27ef2b38676ae7e9e;hpb=7931e479adf93c87771ded1892a0873af72ae46d;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index dbd8340c..3bd13f63 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,7 +1,13 @@ Vue.component('my-problems', { data: function () { return { - problems: problemArray //initial value + problems: problemArray, //initial value + newProblem: { + fen: V.GenRandInitFen(), + instructions: "", + solution: "", + stage: "nothing", //or "preview" after new problem is filled + }, }; }, template: ` @@ -9,43 +15,41 @@ Vue.component('my-problems', { -
-
+

Add problem

-
+
- +
-

- Allowed HTML tags: - <p>,<br>,<,ul>,<ol>,<li> -

+

Safe HTML tags allowed

-