debian-mirror-gitlab/app/assets/javascripts/releases/mount_index.js

22 lines
477 B
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
import Vue from 'vue';
2020-11-24 15:15:51 +05:30
import Vuex from 'vuex';
2021-04-29 21:17:54 +05:30
import ReleaseIndexApp from './components/app_index.vue';
2020-03-13 15:44:24 +05:30
import createStore from './stores';
2021-04-29 21:17:54 +05:30
import createIndexModule from './stores/modules/index';
2020-11-24 15:15:51 +05:30
Vue.use(Vuex);
2020-03-13 15:44:24 +05:30
export default () => {
const el = document.getElementById('js-releases-page');
return new Vue({
el,
2020-04-08 14:13:33 +05:30
store: createStore({
modules: {
2021-04-29 21:17:54 +05:30
index: createIndexModule(el.dataset),
2020-11-24 15:15:51 +05:30
},
2020-04-08 14:13:33 +05:30
}),
2021-04-29 21:17:54 +05:30
render: (h) => h(ReleaseIndexApp),
2020-03-13 15:44:24 +05:30
});
};