Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
e13a8ef4
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,发现更多精彩内容 >>
提交
e13a8ef4
编写于
1月 12, 2018
作者:
S
Simon Knox
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dispatcher changes for projects:commit* views
上级
16e89580
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
59 addition
and
24 deletion
+59
-24
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+14
-24
app/assets/javascripts/pages/projects/commit/pipelines/index.js
...sets/javascripts/pages/projects/commit/pipelines/index.js
+8
-0
app/assets/javascripts/pages/projects/commit/show/index.js
app/assets/javascripts/pages/projects/commit/show/index.js
+20
-0
app/assets/javascripts/pages/projects/commits/show/index.js
app/assets/javascripts/pages/projects/commits/show/index.js
+9
-0
app/assets/javascripts/pages/projects/compare/show/index.js
app/assets/javascripts/pages/projects/compare/show/index.js
+8
-0
未找到文件。
app/assets/javascripts/dispatcher.js
浏览文件 @
e13a8ef4
...
...
@@ -26,7 +26,6 @@ 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
'
;
...
...
@@ -34,7 +33,6 @@ import DeleteModal from './branches/branches_delete_modal';
import
Group
from
'
./group
'
;
import
ProjectsList
from
'
./projects_list
'
;
import
setupProjectEdit
from
'
./project_edit
'
;
import
MiniPipelineGraph
from
'
./mini_pipeline_graph_dropdown
'
;
import
BlobLinePermalinkUpdater
from
'
./blob/blob_line_permalink_updater
'
;
import
BlobForkSuggestion
from
'
./blob/blob_fork_suggestion
'
;
import
UserCallout
from
'
./user_callout
'
;
...
...
@@ -54,8 +52,6 @@ import PerformanceBar from './performance_bar';
import
initNotes
from
'
./init_notes
'
;
import
initIssuableSidebar
from
'
./init_issuable_sidebar
'
;
import
initProjectVisibilitySelector
from
'
./project_visibility
'
;
import
GpgBadges
from
'
./gpg_badges
'
;
import
initChangesDropdown
from
'
./init_changes_dropdown
'
;
import
NewGroupChild
from
'
./groups/new_group_child
'
;
import
{
ajaxGet
,
convertPermissionToBoolean
}
from
'
./lib/utils/common_utils
'
;
import
AjaxLoadingSpinner
from
'
./ajax_loading_spinner
'
;
...
...
@@ -239,9 +235,9 @@ import Activities from './activities';
new
GLForm
(
$
(
'
.milestone-form
'
),
false
);
break
;
case
'
projects:compare:show
'
:
new
Diff
();
const
paddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
import
(
'
./pages/projects/compare/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:branches:new
'
:
case
'
projects:branches:create
'
:
...
...
@@ -332,22 +328,15 @@ import Activities from './activities';
.
catch
(
fail
);
break
;
case
'
projects:commit:show
'
:
new
Diff
();
new
ZenMode
();
shortcut_handler
=
new
ShortcutsNavigation
();
new
MiniPipelineGraph
({
container
:
'
.js-commit-pipeline-graph
'
,
}).
bindEvents
();
initNotes
();
const
stickyBarPaddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
stickyBarPaddingTop
);
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
import
(
'
./pages/projects/commit/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'
projects:commit:pipelines
'
:
new
MiniPipelineGraph
({
container
:
'
.js-commit-pipeline-graph
'
,
}).
bindEvents
();
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
import
(
'
./pages/projects/commit/pipelines
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:activity
'
:
import
(
'
./pages/projects/activity
'
)
...
...
@@ -356,9 +345,10 @@ import Activities from './activities';
shortcut_handler
=
true
;
break
;
case
'
projects:commits:show
'
:
CommitsList
.
init
(
document
.
querySelector
(
'
.js-project-commits-show
'
).
dataset
.
commitsLimit
);
shortcut_handler
=
new
ShortcutsNavigation
();
GpgBadges
.
fetch
();
import
(
'
./pages/projects/commits/show
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
shortcut_handler
=
true
;
break
;
case
'
projects:show
'
:
shortcut_handler
=
new
ShortcutsNavigation
();
...
...
app/assets/javascripts/pages/projects/commit/pipelines/index.js
0 → 100644
浏览文件 @
e13a8ef4
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
export
default
()
=>
{
new
MiniPipelineGraph
({
container
:
'
.js-commit-pipeline-graph
'
,
}).
bindEvents
();
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
};
app/assets/javascripts/pages/projects/commit/show/index.js
0 → 100644
浏览文件 @
e13a8ef4
/* eslint-disable no-new */
import
Diff
from
'
~/diff
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
import
initNotes
from
'
~/init_notes
'
;
import
initChangesDropdown
from
'
~/init_changes_dropdown
'
;
export
default
()
=>
{
new
Diff
();
new
ZenMode
();
new
ShortcutsNavigation
();
new
MiniPipelineGraph
({
container
:
'
.js-commit-pipeline-graph
'
,
}).
bindEvents
();
initNotes
();
const
stickyBarPaddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
stickyBarPaddingTop
);
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
};
app/assets/javascripts/pages/projects/commits/show/index.js
0 → 100644
浏览文件 @
e13a8ef4
import
CommitsList
from
'
~/commits
'
;
import
GpgBadges
from
'
~/gpg_badges
'
;
import
ShortcutsNavigation
from
'
~/shortcuts_navigation
'
;
export
default
()
=>
{
CommitsList
.
init
(
document
.
querySelector
(
'
.js-project-commits-show
'
).
dataset
.
commitsLimit
);
new
ShortcutsNavigation
();
// eslint-disable-line no-new
GpgBadges
.
fetch
();
};
app/assets/javascripts/pages/projects/compare/show/index.js
0 → 100644
浏览文件 @
e13a8ef4
import
Diff
from
'
~/diff
'
;
import
initChangesDropdown
from
'
~/init_changes_dropdown
'
;
export
default
()
=>
{
new
Diff
();
// eslint-disable-line no-new
const
paddingTop
=
16
;
initChangesDropdown
(
document
.
querySelector
(
'
.navbar-gitlab
'
).
offsetHeight
-
paddingTop
);
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录