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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
ea71340f
Commit
ea71340f
authored
Jun 07, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore code to make explore groups work
parent
f5dfd988
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+3
-0
app/assets/javascripts/groups_list.js
app/assets/javascripts/groups_list.js
+18
-0
app/views/dashboard/groups/_groups.html.haml
app/views/dashboard/groups/_groups.html.haml
+1
-1
config/webpack.config.js
config/webpack.config.js
+1
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
ea71340f
...
...
@@ -38,6 +38,7 @@ import BindInOut from './behaviors/bind_in_out';
import
DeleteModal
from
'
./branches/branches_delete_modal
'
;
import
Group
from
'
./group
'
;
import
GroupName
from
'
./group_name
'
;
import
GroupsList
from
'
./groups_list
'
;
import
ProjectsList
from
'
./projects_list
'
;
import
setupProjectEdit
from
'
./project_edit
'
;
import
MiniPipelineGraph
from
'
./mini_pipeline_graph_dropdown
'
;
...
...
@@ -160,6 +161,8 @@ import ShortcutsBlob from './shortcuts_blob';
new
ProjectsList
();
break
;
case
'
explore:groups:index
'
:
new
GroupsList
();
const
landingElement
=
document
.
querySelector
(
'
.js-explore-groups-landing
'
);
if
(
!
landingElement
)
break
;
const
exploreGroupsLanding
=
new
Landing
(
...
...
app/assets/javascripts/groups_list.js
0 → 100644
View file @
ea71340f
import
FilterableList
from
'
./filterable_list
'
;
/**
* Makes search request for groups when user types a value in the search input.
* Updates the html content of the page with the received one.
*/
export
default
class
GroupsList
{
constructor
()
{
const
form
=
document
.
querySelector
(
'
form#group-filter-form
'
);
const
filter
=
document
.
querySelector
(
'
.js-groups-list-filter
'
);
const
holder
=
document
.
querySelector
(
'
.js-groups-list-holder
'
);
if
(
form
&&
filter
&&
holder
)
{
const
list
=
new
FilterableList
(
form
,
filter
,
holder
);
list
.
initSearch
();
}
}
}
app/views/dashboard/groups/_groups.html.haml
View file @
ea71340f
...
...
@@ -5,5 +5,5 @@
%template
{
'v-if'
=>
'!isLoading && isEmpty'
}
%div
{
'v-cloak'
=>
true
}
=
render
'empty_state'
%template
{
'v-else-if'
=>
'!isLoading && !isEmpty'
}
%template
{
'v-else-if'
=>
'!isLoading && !isEmpty'
}
%groups-component
{
':groups'
=>
'state.groups'
,
':page-info'
=>
'state.pageInfo'
}
config/webpack.config.js
View file @
ea71340f
...
...
@@ -40,6 +40,7 @@ var config = {
graphs
:
'
./graphs/graphs_bundle.js
'
,
group
:
'
./group.js
'
,
groups
:
'
./groups/index.js
'
,
groups_list
:
'
./groups_list.js
'
,
issue_show
:
'
./issue_show/index.js
'
,
locale
:
'
./locale/index.js
'
,
main
:
'
./main.js
'
,
...
...
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