Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mount_show.js « releases « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3ed7d6c5ff10edc61f606a887ae95b6c4c3a118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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),
  });
};