-
Notifications
You must be signed in to change notification settings - Fork 36
/
main.js
40 lines (33 loc) · 812 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import Vue from "vue";
import App from "./App.vue";
import VModal from "vue-js-modal";
import vSelect from "vue-select";
import VueRouter from "vue-router";
import router from "./router";
Vue.config.productionTip = false;
Vue.use(VModal, {
dialog: true,
dynamic: true,
injectModalsContainer: true,
});
Vue.component("v-select", vSelect);
// This is used by our custom MenuButton component
Vue.component("v-select-open-indicator", vSelect['components'].OpenIndicator);
Vue.use(VueRouter);
var vueInstance = new Vue({
render: (h) => h(App),
router,
}).$mount("#app");
document.addEventListener(
"DOMContentLoaded",
function() {
window.vueInstance = vueInstance;
},
false
);
// document.onkeypress = function (e) {
// e = e || window.event;
// if (e.key == 'x') {
// debugger;
// }
// }