diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
commit | 859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch) | |
tree | d7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /app/assets/javascripts/pipeline_editor/components/text_editor.vue | |
parent | 446d496a6d000c73a304be52587cd9bbc7493136 (diff) |
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
Diffstat (limited to 'app/assets/javascripts/pipeline_editor/components/text_editor.vue')
-rw-r--r-- | app/assets/javascripts/pipeline_editor/components/text_editor.vue | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app/assets/javascripts/pipeline_editor/components/text_editor.vue b/app/assets/javascripts/pipeline_editor/components/text_editor.vue deleted file mode 100644 index b8d49d77ea9..00000000000 --- a/app/assets/javascripts/pipeline_editor/components/text_editor.vue +++ /dev/null @@ -1,46 +0,0 @@ -<script> -import EditorLite from '~/vue_shared/components/editor_lite.vue'; -import { CiSchemaExtension } from '~/editor/extensions/editor_ci_schema_ext'; - -export default { - components: { - EditorLite, - }, - inject: ['projectPath', 'projectNamespace'], - inheritAttrs: false, - props: { - ciConfigPath: { - type: String, - required: true, - }, - commitSha: { - type: String, - required: false, - default: null, - }, - }, - methods: { - onEditorReady() { - const editorInstance = this.$refs.editor.getEditor(); - - editorInstance.use(new CiSchemaExtension()); - editorInstance.registerCiSchema({ - projectPath: this.projectPath, - projectNamespace: this.projectNamespace, - ref: this.commitSha, - }); - }, - }, -}; -</script> -<template> - <div class="gl-border-solid gl-border-gray-100 gl-border-1"> - <editor-lite - ref="editor" - :file-name="ciConfigPath" - v-bind="$attrs" - @editor-ready="onEditorReady" - v-on="$listeners" - /> - </div> -</template> |