Commit | Line | Data |
---|---|---|
625022fd BA |
1 | import Vue from "vue"; |
2 | import App from "./App.vue"; | |
3 | import router from "./router"; | |
c66a829b | 4 | import { store } from "./store"; |
625022fd BA |
5 | |
6 | Vue.config.productionTip = false; | |
7 | ||
8 | new Vue({ | |
9 | router, | |
10 | render: function(h) { | |
11 | return h(App); | |
98db2082 | 12 | }, |
c66a829b | 13 | created: function() { |
6808d7a1 BA |
14 | window.doClick = elemId => { |
15 | document.getElementById(elemId).click(); | |
16 | }; | |
17 | document.addEventListener("keydown", e => { | |
18 | if (e.code === "Escape") { | |
63ca2b89 BA |
19 | let modalBoxes = document.querySelectorAll("[id^='modal']"); |
20 | modalBoxes.forEach(m => { | |
5b4de147 BA |
21 | if ( |
22 | m.checked && | |
23 | !["modalAccept","modalConfirm"].includes(m.id) | |
24 | ) { | |
25 | m.checked = false; | |
26 | } | |
63ca2b89 BA |
27 | }); |
28 | } | |
29 | }); | |
8418f0d7 | 30 | store.initialize(); |
6808d7a1 | 31 | } |
625022fd | 32 | }).$mount("#app"); |