Factorize some duplicated CSS
[vchess.git] / client / src / views / About.vue
index a685f3c..4441494 100644 (file)
@@ -8,18 +8,22 @@ main
 <script>
 import { store } from "@/store";
 export default {
-  name: 'my-about',
+  name: "my-about",
   computed: {
     content: function() {
-      return require("raw-loader!@/translations/about/" + store.state.lang + ".pug")
+      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(/"$/, "");
-    },
-  },
+        .replace('module.exports = "', "")
+        .replace(/"$/, "")
+      );
+    }
+  }
 };
 </script>
 
+<!-- Not scoped, because code is injected -->
 <style lang="sass">
 #links
   margin: var(--universal-margin);