diff options
-rw-r--r-- | app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js | 4 | ||||
-rw-r--r-- | app/assets/javascripts/pages/projects/pipelines/show/index.js | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js index 034f2923b3b..f0a9fab15e7 100644 --- a/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js +++ b/app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js @@ -14,10 +14,10 @@ import CycleAnalyticsStore from './cycle_analytics_store'; Vue.use(Translate); -$(() => { +document.addEventListener('DOMContentLoaded', () => { const OVERVIEW_DIALOG_COOKIE = 'cycle_analytics_help_dismissed'; - gl.cycleAnalyticsApp = new Vue({ + const cycleAnalyticsApp = new Vue({ el: '#cycle-analytics', name: 'CycleAnalytics', components: { diff --git a/app/assets/javascripts/pages/projects/pipelines/show/index.js b/app/assets/javascripts/pages/projects/pipelines/show/index.js index ff5702c76f2..a49a71afd37 100644 --- a/app/assets/javascripts/pages/projects/pipelines/show/index.js +++ b/app/assets/javascripts/pages/projects/pipelines/show/index.js @@ -1,11 +1,11 @@ import Vue from 'vue'; -import { __ } from '../../../../locale'; -import Flash from '../../../../flash'; -import PipelinesMediator from '../../../../pipelines/pipeline_details_mediatior'; -import pipelineGraph from '../../../../pipelines/components/graph/graph_component.vue'; -import pipelineHeader from '../../../../pipelines/components/header_component.vue'; -import eventHub from '../../../../pipelines/event_hub'; +import { __ } from '~/locale'; +import Flash from '~/flash'; +import PipelinesMediator from '~/pipelines/pipeline_details_mediator'; +import pipelineGraph from '~/pipelines/components/graph/graph_component.vue'; +import pipelineHeader from '~/pipelines/components/header_component.vue'; +import eventHub from '~/pipelines/event_hub'; import initPipelines from '../init_pipelines'; document.addEventListener('DOMContentLoaded', () => { |