2020-02-14 16:09:08 -05:00
|
|
|
import Vue from 'vue';
|
2020-09-17 14:10:12 -04:00
|
|
|
import Vuex from 'vuex';
|
2020-07-21 17:09:12 -04:00
|
|
|
import ReleaseEditNewApp from './components/app_edit_new.vue';
|
2020-02-14 16:09:08 -05:00
|
|
|
import createStore from './stores';
|
2021-03-25 17:09:13 -04:00
|
|
|
import createEditNewModule from './stores/modules/edit_new';
|
2020-02-14 16:09:08 -05:00
|
|
|
|
2020-09-17 14:10:12 -04:00
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-02-14 16:09:08 -05:00
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-edit-release-page');
|
|
|
|
|
2020-03-04 04:08:20 -05:00
|
|
|
const store = createStore({
|
|
|
|
modules: {
|
2021-03-25 17:09:13 -04:00
|
|
|
editNew: createEditNewModule(el.dataset),
|
2020-03-04 04:08:20 -05:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2020-02-14 16:09:08 -05:00
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
store,
|
2020-12-23 19:10:25 -05:00
|
|
|
render: (h) => h(ReleaseEditNewApp),
|
2020-02-14 16:09:08 -05:00
|
|
|
});
|
|
|
|
};
|