debian-mirror-gitlab/spec/javascripts/diffs/mock_data/diff_file.js

247 lines
7 KiB
JavaScript
Raw Normal View History

2019-10-12 21:52:04 +05:30
// Copied to ee/spec/frontend/diffs/mock_data/diff_file.js
2018-11-08 19:23:39 +05:30
export default {
submodule: false,
2019-02-15 15:39:39 +05:30
submodule_link: null,
2018-11-08 19:23:39 +05:30
blob: {
id: '9e10516ca50788acf18c518a231914a21e5f16f7',
path: 'CHANGELOG',
name: 'CHANGELOG',
mode: '100644',
2019-02-15 15:39:39 +05:30
readable_text: true,
2018-11-08 19:23:39 +05:30
icon: 'file-text-o',
},
2019-02-15 15:39:39 +05:30
blob_path: 'CHANGELOG',
blob_name: 'CHANGELOG',
blob_icon: '<i aria-hidden="true" data-hidden="true" class="fa fa-file-text-o fa-fw"></i>',
file_hash: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a',
file_path: 'CHANGELOG',
new_file: false,
deleted_file: false,
renamed_file: false,
old_path: 'CHANGELOG',
new_path: 'CHANGELOG',
mode_changed: false,
a_mode: '100644',
b_mode: '100644',
2018-11-08 19:23:39 +05:30
text: true,
2018-12-05 23:21:45 +05:30
viewer: {
name: 'text',
2019-07-07 11:18:12 +05:30
error: null,
collapsed: false,
2018-12-05 23:21:45 +05:30
},
2019-02-15 15:39:39 +05:30
added_lines: 2,
removed_lines: 0,
diff_refs: {
base_sha: 'e63f41fe459e62e1228fcef60d7189127aeba95a',
start_sha: 'd9eaefe5a676b820c57ff18cf5b68316025f7962',
head_sha: 'c48ee0d1bf3b30453f5b32250ce03134beaa6d13',
2018-11-08 19:23:39 +05:30
},
2019-02-15 15:39:39 +05:30
content_sha: 'c48ee0d1bf3b30453f5b32250ce03134beaa6d13',
stored_externally: null,
external_storage: null,
old_path_html: 'CHANGELOG',
new_path_html: 'CHANGELOG',
edit_path: '/gitlab-org/gitlab-test/edit/spooky-stuff/CHANGELOG',
view_path: '/gitlab-org/gitlab-test/blob/spooky-stuff/CHANGELOG',
replaced_view_path: null,
2018-11-08 19:23:39 +05:30
collapsed: false,
2018-11-20 20:47:30 +05:30
renderIt: false,
2019-02-15 15:39:39 +05:30
too_large: false,
context_lines_path:
2018-11-08 19:23:39 +05:30
'/gitlab-org/gitlab-test/blob/c48ee0d1bf3b30453f5b32250ce03134beaa6d13/CHANGELOG/diff',
2019-02-15 15:39:39 +05:30
highlighted_diff_lines: [
2018-11-08 19:23:39 +05:30
{
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_1',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: 1,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '+<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '+<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
{
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_2',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: 2,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '+<span id="LC2" class="line" lang="plaintext"></span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '+<span id="LC2" class="line" lang="plaintext"></span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
{
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 1,
new_line: 3,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: ' <span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
{
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 2,
new_line: 4,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC4" class="line" lang="plaintext"></span>\n',
2019-02-15 15:39:39 +05:30
rich_text: ' <span id="LC4" class="line" lang="plaintext"></span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
{
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 3,
new_line: 5,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: ' <span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
{
2019-02-15 15:39:39 +05:30
line_code: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-02-15 15:39:39 +05:30
rich_text: '',
meta_data: {
old_pos: 3,
new_pos: 5,
2018-11-08 19:23:39 +05:30
},
},
],
2019-02-15 15:39:39 +05:30
parallel_diff_lines: [
2018-11-08 19:23:39 +05:30
{
left: {
type: 'empty-cell',
},
right: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_1',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: 1,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '+<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
type: 'empty-cell',
},
right: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_2',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: 2,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '+<span id="LC2" class="line" lang="plaintext"></span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC2" class="line" lang="plaintext"></span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-02-15 15:39:39 +05:30
line_Code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 1,
new_line: 3,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 1,
new_line: 3,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 2,
new_line: 4,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC4" class="line" lang="plaintext"></span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC4" class="line" lang="plaintext"></span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 2,
new_line: 4,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC4" class="line" lang="plaintext"></span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC4" class="line" lang="plaintext"></span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 3,
new_line: 5,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-02-15 15:39:39 +05:30
line_code: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-02-15 15:39:39 +05:30
old_line: 3,
new_line: 5,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: ' <span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
2019-02-15 15:39:39 +05:30
rich_text: '<span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
meta_data: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-02-15 15:39:39 +05:30
line_code: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-02-15 15:39:39 +05:30
rich_text: '',
meta_data: {
old_pos: 3,
new_pos: 5,
2018-11-08 19:23:39 +05:30
},
},
right: {
2019-02-15 15:39:39 +05:30
line_code: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-02-15 15:39:39 +05:30
old_line: null,
new_line: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-02-15 15:39:39 +05:30
rich_text: '',
meta_data: {
old_pos: 3,
new_pos: 5,
2018-11-08 19:23:39 +05:30
},
},
},
],
2018-12-13 13:39:08 +05:30
discussions: [],
2019-07-31 22:56:46 +05:30
renderingLines: false,
2018-11-08 19:23:39 +05:30
};