mount_edit.js 548 Bytes
Newer Older
1
import Vue from 'vue';
2
import ReleaseEditNewApp from './components/app_edit_new.vue';
3
import createStore from './stores';
4
import createDetailModule from './stores/modules/detail';
5 6 7 8

export default () => {
  const el = document.getElementById('js-edit-release-page');

9 10
  const store = createStore({
    modules: {
11
      detail: createDetailModule(el.dataset),
12 13 14 15 16 17
    },
    featureFlags: {
      releaseShowPage: Boolean(gon.features?.releaseShowPage),
    },
  });

18 19 20
  return new Vue({
    el,
    store,
21
    render: h => h(ReleaseEditNewApp),
22 23
  });
};