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
57749eca
Commit
57749eca
authored
Jan 22, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor dispatcher milestones show path
parent
10a246b6
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 @
57749eca
/* 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 */
/* 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
notificationsDropdown
from
'
./notifications_dropdown
'
;
import
LineHighlighter
from
'
./line_highlighter
'
;
import
LineHighlighter
from
'
./line_highlighter
'
;
import
MergeRequest
from
'
./merge_request
'
;
import
MergeRequest
from
'
./merge_request
'
;
import
Sidebar
from
'
./right_sidebar
'
;
import
Flash
from
'
./flash
'
;
import
Flash
from
'
./flash
'
;
import
BlobViewer
from
'
./blob/viewer/index
'
;
import
BlobViewer
from
'
./blob/viewer/index
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
import
GfmAutoComplete
from
'
./gfm_auto_complete
'
;
...
@@ -92,9 +90,14 @@ import SearchAutocomplete from './search_autocomplete';
...
@@ -92,9 +90,14 @@ import SearchAutocomplete from './search_autocomplete';
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
projects:milestones:show
'
:
case
'
projects:milestones:show
'
:
import
(
'
./pages/projects/milestones/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:milestones:show
'
:
case
'
groups:milestones:show
'
:
new
Milestone
();
import
(
'
./pages/groups/milestones/show
'
)
new
Sidebar
();
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
break
;
case
'
dashboard:milestones:show
'
:
case
'
dashboard:milestones:show
'
:
import
(
'
./pages/dashboard/milestones/show
'
)
import
(
'
./pages/dashboard/milestones/show
'
)
...
...
app/assets/javascripts/pages/groups/milestones/show/index.js
0 → 100644
View file @
57749eca
import
initMilestonesShow
from
'
~/pages/init_milestones_show
'
;
export
default
initMilestonesShow
;
app/assets/javascripts/pages/init_milestones_show.js
0 → 100644
View file @
57749eca
/* 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 @
57749eca
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