debian-mirror-gitlab/app/assets/javascripts/releases/detail/index.js
2019-12-26 22:10:19 +05:30

19 lines
449 B
JavaScript

import Vue from 'vue';
import ReleaseDetailApp from './components/app.vue';
import createStore from './store';
export default () => {
const el = document.getElementById('js-edit-release-page');
const store = createStore();
store.dispatch('setInitialState', el.dataset);
return new Vue({
el,
store,
components: { ReleaseDetailApp },
render(createElement) {
return createElement('release-detail-app');
},
});
};