debian-mirror-gitlab/app/assets/javascripts/reports/constants.js

39 lines
967 B
JavaScript
Raw Normal View History

2018-11-18 11:00:15 +05:30
export const fieldTypes = {
2021-04-29 21:17:54 +05:30
codeBlock: 'codeBlock',
2018-11-18 11:00:15 +05:30
link: 'link',
2020-03-13 15:44:24 +05:30
seconds: 'seconds',
2018-11-18 11:00:15 +05:30
text: 'text',
};
export const LOADING = 'LOADING';
export const ERROR = 'ERROR';
export const SUCCESS = 'SUCCESS';
export const STATUS_FAILED = 'failed';
export const STATUS_SUCCESS = 'success';
2018-11-20 20:47:30 +05:30
export const STATUS_NEUTRAL = 'neutral';
2021-10-27 15:23:28 +05:30
export const STATUS_NOT_FOUND = 'not_found';
2018-11-20 20:47:30 +05:30
2018-11-18 11:00:15 +05:30
export const ICON_WARNING = 'warning';
export const ICON_SUCCESS = 'success';
export const ICON_NOTFOUND = 'notfound';
2021-09-30 23:02:18 +05:30
export const ICON_PENDING = 'pending';
2022-05-07 20:08:51 +05:30
export const ICON_FAILED = 'failed';
2019-09-04 21:01:54 +05:30
export const status = {
2021-02-22 17:27:13 +05:30
LOADING,
ERROR,
SUCCESS,
2019-09-04 21:01:54 +05:30
};
2020-05-24 23:13:21 +05:30
export const ACCESSIBILITY_ISSUE_ERROR = 'error';
export const ACCESSIBILITY_ISSUE_WARNING = 'warning';
2021-02-22 17:27:13 +05:30
/**
* Slot names for the ReportSection component, corresponding to the success,
* loading and error statuses.
*/
export const SLOT_SUCCESS = 'success';
export const SLOT_LOADING = 'loading';
export const SLOT_ERROR = 'error';