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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-29 18:10:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-29 18:10:08 +0300
commit20fda899a62cc27a4d40a168640e7e926c69eb62 (patch)
tree8fa2bca2431010c15b681fdec8c0cfba2ad78885 /app/assets/javascripts/blob
parent933a571ac8c9ada219dd15079221ff3dba8043be (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r--app/assets/javascripts/blob/suggest_web_ide_ci/components/web_ide_alert.vue50
-rw-r--r--app/assets/javascripts/blob/suggest_web_ide_ci/index.js20
-rw-r--r--app/assets/javascripts/blob/viewer/index.js4
3 files changed, 1 insertions, 73 deletions
diff --git a/app/assets/javascripts/blob/suggest_web_ide_ci/components/web_ide_alert.vue b/app/assets/javascripts/blob/suggest_web_ide_ci/components/web_ide_alert.vue
deleted file mode 100644
index 1308ca53e74..00000000000
--- a/app/assets/javascripts/blob/suggest_web_ide_ci/components/web_ide_alert.vue
+++ /dev/null
@@ -1,50 +0,0 @@
-<script>
-import { GlAlert, GlButton } from '@gitlab/ui';
-import axios from '~/lib/utils/axios_utils';
-
-export default {
- components: {
- GlAlert,
- GlButton,
- },
- props: {
- dismissEndpoint: {
- type: String,
- required: true,
- },
- featureId: {
- type: String,
- required: true,
- },
- editPath: {
- type: String,
- required: true,
- },
- },
- data() {
- return {
- showAlert: true,
- };
- },
- methods: {
- dismissAlert() {
- this.showAlert = false;
-
- return axios.post(this.dismissEndpoint, {
- feature_name: this.featureId,
- });
- },
- },
-};
-</script>
-
-<template>
- <gl-alert v-if="showAlert" class="gl-mt-5" @dismiss="dismissAlert">
- {{ __('The Web IDE offers advanced syntax highlighting capabilities and more.') }}
- <div class="gl-mt-5">
- <gl-button :href="editPath" category="primary" variant="info">{{
- __('Open Web IDE')
- }}</gl-button>
- </div>
- </gl-alert>
-</template>
diff --git a/app/assets/javascripts/blob/suggest_web_ide_ci/index.js b/app/assets/javascripts/blob/suggest_web_ide_ci/index.js
deleted file mode 100644
index eadf3cd6216..00000000000
--- a/app/assets/javascripts/blob/suggest_web_ide_ci/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import Vue from 'vue';
-import WebIdeAlert from './components/web_ide_alert.vue';
-
-export default el => {
- const { dismissEndpoint, featureId, editPath } = el.dataset;
-
- // eslint-disable-next-line no-new
- new Vue({
- el,
- render(createElement) {
- return createElement(WebIdeAlert, {
- props: {
- dismissEndpoint,
- featureId,
- editPath,
- },
- });
- },
- });
-};
diff --git a/app/assets/javascripts/blob/viewer/index.js b/app/assets/javascripts/blob/viewer/index.js
index 05ee8e49eb1..0fb803cdfec 100644
--- a/app/assets/javascripts/blob/viewer/index.js
+++ b/app/assets/javascripts/blob/viewer/index.js
@@ -179,9 +179,7 @@ export default class BlobViewer {
viewer.innerHTML = data.html;
viewer.setAttribute('data-loaded', 'true');
- if (window.gon?.features?.codeNavigation) {
- eventHub.$emit('showBlobInteractionZones', viewer.dataset.path);
- }
+ eventHub.$emit('showBlobInteractionZones', viewer.dataset.path);
return viewer;
});