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

242 lines
6.8 KiB
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
export default {
submodule: false,
2019-01-03 12:48:30 +05:30
submoduleLink: null,
2018-11-08 19:23:39 +05:30
blob: {
id: '9e10516ca50788acf18c518a231914a21e5f16f7',
path: 'CHANGELOG',
name: 'CHANGELOG',
mode: '100644',
2019-01-03 12:48:30 +05:30
readableText: true,
2018-11-08 19:23:39 +05:30
icon: 'file-text-o',
},
2019-01-03 12:48:30 +05:30
blobPath: 'CHANGELOG',
blobName: 'CHANGELOG',
blobIcon: '<i aria-hidden="true" data-hidden="true" class="fa fa-file-text-o fa-fw"></i>',
fileHash: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a',
filePath: 'CHANGELOG',
newFile: false,
deletedFile: false,
renamedFile: false,
oldPath: 'CHANGELOG',
newPath: 'CHANGELOG',
modeChanged: false,
aMode: '100644',
bMode: '100644',
2018-11-08 19:23:39 +05:30
text: true,
2018-12-05 23:21:45 +05:30
viewer: {
name: 'text',
},
2019-01-03 12:48:30 +05:30
addedLines: 2,
removedLines: 0,
diffRefs: {
baseSha: 'e63f41fe459e62e1228fcef60d7189127aeba95a',
startSha: 'd9eaefe5a676b820c57ff18cf5b68316025f7962',
headSha: 'c48ee0d1bf3b30453f5b32250ce03134beaa6d13',
2018-11-08 19:23:39 +05:30
},
2019-01-03 12:48:30 +05:30
contentSha: 'c48ee0d1bf3b30453f5b32250ce03134beaa6d13',
storedExternally: null,
externalStorage: null,
oldPathHtml: 'CHANGELOG',
newPathHtml: 'CHANGELOG',
editPath: '/gitlab-org/gitlab-test/edit/spooky-stuff/CHANGELOG',
viewPath: '/gitlab-org/gitlab-test/blob/spooky-stuff/CHANGELOG',
replacedViewPath: null,
2018-11-08 19:23:39 +05:30
collapsed: false,
2018-11-20 20:47:30 +05:30
renderIt: false,
2019-01-03 12:48:30 +05:30
tooLarge: false,
contextLinesPath:
2018-11-08 19:23:39 +05:30
'/gitlab-org/gitlab-test/blob/c48ee0d1bf3b30453f5b32250ce03134beaa6d13/CHANGELOG/diff',
2019-01-03 12:48:30 +05:30
highlightedDiffLines: [
2018-11-08 19:23:39 +05:30
{
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_1',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: 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-01-03 12:48:30 +05:30
richText: '+<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
{
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_2',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: 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-01-03 12:48:30 +05:30
richText: '+<span id="LC2" class="line" lang="plaintext"></span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
{
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 1,
newLine: 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-01-03 12:48:30 +05:30
richText: ' <span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
{
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 2,
newLine: 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-01-03 12:48:30 +05:30
richText: ' <span id="LC4" class="line" lang="plaintext"></span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
{
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 3,
newLine: 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-01-03 12:48:30 +05:30
richText: ' <span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
{
2019-01-03 12:48:30 +05:30
lineCode: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-01-03 12:48:30 +05:30
richText: '',
metaData: {
oldPos: 3,
newPos: 5,
2018-11-08 19:23:39 +05:30
},
},
],
2019-01-03 12:48:30 +05:30
parallelDiffLines: [
2018-11-08 19:23:39 +05:30
{
left: {
type: 'empty-cell',
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_1',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC1" class="line" lang="plaintext"> - Bad dates</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
type: 'empty-cell',
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_2',
2018-11-08 19:23:39 +05:30
type: 'new',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC2" class="line" lang="plaintext"></span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 1,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_1_3',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 1,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC3" class="line" lang="plaintext">v6.8.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 2,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC4" class="line" lang="plaintext"></span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_2_4',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 2,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC4" class="line" lang="plaintext"></span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 3,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: '1c497fbb3a46b78edf04cc2a2fa33f67e3ffbe2a_3_5',
2018-11-08 19:23:39 +05:30
type: null,
2019-01-03 12:48:30 +05:30
oldLine: 3,
newLine: 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-01-03 12:48:30 +05:30
richText: '<span id="LC5" class="line" lang="plaintext">v6.7.0</span>\n',
metaData: null,
2018-11-08 19:23:39 +05:30
},
},
{
left: {
2019-01-03 12:48:30 +05:30
lineCode: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-01-03 12:48:30 +05:30
richText: '',
metaData: {
oldPos: 3,
newPos: 5,
2018-11-08 19:23:39 +05:30
},
},
right: {
2019-01-03 12:48:30 +05:30
lineCode: null,
2018-11-08 19:23:39 +05:30
type: 'match',
2019-01-03 12:48:30 +05:30
oldLine: null,
newLine: null,
2018-11-20 20:47:30 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
text: '',
2019-01-03 12:48:30 +05:30
richText: '',
metaData: {
oldPos: 3,
newPos: 5,
2018-11-08 19:23:39 +05:30
},
},
},
],
2018-12-13 13:39:08 +05:30
discussions: [],
2018-11-08 19:23:39 +05:30
};