From ea73fba284052873d72a8f88601577e1c418e303 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Mon, 7 Dec 2020 09:46:46 +0100 Subject: [PATCH] Fix About page --- TODO | 1 + client/src/views/About.vue | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 09f538b9..0212575d 100644 --- a/TODO +++ b/TODO @@ -19,6 +19,7 @@ NEW VARIANTS: Xiangqi Synochess EmpireChess +Isardam (type B) : https://echekk.fr/spip.php?page=article&id_article=280 https://www.reddit.com/r/TotemChess/comments/imi3v7/totem_rules/ https://www.chessvariants.com/other.dir/fugue.html https://www.chessvariants.com/rules/spartan-chess diff --git a/client/src/views/About.vue b/client/src/views/About.vue index 44414944..ca6c7c17 100644 --- a/client/src/views/About.vue +++ b/client/src/views/About.vue @@ -7,16 +7,17 @@ main <script> import { store } from "@/store"; +import afterRawLoad from "@/utils/afterRawLoad"; export default { name: "my-about", computed: { content: function() { return ( - require("raw-loader!@/translations/about/" + store.state.lang + ".pug") - // Next two lines fix a weird issue after last update (2019-11) - .replace(/\\[n"]/g, " ") - .replace('module.exports = "', "") - .replace(/"$/, "") + afterRawLoad( + require( + "raw-loader!@/translations/about/" + store.state.lang + ".pug" + ).default + ) ); } } -- 2.44.0