summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/deploy_keys/index.js
blob: ca8798facc9dc54c030f06f6e3d316d4873ab1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Vue from 'vue';
import deployKeysApp from './components/app.vue';

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