debian-mirror-gitlab/app/assets/javascripts/deploy_keys/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
555 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
import Vue from 'vue';
2022-10-11 01:57:18 +05:30
import DeployKeysApp from './components/app.vue';
2017-08-17 22:00:37 +05:30
2018-10-15 14:42:47 +05:30
export default () =>
new Vue({
el: document.getElementById('js-deploy-keys'),
components: {
2022-10-11 01:57:18 +05:30
DeployKeysApp,
2018-10-15 14:42:47 +05:30
},
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,
},
});
},
});