summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/deploy_keys/index.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-28 17:06:19 +0100
committerPhil Hughes <me@iamphill.com>2017-04-28 17:06:19 +0100
commite11a702afceee7f5edeb8c93a4192fa05209b091 (patch)
treeecb9cea80803638c9b8878b091793beb3ed88720 /app/assets/javascripts/deploy_keys/index.js
parent79e2a524e22e5474c5b33deb81ac6cc51512d2e5 (diff)
downloadgitlab-ce-e11a702afceee7f5edeb8c93a4192fa05209b091.tar.gz
Re-wrote to match our docs - still not 100% sure but closer than it was
Diffstat (limited to 'app/assets/javascripts/deploy_keys/index.js')
-rw-r--r--app/assets/javascripts/deploy_keys/index.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/assets/javascripts/deploy_keys/index.js b/app/assets/javascripts/deploy_keys/index.js
new file mode 100644
index 00000000000..a5f232f950a
--- /dev/null
+++ b/app/assets/javascripts/deploy_keys/index.js
@@ -0,0 +1,21 @@
+import Vue from 'vue';
+import deployKeysApp from './components/app.vue';
+
+document.addEventListener('DOMContentLoaded', () => new Vue({
+ el: document.getElementById('js-deploy-keys'),
+ data() {
+ return {
+ endpoint: this.$options.el.dataset.endpoint,
+ };
+ },
+ components: {
+ deployKeysApp,
+ },
+ render(createElement) {
+ return createElement('deploy-keys-app', {
+ props: {
+ endpoint: this.endpoint,
+ },
+ });
+ },
+}));