projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incheck in BaseGame, draft Antimatter variant
[vchess.git]
/
client
/
src
/
App.vue
diff --git
a/client/src/App.vue
b/client/src/App.vue
index
7f6f290
..
9c724e7
100644
(file)
--- a/
client/src/App.vue
+++ b/
client/src/App.vue
@@
-18,26
+18,29
@@
#leftMenu
router-link(to="/")
| {{ st.tr["Hall"] }}
#leftMenu
router-link(to="/")
| {{ st.tr["Hall"] }}
+ router-link(to="/mygames")
+ | {{ st.tr["My games"] }}
router-link(to="/variants")
| {{ st.tr["Variants"] }}
router-link(to="/problems")
| {{ st.tr["Problems"] }}
router-link(to="/variants")
| {{ st.tr["Variants"] }}
router-link(to="/problems")
| {{ st.tr["Problems"] }}
- router-link(to="/mygames")
- | {{ st.tr["My games"] }}
#rightMenu
#rightMenu
- .clickable(onClick="doClick('modalUser')")
+ .clickable(onClick="
window.
doClick('modalUser')")
| {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
| {{ st.user.id > 0 ? (st.user.name || "@nonymous") : "Login" }}
- .clickable(onClick="doClick('modalSettings')")
+ .clickable(onClick="
window.
doClick('modalSettings')")
| {{ st.tr["Settings"] }}
| {{ st.tr["Settings"] }}
- .clickable#flagContainer(onClick="doClick('modalLang')")
- img(v-if="!!st.lang" :src="flagImage")
+ .clickable#flagContainer(onClick="window.doClick('modalLang')")
+ 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
router-link.menuitem(to="/about") {{ st.tr["About"] }}
router-link.menuitem(to="/news") {{ st.tr["News"] }}
router-view
.row
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
footer
router-link.menuitem(to="/about") {{ st.tr["About"] }}
router-link.menuitem(to="/news") {{ st.tr["News"] }}
- p.clickable(onClick="doClick('modalContact')")
+ p.clickable(onClick="
window.
doClick('modalContact')")
| {{ st.tr["Contact"] }}
</template>
| {{ st.tr["Contact"] }}
</template>
@@
-53,17
+56,17
@@
export default {
ContactForm,
Language,
Settings,
ContactForm,
Language,
Settings,
- UpsertUser
,
+ UpsertUser
},
data: function() {
return {
},
data: function() {
return {
- st: store.state
,
+ st: store.state
};
},
computed: {
flagImage: function() {
return `/images/flags/${this.st.lang}.svg`;
};
},
computed: {
flagImage: function() {
return `/images/flags/${this.st.lang}.svg`;
- }
,
+ }
},
mounted: function() {
let dialogs = document.querySelectorAll("div[role='dialog']");
},
mounted: function() {
let dialogs = document.querySelectorAll("div[role='dialog']");
@@
-73,12
+76,11
@@
export default {
},
methods: {
hideDrawer: function(e) {
},
methods: {
hideDrawer: function(e) {
- if (e.target.innerText == "Forum")
- return; //external link
+ if (e.target.innerText == "Forum") return; //external link
e.preventDefault(); //TODO: why is this needed?
document.getElementsByClassName("drawer")[0].checked = false;
e.preventDefault(); //TODO: why is this needed?
document.getElementsByClassName("drawer")[0].checked = false;
- }
,
- }
,
+ }
+ }
};
</script>
};
</script>
@@
-210,6
+212,8
@@
nav
position: absolute
top: -22px
//padding: -5px 0 0 10px
position: absolute
top: -22px
//padding: -5px 0 0 10px
+ & > #menuBar
+ z-index: 5000 //to hide currently selected piece if any
[type="checkbox"].drawer+*
right: -767px
[type="checkbox"].drawer+*
right: -767px