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
|
import { helpPagePath } from '~/helpers/help_page_helper';
// We disable this for the entire file until the mock data is cleanup
/* eslint-disable @gitlab/require-i18n-strings */
export const CATALOG_FEEDBACK_DISMISSED_KEY = 'catalog_feedback_dismissed';
export const SORT_OPTION_CREATED = 'CREATED';
export const SORT_ASC = 'ASC';
export const SORT_DESC = 'DESC';
export const COMPONENTS_DOCS_URL = helpPagePath('ci/components/index');
export const componentsMockData = {
__typename: 'CiComponentConnection',
nodes: [
{
id: 'gid://gitlab/Ci::Component/1',
name: 'Ruby gal',
description: 'This is a pretty amazing component that does EVERYTHING ruby.',
path: 'gitlab.com/gitlab-org/ruby-gal@~latest',
inputs: { nodes: [{ name: 'version', defaultValue: '1.0.0', required: true }] },
},
{
id: 'gid://gitlab/Ci::Component/2',
name: 'Javascript madness',
description: 'Adds some spice to your life.',
path: 'gitlab.com/gitlab-org/javascript-madness@~latest',
inputs: {
nodes: [
{ name: 'isFun', defaultValue: 'true', required: true },
{ name: 'RandomNumber', defaultValue: '10', required: false },
],
},
},
{
id: 'gid://gitlab/Ci::Component/3',
name: 'Go go go',
description: 'When you write Go, you gotta go go go.',
path: 'gitlab.com/gitlab-org/go-go-go@~latest',
inputs: { nodes: [{ name: 'version', defaultValue: '1.0.0', required: true }] },
},
],
};
|