blob: efd82edcdf0f9673690cc53e160ed1f9875a939c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import Vue from 'vue';
import Vuex from 'vuex';
import { createRefModule } from '../ref/stores';
import ReleaseEditNewApp from './components/app_edit_new.vue';
import createStore from './stores';
import createEditNewModule from './stores/modules/edit_new';
Vue.use(Vuex);
export default () => {
const el = document.getElementById('js-new-release-page');
const store = createStore({
modules: {
editNew: createEditNewModule({ ...el.dataset, isExistingRelease: false }),
ref: createRefModule(),
},
});
return new Vue({
el,
store,
render: (h) => h(ReleaseEditNewApp),
});
};
|