projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + draft Avalanche
[vchess.git]
/
client
/
src
/
views
/
About.vue
diff --git
a/client/src/views/About.vue
b/client/src/views/About.vue
index
a685f3c
..
ca6c7c1
100644
(file)
--- a/
client/src/views/About.vue
+++ b/
client/src/views/About.vue
@@
-7,19
+7,24
@@
main
<script>
import { store } from "@/store";
<script>
import { store } from "@/store";
+import afterRawLoad from "@/utils/afterRawLoad";
export default {
export default {
- name:
'my-about'
,
+ name:
"my-about"
,
computed: {
content: function() {
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(/"$/, "");
- },
- },
+ return (
+ afterRawLoad(
+ require(
+ "raw-loader!@/translations/about/" + store.state.lang + ".pug"
+ ).default
+ )
+ );
+ }
+ }
};
</script>
};
</script>
+<!-- Not scoped, because code is injected -->
<style lang="sass">
#links
margin: var(--universal-margin);
<style lang="sass">
#links
margin: var(--universal-margin);