2020-02-14 21:09:08 +00:00
|
|
|
import Vue from 'vue';
|
2020-09-17 18:10:12 +00:00
|
|
|
import Vuex from 'vuex';
|
2020-07-21 21:09:12 +00:00
|
|
|
import ReleaseEditNewApp from './components/app_edit_new.vue';
|
2020-02-14 21:09:08 +00:00
|
|
|
import createStore from './stores';
|
2020-03-24 21:07:54 +00:00
|
|
|
import createDetailModule from './stores/modules/detail';
|
2020-02-14 21:09:08 +00:00
|
|
|
|
2020-09-17 18:10:12 +00:00
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-02-14 21:09:08 +00:00
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-edit-release-page');
|
|
|
|
|
2020-03-04 09:08:20 +00:00
|
|
|
const store = createStore({
|
|
|
|
modules: {
|
2020-03-24 21:07:54 +00:00
|
|
|
detail: createDetailModule(el.dataset),
|
2020-03-04 09:08:20 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2020-02-14 21:09:08 +00:00
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
store,
|
2020-12-24 00:10:25 +00:00
|
|
|
render: (h) => h(ReleaseEditNewApp),
|
2020-02-14 21:09:08 +00:00
|
|
|
});
|
|
|
|
};
|