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
48e638f6
Commit
48e638f6
authored
Jan 11, 2018
by
Constance Okoghenun
Committed by
Phil Hughes
Jan 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored project:n* imports in dispatcher.js
parent
0668f54b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
20 deletions
+42
-20
dispatcher.js
app/assets/javascripts/dispatcher.js
+9
-20
index.js
...sets/javascripts/pages/projects/pipelines/builds/index.js
+16
-0
index.js
app/assets/javascripts/pages/projects/pipelines/new/index.js
+5
-0
index.js
...ssets/javascripts/pages/projects/project_members/index.js
+12
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
48e638f6
...
@@ -12,7 +12,6 @@ import notificationsDropdown from './notifications_dropdown';
...
@@ -12,7 +12,6 @@ import notificationsDropdown from './notifications_dropdown';
import
groupAvatar
from
'./group_avatar'
;
import
groupAvatar
from
'./group_avatar'
;
import
GroupLabelSubscription
from
'./group_label_subscription'
;
import
GroupLabelSubscription
from
'./group_label_subscription'
;
import
LineHighlighter
from
'./line_highlighter'
;
import
LineHighlighter
from
'./line_highlighter'
;
import
groupsSelect
from
'./groups_select'
;
import
NewCommitForm
from
'./new_commit_form'
;
import
NewCommitForm
from
'./new_commit_form'
;
import
Project
from
'./project'
;
import
Project
from
'./project'
;
import
projectAvatar
from
'./project_avatar'
;
import
projectAvatar
from
'./project_avatar'
;
...
@@ -40,7 +39,6 @@ import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater';
...
@@ -40,7 +39,6 @@ import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater';
import
BlobForkSuggestion
from
'./blob/blob_fork_suggestion'
;
import
BlobForkSuggestion
from
'./blob/blob_fork_suggestion'
;
import
UserCallout
from
'./user_callout'
;
import
UserCallout
from
'./user_callout'
;
import
ShortcutsWiki
from
'./shortcuts_wiki'
;
import
ShortcutsWiki
from
'./shortcuts_wiki'
;
import
Pipelines
from
'./pipelines'
;
import
BlobViewer
from
'./blob/viewer/index'
;
import
BlobViewer
from
'./blob/viewer/index'
;
import
AutoWidthDropdownSelect
from
'./issuable/auto_width_dropdown_select'
;
import
AutoWidthDropdownSelect
from
'./issuable/auto_width_dropdown_select'
;
import
UsersSelect
from
'./users_select'
;
import
UsersSelect
from
'./users_select'
;
...
@@ -390,23 +388,16 @@ import Activities from './activities';
...
@@ -390,23 +388,16 @@ import Activities from './activities';
break
;
break
;
case
'projects:pipelines:new'
:
case
'projects:pipelines:new'
:
case
'projects:pipelines:create'
:
case
'projects:pipelines:create'
:
new
NewBranchForm
(
$
(
'.js-new-pipeline-form'
));
import
(
'./pages/projects/pipelines/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
break
;
case
'projects:pipelines:builds'
:
case
'projects:pipelines:builds'
:
case
'projects:pipelines:failures'
:
case
'projects:pipelines:failures'
:
case
'projects:pipelines:show'
:
case
'projects:pipelines:show'
:
const
{
controllerAction
}
=
document
.
querySelector
(
'.js-pipeline-container'
).
dataset
;
import
(
'./pages/projects/pipelines/builds'
)
const
pipelineStatusUrl
=
`
${
document
.
querySelector
(
'.js-pipeline-tab-link a'
).
getAttribute
(
'href'
)}
/status.json`
;
.
then
(
callDefault
)
.
catch
(
fail
);
new
Pipelines
({
initTabs
:
true
,
pipelineStatusUrl
,
tabsOptions
:
{
action
:
controllerAction
,
defaultAction
:
'pipelines'
,
parentEl
:
'.pipelines-tabs'
,
},
});
break
;
break
;
case
'groups:activity'
:
case
'groups:activity'
:
new
Activities
();
new
Activities
();
...
@@ -428,11 +419,9 @@ import Activities from './activities';
...
@@ -428,11 +419,9 @@ import Activities from './activities';
new
UsersSelect
();
new
UsersSelect
();
break
;
break
;
case
'projects:project_members:index'
:
case
'projects:project_members:index'
:
memberExpirationDate
(
'.js-access-expiration-date-groups'
);
import
(
'./pages/projects/project_members/'
)
groupsSelect
();
.
then
(
callDefault
)
memberExpirationDate
();
.
catch
(
fail
);
new
Members
();
new
UsersSelect
();
break
;
break
;
case
'groups:new'
:
case
'groups:new'
:
case
'groups:create'
:
case
'groups:create'
:
...
...
app/assets/javascripts/pages/projects/pipelines/builds/index.js
0 → 100644
View file @
48e638f6
import
Pipelines
from
'../../../../pipelines'
;
export
default
()
=>
{
const
{
controllerAction
}
=
document
.
querySelector
(
'.js-pipeline-container'
).
dataset
;
const
pipelineStatusUrl
=
`
${
document
.
querySelector
(
'.js-pipeline-tab-link a'
).
getAttribute
(
'href'
)}
/status.json`
;
new
Pipelines
({
// eslint-disable-line no-new
initTabs
:
true
,
pipelineStatusUrl
,
tabsOptions
:
{
action
:
controllerAction
,
defaultAction
:
'pipelines'
,
parentEl
:
'.pipelines-tabs'
,
},
});
};
app/assets/javascripts/pages/projects/pipelines/new/index.js
0 → 100644
View file @
48e638f6
import
NewBranchForm
from
'../../../../new_branch_form'
;
export
default
()
=>
{
new
NewBranchForm
(
$
(
'.js-new-pipeline-form'
));
// eslint-disable-line no-new
};
app/assets/javascripts/pages/projects/project_members/index.js
0 → 100644
View file @
48e638f6
import
memberExpirationDate
from
'../../../member_expiration_date'
;
import
UsersSelect
from
'../../../users_select'
;
import
groupsSelect
from
'../../../groups_select'
;
import
Members
from
'../../../members'
;
export
default
()
=>
{
memberExpirationDate
(
'.js-access-expiration-date-groups'
);
groupsSelect
();
memberExpirationDate
();
new
Members
();
// eslint-disable-line no-new
new
UsersSelect
();
// eslint-disable-line no-new
};
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