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

24 lines
498 B
JavaScript
Raw Normal View History

2020-07-28 23:09:34 +05:30
import Vue from 'vue';
2020-11-24 15:15:51 +05:30
import Vuex from 'vuex';
2020-10-24 23:57:45 +05:30
import ReleaseEditNewApp from './components/app_edit_new.vue';
2020-07-28 23:09:34 +05:30
import createStore from './stores';
import createDetailModule from './stores/modules/detail';
2020-11-24 15:15:51 +05:30
Vue.use(Vuex);
2020-07-28 23:09:34 +05:30
export default () => {
const el = document.getElementById('js-new-release-page');
const store = createStore({
modules: {
detail: createDetailModule(el.dataset),
},
});
return new Vue({
el,
store,
2020-10-24 23:57:45 +05:30
render: h => h(ReleaseEditNewApp),
2020-07-28 23:09:34 +05:30
});
};