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

index.js « deploy_keys « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 83601d5b2e3aaac45d4d2f827f313749e5b254e4 (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
import Vue from 'vue';
import DeployKeysApp from './components/app.vue';

export default () =>
  new Vue({
    el: document.getElementById('js-deploy-keys'),
    components: {
      DeployKeysApp,
    },
    data() {
      return {
        endpoint: this.$options.el.dataset.endpoint,
        projectId: this.$options.el.dataset.projectId,
      };
    },
    render(createElement) {
      return createElement('deploy-keys-app', {
        props: {
          endpoint: this.endpoint,
          projectId: this.projectId,
        },
      });
    },
  });