Moves report components to reports folder

This commit is contained in:
Filipa Lacerda 2018-08-07 16:06:38 +01:00
parent bf699ff498
commit bcdc6f3119
No known key found for this signature in database
GPG key ID: 9CA3FDE4D1E2F1C8
15 changed files with 19 additions and 21 deletions

View file

@ -1,10 +1,10 @@
<script>
import { mapActions, mapGetters, mapState } from 'vuex';
import { s__ } from '~/locale';
import { componentNames } from '~/vue_shared/components/reports/issue_body';
import ReportSection from '~/vue_shared/components/reports/report_section.vue';
import SummaryRow from '~/vue_shared/components/reports/summary_row.vue';
import IssuesList from '~/vue_shared/components/reports/issues_list.vue';
import { componentNames } from './issue_body';
import ReportSection from './report_section.vue';
import SummaryRow from './summary_row.vue';
import IssuesList from './issues_list.vue';
import Modal from './modal.vue';
import createStore from '../store';
import { summaryTextBuilder, reportTextBuilder, statusIcon } from '../store/utils';

View file

@ -1,4 +1,4 @@
import TestIssueBody from '~/reports/components/test_issue_body.vue';
import TestIssueBody from './test_issue_body.vue';
export const components = {
TestIssueBody,

View file

@ -1,11 +1,10 @@
<script>
import Icon from '~/vue_shared/components/icon.vue';
import {
STATUS_FAILED,
STATUS_NEUTRAL,
STATUS_SUCCESS,
} from '~/vue_shared/components/reports/constants';
} from '../constants';
export default {
name: 'IssueStatusIcon',

View file

@ -1,10 +1,10 @@
<script>
import IssuesBlock from '~/vue_shared/components/reports/report_issues.vue';
import IssuesBlock from './report_issues.vue';
import {
STATUS_SUCCESS,
STATUS_FAILED,
STATUS_NEUTRAL,
} from '~/vue_shared/components/reports/constants';
} from '../constants';
/**
* Renders block of issues

View file

@ -1,6 +1,6 @@
<script>
import IssueStatusIcon from '~/vue_shared/components/reports/issue_status_icon.vue';
import { components, componentNames } from '~/vue_shared/components/reports/issue_body';
import IssueStatusIcon from './issue_status_icon.vue';
import { components, componentNames } from './issue_body';
export default {
name: 'ReportIssues',

View file

@ -1,8 +1,8 @@
<script>
import { __ } from '~/locale';
import StatusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon.vue';
import Popover from '~/vue_shared/components/help_popover.vue';
import IssuesList from './issues_list.vue';
import Popover from '../help_popover.vue';
const LOADING = 'LOADING';
const ERROR = 'ERROR';

View file

@ -1,7 +1,7 @@
<script>
import CiIcon from '~/vue_shared/components/ci_icon.vue';
import LoadingIcon from '~/vue_shared/components/loading_icon.vue';
import Popover from '../help_popover.vue';
import Popover from '~/vue_shared/components/help_popover.vue';
/**
* Renders the summary row for each report

View file

@ -11,6 +11,8 @@ export const SUCCESS = 'SUCCESS';
export const STATUS_FAILED = 'failed';
export const STATUS_SUCCESS = 'success';
export const STATUS_NEUTRAL = 'neutral';
export const ICON_WARNING = 'warning';
export const ICON_SUCCESS = 'success';
export const ICON_NOTFOUND = 'notfound';

View file

@ -1,3 +0,0 @@
export const STATUS_FAILED = 'failed';
export const STATUS_SUCCESS = 'success';
export const STATUS_NEUTRAL = 'neutral';

View file

@ -1,6 +1,6 @@
import Vue from 'vue';
import Vuex from 'vuex';
import component from '~/vue_shared/components/reports/modal_open_name.vue';
import component from '~/reports/components/modal_open_name.vue';
import { mountComponentWithStore } from 'spec/helpers/vue_mount_component_helper';
describe('Modal open name', () => {

View file

@ -1,6 +1,6 @@
import Vue from 'vue';
import component from '~/vue_shared/components/reports/report_link.vue';
import mountComponent from '../../../helpers/vue_mount_component_helper';
import component from '~/reports/components/report_link.vue';
import mountComponent from '../../helpers/vue_mount_component_helper';
describe('report link', () => {
let vm;

View file

@ -1,5 +1,5 @@
import Vue from 'vue';
import reportSection from '~/vue_shared/components/reports/report_section.vue';
import reportSection from '~/reports/components/report_section.vue';
import mountComponent, { mountComponentWithSlots } from 'spec/helpers/vue_mount_component_helper';
describe('Report section', () => {

View file

@ -1,5 +1,5 @@
import Vue from 'vue';
import component from '~/vue_shared/components/reports/summary_row.vue';
import component from '~/reports/components/summary_row.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
describe('Summary row', () => {