debian-mirror-gitlab/spec/frontend/search/mock_data.js

64 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-01-29 00:20:46 +05:30
export const MOCK_QUERY = {
scope: 'issues',
state: 'all',
confidential: null,
2021-02-22 17:27:13 +05:30
group_id: 'test_1',
2021-01-29 00:20:46 +05:30
};
export const MOCK_GROUP = {
name: 'test group',
full_name: 'full name test group',
id: 'test_1',
};
export const MOCK_GROUPS = [
{
name: 'test group',
full_name: 'full name test group',
id: 'test_1',
},
{
name: 'test group 2',
full_name: 'full name test group 2',
id: 'test_2',
},
];
2021-02-22 17:27:13 +05:30
export const MOCK_PROJECT = {
name: 'test project',
2021-03-11 19:13:27 +05:30
namespace: MOCK_GROUP,
2021-02-22 17:27:13 +05:30
nameWithNamespace: 'test group test project',
id: 'test_1',
};
export const MOCK_PROJECTS = [
{
name: 'test project',
2021-03-11 19:13:27 +05:30
namespace: MOCK_GROUP,
2021-02-22 17:27:13 +05:30
name_with_namespace: 'test group test project',
id: 'test_1',
},
{
name: 'test project 2',
2021-03-11 19:13:27 +05:30
namespace: MOCK_GROUP,
2021-02-22 17:27:13 +05:30
name_with_namespace: 'test group test project 2',
id: 'test_2',
},
];
2021-03-11 19:13:27 +05:30
export const MOCK_SORT_OPTIONS = [
{
title: 'Most relevant',
sortable: false,
sortParam: 'relevant',
},
{
title: 'Created date',
sortable: true,
sortParam: {
asc: 'created_asc',
desc: 'created_desc',
},
},
];