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/ci/reports/constants.js')
-rw-r--r--app/assets/javascripts/ci/reports/constants.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci/reports/constants.js b/app/assets/javascripts/ci/reports/constants.js
new file mode 100644
index 00000000000..bad6fa1e7b9
--- /dev/null
+++ b/app/assets/javascripts/ci/reports/constants.js
@@ -0,0 +1,38 @@
+export const fieldTypes = {
+ codeBlock: 'codeBlock',
+ link: 'link',
+ seconds: 'seconds',
+ text: 'text',
+};
+
+export const LOADING = 'LOADING';
+export const ERROR = 'ERROR';
+export const SUCCESS = 'SUCCESS';
+
+export const STATUS_FAILED = 'failed';
+export const STATUS_SUCCESS = 'success';
+export const STATUS_NEUTRAL = 'neutral';
+export const STATUS_NOT_FOUND = 'not_found';
+
+export const ICON_WARNING = 'warning';
+export const ICON_SUCCESS = 'success';
+export const ICON_NOTFOUND = 'notfound';
+export const ICON_PENDING = 'pending';
+export const ICON_FAILED = 'failed';
+
+export const status = {
+ LOADING,
+ ERROR,
+ SUCCESS,
+};
+
+export const ACCESSIBILITY_ISSUE_ERROR = 'error';
+export const ACCESSIBILITY_ISSUE_WARNING = 'warning';
+
+/**
+ * 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';