X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fproblems.js;h=3bd13f63baf8856259deca647cfece614feaef7f;hb=45109880413a50dec3a07298b987fb07d60630b2;hp=594d6e648b0832e664ab01324e78ace994be1d9a;hpb=da06a6eb0237123ce43fdb01cb06246b8b57f5e5;p=vchess.git diff --git a/public/javascripts/components/problems.js b/public/javascripts/components/problems.js index 594d6e64..3bd13f63 100644 --- a/public/javascripts/components/problems.js +++ b/public/javascripts/components/problems.js @@ -1,81 +1,107 @@ 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: `
- - + + -
-
+

Add problem

-
+
- +
-

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

+

Safe HTML tags allowed

-