mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 01:19:45 +08:00
809aaa8aa3
- Created new checklist component. - updated the functionality of the select-search component. - Name field. - Text fields. - Numeric fields. - List fields. - Status fields. - Checklist fields.
24 lines
703 B
JavaScript
24 lines
703 B
JavaScript
/* global notTurbolinksPreview */
|
|
|
|
import TurbolinksAdapter from 'vue-turbolinks';
|
|
import Vue from 'vue/dist/vue.esm';
|
|
import 'vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css';
|
|
import PerfectScrollbar from 'vue2-perfect-scrollbar';
|
|
import RepositoryItemSidebar from '../../vue/repository_item_sidebar/RepositoryItemSidebar.vue';
|
|
import outsideClick from './directives/outside_click';
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
Vue.directive('click-outside', outsideClick);
|
|
Vue.use(PerfectScrollbar);
|
|
Vue.prototype.i18n = window.I18n;
|
|
|
|
function initRepositoryItemSidebar() {
|
|
new Vue({
|
|
el: '#repositoryItemSidebar',
|
|
components: {
|
|
RepositoryItemSidebar
|
|
}
|
|
});
|
|
}
|
|
|
|
initRepositoryItemSidebar();
|