X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=3bd13f63baf8856259deca647cfece614feaef7f;hp=68830a4f7f9af93c281455eb43b8521f9a41aaf5;hb=45109880413a50dec3a07298b987fb07d60630b2;hpb=2d7194bd9c976f444e43e5dc0a725823b6472eb9 diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index 68830a4f..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: ` @@ -14,32 +20,31 @@ Vue.component('my-problems', {
-
+

Add problem

-
+
- +
-

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

+

Safe HTML tags allowed

-