debian-mirror-gitlab/spec/frontend/projects/compare/components/mock_data.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
960 B
JavaScript
Raw Normal View History

2022-08-27 11:52:29 +05:30
const sourceProjectRefsPath = 'some/refs/path';
const targetProjectRefsPath = 'some/refs/path';
2021-06-08 01:23:25 +05:30
const paramsName = 'to';
const paramsBranch = 'main';
2022-08-27 11:52:29 +05:30
const sourceProject = {
name: 'some-to-name',
id: '2',
};
const targetProject = {
2021-06-08 01:23:25 +05:30
name: 'some-to-name',
id: '1',
};
export const appDefaultProps = {
projectCompareIndexPath: 'some/path',
projectMergeRequestPath: '',
2022-08-27 11:52:29 +05:30
projects: [sourceProject],
2021-06-08 01:23:25 +05:30
paramsFrom: 'main',
paramsTo: 'target/branch',
createMrPath: '',
2022-08-27 11:52:29 +05:30
sourceProjectRefsPath,
targetProjectRefsPath,
sourceProject,
targetProject,
2021-06-08 01:23:25 +05:30
};
export const revisionCardDefaultProps = {
2022-08-27 11:52:29 +05:30
selectedProject: targetProject,
2021-06-08 01:23:25 +05:30
paramsBranch,
revisionText: 'Source',
2022-08-27 11:52:29 +05:30
refsProjectPath: sourceProjectRefsPath,
2021-06-08 01:23:25 +05:30
paramsName,
};
export const repoDropdownDefaultProps = {
2022-08-27 11:52:29 +05:30
selectedProject: targetProject,
2021-06-08 01:23:25 +05:30
paramsName,
};
export const revisionDropdownDefaultProps = {
2022-08-27 11:52:29 +05:30
refsProjectPath: sourceProjectRefsPath,
2021-06-08 01:23:25 +05:30
paramsBranch,
paramsName,
};