debian-mirror-gitlab/app/assets/javascripts/releases/detail/index.js

20 lines
449 B
JavaScript
Raw Normal View History

2019-12-21 20:55:43 +05:30
import Vue from 'vue';
import ReleaseDetailApp from './components/app.vue';
import createStore from './store';
export default () => {
const el = document.getElementById('js-edit-release-page');
2019-12-26 22:10:19 +05:30
const store = createStore();
2019-12-21 20:55:43 +05:30
store.dispatch('setInitialState', el.dataset);
return new Vue({
el,
store,
components: { ReleaseDetailApp },
render(createElement) {
return createElement('release-detail-app');
},
});
};