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

27 lines
607 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
import Vue from 'vue';
2020-11-24 15:15:51 +05:30
import Vuex from 'vuex';
2020-04-08 14:13:33 +05:30
import ReleaseShowApp from './components/app_show.vue';
import createStore from './stores';
2020-04-22 19:07:51 +05:30
import createDetailModule from './stores/modules/detail';
2020-04-08 14:13:33 +05:30
2020-11-24 15:15:51 +05:30
Vue.use(Vuex);
2020-04-08 14:13:33 +05:30
export default () => {
const el = document.getElementById('js-show-release-page');
const store = createStore({
modules: {
2020-04-22 19:07:51 +05:30
detail: createDetailModule(el.dataset),
2020-04-08 14:13:33 +05:30
},
2021-01-03 14:25:43 +05:30
featureFlags: {
graphqlIndividualReleasePage: Boolean(gon.features?.graphqlIndividualReleasePage),
},
2020-04-08 14:13:33 +05:30
});
return new Vue({
el,
store,
2021-03-08 18:12:59 +05:30
render: (h) => h(ReleaseShowApp),
2020-04-08 14:13:33 +05:30
});
};