Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mock_data.js « components « compare « projects « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 81d64469a2ae74e93ff084e6b205d040b33368f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const sourceProjectRefsPath = 'some/refs/path';
const targetProjectRefsPath = 'some/refs/path';
const paramsName = 'to';
const paramsBranch = 'main';
const sourceProject = {
  name: 'some-to-name',
  id: '2',
};
const targetProject = {
  name: 'some-to-name',
  id: '1',
};

export const appDefaultProps = {
  projectCompareIndexPath: 'some/path',
  projectMergeRequestPath: '',
  projects: [sourceProject],
  paramsFrom: 'main',
  paramsTo: 'target/branch',
  createMrPath: '',
  sourceProjectRefsPath,
  targetProjectRefsPath,
  sourceProject,
  targetProject,
};

export const revisionCardDefaultProps = {
  selectedProject: targetProject,
  paramsBranch,
  revisionText: 'Source',
  refsProjectPath: sourceProjectRefsPath,
  paramsName,
};

export const repoDropdownDefaultProps = {
  selectedProject: targetProject,
  paramsName,
};

export const revisionDropdownDefaultProps = {
  refsProjectPath: sourceProjectRefsPath,
  paramsBranch,
  paramsName,
};