gitlab-org--gitlab-foss/app/assets/javascripts/releases/mount_edit.js

24 lines
506 B
JavaScript
Raw Normal View History

import Vue from 'vue';
import Vuex from 'vuex';
import ReleaseEditNewApp from './components/app_edit_new.vue';
import createStore from './stores';
import createEditNewModule from './stores/modules/edit_new';
Vue.use(Vuex);
export default () => {
const el = document.getElementById('js-edit-release-page');
const store = createStore({
modules: {
editNew: createEditNewModule(el.dataset),
},
});
return new Vue({
el,
store,
render: (h) => h(ReleaseEditNewApp),
});
};