2020-02-14 21:09:08 +00:00
|
|
|
import Vue from 'vue';
|
2020-09-17 18:10:12 +00:00
|
|
|
import Vuex from 'vuex';
|
2021-03-25 21:09:13 +00:00
|
|
|
import ReleaseIndexApp from './components/app_index.vue';
|
2020-02-14 21:09:08 +00:00
|
|
|
import createStore from './stores';
|
2021-03-25 21:09:13 +00:00
|
|
|
import createIndexModule from './stores/modules/index';
|
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-releases-page');
|
|
|
|
|
|
|
|
return new Vue({
|
|
|
|
el,
|
2020-03-04 09:08:20 +00:00
|
|
|
store: createStore({
|
|
|
|
modules: {
|
2021-03-25 21:09:13 +00:00
|
|
|
index: createIndexModule(el.dataset),
|
2020-03-04 09:08:20 +00:00
|
|
|
},
|
|
|
|
}),
|
2021-03-25 21:09:13 +00:00
|
|
|
render: (h) => h(ReleaseIndexApp),
|
2020-02-14 21:09:08 +00:00
|
|
|
});
|
|
|
|
};
|