2021-08-03 12:52:50 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuelidate from 'vuelidate';
|
|
|
|
import VueI18n from 'vue-i18n';
|
|
|
|
import App from '../survey/App.vue';
|
|
|
|
import i18n from '../survey/i18n';
|
2022-03-20 07:37:36 +00:00
|
|
|
import store from '../survey/store';
|
2021-08-03 12:52:50 +00:00
|
|
|
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
Vue.use(Vuelidate);
|
|
|
|
|
|
|
|
const i18nConfig = new VueI18n({
|
|
|
|
locale: 'en',
|
|
|
|
messages: i18n,
|
|
|
|
});
|
|
|
|
|
|
|
|
// Event Bus
|
|
|
|
window.bus = new Vue();
|
|
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
|
|
window.onload = () => {
|
|
|
|
window.WOOT_SURVEY = new Vue({
|
|
|
|
i18n: i18nConfig,
|
2022-03-20 07:37:36 +00:00
|
|
|
store,
|
2021-08-03 12:52:50 +00:00
|
|
|
render: h => h(App),
|
|
|
|
}).$mount('#app');
|
|
|
|
};
|