Fix About page
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 7 Dec 2020 08:46:46 +0000 (09:46 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 7 Dec 2020 08:46:46 +0000 (09:46 +0100)
TODO
client/src/views/About.vue

diff --git a/TODO b/TODO
index 09f538b..0212575 100644 (file)
--- 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
index 4441494..ca6c7c1 100644 (file)
@@ -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
+        )
       );
     }
   }