diff options
Diffstat (limited to 'app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue')
-rw-r--r-- | app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue b/app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue deleted file mode 100644 index 599e8d35708..00000000000 --- a/app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue +++ /dev/null @@ -1,84 +0,0 @@ -<script> -import { mapState, mapActions, mapGetters } from 'vuex'; -import { s__, sprintf } from '~/locale'; -import { componentNames } from '~/reports/components/issue_body'; -import ReportSection from '~/reports/components/report_section.vue'; -import createStore from './store'; - -export default { - name: 'GroupedCodequalityReportsApp', - store: createStore(), - components: { - ReportSection, - }, - props: { - headBlobPath: { - type: String, - required: true, - }, - baseBlobPath: { - type: String, - required: false, - default: null, - }, - codequalityReportsPath: { - type: String, - required: false, - default: '', - }, - codequalityHelpPath: { - type: String, - required: true, - }, - }, - componentNames, - computed: { - ...mapState(['newIssues', 'resolvedIssues', 'hasError', 'statusReason']), - ...mapGetters([ - 'hasCodequalityIssues', - 'codequalityStatus', - 'codequalityText', - 'codequalityPopover', - ]), - }, - created() { - this.setPaths({ - baseBlobPath: this.baseBlobPath, - headBlobPath: this.headBlobPath, - reportsPath: this.codequalityReportsPath, - helpPath: this.codequalityHelpPath, - }); - - this.fetchReports(); - }, - methods: { - ...mapActions(['fetchReports', 'setPaths']), - }, - loadingText: sprintf(s__('ciReport|Loading %{reportName} report'), { - // eslint-disable-next-line @gitlab/require-i18n-strings - reportName: 'Code quality', - }), - errorText: sprintf(s__('ciReport|Failed to load %{reportName} report'), { - // eslint-disable-next-line @gitlab/require-i18n-strings - reportName: 'Code quality', - }), -}; -</script> -<template> - <report-section - :status="codequalityStatus" - :loading-text="$options.loadingText" - :error-text="$options.errorText" - :success-text="codequalityText" - :unresolved-issues="newIssues" - :resolved-issues="resolvedIssues" - :has-issues="hasCodequalityIssues" - :component="$options.componentNames.CodequalityIssueBody" - :popover-options="codequalityPopover" - :show-report-section-status-icon="false" - track-action="users_expanding_testing_code_quality_report" - class="js-codequality-widget mr-widget-border-top mr-report" - > - <template v-if="hasError" #sub-heading>{{ statusReason }}</template> - </report-section> -</template> |