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/jobs/index.js')
-rw-r--r--app/assets/javascripts/jobs/index.js69
1 files changed, 0 insertions, 69 deletions
diff --git a/app/assets/javascripts/jobs/index.js b/app/assets/javascripts/jobs/index.js
deleted file mode 100644
index 8cd69f25218..00000000000
--- a/app/assets/javascripts/jobs/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-import { GlToast } from '@gitlab/ui';
-import Vue from 'vue';
-import VueApollo from 'vue-apollo';
-import createDefaultClient from '~/lib/graphql';
-import { parseBoolean } from '~/lib/utils/common_utils';
-import JobApp from './components/job/job_app.vue';
-import createStore from './store';
-
-Vue.use(VueApollo);
-Vue.use(GlToast);
-
-const apolloProvider = new VueApollo({
- defaultClient: createDefaultClient(),
-});
-
-const initializeJobPage = (element) => {
- const store = createStore();
-
- // Let's start initializing the store (i.e. fetching data) right away
- store.dispatch('init', element.dataset);
-
- const {
- artifactHelpUrl,
- deploymentHelpUrl,
- runnerSettingsUrl,
- subscriptionsMoreMinutesUrl,
- endpoint,
- pagePath,
- logState,
- buildStatus,
- projectPath,
- retryOutdatedJobDocsUrl,
- aiRootCauseAnalysisAvailable,
- } = element.dataset;
-
- return new Vue({
- el: element,
- apolloProvider,
- store,
- components: {
- JobApp,
- },
- provide: {
- projectPath,
- retryOutdatedJobDocsUrl,
- aiRootCauseAnalysisAvailable: parseBoolean(aiRootCauseAnalysisAvailable),
- },
- render(createElement) {
- return createElement('job-app', {
- props: {
- artifactHelpUrl,
- deploymentHelpUrl,
- runnerSettingsUrl,
- subscriptionsMoreMinutesUrl,
- endpoint,
- pagePath,
- logState,
- buildStatus,
- projectPath,
- },
- });
- },
- });
-};
-
-export default () => {
- const jobElement = document.getElementById('js-job-page');
- initializeJobPage(jobElement);
-};