debian-mirror-gitlab/app/assets/javascripts/releases/mount_index.js
2021-06-08 01:23:25 +05:30

21 lines
477 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import ReleaseIndexApp from './components/app_index.vue';
import createStore from './stores';
import createIndexModule from './stores/modules/index';
Vue.use(Vuex);
export default () => {
const el = document.getElementById('js-releases-page');
return new Vue({
el,
store: createStore({
modules: {
index: createIndexModule(el.dataset),
},
}),
render: (h) => h(ReleaseIndexApp),
});
};