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
e17c24ed
Commit
e17c24ed
authored
Jul 11, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move components back to parent dir
parent
2a791915
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
11 deletions
+11
-11
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
...ripts/threat_monitoring/components/environment_picker.vue
+1
-1
ee/app/assets/javascripts/threat_monitoring/components/policy_editor/policy_editor.vue
...eat_monitoring/components/policy_editor/policy_editor.vue
+1
-1
ee/app/assets/javascripts/threat_monitoring/components/policy_list.vue
.../javascripts/threat_monitoring/components/policy_list.vue
+2
-2
ee/app/assets/javascripts/threat_monitoring/components/policy_type_filter.vue
...ripts/threat_monitoring/components/policy_type_filter.vue
+1
-1
ee/app/assets/javascripts/threat_monitoring/components/threat_monitoring_filters.vue
...hreat_monitoring/components/threat_monitoring_filters.vue
+1
-1
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
...d/threat_monitoring/components/environment_picker_spec.js
+2
-2
ee/spec/frontend/threat_monitoring/components/policy_editor/policy_editor_spec.js
...monitoring/components/policy_editor/policy_editor_spec.js
+1
-1
ee/spec/frontend/threat_monitoring/components/policy_type_filter_spec.js
...d/threat_monitoring/components/policy_type_filter_spec.js
+1
-1
ee/spec/frontend/threat_monitoring/components/threat_monitoring_filters_spec.js
...t_monitoring/components/threat_monitoring_filters_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/threat_monitoring/components/
filters/
environment_picker.vue
→
ee/app/assets/javascripts/threat_monitoring/components/environment_picker.vue
View file @
e17c24ed
<
script
>
import
{
GlFormGroup
,
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
{
ALL_ENVIRONMENT_NAME
}
from
'
../
../
constants
'
;
import
{
ALL_ENVIRONMENT_NAME
}
from
'
../constants
'
;
export
default
{
components
:
{
...
...
ee/app/assets/javascripts/threat_monitoring/components/policy_editor/policy_editor.vue
View file @
e17c24ed
...
...
@@ -2,7 +2,7 @@
import
{
GlFormGroup
,
GlFormSelect
}
from
'
@gitlab/ui
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
glFeatureFlagMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
EnvironmentPicker
from
'
../
filters/
environment_picker.vue
'
;
import
EnvironmentPicker
from
'
../environment_picker.vue
'
;
import
{
POLICY_KIND_OPTIONS
}
from
'
./constants
'
;
import
NetworkPolicyEditor
from
'
./network_policy/network_policy_editor.vue
'
;
import
ScanExecutionPolicyEditor
from
'
./scan_execution_policy/scan_execution_policy_editor.vue
'
;
...
...
ee/app/assets/javascripts/threat_monitoring/components/policy_list.vue
View file @
e17c24ed
...
...
@@ -18,9 +18,9 @@ import { __, s__ } from '~/locale';
import
networkPoliciesQuery
from
'
../graphql/queries/network_policies.query.graphql
'
;
import
scanExecutionPoliciesQuery
from
'
../graphql/queries/scan_execution_policies.query.graphql
'
;
import
{
POLICY_TYPE_NETWORK
,
POLICY_TYPE_SCAN_EXECUTION
,
POLICY_TYPE_OPTIONS
}
from
'
./constants
'
;
import
EnvironmentPicker
from
'
./filters/environment_picker.vue
'
;
import
PolicyTypeFilter
from
'
./filters/policy_type_filter.vue
'
;
import
EnvironmentPicker
from
'
./environment_picker.vue
'
;
import
PolicyDrawer
from
'
./policy_drawer/policy_drawer.vue
'
;
import
PolicyTypeFilter
from
'
./policy_type_filter.vue
'
;
const
createPolicyFetchError
=
({
gqlError
,
networkError
})
=>
{
const
error
=
...
...
ee/app/assets/javascripts/threat_monitoring/components/
filters/
policy_type_filter.vue
→
ee/app/assets/javascripts/threat_monitoring/components/policy_type_filter.vue
View file @
e17c24ed
<
script
>
import
{
GlFormGroup
,
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
__
}
from
'
~/locale
'
;
import
{
POLICY_TYPE_OPTIONS
}
from
'
.
.
/constants
'
;
import
{
POLICY_TYPE_OPTIONS
}
from
'
./constants
'
;
export
default
{
name
:
'
PolicyTypeFilter
'
,
...
...
ee/app/assets/javascripts/threat_monitoring/components/threat_monitoring_filters.vue
View file @
e17c24ed
...
...
@@ -3,7 +3,7 @@ import { GlFormGroup } from '@gitlab/ui';
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
;
import
DateTimePicker
from
'
~/vue_shared/components/date_time_picker/date_time_picker.vue
'
;
import
{
timeRanges
,
defaultTimeRange
}
from
'
~/vue_shared/constants
'
;
import
EnvironmentPicker
from
'
./
filters/
environment_picker.vue
'
;
import
EnvironmentPicker
from
'
./environment_picker.vue
'
;
export
default
{
name
:
'
ThreatMonitoringFilters
'
,
...
...
ee/spec/frontend/threat_monitoring/components/
filters/
environment_picker_spec.js
→
ee/spec/frontend/threat_monitoring/components/environment_picker_spec.js
View file @
e17c24ed
import
{
GlDropdown
,
GlDropdownItem
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/
filters/
environment_picker.vue
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/environment_picker.vue
'
;
import
{
INVALID_CURRENT_ENVIRONMENT_NAME
,
ALL_ENVIRONMENT_NAME
,
}
from
'
ee/threat_monitoring/constants
'
;
import
createStore
from
'
ee/threat_monitoring/store
'
;
import
{
mockEnvironmentsResponse
}
from
'
../
../
mocks/mock_data
'
;
import
{
mockEnvironmentsResponse
}
from
'
../mocks/mock_data
'
;
const
mockEnvironments
=
mockEnvironmentsResponse
.
environments
;
const
currentEnvironment
=
mockEnvironments
[
1
];
...
...
ee/spec/frontend/threat_monitoring/components/policy_editor/policy_editor_spec.js
View file @
e17c24ed
import
{
GlFormSelect
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/
filters/
environment_picker.vue
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/environment_picker.vue
'
;
import
{
POLICY_KIND_OPTIONS
}
from
'
ee/threat_monitoring/components/policy_editor/constants
'
;
import
NetworkPolicyEditor
from
'
ee/threat_monitoring/components/policy_editor/network_policy/network_policy_editor.vue
'
;
import
PolicyEditor
from
'
ee/threat_monitoring/components/policy_editor/policy_editor.vue
'
;
...
...
ee/spec/frontend/threat_monitoring/components/
filters/
policy_type_filter_spec.js
→
ee/spec/frontend/threat_monitoring/components/policy_type_filter_spec.js
View file @
e17c24ed
import
{
POLICY_TYPE_OPTIONS
}
from
'
ee/threat_monitoring/components/constants
'
;
import
PolicyTypeFilter
from
'
ee/threat_monitoring/components/
filters/
policy_type_filter.vue
'
;
import
PolicyTypeFilter
from
'
ee/threat_monitoring/components/policy_type_filter.vue
'
;
import
{
mountExtended
}
from
'
helpers/vue_test_utils_helper
'
;
describe
(
'
PolicyTypeFilter component
'
,
()
=>
{
...
...
ee/spec/frontend/threat_monitoring/components/threat_monitoring_filters_spec.js
View file @
e17c24ed
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/
filters/
environment_picker.vue
'
;
import
EnvironmentPicker
from
'
ee/threat_monitoring/components/environment_picker.vue
'
;
import
ThreatMonitoringFilters
from
'
ee/threat_monitoring/components/threat_monitoring_filters.vue
'
;
import
createStore
from
'
ee/threat_monitoring/store
'
;
import
DateTimePicker
from
'
~/vue_shared/components/date_time_picker/date_time_picker.vue
'
;
...
...
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