mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Update user preferences with to Vue3
This commit is contained in:
parent
2ab9d6a7b1
commit
2dce55541d
1 changed files with 8 additions and 11 deletions
|
@ -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 },
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in a new issue