X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;fp=public%2Fjavascripts%2Fcomponents%2FproblemSummary.js;h=0000000000000000000000000000000000000000;hb=625022fdcf750f0aff8fcd699f7e9b89730e1d10;hp=54602e054a13c86d588834944b3d42a4c213a465;hpb=b955c65b942d09d24b5c3bed0d755d4f2f8f71f1;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js deleted file mode 100644 index 54602e05..00000000 --- a/public/javascripts/components/problemSummary.js +++ /dev/null @@ -1,34 +0,0 @@ -// Preview a problem on variant page -Vue.component('my-problem-summary', { - props: ['prob','userid','preview'], - template: ` -
-
-
-
-

-

-

{{ timestamp2date(prob.added) }}

- -
- - -
-
-
- `, - methods: { - getDiagram: function(fen) { - const fenParsed = V.ParseFen(fen); - return getDiagram({ - position: fenParsed.position, - turn: fenParsed.turn, - // No need for flags here - }); - }, - timestamp2date(ts) { - return getDate(new Date(ts)); - }, - }, -})