1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
export const SEVERITY_CLASSES = {
info: 'text-primary-400',
minor: 'text-warning-200',
major: 'text-warning-400',
critical: 'text-danger-600',
blocker: 'text-danger-800',
unknown: 'text-secondary-400',
};
export const SEVERITY_ICONS = {
info: 'severity-info',
minor: 'severity-low',
major: 'severity-medium',
critical: 'severity-high',
blocker: 'severity-critical',
unknown: 'severity-unknown',
};
export const SEVERITY_ICONS_MR_WIDGET = {
info: 'severityInfo',
minor: 'severityLow',
major: 'severityMedium',
critical: 'severityHigh',
blocker: 'severityCritical',
unknown: 'severityUnknown',
};
export const SEVERITIES = {
info: {
class: SEVERITY_CLASSES.info,
name: SEVERITY_ICONS.info,
},
minor: {
class: SEVERITY_CLASSES.minor,
name: SEVERITY_ICONS.minor,
},
major: {
class: SEVERITY_CLASSES.major,
name: SEVERITY_ICONS.major,
},
critical: {
class: SEVERITY_CLASSES.critical,
name: SEVERITY_ICONS.critical,
},
blocker: {
class: SEVERITY_CLASSES.blocker,
name: SEVERITY_ICONS.blocker,
},
unknown: {
class: SEVERITY_CLASSES.unknown,
name: SEVERITY_ICONS.unknown,
},
};
|