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
cedbf9c8
Commit
cedbf9c8
authored
Jan 15, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dispatcher-projects-efi' into 'master'
dynamic imports for projects:e/f/i See merge request gitlab-org/gitlab-ce!16417
parents
cc18608d
5a062dfa
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
114 additions
and
37 deletions
+114
-37
dispatcher.js
app/assets/javascripts/dispatcher.js
+27
-37
index.js
app/assets/javascripts/pages/projects/edit/index.js
+8
-0
index.js
...assets/javascripts/pages/projects/find_file/show/index.js
+12
-0
index.js
app/assets/javascripts/pages/projects/forks/new/index.js
+5
-0
index.js
app/assets/javascripts/pages/projects/imports/show/index.js
+5
-0
index.js
app/assets/javascripts/pages/projects/issues/edit/index.js
+5
-0
form.js
app/assets/javascripts/pages/projects/issues/form.js
+16
-0
index.js
app/assets/javascripts/pages/projects/issues/index/index.js
+18
-0
index.js
app/assets/javascripts/pages/projects/issues/new/index.js
+5
-0
index.js
app/assets/javascripts/pages/projects/issues/show/index.js
+13
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
cedbf9c8
/* 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
{
s__
}
from
'./locale'
;
import
projectSelect
from
'./project_select'
;
import
IssuableIndex
from
'./issuable_index'
;
import
Milestone
from
'./milestone'
;
import
IssuableForm
from
'./issuable_form'
;
import
LabelsSelect
from
'./labels_select'
;
...
...
@@ -17,21 +16,17 @@ import projectAvatar from './project_avatar';
import
MergeRequest
from
'./merge_request'
;
import
Compare
from
'./compare'
;
import
initCompareAutocomplete
from
'./compare_autocomplete'
;
import
ProjectFindFile
from
'./project_find_file'
;
import
ProjectNew
from
'./project_new'
;
import
projectImport
from
'./project_import'
;
import
Labels
from
'./labels'
;
import
LabelManager
from
'./label_manager'
;
import
Sidebar
from
'./right_sidebar'
;
import
IssuableTemplateSelectors
from
'./templates/issuable_template_selectors'
;
import
Flash
from
'./flash'
;
import
CommitsList
from
'./commits'
;
import
Issue
from
'./issue'
;
import
BindInOut
from
'./behaviors/bind_in_out'
;
import
SecretValues
from
'./behaviors/secret_values'
;
import
Group
from
'./group'
;
import
ProjectsList
from
'./projects_list'
;
import
setupProjectEdit
from
'./project_edit'
;
import
MiniPipelineGraph
from
'./mini_pipeline_graph_dropdown'
;
import
UserCallout
from
'./user_callout'
;
import
ShortcutsWiki
from
'./shortcuts_wiki'
;
...
...
@@ -57,7 +52,6 @@ import GlFieldErrors from './gl_field_errors';
import
GLForm
from
'./gl_form'
;
import
Shortcuts
from
'./shortcuts'
;
import
ShortcutsNavigation
from
'./shortcuts_navigation'
;
import
ShortcutsFindFile
from
'./shortcuts_find_file'
;
import
ShortcutsIssuable
from
'./shortcuts_issuable'
;
import
U2FAuthenticate
from
'./u2f/authenticate'
;
import
Members
from
'./members'
;
...
...
@@ -127,21 +121,16 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
shortcut_handler
=
true
;
break
;
case
'projects:issues:index'
:
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
page
===
'projects:issues:index'
?
'issues'
:
'merge_requests'
);
filteredSearchManager
.
setup
();
}
const
pagePrefix
=
page
===
'projects:merge_requests:index'
?
'merge_request_'
:
'issue_'
;
new
IssuableIndex
(
pagePrefix
);
shortcut_handler
=
new
ShortcutsNavigation
();
new
UsersSelect
();
import
(
'./pages/projects/issues/index'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'projects:issues:show'
:
new
Issue
();
shortcut_handler
=
new
ShortcutsIssuable
();
new
ZenMode
(
);
initIssuableSidebar
()
;
import
(
'./pages/projects/issues/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'dashboard:milestones:index'
:
import
(
'./pages/dashboard/milestones/index'
)
...
...
@@ -232,13 +221,16 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
.
catch
(
fail
);
break
;
case
'projects:issues:new'
:
import
(
'./pages/projects/issues/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'projects:issues:edit'
:
shortcut_handler
=
new
ShortcutsNavigation
();
new
GLForm
(
$
(
'.issue-form'
),
true
);
new
IssuableForm
(
$
(
'.issue-form'
));
new
LabelsSelect
();
new
MilestoneSelect
();
new
IssuableTemplateSelectors
();
import
(
'./pages/projects/issues/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'projects:merge_requests:creations:new'
:
const
mrNewCompareNode
=
document
.
querySelector
(
'.js-merge-request-new-compare'
);
...
...
@@ -370,12 +362,14 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
});
break
;
case
'projects:edit'
:
setupProjectEdit
();
// Initialize expandable settings panels
initSettingsPanels
(
);
import
(
'./pages/projects/edit'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:imports:show'
:
projectImport
();
import
(
'./pages/projects/imports/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:pipelines:new'
:
case
'projects:pipelines:create'
:
...
...
@@ -444,13 +438,9 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
});
break
;
case
'projects:find_file:show'
:
const
findElement
=
document
.
querySelector
(
'.js-file-finder'
);
const
projectFindFile
=
new
ProjectFindFile
(
$
(
".file-finder-holder"
),
{
url
:
findElement
.
dataset
.
fileFindUrl
,
treeUrl
:
findElement
.
dataset
.
findTreeUrl
,
blobUrlTemplate
:
findElement
.
dataset
.
blobUrlTemplate
,
});
new
ShortcutsFindFile
(
projectFindFile
);
import
(
'./pages/projects/find_file/show'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'projects:blob:show'
:
...
...
@@ -504,7 +494,7 @@ import { fetchCommitMergeRequests } from './commit_merge_requests';
shortcut_handler
=
true
;
break
;
case
'projects:forks:new'
:
import
(
/* webpackChunkName: 'project_fork' */
'./project_fork
'
)
import
(
'./pages/projects/forks/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
...
...
app/assets/javascripts/pages/projects/edit/index.js
0 → 100644
View file @
cedbf9c8
import
initSettingsPanels
from
'~/settings_panels'
;
import
setupProjectEdit
from
'~/project_edit'
;
export
default
()
=>
{
setupProjectEdit
();
// Initialize expandable settings panels
initSettingsPanels
();
};
app/assets/javascripts/pages/projects/find_file/show/index.js
0 → 100644
View file @
cedbf9c8
import
ProjectFindFile
from
'~/project_find_file'
;
import
ShortcutsFindFile
from
'~/shortcuts_find_file'
;
export
default
()
=>
{
const
findElement
=
document
.
querySelector
(
'.js-file-finder'
);
const
projectFindFile
=
new
ProjectFindFile
(
$
(
'.file-finder-holder'
),
{
url
:
findElement
.
dataset
.
fileFindUrl
,
treeUrl
:
findElement
.
dataset
.
findTreeUrl
,
blobUrlTemplate
:
findElement
.
dataset
.
blobUrlTemplate
,
});
new
ShortcutsFindFile
(
projectFindFile
);
// eslint-disable-line no-new
};
app/assets/javascripts/pages/projects/forks/new/index.js
0 → 100644
View file @
cedbf9c8
import
ProjectFork
from
'~/project_fork'
;
export
default
()
=>
{
new
ProjectFork
();
// eslint-disable-line no-new
};
app/assets/javascripts/pages/projects/imports/show/index.js
0 → 100644
View file @
cedbf9c8
import
ProjectImport
from
'~/project_import'
;
export
default
()
=>
{
new
ProjectImport
();
// eslint-disable-line no-new
};
app/assets/javascripts/pages/projects/issues/edit/index.js
0 → 100644
View file @
cedbf9c8
import
initForm
from
'../form'
;
export
default
()
=>
{
initForm
();
};
app/assets/javascripts/pages/projects/issues/form.js
0 → 100644
View file @
cedbf9c8
/* eslint-disable no-new */
import
GLForm
from
'~/gl_form'
;
import
IssuableForm
from
'~/issuable_form'
;
import
LabelsSelect
from
'~/labels_select'
;
import
MilestoneSelect
from
'~/milestone_select'
;
import
ShortcutsNavigation
from
'~/shortcuts_navigation'
;
import
IssuableTemplateSelectors
from
'~/templates/issuable_template_selectors'
;
export
default
()
=>
{
new
ShortcutsNavigation
();
new
GLForm
(
$
(
'.issue-form'
),
true
);
new
IssuableForm
(
$
(
'.issue-form'
));
new
LabelsSelect
();
new
MilestoneSelect
();
new
IssuableTemplateSelectors
();
};
app/assets/javascripts/pages/projects/issues/index/index.js
0 → 100644
View file @
cedbf9c8
/* eslint-disable no-new */
import
IssuableIndex
from
'~/issuable_index'
;
import
ShortcutsNavigation
from
'~/shortcuts_navigation'
;
import
UsersSelect
from
'~/users_select'
;
export
default
()
=>
{
const
filteredSearchEnabled
=
gl
.
FilteredSearchManager
&&
document
.
querySelector
(
'.filtered-search'
);
if
(
filteredSearchEnabled
)
{
const
filteredSearchManager
=
new
gl
.
FilteredSearchManager
(
'issues'
);
filteredSearchManager
.
setup
();
}
new
IssuableIndex
(
'issue_'
);
new
ShortcutsNavigation
();
new
UsersSelect
();
};
app/assets/javascripts/pages/projects/issues/new/index.js
0 → 100644
View file @
cedbf9c8
import
initForm
from
'../form'
;
export
default
()
=>
{
initForm
();
};
app/assets/javascripts/pages/projects/issues/show/index.js
0 → 100644
View file @
cedbf9c8
/* eslint-disable no-new */
import
initIssuableSidebar
from
'~/init_issuable_sidebar'
;
import
Issue
from
'~/issue'
;
import
ShortcutsIssuable
from
'~/shortcuts_issuable'
;
import
ZenMode
from
'~/zen_mode'
;
export
default
()
=>
{
new
Issue
();
new
ShortcutsIssuable
();
new
ZenMode
();
initIssuableSidebar
();
};
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