2023-05-11 17:21:50 +08:00
|
|
|
import TurbolinksAdapter from 'vue-turbolinks';
|
|
|
|
import Vue from 'vue/dist/vue.esm';
|
|
|
|
import RepositorySearchContainer from '../../vue/repository_search/container.vue';
|
2023-08-01 16:41:58 +08:00
|
|
|
import outsideClick from './directives/outside_click';
|
2023-05-11 17:21:50 +08:00
|
|
|
|
|
|
|
Vue.use(TurbolinksAdapter);
|
|
|
|
Vue.prototype.i18n = window.I18n;
|
2023-08-01 16:41:58 +08:00
|
|
|
Vue.directive('click-outside', outsideClick);
|
2023-05-11 17:21:50 +08:00
|
|
|
|
|
|
|
window.initRepositorySearch = () => {
|
|
|
|
window.RepositorySearchComponent = new Vue({
|
|
|
|
el: '#inventorySearchComponent',
|
|
|
|
name: 'RepositorySearchComponent',
|
|
|
|
components: {
|
|
|
|
'repository_search_container': RepositorySearchContainer
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|