Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
514f5c40
Commit
514f5c40
authored
Apr 02, 2020
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor array with single element to string
- update snapshot tests
parent
44fcb4ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
ee/app/assets/javascripts/security_dashboard/components/vulnerability_severity.vue
.../security_dashboard/components/vulnerability_severity.vue
+11
-11
ee/spec/frontend/security_dashboard/components/__snapshots__/vulnerability_severity_spec.js.snap
...ponents/__snapshots__/vulnerability_severity_spec.js.snap
+5
-5
No files found.
ee/app/assets/javascripts/security_dashboard/components/vulnerability_severity.vue
View file @
514f5c40
...
...
@@ -14,19 +14,19 @@ import Icon from '~/vue_shared/components/icon.vue';
export
default
{
css
:
{
severityGroups
:
{
[
severityGroupTypes
.
F
]:
[
'
gl-text-red-900
'
]
,
[
severityGroupTypes
.
D
]:
[
'
gl-text-red-700
'
]
,
[
severityGroupTypes
.
C
]:
[
'
gl-text-orange-600
'
]
,
[
severityGroupTypes
.
B
]:
[
'
gl-text-orange-400
'
]
,
[
severityGroupTypes
.
A
]:
[
'
gl-text-green-500
'
]
,
[
severityGroupTypes
.
F
]:
'
gl-text-red-900
'
,
[
severityGroupTypes
.
D
]:
'
gl-text-red-700
'
,
[
severityGroupTypes
.
C
]:
'
gl-text-orange-600
'
,
[
severityGroupTypes
.
B
]:
'
gl-text-orange-400
'
,
[
severityGroupTypes
.
A
]:
'
gl-text-green-500
'
,
},
severityLevels
:
{
[
severityLevels
.
CRITICAL
]:
[
'
gl-text-red-900
'
]
,
[
severityLevels
.
HIGH
]:
[
'
gl-text-red-700
'
]
,
[
severityLevels
.
UNKNOWN
]:
[
'
gl-text-gray-500
'
]
,
[
severityLevels
.
MEDIUM
]:
[
'
gl-text-orange-600
'
]
,
[
severityLevels
.
LOW
]:
[
'
gl-text-orange-500
'
]
,
[
severityLevels
.
NONE
]:
[
'
gl-text-green-500
'
]
,
[
severityLevels
.
CRITICAL
]:
'
gl-text-red-900
'
,
[
severityLevels
.
HIGH
]:
'
gl-text-red-700
'
,
[
severityLevels
.
UNKNOWN
]:
'
gl-text-gray-500
'
,
[
severityLevels
.
MEDIUM
]:
'
gl-text-orange-600
'
,
[
severityLevels
.
LOW
]:
'
gl-text-orange-500
'
,
[
severityLevels
.
NONE
]:
'
gl-text-green-500
'
,
},
},
accordionItemsContentMaxHeight
:
'
445px
'
,
...
...
ee/spec/frontend/security_dashboard/components/__snapshots__/vulnerability_severity_spec.js.snap
View file @
514f5c40
...
...
@@ -61,7 +61,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="d-flex align-items-center font-weight-normal p-0 m-0"
>
<span
class="
gl-text-red-900 font-weight-bold mr-3 gl-font-size-16
"
class="
font-weight-bold mr-3 gl-font-size-16 gl-text-red-900
"
>
F
...
...
@@ -137,7 +137,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="d-flex align-items-center font-weight-normal p-0 m-0"
>
<span
class="
gl-text-red-700 font-weight-bold mr-3 gl-font-size-16
"
class="
font-weight-bold mr-3 gl-font-size-16 gl-text-red-700
"
>
D
...
...
@@ -213,7 +213,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="d-flex align-items-center font-weight-normal p-0 m-0"
>
<span
class="
gl-text-orange-600 font-weight-bold mr-3 gl-font-size-16
"
class="
font-weight-bold mr-3 gl-font-size-16 gl-text-orange-600
"
>
C
...
...
@@ -289,7 +289,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="d-flex align-items-center font-weight-normal p-0 m-0"
>
<span
class="
gl-text-orange-400 font-weight-bold mr-3 gl-font-size-16
"
class="
font-weight-bold mr-3 gl-font-size-16 gl-text-orange-400
"
>
B
...
...
@@ -365,7 +365,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="d-flex align-items-center font-weight-normal p-0 m-0"
>
<span
class="
gl-text-green-500 font-weight-bold mr-3 gl-font-size-16
"
class="
font-weight-bold mr-3 gl-font-size-16 gl-text-green-500
"
>
A
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment