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
4c4345a4
Commit
4c4345a4
authored
Nov 19, 2020
by
Mark Florian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move SecuritySummary component to FOSS
parent
875e9ff9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
+12
-11
app/assets/javascripts/vue_shared/security_reports/components/constants.js
...ripts/vue_shared/security_reports/components/constants.js
+8
-0
app/assets/javascripts/vue_shared/security_reports/components/security_summary.vue
...e_shared/security_reports/components/security_summary.vue
+0
-0
ee/app/assets/javascripts/vue_shared/security_reports/components/constants.js
...ripts/vue_shared/security_reports/components/constants.js
+1
-8
ee/app/assets/javascripts/vue_shared/security_reports/grouped_security_reports_app.vue
..._shared/security_reports/grouped_security_reports_app.vue
+1
-1
spec/frontend/vue_shared/components/security_reports/__snapshots__/security_summary_spec.js.snap
...urity_reports/__snapshots__/security_summary_spec.js.snap
+0
-0
spec/frontend/vue_shared/components/security_reports/security_summary_spec.js
...ared/components/security_reports/security_summary_spec.js
+2
-2
No files found.
app/assets/javascripts/vue_shared/security_reports/components/constants.js
0 → 100644
View file @
4c4345a4
export
const
SEVERITY_CLASS_NAME_MAP
=
{
critical
:
'
text-danger-800
'
,
high
:
'
text-danger-600
'
,
medium
:
'
text-warning-400
'
,
low
:
'
text-warning-200
'
,
info
:
'
text-primary-400
'
,
unknown
:
'
text-secondary-400
'
,
};
ee/
app/assets/javascripts/vue_shared/security_reports/components/security_summary.vue
→
app/assets/javascripts/vue_shared/security_reports/components/security_summary.vue
View file @
4c4345a4
File moved
ee/app/assets/javascripts/vue_shared/security_reports/components/constants.js
View file @
4c4345a4
import
{
s__
}
from
'
~/locale
'
;
export
const
SEVERITY_CLASS_NAME_MAP
=
{
critical
:
'
text-danger-800
'
,
high
:
'
text-danger-600
'
,
medium
:
'
text-warning-400
'
,
low
:
'
text-warning-200
'
,
info
:
'
text-primary-400
'
,
unknown
:
'
text-secondary-400
'
,
};
export
*
from
'
~/vue_shared/security_reports/components/constants
'
;
export
const
SEVERITY_TOOLTIP_TITLE_MAP
=
{
unknown
:
s__
(
...
...
ee/app/assets/javascripts/vue_shared/security_reports/grouped_security_reports_app.vue
View file @
4c4345a4
...
...
@@ -9,6 +9,7 @@ import ReportSection from '~/reports/components/report_section.vue';
import
SummaryRow
from
'
~/reports/components/summary_row.vue
'
;
import
Tracking
from
'
~/tracking
'
;
import
GroupedIssuesList
from
'
~/reports/components/grouped_issues_list.vue
'
;
import
SecuritySummary
from
'
~/vue_shared/security_reports/components/security_summary.vue
'
;
import
IssueModal
from
'
./components/modal.vue
'
;
import
DastModal
from
'
./components/dast_modal.vue
'
;
import
securityReportsMixin
from
'
./mixins/security_report_mixin
'
;
...
...
@@ -16,7 +17,6 @@ import createStore from './store';
import
{
mrStates
}
from
'
~/mr_popover/constants
'
;
import
{
fetchPolicies
}
from
'
~/lib/graphql
'
;
import
securityReportSummaryQuery
from
'
./graphql/mr_security_report_summary.graphql
'
;
import
SecuritySummary
from
'
./components/security_summary.vue
'
;
import
{
MODULE_CONTAINER_SCANNING
,
MODULE_COVERAGE_FUZZING
,
...
...
ee/
spec/frontend/vue_shared/components/security_reports/__snapshots__/security_summary_spec.js.snap
→
spec/frontend/vue_shared/components/security_reports/__snapshots__/security_summary_spec.js.snap
View file @
4c4345a4
File moved
ee/
spec/frontend/vue_shared/components/security_reports/security_summary_spec.js
→
spec/frontend/vue_shared/components/security_reports/security_summary_spec.js
View file @
4c4345a4
import
{
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
SecuritySummary
from
'
ee
/vue_shared/security_reports/components/security_summary.vue
'
;
import
{
groupedTextBuilder
}
from
'
ee
/vue_shared/security_reports/store/utils
'
;
import
SecuritySummary
from
'
~
/vue_shared/security_reports/components/security_summary.vue
'
;
import
{
groupedTextBuilder
}
from
'
~
/vue_shared/security_reports/store/utils
'
;
describe
(
'
Severity Summary
'
,
()
=>
{
let
wrapper
;
...
...
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