2020-11-09 10:26:56 +01:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import vuetify from './plugins/vuetify';
|
|
|
|
|
import router from './router'
|
|
|
|
|
import store from './store'
|
|
|
|
|
import matrix from './services/matrix.service'
|
2021-01-08 11:07:02 +01:00
|
|
|
import navigation from './services/navigation.service'
|
2020-11-09 10:26:56 +01:00
|
|
|
import 'roboto-fontface/css/roboto/roboto-fontface.css'
|
|
|
|
|
import 'material-design-icons-iconfont/dist/material-design-icons.css'
|
2020-11-25 14:42:50 +01:00
|
|
|
import VEmojiPicker from 'v-emoji-picker';
|
2020-12-04 10:44:46 +01:00
|
|
|
import VueResize from 'vue-resize';
|
|
|
|
|
import 'vue-resize/dist/vue-resize.css';
|
2021-01-25 22:18:15 +01:00
|
|
|
import VueClipboard from 'vue-clipboard2'
|
|
|
|
|
|
2020-11-09 10:26:56 +01:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
2020-12-04 10:44:46 +01:00
|
|
|
Vue.use(VueResize);
|
2020-11-25 14:42:50 +01:00
|
|
|
Vue.use(VEmojiPicker);
|
2020-11-09 15:08:36 +01:00
|
|
|
Vue.use(matrix, {store: store});
|
2021-01-25 22:18:15 +01:00
|
|
|
Vue.use(VueClipboard);
|
2020-11-09 15:08:36 +01:00
|
|
|
|
2020-11-25 14:42:50 +01:00
|
|
|
// Add bubble functionality to custom events.
|
|
|
|
|
// From here: https://stackoverflow.com/questions/41993508/vuejs-bubbling-custom-events
|
|
|
|
|
Vue.use((Vue) => {
|
|
|
|
|
Vue.prototype.$bubble = function $bubble(eventName, ...args) {
|
|
|
|
|
// Emit the event on all parent components
|
|
|
|
|
let component = this;
|
|
|
|
|
do {
|
|
|
|
|
component.$emit(eventName, ...args);
|
|
|
|
|
component = component.$parent;
|
|
|
|
|
} while (component);
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
|
2021-02-22 16:34:19 +01:00
|
|
|
// Register a global custom directive called `v-blur` that prevents focus
|
|
|
|
|
Vue.directive('blur', {
|
|
|
|
|
inserted: function (el) {
|
|
|
|
|
el.onfocus = (ev) => ev.target.blur()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2021-01-11 17:42:58 +01:00
|
|
|
Vue.use(navigation, router);
|
|
|
|
|
|
2020-11-09 10:26:56 +01:00
|
|
|
new Vue({
|
|
|
|
|
vuetify,
|
|
|
|
|
router,
|
|
|
|
|
store,
|
|
|
|
|
matrix,
|
|
|
|
|
render: h => h(App)
|
2021-01-11 17:42:58 +01:00
|
|
|
}).$mount('#app');
|