X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2FApp.vue;h=8258dc3ed574608360a6b807628abe490db4056c;hb=6b7b2cf720e6255e4da0dc34fee363c456346a58;hp=368982b4f36f7bbe1ee6ab26aa292c1feb00cd16;hpb=57eb158fe8e37daaae11685df846003cda4aba19;p=vchess.git diff --git a/client/src/App.vue b/client/src/App.vue index 368982b4..8258dc3e 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -34,6 +34,7 @@ .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"] }} + a.menuitem(href="https://discord.gg/a9ZFKBe") Discord router-link.menuitem(to="/news") {{ st.tr["News"] }} p.clickable(onClick="window.doClick('modalContact')") | {{ st.tr["Contact"] }} @@ -43,8 +44,7 @@ import ContactForm from "@/components/ContactForm.vue"; import Settings from "@/components/Settings.vue"; import UpsertUser from "@/components/UpsertUser.vue"; -import { store } from "./store.js"; -import { processModalClick } from "./utils/modalClick.js"; +import { store } from "@/store.js"; export default { components: { ContactForm, @@ -56,15 +56,8 @@ export default { st: store.state }; }, - mounted: function() { - let dialogs = document.querySelectorAll("div[role='dialog']"); - dialogs.forEach(d => { - d.addEventListener("click", processModalClick); - }); - }, methods: { hideDrawer: function(e) { - if (e.target.innerText == "Forum") return; //external link e.preventDefault(); //TODO: why is this needed? document.getElementsByClassName("drawer")[0].checked = false; } @@ -112,6 +105,9 @@ header .text-center text-align: center +.bold + font-weight: bold + .clearer clear: both