scinote-web/app/javascript/packs/vue/repository_item_sidebar.js
Gregor Lasnibat 27652fd1a0
Working on sticky header + navigation behaviour [SCI-9472] (#6428)
Working on highlighting ScrollSpy when scrolling. Decided on external library [SCI-9472]

Finished not sticky item header v.01 [SCI-9472]

PR fix01 [SCI-9472]
2023-10-12 15:35:30 +02:00

22 lines
515 B
JavaScript

/* global notTurbolinksPreview */
import TurbolinksAdapter from 'vue-turbolinks';
import ScrollSpy from 'vue2-scrollspy';
import Vue from 'vue/dist/vue.esm';
import RepositoryItemSidebar from '../../vue/repository_item_sidebar/RepositoryItemSidebar.vue';
Vue.use(TurbolinksAdapter);
Vue.use(ScrollSpy);
Vue.prototype.i18n = window.I18n;
function initRepositoryItemSidebar() {
new Vue({
el: '#repositoryItemSidebar',
components: {
RepositoryItemSidebar
}
});
}
initRepositoryItemSidebar();