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

index.js « new « feature_flags_user_lists « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 679f0af8efca4601e03548dbcaa86166ed3a497c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Vue from 'vue';
import Vuex from 'vuex';
import NewUserList from '~/user_lists/components/new_user_list.vue';
import createStore from '~/user_lists/store/new';

Vue.use(Vuex);

document.addEventListener('DOMContentLoaded', () => {
  const el = document.getElementById('js-new-user-list');
  const { userListsDocsPath, featureFlagsPath } = el.dataset;
  return new Vue({
    el,
    store: createStore(el.dataset),
    provide: {
      userListsDocsPath,
      featureFlagsPath,
    },
    render(h) {
      return h(NewUserList);
    },
  });
});