debian-mirror-gitlab/app/assets/javascripts/releases/mount_show.js
2021-03-08 18:12:59 +05:30

26 lines
607 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import ReleaseShowApp from './components/app_show.vue';
import createStore from './stores';
import createDetailModule from './stores/modules/detail';
Vue.use(Vuex);
export default () => {
const el = document.getElementById('js-show-release-page');
const store = createStore({
modules: {
detail: createDetailModule(el.dataset),
},
featureFlags: {
graphqlIndividualReleasePage: Boolean(gon.features?.graphqlIndividualReleasePage),
},
});
return new Vue({
el,
store,
render: (h) => h(ReleaseShowApp),
});
};