2020-03-04 04:08:20 -05:00
|
|
|
import Vue from 'vue';
|
|
|
|
import ReleaseShowApp from './components/app_show.vue';
|
|
|
|
import createStore from './stores';
|
2020-03-24 17:07:54 -04:00
|
|
|
import createDetailModule from './stores/modules/detail';
|
2020-03-04 04:08:20 -05:00
|
|
|
|
|
|
|
export default () => {
|
|
|
|
const el = document.getElementById('js-show-release-page');
|
|
|
|
|
|
|
|
const store = createStore({
|
|
|
|
modules: {
|
2020-03-24 17:07:54 -04:00
|
|
|
detail: createDetailModule(el.dataset),
|
2020-03-04 04:08:20 -05:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
|
|
|
store,
|
|
|
|
render: h => h(ReleaseShowApp),
|
|
|
|
});
|
|
|
|
};
|