Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
667f8b53
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,发现更多精彩内容 >>
提交
667f8b53
编写于
8月 04, 2017
作者:
F
Filipa Lacerda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adds mock data
上级
1c1fef7a
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
221 addition
and
0 deletion
+221
-0
spec/javascripts/notes/mock_data.js
spec/javascripts/notes/mock_data.js
+221
-0
未找到文件。
spec/javascripts/notes/mock_data.js
0 → 100644
浏览文件 @
667f8b53
export
const
notesDataMock
=
{
discussionsPath
:
'
/gitlab-org/gitlab-ce/issues/26/discussions.json
'
,
lastFetchedAt
:
'
1501862675
'
,
markdownDocs
:
'
/help/user/markdown
'
,
newSessionPath
:
'
/users/sign_in?redirect_to_referer=yes
'
,
notesPath
:
'
/gitlab-org/gitlab-ce/noteable/issue/98/notes?full_data=1
'
,
quickActionsDocs
:
'
/help/user/project/quick_actions
'
,
registerPath
:
'
/users/sign_in?redirect_to_referer=yes#register-pane
'
,
};
export
const
userDataMock
=
{
avatar_url
:
'
mock_path
'
,
id
:
1
,
name
:
'
Root
'
,
path
:
'
/root
'
,
state
:
'
active
'
,
username
:
'
root
'
,
};
export
const
issueData
=
{
assignees
:
[],
author_id
:
1
,
branch_name
:
null
,
confidential
:
false
,
create_note_path
:
'
/gitlab-org/gitlab-ce/notes?target_id=98&target_type=issue
'
,
created_at
:
'
2017-02-07T10:11:18.395Z
'
,
current_user
:
{
can_create_note
:
true
,
can_update
:
true
,
},
deleted_at
:
null
,
description
:
''
,
due_date
:
null
,
human_time_estimate
:
null
,
human_total_time_spent
:
null
,
id
:
98
,
iid
:
26
,
labels
:
[],
lock_version
:
null
,
milestone
:
null
,
milestone_id
:
null
,
moved_to_id
:
null
,
preview_note_path
:
'
/gitlab-org/gitlab-ce/preview_markdown?quick_actions_target_id=98&quick_actions_target_type=Issue
'
,
project_id
:
2
,
state
:
'
opened
'
,
time_estimate
:
0
,
title
:
'
14
'
,
total_time_spent
:
0
,
updated_at
:
'
2017-08-04T09:53:01.226Z
'
,
updated_by_id
:
1
,
web_url
:
'
/gitlab-org/gitlab-ce/issues/26
'
,
};
export
const
lastFetchedAt
=
'
1501862675
'
;
export
const
individualNote
=
{
expanded
:
true
,
id
:
'
0fb4e0e3f9276e55ff32eb4195add694aece4edd
'
,
individual_note
:
true
,
notes
:
[{
id
:
1390
,
attachment
:
{
url
:
null
,
filename
:
null
,
image
:
false
,
},
author
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
created_at
:
'
2017-08-01T17: 09: 33.762Z
'
,
updated_at
:
'
2017-08-01T17: 09: 33.762Z
'
,
system
:
false
,
noteable_id
:
98
,
noteable_type
:
'
Issue
'
,
type
:
null
,
human_access
:
'
Owner
'
,
note
:
'
sdfdsaf
'
,
note_html
:
'
<p dir=
\'
auto
\'
>sdfdsaf</p>
'
,
current_user
:
{
can_edit
:
true
},
discussion_id
:
'
0fb4e0e3f9276e55ff32eb4195add694aece4edd
'
,
emoji_awardable
:
true
,
award_emoji
:
[
{
name
:
'
baseball
'
,
user
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
}
},
{
name
:
'
art
'
,
user
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
}
},
],
toggle_award_path
:
'
/gitlab-org/gitlab-ce/notes/1390/toggle_award_emoji
'
,
report_abuse_path
:
'
/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1390&user_id=1
'
,
path
:
'
/gitlab-org/gitlab-ce/notes/1390
'
,
}],
reply_id
:
'
0fb4e0e3f9276e55ff32eb4195add694aece4edd
'
,
};
export
const
discussionMock
=
{
id
:
'
9e3bd2f71a01de45fd166e6719eb380ad9f270b1
'
,
reply_id
:
'
9e3bd2f71a01de45fd166e6719eb380ad9f270b1
'
,
expanded
:
true
,
notes
:
[{
id
:
1395
,
attachment
:
{
url
:
null
,
filename
:
null
,
image
:
false
,
},
author
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
created_at
:
'
2017-08-02T10:51:58.559Z
'
,
updated_at
:
'
2017-08-02T10:51:58.559Z
'
,
system
:
false
,
noteable_id
:
98
,
noteable_type
:
'
Issue
'
,
type
:
'
DiscussionNote
'
,
human_access
:
'
Owner
'
,
note
:
'
THIS IS A DICUSSSION!
'
,
note_html
:
'
<p dir=
\'
auto
\'
>THIS IS A DICUSSSION!</p>
'
,
current_user
:
{
can_edit
:
true
,
},
discussion_id
:
'
9e3bd2f71a01de45fd166e6719eb380ad9f270b1
'
,
emoji_awardable
:
true
,
award_emoji
:
[],
toggle_award_path
:
'
/gitlab-org/gitlab-ce/notes/1395/toggle_award_emoji
'
,
report_abuse_path
:
'
/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1395&user_id=1
'
,
path
:
'
/gitlab-org/gitlab-ce/notes/1395
'
,
},
{
id
:
1396
,
attachment
:
{
url
:
null
,
filename
:
null
,
image
:
false
,
},
author
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
created_at
:
'
2017-08-02T10:56:50.980Z
'
,
updated_at
:
'
2017-08-03T14:19:35.691Z
'
,
system
:
false
,
noteable_id
:
98
,
noteable_type
:
'
Issue
'
,
type
:
'
DiscussionNote
'
,
human_access
:
'
Owner
'
,
note
:
'
sadfasdsdgdsf
'
,
note_html
:
'
<p dir=
\'
auto
\'
>sadfasdsdgdsf</p>
'
,
last_edited_at
:
'
2017-08-03T14:19:35.691Z
'
,
last_edited_by
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
current_user
:
{
can_edit
:
true
,
},
discussion_id
:
'
9e3bd2f71a01de45fd166e6719eb380ad9f270b1
'
,
emoji_awardable
:
true
,
award_emoji
:
[],
toggle_award_path
:
'
/gitlab-org/gitlab-ce/notes/1396/toggle_award_emoji
'
,
report_abuse_path
:
'
/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1396&user_id=1
'
,
path
:
'
/gitlab-org/gitlab-ce/notes/1396
'
,
},
{
id
:
1437
,
attachment
:
{
url
:
null
,
filename
:
null
,
image
:
false
,
},
author
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
created_at
:
'
2017-08-03T18:11:18.780Z
'
,
updated_at
:
'
2017-08-04T09:52:31.062Z
'
,
system
:
false
,
noteable_id
:
98
,
noteable_type
:
'
Issue
'
,
type
:
'
DiscussionNote
'
,
human_access
:
'
Owner
'
,
note
:
'
adsfasf Should disappear
'
,
note_html
:
'
<p dir=
\'
auto
\'
>adsfasf Should disappear</p>
'
,
last_edited_at
:
'
2017-08-04T09:52:31.062Z
'
,
last_edited_by
:
{
id
:
1
,
name
:
'
Root
'
,
username
:
'
root
'
,
state
:
'
active
'
,
avatar_url
:
null
,
path
:
'
/root
'
,
},
current_user
:
{
can_edit
:
true
,
},
discussion_id
:
'
9e3bd2f71a01de45fd166e6719eb380ad9f270b1
'
,
emoji_awardable
:
true
,
award_emoji
:
[],
toggle_award_path
:
'
/gitlab-org/gitlab-ce/notes/1437/toggle_award_emoji
'
,
report_abuse_path
:
'
/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1437&user_id=1
'
,
path
:
'
/gitlab-org/gitlab-ce/notes/1437
'
,
}],
individual_note
:
false
,
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录