mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
15 lines
659 B
JavaScript
15 lines
659 B
JavaScript
/* global notTurbolinksPreview */
|
|
|
|
import PerfectScrollbar from 'vue3-perfect-scrollbar';
|
|
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
|
import { vOnClickOutside } from '@vueuse/components';
|
|
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
|
import RepositoryItemSidebar from '../../vue/repository_item_sidebar/RepositoryItemSidebar.vue';
|
|
|
|
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');
|