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
1d588af2
Commit
1d588af2
authored
Feb 17, 2020
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace underscore with lodash for ./app/assets/javascripts/badges
parent
98272880
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/assets/javascripts/badges/components/badge_form.vue
app/assets/javascripts/badges/components/badge_form.vue
+3
-3
changelogs/unreleased/196646-replace-underscore-with-lodash-for-app-assets-javascripts-badges.yml
...erscore-with-lodash-for-app-assets-javascripts-badges.yml
+5
-0
No files found.
app/assets/javascripts/badges/components/badge_form.vue
View file @
1d588af2
<
script
>
import
_
from
'
underscore
'
;
import
{
escape
,
debounce
}
from
'
lodash
'
;
import
{
mapActions
,
mapState
}
from
'
vuex
'
;
import
{
GlLoadingIcon
,
GlFormInput
,
GlFormGroup
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
...
...
@@ -54,7 +54,7 @@ export default {
s__
(
'
Badges|The %{docsLinkStart}variables%{docsLinkEnd} GitLab supports: %{placeholders}
'
),
{
docsLinkEnd
:
'
</a>
'
,
docsLinkStart
:
`<a href="
${
_
.
escape
(
this
.
docsUrl
)}
">`
,
docsLinkStart
:
`<a href="
${
escape
(
this
.
docsUrl
)}
">`
,
placeholders
,
},
false
,
...
...
@@ -118,7 +118,7 @@ export default {
},
methods
:
{
...
mapActions
([
'
addBadge
'
,
'
renderBadge
'
,
'
saveBadge
'
,
'
stopEditing
'
,
'
updateBadgeInForm
'
]),
debouncedPreview
:
_
.
debounce
(
function
preview
()
{
debouncedPreview
:
debounce
(
function
preview
()
{
this
.
renderBadge
();
},
badgePreviewDelayInMilliseconds
),
onCancel
()
{
...
...
changelogs/unreleased/196646-replace-underscore-with-lodash-for-app-assets-javascripts-badges.yml
0 → 100644
View file @
1d588af2
---
title
:
Replace underscore with lodash for ./app/assets/javascripts/badges
merge_request
:
24966
author
:
Jacopo Beschi @jacopo-beschi
type
:
changed
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