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',
|
2022-11-25 23:54:43 +05:30
|
|
|
straight: false,
|
2021-06-08 01:23:25 +05:30
|
|
|
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,
|
|
|
|
};
|