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
c36b7aa0
Commit
c36b7aa0
authored
Mar 13, 2020
by
sstern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace underscore with lodash
parent
1438907f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
app/assets/javascripts/create_cluster/eks_cluster/components/eks_cluster_configuration_form.vue
...eks_cluster/components/eks_cluster_configuration_form.vue
+3
-3
app/assets/javascripts/create_cluster/eks_cluster/components/service_credentials_form.vue
...uster/eks_cluster/components/service_credentials_form.vue
+3
-3
app/assets/javascripts/create_cluster/gke_cluster/components/gke_dropdown_mixin.js
...eate_cluster/gke_cluster/components/gke_dropdown_mixin.js
+1
-2
app/assets/javascripts/create_cluster/gke_cluster/components/gke_project_id_dropdown.vue
...luster/gke_cluster/components/gke_project_id_dropdown.vue
+3
-3
No files found.
app/assets/javascripts/create_cluster/eks_cluster/components/eks_cluster_configuration_form.vue
View file @
c36b7aa0
<
script
>
import
{
createNamespacedHelpers
,
mapState
,
mapActions
}
from
'
vuex
'
;
import
_
from
'
underscore
'
;
import
{
escape
as
esc
}
from
'
lodash
'
;
import
{
GlFormInput
,
GlFormCheckbox
}
from
'
@gitlab/ui
'
;
import
{
sprintf
,
s__
}
from
'
~/locale
'
;
import
ClusterFormDropdown
from
'
~/create_cluster/components/cluster_form_dropdown.vue
'
;
...
...
@@ -133,7 +133,7 @@ export default {
:
s__
(
'
ClusterIntegration|Create Kubernetes cluster
'
);
},
kubernetesIntegrationHelpText
()
{
const
escapedUrl
=
_
.
escape
(
this
.
kubernetesIntegrationHelpPath
);
const
escapedUrl
=
esc
(
this
.
kubernetesIntegrationHelpPath
);
return
sprintf
(
s__
(
...
...
@@ -245,7 +245,7 @@ export default {
);
},
gitlabManagedHelpText
()
{
const
escapedUrl
=
_
.
escape
(
this
.
gitlabManagedClusterHelpPath
);
const
escapedUrl
=
esc
(
this
.
gitlabManagedClusterHelpPath
);
return
sprintf
(
s__
(
...
...
app/assets/javascripts/create_cluster/eks_cluster/components/service_credentials_form.vue
View file @
c36b7aa0
<
script
>
import
{
GlFormInput
}
from
'
@gitlab/ui
'
;
import
_
from
'
underscore
'
;
import
{
escape
as
esc
}
from
'
lodash
'
;
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
sprintf
,
s__
,
__
}
from
'
~/locale
'
;
import
ClipboardButton
from
'
~/vue_shared/components/clipboard_button.vue
'
;
...
...
@@ -42,7 +42,7 @@ export default {
:
s__
(
'
ClusterIntegration|Authenticate with AWS
'
);
},
accountAndExternalIdsHelpText
()
{
const
escapedUrl
=
_
.
escape
(
this
.
accountAndExternalIdsHelpPath
);
const
escapedUrl
=
esc
(
this
.
accountAndExternalIdsHelpPath
);
return
sprintf
(
s__
(
...
...
@@ -59,7 +59,7 @@ export default {
);
},
provisionRoleArnHelpText
()
{
const
escapedUrl
=
_
.
escape
(
this
.
createRoleArnHelpPath
);
const
escapedUrl
=
esc
(
this
.
createRoleArnHelpPath
);
return
sprintf
(
s__
(
...
...
app/assets/javascripts/create_cluster/gke_cluster/components/gke_dropdown_mixin.js
View file @
c36b7aa0
import
_
from
'
underscore
'
;
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
DropdownSearchInput
from
'
~/vue_shared/components/dropdown/dropdown_search_input.vue
'
;
import
DropdownHiddenInput
from
'
~/vue_shared/components/dropdown/dropdown_hidden_input.vue
'
;
...
...
@@ -49,7 +48,7 @@ export default {
methods
:
{
fetchSuccessHandler
()
{
if
(
this
.
defaultValue
)
{
const
itemToSelect
=
_
.
find
(
this
.
items
,
item
=>
item
.
name
===
this
.
defaultValue
);
const
itemToSelect
=
this
.
items
.
find
(
item
=>
item
.
name
===
this
.
defaultValue
);
if
(
itemToSelect
)
{
this
.
setItem
(
itemToSelect
.
name
);
...
...
app/assets/javascripts/create_cluster/gke_cluster/components/gke_project_id_dropdown.vue
View file @
c36b7aa0
<
script
>
import
_
from
'
underscore
'
;
import
{
escape
as
esc
}
from
'
lodash
'
;
import
{
mapState
,
mapGetters
,
mapActions
}
from
'
vuex
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
...
...
@@ -65,7 +65,7 @@ export default {
s__
(
message
),
{
docsLinkEnd
:
'
<i class="fa fa-external-link" aria-hidden="true"></i></a>
'
,
docsLinkStart
:
`<a href="
${
_
.
escape
(
docsLinkStart
:
`<a href="
${
esc
(
this
.
docsUrl
,
)}
" target="_blank" rel="noopener noreferrer">`
,
},
...
...
@@ -119,7 +119,7 @@ export default {
...
mapActions
({
setItem
:
'
setProject
'
}),
fetchSuccessHandler
()
{
if
(
this
.
defaultValue
)
{
const
projectToSelect
=
_
.
find
(
this
.
items
,
item
=>
item
.
projectId
===
this
.
defaultValue
);
const
projectToSelect
=
this
.
items
.
find
(
item
=>
item
.
projectId
===
this
.
defaultValue
);
if
(
projectToSelect
)
{
this
.
setItem
(
projectToSelect
);
...
...
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