X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=a9c1d4cce5b87ae70bc08f5926eabcdeb530a967;hb=92a523d1a74cbabcfd7d6ade45f25fa622815f0b;hp=59b0371a3e6fac3b7a47ac63cae6bc7f8235c6cf;hpb=24340cae41e916d91088cc6988d8838b342a9c42;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index 59b0371a..a9c1d4cc 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -26,21 +26,19 @@ | {{ st.tr["Problems"] }} #rightMenu .clickable(onClick="doClick('modalUser')") - | {{ !st.user.id ? "Login" : "Update" }} + | {{ st.user.id > 0 ? "Update" : "Login" }} .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 footer - a(href="https://github.com/yagu0/vchess") {{ st.tr["Source code"] }} + router-link.menuitem(to="/about") {{ st.tr["About"] }} p.clickable(onClick="doClick('modalContact')") - | {{ st.tr["Contact form"] }} - //my-game(:game-ref="gameRef" :mode="mode" :settings="settings" @game-over="archiveGame") - //// TODO: add only the necessary icons to mini-css custom build + | {{ st.tr["Contact"] }} + // TODO: add only the necessary icons to mini-css custom build //script(src="//unpkg.com/feather-icons") @@ -63,10 +61,11 @@ export default { st: store.state, }; }, -// // TODO: $route: ... -// gameRef: function() { -// this.loadGame(); -// }, + computed: { + flagImage: function() { + return `/images/flags/${this.st.lang}.svg`; + }, + }, }; @@ -147,7 +146,7 @@ footer display: inline-flex align-items: center justify-content: center - & > a + & > .menuitem display: inline-block margin: 0 10px 0 0 &:link