From 03608482744c433ad284f4b61e85b2e8cff4f5f3 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 8 Feb 2019 12:52:33 +0100 Subject: [PATCH] Saving current state --- client/src/App.vue | 8 +- client/src/components/ChallengeList.vue | 20 +--- client/src/data/challengeCheck.js | 4 +- client/src/store.js | 10 +- client/src/variants/Alice.js | 3 +- client/src/views/Hall.vue | 116 +++++++++++++++--------- 6 files changed, 92 insertions(+), 69 deletions(-) diff --git a/client/src/App.vue b/client/src/App.vue index 59b0371a..4b8e447c 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -30,8 +30,7 @@ .clickable(onClick="doClick('modalSettings')") | {{ st.tr["Settings"] }} .clickable#flagContainer(onClick="doClick('modalLang')") - img(v-if="!!st.lang" - :src="require(`@/assets/images/flags/${st.lang}.svg`)") + img(v-if="!!st.lang" :src="flagImage") router-view .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 @@ -67,6 +66,11 @@ export default { // gameRef: function() { // this.loadGame(); // }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, }; diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index a52e0cae..8951226b 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -1,34 +1,24 @@