Update user preferences with to Vue3

This commit is contained in:
Martin Artnik 2023-11-24 09:48:21 +01:00
parent 2ab9d6a7b1
commit 2dce55541d

View file

@ -1,13 +1,10 @@
import TurbolinksAdapter from 'vue-turbolinks'; import PerfectScrollbar from 'vue3-perfect-scrollbar';
import Vue from 'vue/dist/vue.esm'; import { createApp } from 'vue/dist/vue.esm-bundler.js';
import PerfectScrollbar from 'vue2-perfect-scrollbar';
import UserPreferences from '../../vue/user_preferences/container.vue'; import UserPreferences from '../../vue/user_preferences/container.vue';
import { mountWithTurbolinks } from './helpers/turbolinks.js';
Vue.use(TurbolinksAdapter); const app = createApp({});
Vue.use(PerfectScrollbar); app.component('UserPreferences', UserPreferences);
Vue.prototype.i18n = window.I18n; app.use(PerfectScrollbar);
app.config.globalProperties.i18n = window.I18n;
new Vue({ mountWithTurbolinks(app, '#user_preferences');
el: '#user_preferences',
components: { UserPreferences },
});