debian-mirror-gitlab/app/assets/javascripts/code_navigation/index.js

21 lines
368 B
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
import Vue from 'vue';
import Vuex from 'vuex';
import store from './store';
import App from './components/app.vue';
Vue.use(Vuex);
2020-04-22 19:07:51 +05:30
export default initialData => {
2020-03-13 15:44:24 +05:30
const el = document.getElementById('js-code-navigation');
2020-04-22 19:07:51 +05:30
store.dispatch('setInitialData', initialData);
2020-03-13 15:44:24 +05:30
return new Vue({
el,
store,
render(h) {
return h(App);
},
});
};