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
ff0bb470
Commit
ff0bb470
authored
Jan 23, 2018
by
Clement Ho
Committed by
Jacob Schatz
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher milestones show path (EE)
parent
95a6721e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+7
-4
app/assets/javascripts/pages/groups/milestones/show/index.js
app/assets/javascripts/pages/groups/milestones/show/index.js
+3
-0
app/assets/javascripts/pages/init_milestones_show.js
app/assets/javascripts/pages/init_milestones_show.js
+9
-0
app/assets/javascripts/pages/projects/milestones/show/index.js
...ssets/javascripts/pages/projects/milestones/show/index.js
+3
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
ff0bb470
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, wrap-iife, no-shadow, consistent-return, one-var, one-var-declaration-per-line, camelcase, default-case, no-new, quotes, no-duplicate-case, no-case-declarations, no-fallthrough, max-len */
import
Milestone
from
'
./milestone
'
;
import
notificationsDropdown
from
'
./notifications_dropdown
'
;
import
LineHighlighter
from
'
./line_highlighter
'
;
import
MergeRequest
from
'
./merge_request
'
;
import
initCompareAutocomplete
from
'
./compare_autocomplete
'
;
import
Sidebar
from
'
./right_sidebar
'
;
import
Flash
from
'
./flash
'
;
import
BlobViewer
from
'
./blob/viewer/index
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
...
...
@@ -115,10 +113,15 @@ import initLDAPGroupsSelect from 'ee/ldap_groups_select'; // eslint-disable-line
.
catch
(
fail
);
break
;
case
'
projects:milestones:show
'
:
import
(
'
./pages/projects/milestones/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
new
UserCallout
();
break
;
case
'
groups:milestones:show
'
:
new
Milestone
();
new
Sidebar
();
import
(
'
./pages/groups/milestones/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
dashboard:milestones:show
'
:
import
(
'
./pages/dashboard/milestones/show
'
)
...
...
app/assets/javascripts/pages/groups/milestones/show/index.js
0 → 100644
View file @
ff0bb470
import
initMilestonesShow
from
'
~/pages/init_milestones_show
'
;
export
default
initMilestonesShow
;
app/assets/javascripts/pages/init_milestones_show.js
0 → 100644
View file @
ff0bb470
/* eslint-disable no-new */
import
Milestone
from
'
~/milestone
'
;
import
Sidebar
from
'
~/right_sidebar
'
;
export
default
()
=>
{
new
Milestone
();
new
Sidebar
();
};
app/assets/javascripts/pages/projects/milestones/show/index.js
0 → 100644
View file @
ff0bb470
import
initMilestonesShow
from
'
~/pages/init_milestones_show
'
;
export
default
initMilestonesShow
;
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