mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 11:14:24 +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 Vue from 'vue/dist/vue.esm';
|
||||
import PerfectScrollbar from 'vue2-perfect-scrollbar';
|
||||
import PerfectScrollbar from 'vue3-perfect-scrollbar';
|
||||
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
||||
import UserPreferences from '../../vue/user_preferences/container.vue';
|
||||
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
||||
|
||||
Vue.use(TurbolinksAdapter);
|
||||
Vue.use(PerfectScrollbar);
|
||||
Vue.prototype.i18n = window.I18n;
|
||||
|
||||
new Vue({
|
||||
el: '#user_preferences',
|
||||
components: { UserPreferences },
|
||||
});
|
||||
const app = createApp({});
|
||||
app.component('UserPreferences', UserPreferences);
|
||||
app.use(PerfectScrollbar);
|
||||
app.config.globalProperties.i18n = window.I18n;
|
||||
mountWithTurbolinks(app, '#user_preferences');
|
||||
|
|
Loading…
Reference in a new issue