mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
15 lines
658 B
JavaScript
15 lines
658 B
JavaScript
/* global notTurbolinksPreview */
|
|
|
|
import PerfectScrollbar from 'vue3-perfect-scrollbar';
|
|
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
|
import RepositoryItemSidebar from '../../vue/repository_item_sidebar/RepositoryItemSidebar.vue';
|
|
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
|
import { vOnClickOutside } from '@vueuse/components'
|
|
|
|
const app = createApp({});
|
|
app.component('RepositoryItemSidebar', RepositoryItemSidebar);
|
|
app.use(RepositoryItemSidebar);
|
|
app.use(PerfectScrollbar);
|
|
app.directive('click-outside', vOnClickOutside)
|
|
app.config.globalProperties.i18n = window.I18n;
|
|
mountWithTurbolinks(app, '#repositoryItemSidebar');
|