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
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
dispatcher.js
app/assets/javascripts/dispatcher.js
+7
-4
index.js
app/assets/javascripts/pages/groups/milestones/show/index.js
+3
-0
init_milestones_show.js
app/assets/javascripts/pages/init_milestones_show.js
+9
-0
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 */
import
Milestone
from
'./milestone'
;
import
notificationsDropdown
from
'./notifications_dropdown'
;
import
LineHighlighter
from
'./line_highlighter'
;
import
MergeRequest
from
'./merge_request'
;
import
Sidebar
from
'./right_sidebar'
;
import
Flash
from
'./flash'
;
import
BlobViewer
from
'./blob/viewer/index'
;
import
GfmAutoComplete
from
'./gfm_auto_complete'
;
...
...
@@ -92,9 +90,14 @@ import SearchAutocomplete from './search_autocomplete';
.
catch
(
fail
);
break
;
case
'projects:milestones:show'
:
import
(
'./pages/projects/milestones/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
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 @
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