debian-mirror-gitlab/app/assets/javascripts/releases/mount_edit.js
2020-04-22 19:07:51 +05:30

23 lines
538 B
JavaScript

import Vue from 'vue';
import ReleaseEditApp from './components/app_edit.vue';
import createStore from './stores';
import createDetailModule from './stores/modules/detail';
export default () => {
const el = document.getElementById('js-edit-release-page');
const store = createStore({
modules: {
detail: createDetailModule(el.dataset),
},
featureFlags: {
releaseShowPage: Boolean(gon.features?.releaseShowPage),
},
});
return new Vue({
el,
store,
render: h => h(ReleaseEditApp),
});
};