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
e5b9b8c3
Commit
e5b9b8c3
authored
Feb 22, 2018
by
Clement Ho
Committed by
Jacob Schatz
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ee dynamic imports
parent
2c258dbe
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
30 additions
and
137 deletions
+30
-137
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-108
ee/app/assets/javascripts/pages/admin/audit_logs/index.js
ee/app/assets/javascripts/pages/admin/audit_logs/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/emails/show/index.js
ee/app/assets/javascripts/pages/admin/emails/show/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/geo_nodes/create/index.js
.../assets/javascripts/pages/admin/geo_nodes/create/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/geo_nodes/edit/index.js
...pp/assets/javascripts/pages/admin/geo_nodes/edit/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/geo_nodes/new/index.js
ee/app/assets/javascripts/pages/admin/geo_nodes/new/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/geo_nodes/update/index.js
.../assets/javascripts/pages/admin/geo_nodes/update/index.js
+1
-1
ee/app/assets/javascripts/pages/admin/groups/edit/index.js
ee/app/assets/javascripts/pages/admin/groups/edit/index.js
+2
-2
ee/app/assets/javascripts/pages/admin/licenses/new/index.js
ee/app/assets/javascripts/pages/admin/licenses/new/index.js
+2
-2
ee/app/assets/javascripts/pages/groups/analytics/show/index.js
...p/assets/javascripts/pages/groups/analytics/show/index.js
+2
-2
ee/app/assets/javascripts/pages/groups/epics/index/index.js
ee/app/assets/javascripts/pages/groups/epics/index/index.js
+2
-2
ee/app/assets/javascripts/pages/groups/epics/show/index.js
ee/app/assets/javascripts/pages/groups/epics/show/index.js
+1
-1
ee/app/assets/javascripts/pages/groups/ldap_group_links/index.js
...assets/javascripts/pages/groups/ldap_group_links/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/blame/show/index.js
ee/app/assets/javascripts/pages/projects/blame/show/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/blob/show/index.js
ee/app/assets/javascripts/pages/projects/blob/show/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/merge_requests/creations/diffs/index.js
...ts/pages/projects/merge_requests/creations/diffs/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
...ipts/pages/projects/merge_requests/creations/new/index.js
+2
-2
ee/app/assets/javascripts/pages/projects/merge_requests/edit/index.js
...s/javascripts/pages/projects/merge_requests/edit/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/milestones/show/index.js
...ssets/javascripts/pages/projects/milestones/show/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/settings/repository/show/index.js
...ascripts/pages/projects/settings/repository/show/index.js
+2
-2
ee/app/assets/javascripts/pages/projects/show/index.js
ee/app/assets/javascripts/pages/projects/show/index.js
+1
-1
ee/app/assets/javascripts/pages/projects/tree/show/index.js
ee/app/assets/javascripts/pages/projects/tree/show/index.js
+2
-2
ee/app/assets/javascripts/pages/search/show/index.js
ee/app/assets/javascripts/pages/search/show/index.js
+1
-1
No files found.
app/assets/javascripts/dispatcher.js
View file @
e5b9b8c3
...
...
@@ -57,6 +57,7 @@ var Dispatcher;
case
'
projects:commits:show
'
:
case
'
projects:show
'
:
case
'
groups:show
'
:
case
'
projects:tree:show
'
:
case
'
projects:find_file:show
'
:
case
'
projects:blob:show
'
:
case
'
projects:blame:show
'
:
...
...
@@ -65,12 +66,6 @@ var Dispatcher;
case
'
projects:artifacts:file
'
:
shortcut_handler
=
true
;
break
;
case
'
projects:tree:show
'
:
import
(
/* webpackChunkName: "ee_projects_edit" */
'
ee/pages/projects/tree/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
}
switch
(
path
[
0
])
{
case
'
admin
'
:
...
...
@@ -155,108 +150,6 @@ var Dispatcher;
new
Shortcuts
();
}
// EE-only route-based code
switch
(
page
)
{
case
'
groups:epics:show
'
:
import
(
/* webpackChunkName: "ee_epics_show" */
'
ee/pages/groups/epics/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:epics:index
'
:
import
(
/* webpackChunkName: "ee_epics_index" */
'
ee/pages/groups/epics/index
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:milestones:show
'
:
import
(
/* webpackChunkName: "ee_projects_milestones_show" */
'
ee/pages/projects/milestones/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
search:show
'
:
import
(
/* webpackChunkName: "ee_search_show" */
'
ee/pages/search/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:merge_requests:creations:new
'
:
import
(
/* webpackChunkName: "ee_merge_requests_creations_new" */
'
ee/pages/projects/merge_requests/creations/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:merge_requests:creations:diffs
'
:
import
(
/* webpackChunkName: "ee_merge_requests_creations_diffs" */
'
ee/pages/projects/merge_requests/creations/diffs
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:merge_requests:edit
'
:
import
(
/* webpackChunkName: "ee_merge_requests_edit" */
'
ee/pages/projects/merge_requests/edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:show
'
:
import
(
/* webpackChunkName: "ee_projects_show" */
'
ee/pages/projects/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:blob:show
'
:
import
(
/* webpackChunkName: "ee_projects_blob_show" */
'
ee/pages/projects/blob/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:blame:show
'
:
import
(
/* webpackChunkName: "ee_projects_blame_show" */
'
ee/pages/projects/blame/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:emails:show
'
:
import
(
/* webpackChunkName: "ee_admin_emails_show" */
'
ee/pages/admin/emails/show
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'
admin:audit_logs:index
'
:
import
(
/* webpackChunkName: "ee_audit_logs" */
'
ee/pages/admin/audit_logs
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'
projects:settings:repository:show
'
:
import
(
/* webpackChunkName: "ee_projects_settings_repository_show" */
'
ee/pages/projects/settings/repository/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:licenses:new
'
:
import
(
/* webpackChunkName: "admin_licenses" */
'
ee/pages/admin/licenses/new
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'
groups:analytics:show
'
:
import
(
/* webpackChunkName: "ee_groups_analytics_show" */
'
ee/pages/groups/analytics/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:ldap_group_links:index
'
:
import
(
/* webpackChunkName: "ee_groups_ldap_links" */
'
ee/pages/groups/ldap_group_links
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:groups:edit
'
:
import
(
/* webpackChunkName: "ee_admin_groups_edit" */
'
ee/pages/admin/groups/edit
'
).
then
(
m
=>
m
.
default
()).
catch
(
fail
);
break
;
case
'
admin:geo_nodes:new
'
:
import
(
/* webpackChunkName: 'ee_admin_geo_nodes_new' */
'
ee/pages/admin/geo_nodes/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:geo_nodes:create
'
:
import
(
/* webpackChunkName: 'ee_admin_geo_nodes_create' */
'
ee/pages/admin/geo_nodes/create
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:geo_nodes:edit
'
:
import
(
/* webpackChunkName: 'ee_admin_geo_nodes_edit' */
'
ee/pages/admin/geo_nodes/edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
admin:geo_nodes:update
'
:
import
(
/* webpackChunkName: 'ee_admin_geo_nodes_update' */
'
ee/pages/admin/geo_nodes/update
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
}
if
(
document
.
querySelector
(
'
#peek
'
))
{
import
(
'
./performance_bar
'
)
.
then
(
m
=>
new
m
.
default
({
container
:
'
#peek
'
}))
// eslint-disable-line new-cap
...
...
ee/app/assets/javascripts/pages/admin/audit_logs/index.js
View file @
e5b9b8c3
import
AuditLogs
from
'
./audit_logs
'
;
export
default
()
=>
new
AuditLogs
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
AuditLogs
()
);
ee/app/assets/javascripts/pages/admin/emails/show/index.js
View file @
e5b9b8c3
import
AdminEmailSelect
from
'
./admin_email_select
'
;
export
default
()
=>
new
AdminEmailSelect
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
AdminEmailSelect
()
);
ee/app/assets/javascripts/pages/admin/geo_nodes/create/index.js
View file @
e5b9b8c3
import
initForm
from
'
../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/admin/geo_nodes/edit/index.js
View file @
e5b9b8c3
import
initForm
from
'
../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/admin/geo_nodes/new/index.js
View file @
e5b9b8c3
import
initForm
from
'
../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/admin/geo_nodes/update/index.js
View file @
e5b9b8c3
import
initForm
from
'
../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/admin/groups/edit/index.js
View file @
e5b9b8c3
import
initLDAPGroupsSelect
from
'
../../../..
/ldap_groups_select
'
;
import
initLDAPGroupsSelect
from
'
ee
/ldap_groups_select
'
;
export
default
()
=>
initLDAPGroupsSelect
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initLDAPGroupsSelect
);
ee/app/assets/javascripts/pages/admin/licenses/new/index.js
View file @
e5b9b8c3
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
$licenseFile
=
$
(
'
.license-file
'
);
const
$licenseKey
=
$
(
'
.license-key
'
);
...
...
@@ -11,4 +11,4 @@ export default () => {
$
(
'
input[name="license_type"]
'
).
on
(
'
change
'
,
showLicenseType
);
showLicenseType
();
};
}
)
;
ee/app/assets/javascripts/pages/groups/analytics/show/index.js
View file @
e5b9b8c3
import
Chart
from
'
chart.js
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
dataEl
=
document
.
getElementById
(
'
js-analytics-data
'
);
if
(
dataEl
)
{
const
data
=
JSON
.
parse
(
dataEl
.
innerHTML
);
...
...
@@ -33,4 +33,4 @@ export default () => {
$
(
'
#event-stats
'
).
tablesorter
();
}
};
}
)
;
ee/app/assets/javascripts/pages/groups/epics/index/index.js
View file @
e5b9b8c3
import
FilteredSearchManager
from
'
~/filtered_search/filtered_search_manager
'
;
import
FilteredSearchTokenKeysEpics
from
'
ee/filtered_search/filtered_search_token_keys_epics
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
filteredSearchEnabled
=
FilteredSearchManager
&&
document
.
querySelector
(
'
.filtered-search
'
);
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
FilteredSearchManager
({
...
...
@@ -11,4 +11,4 @@ export default () => {
});
filteredSearchManager
.
setup
();
}
};
}
)
;
ee/app/assets/javascripts/pages/groups/epics/show/index.js
View file @
e5b9b8c3
import
ZenMode
from
'
~/zen_mode
'
;
export
default
()
=>
new
ZenMode
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
ZenMode
()
);
ee/app/assets/javascripts/pages/groups/ldap_group_links/index.js
View file @
e5b9b8c3
import
initLDAPGroupsSelect
from
'
ee/ldap_groups_select
'
;
export
default
initLDAPGroupsSelect
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initLDAPGroupsSelect
)
;
ee/app/assets/javascripts/pages/projects/blame/show/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/blame/show/index
'
;
import
initBlob
from
'
../../shared/init_blob
'
;
export
default
()
=>
initBlob
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initBlob
);
ee/app/assets/javascripts/pages/projects/blob/show/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/blob/show/index
'
;
import
initBlob
from
'
../../shared/init_blob
'
;
export
default
initBlob
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initBlob
)
;
ee/app/assets/javascripts/pages/projects/merge_requests/creations/diffs/index.js
View file @
e5b9b8c3
import
initForm
from
'
../../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
View file @
e5b9b8c3
...
...
@@ -2,7 +2,7 @@ import '~/pages/projects/merge_requests/creations/new/index';
import
UserCallout
from
'
~/user_callout
'
;
import
initForm
from
'
../../shared/init_form
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initForm
();
return
new
UserCallout
();
};
}
)
;
ee/app/assets/javascripts/pages/projects/merge_requests/edit/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/merge_requests/edit/index
'
;
import
initForm
from
'
../shared/init_form
'
;
export
default
()
=>
initForm
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initForm
);
ee/app/assets/javascripts/pages/projects/milestones/show/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/milestones/show/index
'
;
import
UserCallout
from
'
~/user_callout
'
;
export
default
()
=>
new
UserCallout
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
UserCallout
()
);
ee/app/assets/javascripts/pages/projects/settings/repository/show/index.js
View file @
e5b9b8c3
...
...
@@ -2,7 +2,7 @@ import '~/pages/projects/settings/repository/show/index';
import
UsersSelect
from
'
~/users_select
'
;
import
UserCallout
from
'
~/user_callout
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
UsersSelect
();
// eslint-disable-line no-new
new
UserCallout
();
// eslint-disable-line no-new
};
}
)
;
ee/app/assets/javascripts/pages/projects/show/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/show/index
'
;
import
initGeoInfoModal
from
'
../../../init_geo_info_modal
'
;
export
default
()
=>
initGeoInfoModal
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initGeoInfoModal
);
ee/app/assets/javascripts/pages/projects/tree/show/index.js
View file @
e5b9b8c3
import
'
~/pages/projects/tree/show/index
'
;
import
initPathLocks
from
'
ee/path_locks
'
;
export
default
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
if
(
document
.
querySelector
(
'
.js-tree-content
'
).
dataset
.
pathLocksAvailable
===
'
true
'
)
{
initPathLocks
(
document
.
querySelector
(
'
.js-tree-content
'
).
dataset
.
pathLocksToggle
,
document
.
querySelector
(
'
.js-tree-content
'
).
dataset
.
pathLocksPath
,
);
}
};
}
)
;
ee/app/assets/javascripts/pages/search/show/index.js
View file @
e5b9b8c3
import
'
~/pages/search/show/index
'
;
import
UserCallout
from
'
~/user_callout
'
;
export
default
()
=>
new
UserCallout
(
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
UserCallout
()
);
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