2020-07-28 23:09:34 +05:30
|
|
|
import Vue from 'vue';
|
2020-11-24 15:15:51 +05:30
|
|
|
import Vuex from 'vuex';
|
2023-06-20 00:43:36 +05:30
|
|
|
import { createRefModule } from '../ref/stores';
|
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';
|
2021-04-29 21:17:54 +05:30
|
|
|
import createEditNewModule from './stores/modules/edit_new';
|
2020-07-28 23:09:34 +05:30
|
|
|
|
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: {
|
2022-08-13 15:12:31 +05:30
|
|
|
editNew: createEditNewModule({ ...el.dataset, isExistingRelease: false }),
|
2023-06-20 00:43:36 +05:30
|
|
|
ref: createRefModule(),
|
2020-07-28 23:09:34 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
store,
|
2021-03-08 18:12:59 +05:30
|
|
|
render: (h) => h(ReleaseEditNewApp),
|
2020-07-28 23:09:34 +05:30
|
|
|
});
|
|
|
|
};
|