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

index.js « eks_cluster « create_cluster « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77454a2bc00dcbd17491b31e9d7ddce6cf6d9c9e (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
27
28
29
import Vue from 'vue';
import Vuex from 'vuex';
import CreateEksCluster from './components/create_eks_cluster.vue';
import createStore from './store';

Vue.use(Vuex);

export default () =>
  new Vue({
    el: '.js-create-eks-cluster-form-container',
    store: createStore(),
    components: {
      CreateEksCluster,
    },
    data() {
      const { gitlabManagedClusterHelpPath } = document.querySelector(this.$options.el).dataset;

      return {
        gitlabManagedClusterHelpPath,
      };
    },
    render(createElement) {
      return createElement('create-eks-cluster', {
        props: {
          gitlabManagedClusterHelpPath: this.gitlabManagedClusterHelpPath,
        },
      });
    },
  });