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

27 lines
721 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';
2020-03-13 15:44:24 +05:30
import ReleaseListApp from './components/app_index.vue';
import createStore from './stores';
2020-11-24 15:15:51 +05:30
import createListModule from './stores/modules/list';
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: {
2020-11-24 15:15:51 +05:30
list: createListModule(el.dataset),
},
featureFlags: {
graphqlReleaseData: Boolean(gon.features?.graphqlReleaseData),
graphqlReleasesPage: Boolean(gon.features?.graphqlReleasesPage),
graphqlMilestoneStats: Boolean(gon.features?.graphqlMilestoneStats),
2020-04-08 14:13:33 +05:30
},
}),
2020-11-24 15:15:51 +05:30
render: h => h(ReleaseListApp),
2020-03-13 15:44:24 +05:30
});
};