diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-19 04:45:44 +0300 |
commit | 85dc423f7090da0a52c73eb66faf22ddb20efff9 (patch) | |
tree | 9160f299afd8c80c038f08e1545be119f5e3f1e1 /app/assets/javascripts/ci_lint | |
parent | 15c2c8c66dbe422588e5411eee7e68f1fa440bb8 (diff) |
Add latest changes from gitlab-org/gitlab@13-4-stable-ee
Diffstat (limited to 'app/assets/javascripts/ci_lint')
-rw-r--r-- | app/assets/javascripts/ci_lint/components/ci_lint.vue | 14 | ||||
-rw-r--r-- | app/assets/javascripts/ci_lint/components/ci_lint_results.vue | 9 | ||||
-rw-r--r-- | app/assets/javascripts/ci_lint/index.js | 18 |
3 files changed, 41 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci_lint/components/ci_lint.vue b/app/assets/javascripts/ci_lint/components/ci_lint.vue new file mode 100644 index 00000000000..135d02e4f76 --- /dev/null +++ b/app/assets/javascripts/ci_lint/components/ci_lint.vue @@ -0,0 +1,14 @@ +<script> +export default { + props: { + endpoint: { + type: String, + required: true, + }, + }, +}; +</script> + +<template + ><div></div +></template> diff --git a/app/assets/javascripts/ci_lint/components/ci_lint_results.vue b/app/assets/javascripts/ci_lint/components/ci_lint_results.vue new file mode 100644 index 00000000000..9fd1bd30c49 --- /dev/null +++ b/app/assets/javascripts/ci_lint/components/ci_lint_results.vue @@ -0,0 +1,9 @@ +<script> +export default { + props: {}, +}; +</script> + +<template + ><div></div +></template> diff --git a/app/assets/javascripts/ci_lint/index.js b/app/assets/javascripts/ci_lint/index.js new file mode 100644 index 00000000000..ed2cf1fe714 --- /dev/null +++ b/app/assets/javascripts/ci_lint/index.js @@ -0,0 +1,18 @@ +import Vue from 'vue'; +import CILint from './components/ci_lint.vue'; + +export default (containerId = '#js-ci-lint') => { + const containerEl = document.querySelector(containerId); + const { endpoint } = containerEl.dataset; + + return new Vue({ + el: containerEl, + render(createElement) { + return createElement(CILint, { + props: { + endpoint, + }, + }); + }, + }); +}; |