gitlab-org--gitlab-foss/app/assets/javascripts/deploy_keys/index.js
2018-05-07 18:21:34 +00:00

24 lines
555 B
JavaScript

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,
},
});
},
});