debian-mirror-gitlab/app/assets/javascripts/releases/mount_new.js
2020-08-09 17:41:57 +05:30

20 lines
444 B
JavaScript

import Vue from 'vue';
import ReleaseNewApp from './components/app_new.vue';
import createStore from './stores';
import createDetailModule from './stores/modules/detail';
export default () => {
const el = document.getElementById('js-new-release-page');
const store = createStore({
modules: {
detail: createDetailModule(el.dataset),
},
});
return new Vue({
el,
store,
render: h => h(ReleaseNewApp),
});
};