debian-mirror-gitlab/app/assets/javascripts/releases/mount_edit.js

24 lines
538 B
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
import Vue from 'vue';
import ReleaseEditApp from './components/app_edit.vue';
import createStore from './stores';
2020-04-22 19:07:51 +05:30
import createDetailModule from './stores/modules/detail';
2020-03-13 15:44:24 +05:30
export default () => {
const el = document.getElementById('js-edit-release-page');
2020-04-08 14:13:33 +05:30
const store = createStore({
modules: {
2020-04-22 19:07:51 +05:30
detail: createDetailModule(el.dataset),
2020-04-08 14:13:33 +05:30
},
featureFlags: {
releaseShowPage: Boolean(gon.features?.releaseShowPage),
},
});
2020-03-13 15:44:24 +05:30
return new Vue({
el,
store,
render: h => h(ReleaseEditApp),
});
};