BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
63553bb1
Commit
63553bb1
authored
Jan 10, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'explore-dispatcher-refactor' into 'master'
Refactors the dispatcher for `explore:*`. See merge request gitlab-org/gitlab-ce!16296
parents
fe7443ef
efb0ed16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
+28
-15
dispatcher.js
app/assets/javascripts/dispatcher.js
+11
-15
index.js
app/assets/javascripts/pages/explore/groups/index.js
+14
-0
index.js
app/assets/javascripts/pages/explore/projects/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
63553bb1
...
...
@@ -36,12 +36,10 @@ import BindInOut from './behaviors/bind_in_out';
import
SecretValues
from
'./behaviors/secret_values'
;
import
DeleteModal
from
'./branches/branches_delete_modal'
;
import
Group
from
'./group'
;
import
GroupsList
from
'./groups_list'
;
import
ProjectsList
from
'./projects_list'
;
import
setupProjectEdit
from
'./project_edit'
;
import
MiniPipelineGraph
from
'./mini_pipeline_graph_dropdown'
;
import
BlobLinePermalinkUpdater
from
'./blob/blob_line_permalink_updater'
;
import
Landing
from
'./landing'
;
import
BlobForkSuggestion
from
'./blob/blob_fork_suggestion'
;
import
UserCallout
from
'./user_callout'
;
import
ShortcutsWiki
from
'./shortcuts_wiki'
;
...
...
@@ -231,19 +229,17 @@ import Activities from './activities';
case
'explore:projects:index'
:
case
'explore:projects:trending'
:
case
'explore:projects:starred'
:
import
(
'./pages/explore/projects'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'admin:projects:index'
:
new
ProjectsList
();
break
;
case
'explore:groups:index'
:
new
GroupsList
();
const
landingElement
=
document
.
querySelector
(
'.js-explore-groups-landing'
);
if
(
!
landingElement
)
break
;
const
exploreGroupsLanding
=
new
Landing
(
landingElement
,
landingElement
.
querySelector
(
'.dismiss-button'
),
'explore_groups_landing_dismissed'
,
);
exploreGroupsLanding
.
toggle
();
import
(
'./pages/explore/groups'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:milestones:new'
:
case
'projects:milestones:edit'
:
...
...
@@ -514,8 +510,8 @@ import Activities from './activities';
break
;
case
'projects:forks:new'
:
import
(
/* webpackChunkName: 'project_fork' */
'./project_fork'
)
.
then
(
fork
=>
fork
.
default
()
)
.
catch
(
()
=>
{}
);
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:artifacts:browse'
:
import
(
'./pages/projects/artifacts/browse'
)
...
...
@@ -652,8 +648,8 @@ import Activities from './activities';
shortcut_handler
=
new
ShortcutsNavigation
();
new
ProjectNew
();
import
(
/* webpackChunkName: 'project_permissions' */
'./projects/permissions'
)
.
then
(
permissions
=>
permissions
.
default
()
)
.
catch
(
()
=>
{}
);
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'new'
:
new
ProjectNew
();
...
...
app/assets/javascripts/pages/explore/groups/index.js
0 → 100644
View file @
63553bb1
import
GroupsList
from
'~/groups_list'
;
import
Landing
from
'~/landing'
;
export
default
function
()
{
new
GroupsList
();
// eslint-disable-line no-new
const
landingElement
=
document
.
querySelector
(
'.js-explore-groups-landing'
);
if
(
!
landingElement
)
return
;
const
exploreGroupsLanding
=
new
Landing
(
landingElement
,
landingElement
.
querySelector
(
'.dismiss-button'
),
'explore_groups_landing_dismissed'
,
);
exploreGroupsLanding
.
toggle
();
}
app/assets/javascripts/pages/explore/projects/index.js
0 → 100644
View file @
63553bb1
import
ProjectsList
from
'~/projects_list'
;
export
default
()
=>
new
ProjectsList
();
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