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=81da2786f2f497b4416e0488c34a48fb794c28df;hp=5f0fd44bf36a371ff1c2ae3c51dccf152b34af87;hpb=c5fa5762dc441fb1cb669908fae01d0d128e372d;p=vchess.git diff --git a/public/javascripts/components/problemSummary.js b/public/javascripts/components/problemSummary.js deleted file mode 100644 index 5f0fd44b..00000000 --- a/public/javascripts/components/problemSummary.js +++ /dev/null @@ -1,37 +0,0 @@ -// Show a problem summary on variant page or new problem preview -Vue.component('my-problem-summary', { - props: ['prob','preview'], - template: ` -
-
-
-
-

-

-

{{ timestamp2date(prob.added) }}

- -
-
- `, - methods: { - translate: function(text) { - return translations[text]; - }, - 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)); - }, - // Propagate "show problem" event to parent component (my-problems) - showProblem: function() { - this.$emit('show-problem'); - }, - }, -})