scinote-web/app/javascript/packs/vue/repository_item_sidebar.js
2023-11-16 16:25:34 +01:00

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');