Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
48e638f6
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
48e638f6
编写于
1月 11, 2018
作者:
C
Constance Okoghenun
提交者:
Phil Hughes
1月 11, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Refactored project:n* imports in dispatcher.js
上级
0668f54b
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
42 addition
and
20 deletion
+42
-20
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+9
-20
app/assets/javascripts/pages/projects/pipelines/builds/index.js
...sets/javascripts/pages/projects/pipelines/builds/index.js
+16
-0
app/assets/javascripts/pages/projects/pipelines/new/index.js
app/assets/javascripts/pages/projects/pipelines/new/index.js
+5
-0
app/assets/javascripts/pages/projects/project_members/index.js
...ssets/javascripts/pages/projects/project_members/index.js
+12
-0
未找到文件。
app/assets/javascripts/dispatcher.js
浏览文件 @
48e638f6
...
...
@@ -12,7 +12,6 @@ import notificationsDropdown from './notifications_dropdown';
import
groupAvatar
from
'
./group_avatar
'
;
import
GroupLabelSubscription
from
'
./group_label_subscription
'
;
import
LineHighlighter
from
'
./line_highlighter
'
;
import
groupsSelect
from
'
./groups_select
'
;
import
NewCommitForm
from
'
./new_commit_form
'
;
import
Project
from
'
./project
'
;
import
projectAvatar
from
'
./project_avatar
'
;
...
...
@@ -40,7 +39,6 @@ import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater';
import
BlobForkSuggestion
from
'
./blob/blob_fork_suggestion
'
;
import
UserCallout
from
'
./user_callout
'
;
import
ShortcutsWiki
from
'
./shortcuts_wiki
'
;
import
Pipelines
from
'
./pipelines
'
;
import
BlobViewer
from
'
./blob/viewer/index
'
;
import
AutoWidthDropdownSelect
from
'
./issuable/auto_width_dropdown_select
'
;
import
UsersSelect
from
'
./users_select
'
;
...
...
@@ -390,23 +388,16 @@ import Activities from './activities';
break
;
case
'
projects:pipelines:new
'
:
case
'
projects:pipelines:create
'
:
new
NewBranchForm
(
$
(
'
.js-new-pipeline-form
'
));
import
(
'
./pages/projects/pipelines/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:pipelines:builds
'
:
case
'
projects:pipelines:failures
'
:
case
'
projects:pipelines:show
'
:
const
{
controllerAction
}
=
document
.
querySelector
(
'
.js-pipeline-container
'
).
dataset
;
const
pipelineStatusUrl
=
`
${
document
.
querySelector
(
'
.js-pipeline-tab-link a
'
).
getAttribute
(
'
href
'
)}
/status.json`
;
new
Pipelines
({
initTabs
:
true
,
pipelineStatusUrl
,
tabsOptions
:
{
action
:
controllerAction
,
defaultAction
:
'
pipelines
'
,
parentEl
:
'
.pipelines-tabs
'
,
},
});
import
(
'
./pages/projects/pipelines/builds
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:activity
'
:
new
Activities
();
...
...
@@ -428,11 +419,9 @@ import Activities from './activities';
new
UsersSelect
();
break
;
case
'
projects:project_members:index
'
:
memberExpirationDate
(
'
.js-access-expiration-date-groups
'
);
groupsSelect
();
memberExpirationDate
();
new
Members
();
new
UsersSelect
();
import
(
'
./pages/projects/project_members/
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:new
'
:
case
'
groups:create
'
:
...
...
app/assets/javascripts/pages/projects/pipelines/builds/index.js
0 → 100644
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录