debian-mirror-gitlab/spec/frontend/gfm_auto_complete/mock_data.js
2023-03-17 16:20:25 +05:30

91 lines
1.6 KiB
JavaScript

export const eventlistenersMockDefaultMap = [
{
key: 'shown',
namespace: 'atwho',
},
{
key: 'shown-users',
namespace: 'atwho',
},
{
key: 'shown-issues',
namespace: 'atwho',
},
{
key: 'shown-milestones',
namespace: 'atwho',
},
{
key: 'shown-mergerequests',
namespace: 'atwho',
},
{
key: 'shown-labels',
namespace: 'atwho',
},
{
key: 'shown-snippets',
namespace: 'atwho',
},
{
key: 'shown-contacts',
namespace: 'atwho',
},
];
export const crmContactsMock = [
{
id: 1,
email: 'contact.1@email.com',
first_name: 'Contact',
last_name: 'One',
search: 'contact.1@email.com',
state: 'active',
set: false,
},
{
id: 2,
email: 'contact.2@email.com',
first_name: 'Contact',
last_name: 'Two',
search: 'contact.2@email.com',
state: 'active',
set: false,
},
{
id: 3,
email: 'contact.3@email.com',
first_name: 'Contact',
last_name: 'Three',
search: 'contact.3@email.com',
state: 'inactive',
set: false,
},
{
id: 4,
email: 'contact.4@email.com',
first_name: 'Contact',
last_name: 'Four',
search: 'contact.4@email.com',
state: 'inactive',
set: true,
},
{
id: 5,
email: 'contact.5@email.com',
first_name: 'Contact',
last_name: 'Five',
search: 'contact.5@email.com',
state: 'active',
set: true,
},
{
id: 5,
email: 'contact.6@email.com',
first_name: 'Contact',
last_name: 'Six',
search: 'contact.6@email.com',
state: 'active',
set: undefined, // On purpose
},
];