Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipeline_editor/components/text_editor.vue')
-rw-r--r--app/assets/javascripts/pipeline_editor/components/text_editor.vue46
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>