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
02c8ab92
Commit
02c8ab92
authored
Feb 06, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update class initialization syntax
parent
efd54f00
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
8 deletions
+33
-8
app/assets/javascripts/boards/filtered_search_boards.js
app/assets/javascripts/boards/filtered_search_boards.js
+6
-1
app/assets/javascripts/pages/groups/issues/index.js
app/assets/javascripts/pages/groups/issues/index.js
+5
-1
app/assets/javascripts/pages/groups/merge_requests/index.js
app/assets/javascripts/pages/groups/merge_requests/index.js
+3
-1
app/assets/javascripts/pages/projects/issues/index/index.js
app/assets/javascripts/pages/projects/issues/index/index.js
+5
-1
app/assets/javascripts/pages/projects/merge_requests/index/index.js
.../javascripts/pages/projects/merge_requests/index/index.js
+3
-1
app/assets/javascripts/pages/search/init_filtered_search.js
app/assets/javascripts/pages/search/init_filtered_search.js
+6
-2
app/assets/javascripts/service_desk_issues/filtered_search.js
...assets/javascripts/service_desk_issues/filtered_search.js
+5
-1
No files found.
app/assets/javascripts/boards/filtered_search_boards.js
View file @
02c8ab92
/* eslint-disable class-methods-use-this */
import
FilteredSearchTokenKeysIssues
from
'
ee/filtered_search/filtered_search_token_keys_issues
'
;
import
FilteredSearchContainer
from
'
../filtered_search/container
'
;
export
default
class
FilteredSearchBoards
extends
gl
.
FilteredSearchManager
{
constructor
(
store
,
updateUrl
=
false
,
cantEdit
=
[])
{
super
(
'
boards
'
);
super
({
page
:
'
boards
'
,
filteredSearchTokenKeys
:
FilteredSearchTokenKeysIssues
,
stateFiltersSelector
:
'
.issues-state-filters
'
,
});
this
.
store
=
store
;
this
.
updateUrl
=
updateUrl
;
...
...
app/assets/javascripts/pages/groups/issues/index.js
View file @
02c8ab92
import
projectSelect
from
'
~/project_select
'
;
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
{
FILTERED_SEARCH
}
from
'
~/pages/constants
'
;
import
FilteredSearchTokenKeysIssues
from
'
ee/filtered_search/filtered_search_token_keys_issues
'
;
export
default
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
ISSUES
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
ISSUES
,
filteredSearchTokenKeys
:
FilteredSearchTokenKeysIssues
,
});
projectSelect
();
};
app/assets/javascripts/pages/groups/merge_requests/index.js
View file @
02c8ab92
...
...
@@ -3,6 +3,8 @@ import initFilteredSearch from '~/pages/search/init_filtered_search';
import
{
FILTERED_SEARCH
}
from
'
~/pages/constants
'
;
export
default
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
MERGE_REQUESTS
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
});
projectSelect
();
};
app/assets/javascripts/pages/projects/issues/index/index.js
View file @
02c8ab92
...
...
@@ -6,9 +6,13 @@ import UsersSelect from '~/users_select';
import
initFilteredSearch
from
'
~/pages/search/init_filtered_search
'
;
import
{
FILTERED_SEARCH
}
from
'
~/pages/constants
'
;
import
{
ISSUABLE_INDEX
}
from
'
~/pages/projects/constants
'
;
import
FilteredSearchTokenKeysIssues
from
'
ee/filtered_search/filtered_search_token_keys_issues
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
ISSUES
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
ISSUES
,
filteredSearchTokenKeys
:
FilteredSearchTokenKeysIssues
,
});
new
IssuableIndex
(
ISSUABLE_INDEX
.
ISSUE
);
new
ShortcutsNavigation
();
...
...
app/assets/javascripts/pages/projects/merge_requests/index/index.js
View file @
02c8ab92
...
...
@@ -6,7 +6,9 @@ import { FILTERED_SEARCH } from '~/pages/constants';
import
{
ISSUABLE_INDEX
}
from
'
~/pages/projects/constants
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initFilteredSearch
(
FILTERED_SEARCH
.
MERGE_REQUESTS
);
initFilteredSearch
({
page
:
FILTERED_SEARCH
.
MERGE_REQUESTS
,
});
new
IssuableIndex
(
ISSUABLE_INDEX
.
MERGE_REQUEST
);
// eslint-disable-line no-new
new
ShortcutsNavigation
();
// eslint-disable-line no-new
new
UsersSelect
();
// eslint-disable-line no-new
...
...
app/assets/javascripts/pages/search/init_filtered_search.js
View file @
02c8ab92
export
default
(
page
)
=>
{
export
default
(
{
page
,
filteredSearchTokenKeys
,
stateFiltersSelector
}
)
=>
{
const
filteredSearchEnabled
=
gl
.
FilteredSearchManager
&&
document
.
querySelector
(
'
.filtered-search
'
);
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
page
);
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
({
page
,
filteredSearchTokenKeys
,
stateFiltersSelector
,
});
filteredSearchManager
.
setup
();
}
};
app/assets/javascripts/service_desk_issues/filtered_search.js
View file @
02c8ab92
/* eslint-disable class-methods-use-this */
import
FilteredSearchTokenKeys
from
'
~/filtered_search/filtered_search_token_keys
'
;
const
AUTHOR_PARAM_KEY
=
'
author_username
'
;
export
default
class
FilteredSearchServiceDesk
extends
gl
.
FilteredSearchManager
{
constructor
(
supportBotData
)
{
super
(
'
service_desk
'
);
super
({
page
:
'
service_desk
'
,
filteredSearchTokenKeys
:
FilteredSearchTokenKeys
,
});
this
.
supportBotData
=
supportBotData
;
}
...
...
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