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
cf77c91e
Commit
cf77c91e
authored
Feb 21, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use dynamic imports in dispatcher
parent
25e3a51a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
43 deletions
+15
-43
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-31
app/assets/javascripts/pages/admin/conversational_development_index/show/index.js
...ages/admin/conversational_development_index/show/index.js
+2
-2
app/assets/javascripts/pages/admin/impersonation_tokens/index.js
...ets/javascripts/pages/admin/impersonation_tokens/index.js
+2
-2
app/assets/javascripts/pages/ci/lints/create/index.js
app/assets/javascripts/pages/ci/lints/create/index.js
+3
-0
app/assets/javascripts/pages/ci/lints/index.js
app/assets/javascripts/pages/ci/lints/index.js
+0
-3
app/assets/javascripts/pages/ci/lints/show/index.js
app/assets/javascripts/pages/ci/lints/show/index.js
+3
-0
app/assets/javascripts/pages/dashboard/groups/index/index.js
app/assets/javascripts/pages/dashboard/groups/index/index.js
+1
-1
app/assets/javascripts/pages/import/fogbugz/new_user_map/index.js
...ts/javascripts/pages/import/fogbugz/new_user_map/index.js
+2
-2
app/assets/javascripts/pages/profiles/personal_access_tokens/index.js
...avascripts/pages/profiles/personal_access_tokens/index.js
+2
-2
No files found.
app/assets/javascripts/dispatcher.js
View file @
cf77c91e
...
...
@@ -76,37 +76,6 @@ var Dispatcher;
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'
ci:lints:create
'
:
case
'
ci:lints:show
'
:
import
(
'
./pages/ci/lints
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:conversational_development_index:show
'
:
import
(
'
./pages/admin/conversational_development_index/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
import:fogbugz:new_user_map
'
:
import
(
'
./pages/import/fogbugz/new_user_map
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
profiles:personal_access_tokens:index
'
:
import
(
'
./pages/profiles/personal_access_tokens
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:impersonation_tokens:index
'
:
import
(
'
./pages/admin/impersonation_tokens
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
dashboard:groups:index
'
:
import
(
'
./pages/dashboard/groups/index
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
}
switch
(
path
[
0
])
{
case
'
admin
'
:
...
...
app/assets/javascripts/pages/admin/conversational_development_index/show/index.js
View file @
cf77c91e
import
UserCallout
from
'
../../../..
/user_callout
'
;
import
UserCallout
from
'
~
/user_callout
'
;
export
default
()
=>
new
UserCallout
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
UserCallout
()
);
app/assets/javascripts/pages/admin/impersonation_tokens/index.js
View file @
cf77c91e
import
DueDateSelectors
from
'
../../..
/due_date_select
'
;
import
DueDateSelectors
from
'
~
/due_date_select
'
;
export
default
()
=>
new
DueDateSelectors
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
DueDateSelectors
()
);
app/assets/javascripts/pages/ci/lints/create/index.js
0 → 100644
View file @
cf77c91e
import
CILintEditor
from
'
../ci_lint_editor
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
CILintEditor
());
app/assets/javascripts/pages/ci/lints/index.js
deleted
100644 → 0
View file @
25e3a51a
import
CILintEditor
from
'
./ci_lint_editor
'
;
export
default
()
=>
new
CILintEditor
();
app/assets/javascripts/pages/ci/lints/show/index.js
0 → 100644
View file @
cf77c91e
import
CILintEditor
from
'
../ci_lint_editor
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
CILintEditor
());
app/assets/javascripts/pages/dashboard/groups/index/index.js
View file @
cf77c91e
import
initGroupsList
from
'
~/groups
'
;
export
default
initGroupsList
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initGroupsList
)
;
app/assets/javascripts/pages/import/fogbugz/new_user_map/index.js
View file @
cf77c91e
import
UsersSelect
from
'
../../../..
/users_select
'
;
import
UsersSelect
from
'
~
/users_select
'
;
export
default
()
=>
new
UsersSelect
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
UsersSelect
()
);
app/assets/javascripts/pages/profiles/personal_access_tokens/index.js
View file @
cf77c91e
import
DueDateSelectors
from
'
../../..
/due_date_select
'
;
import
DueDateSelectors
from
'
~
/due_date_select
'
;
export
default
()
=>
new
DueDateSelectors
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
DueDateSelectors
()
);
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