Открыть боковую панель
nt_test121
nt_project_9da4a5yt9x4b
Коммиты
17c81114
Коммит
17c81114
создал
Май 07, 2020
по автору
GitLab Bot
Просмотр файлов
Add latest changes from gitlab-org/gitlab@master
владелец
4b7575da
Изменения
184
Скрыть пробелы
Построчно
Рядом
app/assets/javascripts/api.js
Просмотр файла @
17c81114
...
...
@@ -23,6 +23,8 @@ const Api = {
projectMergeRequestVersionsPath
:
'
/api/:version/projects/:id/merge_requests/:mrid/versions
'
,
projectRunnersPath
:
'
/api/:version/projects/:id/runners
'
,
projectProtectedBranchesPath
:
'
/api/:version/projects/:id/protected_branches
'
,
projectSearchPath
:
'
/api/:version/projects/:id/search
'
,
projectMilestonesPath
:
'
/api/:version/projects/:id/milestones
'
,
mergeRequestsPath
:
'
/api/:version/merge_requests
'
,
groupLabelsPath
:
'
/groups/:namespace_path/-/labels
'
,
issuableTemplatePath
:
'
/:namespace_path/:project_path/templates/:type/:key
'
,
...
...
@@ -75,13 +77,11 @@ const Api = {
const
url
=
Api
.
buildUrl
(
Api
.
groupsPath
);
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
(
{
search
:
query
,
per_page
:
DEFAULT_PER_PAGE
,
},
options
,
),
params
:
{
search
:
query
,
per_page
:
DEFAULT_PER_PAGE
,
...
options
,
},
})
.
then
(({
data
})
=>
{
callback
(
data
);
...
...
@@ -248,6 +248,23 @@ const Api = {
.
then
(({
data
})
=>
data
);
},
projectSearch
(
id
,
options
=
{})
{
const
url
=
Api
.
buildUrl
(
Api
.
projectSearchPath
).
replace
(
'
:id
'
,
encodeURIComponent
(
id
));
return
axios
.
get
(
url
,
{
params
:
{
search
:
options
.
search
,
scope
:
options
.
scope
,
},
});
},
projectMilestones
(
id
)
{
const
url
=
Api
.
buildUrl
(
Api
.
projectMilestonesPath
).
replace
(
'
:id
'
,
encodeURIComponent
(
id
));
return
axios
.
get
(
url
);
},
mergeRequests
(
params
=
{})
{
const
url
=
Api
.
buildUrl
(
Api
.
mergeRequestsPath
);
...
...
@@ -282,7 +299,7 @@ const Api = {
};
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
({},
defaults
,
options
)
,
params
:
{
...
defaults
,
...
options
}
,
})
.
then
(({
data
})
=>
callback
(
data
))
.
catch
(()
=>
flash
(
__
(
'
Something went wrong while fetching projects
'
)));
...
...
@@ -365,13 +382,11 @@ const Api = {
users
(
query
,
options
)
{
const
url
=
Api
.
buildUrl
(
this
.
usersPath
);
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
(
{
search
:
query
,
per_page
:
DEFAULT_PER_PAGE
,
},
options
,
),
params
:
{
search
:
query
,
per_page
:
DEFAULT_PER_PAGE
,
...
options
,
},
});
},
...
...
@@ -402,7 +417,7 @@ const Api = {
};
return
axios
.
get
(
url
,
{
params
:
Object
.
assign
({},
defaults
,
options
)
,
params
:
{
...
defaults
,
...
options
}
,
})
.
then
(({
data
})
=>
callback
(
data
))
.
catch
(()
=>
flash
(
__
(
'
Something went wrong while fetching projects
'
)));
...
...
app/assets/javascripts/behaviors/shortcuts/shortcuts_blob.js
Просмотр файла @
17c81114
...
...
@@ -22,7 +22,7 @@ function eventHasModifierKeys(event) {
export
default
class
ShortcutsBlob
extends
Shortcuts
{
constructor
(
opts
)
{
const
options
=
Object
.
assign
({},
defaults
,
opts
)
;
const
options
=
{
...
defaults
,
...
opts
}
;
super
(
options
.
skipResetBindings
);
this
.
options
=
options
;
...
...
app/assets/javascripts/blob/blob_fork_suggestion.js
Просмотр файла @
17c81114
...
...
@@ -17,7 +17,7 @@ const defaults = {
class
BlobForkSuggestion
{
constructor
(
options
)
{
this
.
elementMap
=
Object
.
assign
({},
defaults
,
options
)
;
this
.
elementMap
=
{
...
defaults
,
...
options
}
;
this
.
onOpenButtonClick
=
this
.
onOpenButtonClick
.
bind
(
this
);
this
.
onCancelButtonClick
=
this
.
onCancelButtonClick
.
bind
(
this
);
}
...
...
app/assets/javascripts/boards/mixins/sortable_default_options.js
Просмотр файла @
17c81114
...
...
@@ -19,14 +19,15 @@ export function getBoardSortableDefaultOptions(obj) {
const
touchEnabled
=
'
ontouchstart
'
in
window
||
(
window
.
DocumentTouch
&&
document
instanceof
DocumentTouch
);
const
defaultSortOptions
=
Object
.
assign
({},
sortableConfig
,
{
const
defaultSortOptions
=
{
...
sortableConfig
,
filter
:
'
.no-drag
'
,
delay
:
touchEnabled
?
100
:
0
,
scrollSensitivity
:
touchEnabled
?
60
:
100
,
scrollSpeed
:
20
,
onStart
:
sortableStart
,
onEnd
:
sortableEnd
,
}
)
;
};
Object
.
keys
(
obj
).
forEach
(
key
=>
{
defaultSortOptions
[
key
]
=
obj
[
key
];
...
...
app/assets/javascripts/close_reopen_report_toggle.js
Просмотр файла @
17c81114
...
...
@@ -2,7 +2,7 @@ import DropLab from './droplab/drop_lab';
import
ISetter
from
'
./droplab/plugins/input_setter
'
;
// Todo: Remove this when fixing issue in input_setter plugin
const
InputSetter
=
Object
.
assign
({},
ISetter
)
;
const
InputSetter
=
{
...
ISetter
}
;
class
CloseReopenReportToggle
{
constructor
(
opts
=
{})
{
...
...
app/assets/javascripts/clusters/clusters_bundle.js
Просмотр файла @
17c81114
...
...
@@ -325,7 +325,7 @@ export default class Clusters {
handleClusterStatusSuccess
(
data
)
{
const
prevStatus
=
this
.
store
.
state
.
status
;
const
prevApplicationMap
=
Object
.
assign
({},
this
.
store
.
state
.
applications
)
;
const
prevApplicationMap
=
{
...
this
.
store
.
state
.
applications
}
;
this
.
store
.
updateStateFromServer
(
data
.
data
);
...
...
app/assets/javascripts/comment_type_toggle.js
Просмотр файла @
17c81114
...
...
@@ -2,7 +2,7 @@ import DropLab from './droplab/drop_lab';
import
ISetter
from
'
./droplab/plugins/input_setter
'
;
// Todo: Remove this when fixing issue in input_setter plugin
const
InputSetter
=
Object
.
assign
({},
ISetter
)
;
const
InputSetter
=
{
...
ISetter
}
;
class
CommentTypeToggle
{
constructor
(
opts
=
{})
{
...
...
app/assets/javascripts/create_merge_request_dropdown.js
Просмотр файла @
17c81114
...
...
@@ -13,7 +13,7 @@ import {
import
confidentialMergeRequestState
from
'
./confidential_merge_request/state
'
;
// Todo: Remove this when fixing issue in input_setter plugin
const
InputSetter
=
Object
.
assign
({},
ISetter
)
;
const
InputSetter
=
{
...
ISetter
}
;
const
CREATE_MERGE_REQUEST
=
'
create-mr
'
;
const
CREATE_BRANCH
=
'
create-branch
'
;
...
...
app/assets/javascripts/cycle_analytics/cycle_analytics_store.js
Просмотр файла @
17c81114
...
...
@@ -84,7 +84,7 @@ export default {
events
.
forEach
(
item
=>
{
if
(
!
item
)
return
;
const
eventItem
=
Object
.
assign
({},
DEFAULT_EVENT_OBJECTS
[
stage
.
slug
],
item
)
;
const
eventItem
=
{
...
DEFAULT_EVENT_OBJECTS
[
stage
.
slug
],
...
item
}
;
eventItem
.
totalTime
=
eventItem
.
total_time
;
...
...
app/assets/javascripts/design_management/components/design_note_pin.vue
Просмотр файла @
17c81114
...
...
@@ -28,9 +28,7 @@ export default {
return
this
.
label
===
null
;
},
pinStyle
()
{
return
this
.
repositioning
?
Object
.
assign
({},
this
.
position
,
{
cursor
:
'
move
'
})
:
this
.
position
;
return
this
.
repositioning
?
{
...
this
.
position
,
cursor
:
'
move
'
}
:
this
.
position
;
},
pinLabel
()
{
return
this
.
isNewNote
...
...
app/assets/javascripts/diffs/store/utils.js
Просмотр файла @
17c81114
...
...
@@ -233,7 +233,7 @@ export function trimFirstCharOfLineContent(line = {}) {
// eslint-disable-next-line no-param-reassign
delete
line
.
text
;
const
parsedLine
=
Object
.
assign
({},
line
)
;
const
parsedLine
=
{
...
line
}
;
if
(
line
.
rich_text
)
{
const
firstChar
=
parsedLine
.
rich_text
.
charAt
(
0
);
...
...
app/assets/javascripts/environments/stores/environments_store.js
Просмотр файла @
17c81114
...
...
@@ -58,13 +58,14 @@ export default class EnvironmentsStore {
let
filtered
=
{};
if
(
env
.
size
>
1
)
{
filtered
=
Object
.
assign
({},
env
,
{
filtered
=
{
...
env
,
isFolder
:
true
,
isLoadingFolderContent
:
oldEnvironmentState
.
isLoading
||
false
,
folderName
:
env
.
name
,
isOpen
:
oldEnvironmentState
.
isOpen
||
false
,
children
:
oldEnvironmentState
.
children
||
[],
}
)
;
};
}
if
(
env
.
latest
)
{
...
...
@@ -166,7 +167,7 @@ export default class EnvironmentsStore {
let
updated
=
env
;
if
(
env
.
latest
)
{
updated
=
Object
.
assign
({},
env
,
env
.
latest
)
;
updated
=
{
...
env
,
...
env
.
latest
}
;
delete
updated
.
latest
;
}
else
{
updated
=
env
;
...
...
@@ -192,7 +193,7 @@ export default class EnvironmentsStore {
const
{
environments
}
=
this
.
state
;
const
updatedEnvironments
=
environments
.
map
(
env
=>
{
const
updateEnv
=
Object
.
assign
({},
env
)
;
const
updateEnv
=
{
...
env
}
;
if
(
env
.
id
===
environment
.
id
)
{
updateEnv
[
prop
]
=
newValue
;
}
...
...
app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
Просмотр файла @
17c81114
...
...
@@ -120,7 +120,7 @@ export default class FilteredSearchDropdownManager {
filter
:
key
,
};
const
extraArguments
=
mappingKey
.
extraArguments
||
{};
const
glArguments
=
Object
.
assign
({},
defaultArguments
,
extraArguments
)
;
const
glArguments
=
{
...
defaultArguments
,
...
extraArguments
}
;
// Passing glArguments to `new glClass(<arguments>)`
mappingKey
.
reference
=
new
(
Function
.
prototype
.
bind
.
apply
(
glClass
,
[
null
,
glArguments
]))();
...
...
app/assets/javascripts/filtered_search/stores/recent_searches_store.js
Просмотр файла @
17c81114
...
...
@@ -2,14 +2,12 @@ import { uniq } from 'lodash';
class
RecentSearchesStore
{
constructor
(
initialState
=
{},
allowedKeys
)
{
this
.
state
=
Object
.
assign
(
{
isLocalStorageAvailable
:
true
,
recentSearches
:
[],
allowedKeys
,
},
initialState
,
);
this
.
state
=
{
isLocalStorageAvailable
:
true
,
recentSearches
:
[],
allowedKeys
,
...
initialState
,
};
}
addRecentSearch
(
newSearch
)
{
...
...
app/assets/javascripts/gl_dropdown.js
Просмотр файла @
17c81114
...
...
@@ -595,13 +595,14 @@ class GitLabDropdown {
return
renderItem
({
instance
:
this
,
options
:
Object
.
assign
({},
this
.
options
,
{
options
:
{
...
this
.
options
,
icon
:
this
.
icon
,
highlight
:
this
.
highlight
,
highlightText
:
text
=>
this
.
highlightTextMatches
(
text
,
this
.
filterInput
.
val
()),
highlightTemplate
:
this
.
highlightTemplate
.
bind
(
this
),
parent
,
}
)
,
},
data
,
group
,
index
,
...
...
app/assets/javascripts/gl_form.js
Просмотр файла @
17c81114
...
...
@@ -8,7 +8,7 @@ export default class GLForm {
constructor
(
form
,
enableGFM
=
{})
{
this
.
form
=
form
;
this
.
textarea
=
this
.
form
.
find
(
'
textarea.js-gfm-input
'
);
this
.
enableGFM
=
Object
.
assign
({},
defaultAutocompleteConfig
,
enableGFM
)
;
this
.
enableGFM
=
{
...
defaultAutocompleteConfig
,
...
enableGFM
}
;
// Disable autocomplete for keywords which do not have dataSources available
const
dataSources
=
(
gl
.
GfmAutoComplete
&&
gl
.
GfmAutoComplete
.
dataSources
)
||
{};
Object
.
keys
(
this
.
enableGFM
).
forEach
(
item
=>
{
...
...
app/assets/javascripts/groups/new_group_child.js
Просмотр файла @
17c81114
...
...
@@ -2,7 +2,7 @@ import { visitUrl } from '../lib/utils/url_utility';
import
DropLab
from
'
../droplab/drop_lab
'
;
import
ISetter
from
'
../droplab/plugins/input_setter
'
;
const
InputSetter
=
Object
.
assign
({},
ISetter
)
;
const
InputSetter
=
{
...
ISetter
}
;
const
NEW_PROJECT
=
'
new-project
'
;
const
NEW_SUBGROUP
=
'
new-subgroup
'
;
...
...
app/assets/javascripts/ide/components/nav_form.vue
Просмотр файла @
17c81114
...
...
@@ -25,13 +25,13 @@ export default {
<div
class=
"ide-nav-form p-0"
>
<tabs
v-if=
"showMergeRequests"
stop-propagation
>
<tab
active
>
<template
slot=
"
title
"
>
<template
#
title
>
{{
__
(
'
Branches
'
)
}}
</
template
>
<branches-search-list
/>
</tab>
<tab>
<
template
slot=
"
title
"
>
<
template
#
title
>
{{
__
(
'
Merge Requests
'
)
}}
</
template
>
<merge-request-search-list
/>
...
...
app/assets/javascripts/ide/lib/diff/diff.js
Просмотр файла @
17c81114
...
...
@@ -14,13 +14,12 @@ export const computeDiff = (originalContent, newContent) => {
endLineNumber
:
lineNumber
+
change
.
count
-
1
,
});
}
else
if
(
'
added
'
in
change
||
'
removed
'
in
change
)
{
acc
.
push
(
Object
.
assign
({},
change
,
{
lineNumber
,
modified
:
undefined
,
endLineNumber
:
lineNumber
+
change
.
count
-
1
,
}),
);
acc
.
push
({
...
change
,
lineNumber
,
modified
:
undefined
,
endLineNumber
:
lineNumber
+
change
.
count
-
1
,
});
}
if
(
!
change
.
removed
)
{
...
...
app/assets/javascripts/ide/stores/mutations/project.js
Просмотр файла @
17c81114
...
...
@@ -16,9 +16,7 @@ export default {
});
Object
.
assign
(
state
,
{
projects
:
Object
.
assign
({},
state
.
projects
,
{
[
projectPath
]:
project
,
}),
projects
:
{
...
state
.
projects
,
[
projectPath
]:
project
},
});
},
[
types
.
TOGGLE_EMPTY_STATE
](
state
,
{
projectPath
,
value
})
{
...
...
Пред
1
2
3
4
5
...
10
След
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать