summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/sidebar/labels_select_vue/mock_data.js
blob: e1008d13fc2f2a94b919a08b9b09dcb428e4be22 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export const mockRegularLabel = {
  id: 26,
  title: 'Foo Label',
  description: 'Foobar',
  color: '#BADA55',
  textColor: '#FFFFFF',
};

export const mockScopedLabel = {
  id: 27,
  title: 'Foo::Bar',
  description: 'Foobar',
  color: '#0033CC',
  textColor: '#FFFFFF',
};

export const mockLabels = [
  mockRegularLabel,
  mockScopedLabel,
  {
    id: 28,
    title: 'Bug',
    description: 'Label for bugs',
    color: '#FF0000',
    textColor: '#FFFFFF',
  },
];

export const mockConfig = {
  allowLabelEdit: true,
  allowLabelCreate: true,
  allowScopedLabels: true,
  allowMultiselect: true,
  labelsListTitle: 'Assign labels',
  labelsCreateTitle: 'Create label',
  variant: 'sidebar',
  dropdownOnly: false,
  selectedLabels: [mockRegularLabel, mockScopedLabel],
  labelsSelectInProgress: false,
  labelsFetchPath: '/gitlab-org/my-project/-/labels.json',
  labelsManagePath: '/gitlab-org/my-project/-/labels',
  labelsFilterBasePath: '/gitlab-org/my-project/issues',
};

export const mockSuggestedColors = {
  '#0033CC': 'UA blue',
  '#428BCA': 'Moderate blue',
  '#44AD8E': 'Lime green',
  '#A8D695': 'Feijoa',
  '#5CB85C': 'Slightly desaturated green',
  '#69D100': 'Bright green',
  '#004E00': 'Very dark lime green',
  '#34495E': 'Very dark desaturated blue',
  '#7F8C8D': 'Dark grayish cyan',
  '#A295D6': 'Slightly desaturated blue',
  '#5843AD': 'Dark moderate blue',
  '#8E44AD': 'Dark moderate violet',
  '#FFECDB': 'Very pale orange',
  '#AD4363': 'Dark moderate pink',
  '#D10069': 'Strong pink',
  '#CC0033': 'Strong red',
  '#FF0000': 'Pure red',
  '#D9534F': 'Soft red',
  '#D1D100': 'Strong yellow',
  '#F0AD4E': 'Soft orange',
  '#AD8D43': 'Dark moderate orange',
};