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
b53d9945
Commit
b53d9945
authored
Aug 07, 2020
by
Alexander Turinske
Committed by
Mike Greiling
Aug 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update css class to gl- classes
- update tests
parent
270f0a1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
41 deletions
+46
-41
ee/app/assets/javascripts/security_dashboard/components/vulnerability_severity.vue
.../security_dashboard/components/vulnerability_severity.vue
+12
-12
ee/changelogs/unreleased/update-css-classes.yml
ee/changelogs/unreleased/update-css-classes.yml
+5
-0
ee/spec/frontend/security_dashboard/components/__snapshots__/vulnerability_severity_spec.js.snap
...ponents/__snapshots__/vulnerability_severity_spec.js.snap
+29
-29
No files found.
ee/app/assets/javascripts/security_dashboard/components/vulnerability_severity.vue
View file @
b53d9945
...
@@ -74,8 +74,8 @@ export default {
...
@@ -74,8 +74,8 @@ export default {
<section
<section
class=
"gl-border-1 gl-border-solid gl-border-gray-100 gl-rounded-base gl-display-flex gl-flex-direction-column"
class=
"gl-border-1 gl-border-solid gl-border-gray-100 gl-rounded-base gl-display-flex gl-flex-direction-column"
>
>
<header
class=
"
border-bottom p-3
"
>
<header
class=
"
gl-border-b-gray-100 gl-border-b-solid gl-border-b-1 gl-p-5
"
>
<h4
class=
"my-0"
>
<h4
class=
"
gl-
my-0"
>
{{
__
(
'
Project security status
'
)
}}
{{
__
(
'
Project security status
'
)
}}
<gl-link
<gl-link
v-if=
"helpPagePath"
v-if=
"helpPagePath"
...
@@ -85,11 +85,11 @@ export default {
...
@@ -85,11 +85,11 @@ export default {
><icon
name=
"question"
><icon
name=
"question"
/></gl-link>
/></gl-link>
</h4>
</h4>
<p
class=
"text-secondary m-0"
>
<p
class=
"text-secondary
gl-
m-0"
>
{{
__
(
'
Projects are graded based on the highest severity vulnerability present
'
)
}}
{{
__
(
'
Projects are graded based on the highest severity vulnerability present
'
)
}}
</p>
</p>
</header>
</header>
<accordion
class=
"security-dashboard-accordion gl-px-
3
gl-display-flex gl-flex-fill-1"
>
<accordion
class=
"security-dashboard-accordion gl-px-
5
gl-display-flex gl-flex-fill-1"
>
<template
#default
="
{ accordionId }">
<template
#default
="
{ accordionId }">
<accordion-item
<accordion-item
v-for=
"severityGroup in severityGroups"
v-for=
"severityGroup in severityGroups"
...
@@ -102,33 +102,33 @@ export default {
...
@@ -102,33 +102,33 @@ export default {
class="gl-display-flex gl-flex-fill-1 gl-flex-direction-column gl-justify-content-center"
class="gl-display-flex gl-flex-fill-1 gl-flex-direction-column gl-justify-content-center"
>
>
<template
#title
="
{ isExpanded, isDisabled }">
<template
#title
="
{ isExpanded, isDisabled }">
<h5
class=
"
d-flex align-items-center font-weight-normal p-0
m-0"
>
<h5
class=
"
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
<span
<span
v-gl-tooltip
v-gl-tooltip
:title=
"severityGroup.description"
:title=
"severityGroup.description"
class=
"
font-weight-bold mr-3
gl-font-lg"
class=
"
gl-font-weight-bold gl-mr-5
gl-font-lg"
:class=
"cssForSeverityGroup(severityGroup)"
:class=
"cssForSeverityGroup(severityGroup)"
>
>
{{
severityGroup
.
type
}}
{{
severityGroup
.
type
}}
</span>
</span>
<span
:class=
"
{ 'font-weight-bold': isExpanded, 'text-secondary': isDisabled }">
<span
:class=
"
{ '
gl-
font-weight-bold': isExpanded, 'text-secondary': isDisabled }">
{{
n__
(
'
%d project
'
,
'
%d projects
'
,
severityGroup
.
projects
.
length
)
}}
{{
n__
(
'
%d project
'
,
'
%d projects
'
,
severityGroup
.
projects
.
length
)
}}
</span>
</span>
</h5>
</h5>
</
template
>
</
template
>
<
template
#subTitle
>
<
template
#subTitle
>
<p
class=
"
m-0 ml-5 pb-1
text-secondary"
>
{{
severityGroup
.
warning
}}
</p>
<p
class=
"
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
{{
severityGroup
.
warning
}}
</p>
</
template
>
</
template
>
<div
class=
"
ml-5
pb-2"
>
<div
class=
"
gl-ml-7 gl-
pb-2"
>
<ul
class=
"list-unstyled py-1"
>
<ul
class=
"list-unstyled
gl-
py-1"
>
<li
v-for=
"project in severityGroup.projects"
:key=
"project.id"
class=
"py-2"
>
<li
v-for=
"project in severityGroup.projects"
:key=
"project.id"
class=
"
gl-
py-2"
>
<gl-link
target=
"_blank"
:href=
"`${project.fullPath}/security/dashboard`"
>
{{
<gl-link
target=
"_blank"
:href=
"`${project.fullPath}/security/dashboard`"
>
{{
project.fullName
project.fullName
}}
</gl-link>
}}
</gl-link>
<span
<span
v-if=
"project.mostSevereVulnerability"
v-if=
"project.mostSevereVulnerability"
ref=
"mostSevereCount"
ref=
"mostSevereCount"
class=
"
d
-block text-lowercase"
class=
"
gl-display
-block text-lowercase"
:class=
"cssForMostSevereVulnerability(project.mostSevereVulnerability)"
:class=
"cssForMostSevereVulnerability(project.mostSevereVulnerability)"
>
{{ project.mostSevereVulnerability.count }}
>
{{ project.mostSevereVulnerability.count }}
{{ severityText(project.mostSevereVulnerability.level) }}
{{ severityText(project.mostSevereVulnerability.level) }}
...
...
ee/changelogs/unreleased/update-css-classes.yml
0 → 100644
View file @
b53d9945
---
title
:
Update css class to gl- classes
merge_request
:
38640
author
:
type
:
other
ee/spec/frontend/security_dashboard/components/__snapshots__/vulnerability_severity_spec.js.snap
View file @
b53d9945
...
@@ -5,10 +5,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -5,10 +5,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
class="gl-border-1 gl-border-solid gl-border-gray-100 gl-rounded-base gl-display-flex gl-flex-direction-column"
class="gl-border-1 gl-border-solid gl-border-gray-100 gl-rounded-base gl-display-flex gl-flex-direction-column"
>
>
<header
<header
class="
border-bottom p-3
"
class="
gl-border-b-gray-100 gl-border-b-solid gl-border-b-1 gl-p-5
"
>
>
<h4
<h4
class="my-0"
class="
gl-
my-0"
>
>
Project security status
Project security status
...
@@ -17,7 +17,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -17,7 +17,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
</h4>
</h4>
<p
<p
class="text-secondary m-0"
class="text-secondary
gl-
m-0"
>
>
Projects are graded based on the highest severity vulnerability present
Projects are graded based on the highest severity vulnerability present
...
@@ -26,7 +26,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -26,7 +26,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
</header>
</header>
<div
<div
class="security-dashboard-accordion gl-px-
3
gl-display-flex gl-flex-fill-1"
class="security-dashboard-accordion gl-px-
5
gl-display-flex gl-flex-fill-1"
>
>
<ul
<ul
class="list-group list-group-flush py-2"
class="list-group list-group-flush py-2"
...
@@ -58,10 +58,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -58,10 +58,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
<span>
<span>
<h5
<h5
class="
d-flex align-items-center font-weight-normal p-0
m-0"
class="
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
>
<span
<span
class="
font-weight-bold mr-3
gl-font-lg gl-text-red-900"
class="
gl-font-weight-bold gl-mr-5
gl-font-lg gl-text-red-900"
>
>
F
F
...
@@ -88,7 +88,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -88,7 +88,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
style="display: none;"
style="display: none;"
>
>
<p
<p
class="
m-0 ml-5 pb-1
text-secondary"
class="
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
>
</p>
</p>
...
@@ -98,10 +98,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -98,10 +98,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
>
>
<div
<div
class="
ml-5
pb-2"
class="
gl-ml-7 gl-
pb-2"
>
>
<ul
<ul
class="list-unstyled py-1"
class="list-unstyled
gl-
py-1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -134,10 +134,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -134,10 +134,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
<span>
<span>
<h5
<h5
class="
d-flex align-items-center font-weight-normal p-0
m-0"
class="
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
>
<span
<span
class="
font-weight-bold mr-3
gl-font-lg gl-text-red-700"
class="
gl-font-weight-bold gl-mr-5
gl-font-lg gl-text-red-700"
>
>
D
D
...
@@ -164,7 +164,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -164,7 +164,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
style="display: none;"
style="display: none;"
>
>
<p
<p
class="
m-0 ml-5 pb-1
text-secondary"
class="
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
>
</p>
</p>
...
@@ -174,10 +174,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -174,10 +174,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
>
>
<div
<div
class="
ml-5
pb-2"
class="
gl-ml-7 gl-
pb-2"
>
>
<ul
<ul
class="list-unstyled py-1"
class="list-unstyled
gl-
py-1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -210,10 +210,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -210,10 +210,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
<span>
<span>
<h5
<h5
class="
d-flex align-items-center font-weight-normal p-0
m-0"
class="
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
>
<span
<span
class="
font-weight-bold mr-3
gl-font-lg gl-text-orange-600"
class="
gl-font-weight-bold gl-mr-5
gl-font-lg gl-text-orange-600"
>
>
C
C
...
@@ -240,7 +240,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -240,7 +240,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
style="display: none;"
style="display: none;"
>
>
<p
<p
class="
m-0 ml-5 pb-1
text-secondary"
class="
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
>
</p>
</p>
...
@@ -250,10 +250,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -250,10 +250,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
>
>
<div
<div
class="
ml-5
pb-2"
class="
gl-ml-7 gl-
pb-2"
>
>
<ul
<ul
class="list-unstyled py-1"
class="list-unstyled
gl-
py-1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -286,10 +286,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -286,10 +286,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
<span>
<span>
<h5
<h5
class="
d-flex align-items-center font-weight-normal p-0
m-0"
class="
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
>
<span
<span
class="
font-weight-bold mr-3
gl-font-lg gl-text-orange-400"
class="
gl-font-weight-bold gl-mr-5
gl-font-lg gl-text-orange-400"
>
>
B
B
...
@@ -316,7 +316,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -316,7 +316,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
style="display: none;"
style="display: none;"
>
>
<p
<p
class="
m-0 ml-5 pb-1
text-secondary"
class="
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
>
</p>
</p>
...
@@ -326,10 +326,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -326,10 +326,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
>
>
<div
<div
class="
ml-5
pb-2"
class="
gl-ml-7 gl-
pb-2"
>
>
<ul
<ul
class="list-unstyled py-1"
class="list-unstyled
gl-
py-1"
/>
/>
</div>
</div>
</div>
</div>
...
@@ -362,10 +362,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -362,10 +362,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
<span>
<span>
<h5
<h5
class="
d-flex align-items-center font-weight-normal p-0
m-0"
class="
gl-display-flex gl-align-items-center gl-font-weight-normal gl-p-0 gl-
m-0"
>
>
<span
<span
class="
font-weight-bold mr-3
gl-font-lg gl-text-green-500"
class="
gl-font-weight-bold gl-mr-5
gl-font-lg gl-text-green-500"
>
>
A
A
...
@@ -392,7 +392,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -392,7 +392,7 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
style="display: none;"
style="display: none;"
>
>
<p
<p
class="
m-0 ml-5 pb-1
text-secondary"
class="
gl-m-0 gl-ml-7 gl-pb-2
text-secondary"
>
>
</p>
</p>
...
@@ -402,10 +402,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
...
@@ -402,10 +402,10 @@ exports[`Vulnerability Severity component when the data has loaded matches snaps
>
>
<div
<div
class="
ml-5
pb-2"
class="
gl-ml-7 gl-
pb-2"
>
>
<ul
<ul
class="list-unstyled py-1"
class="list-unstyled
gl-
py-1"
/>
/>
</div>
</div>
</div>
</div>
...
...
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