Load config.json at runtime
This commit is contained in:
parent
01c0eb503f
commit
589c52f4cd
11 changed files with 71 additions and 39 deletions
15
src/main.js
15
src/main.js
|
|
@ -5,6 +5,7 @@ import store from './store'
|
|||
import router from './router'
|
||||
import matrix from './services/matrix.service'
|
||||
import navigation from './services/navigation.service'
|
||||
import config from './services/config.service'
|
||||
import cleaninsights from './services/cleaninsights.service'
|
||||
import 'roboto-fontface/css/roboto/roboto-fontface.css'
|
||||
import 'material-design-icons-iconfont/dist/material-design-icons.css'
|
||||
|
|
@ -25,6 +26,7 @@ Vue.config.productionTip = false
|
|||
Vue.use(VueResize);
|
||||
Vue.use(VEmojiPicker);
|
||||
Vue.use(matrix, { store: store, i18n: i18n });
|
||||
Vue.use(config); // Use this before cleaninsights below, it depends on config!
|
||||
Vue.use(cleaninsights);
|
||||
Vue.use(VueClipboard);
|
||||
|
||||
|
|
@ -87,12 +89,12 @@ Vue.directive('longTap', {
|
|||
};
|
||||
|
||||
const touchStart = function (e) {
|
||||
el.longTapHandled = false;
|
||||
el.longTapStartX = touchX(e);
|
||||
el.longTapStartY = touchY(e);
|
||||
el.longTapTimer = setTimeout(touchTimerElapsed, el.longTapTimeout);
|
||||
el.classList.add("waiting-for-long-tap");
|
||||
e.preventDefault();
|
||||
el.longTapHandled = false;
|
||||
el.longTapStartX = touchX(e);
|
||||
el.longTapStartY = touchY(e);
|
||||
el.longTapTimer = setTimeout(touchTimerElapsed, el.longTapTimeout);
|
||||
el.classList.add("waiting-for-long-tap");
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
const touchCancel = function () {
|
||||
|
|
@ -156,6 +158,7 @@ new Vue({
|
|||
router,
|
||||
i18n,
|
||||
matrix,
|
||||
config,
|
||||
cleaninsights,
|
||||
render: h => h(App)
|
||||
}).$mount('#app');
|
||||
Loading…
Add table
Add a link
Reference in a new issue