debian-mirror-gitlab/spec/frontend/integrations/edit/mock_data.js

40 lines
926 B
JavaScript
Raw Normal View History

2020-07-28 23:09:34 +05:30
export const mockIntegrationProps = {
id: 25,
2020-11-24 15:15:51 +05:30
initialActivated: true,
2020-07-28 23:09:34 +05:30
showActive: true,
2021-01-03 14:25:43 +05:30
editable: true,
2020-07-28 23:09:34 +05:30
triggerFieldsProps: {
initialTriggerCommit: false,
initialTriggerMergeRequest: false,
initialEnableComments: false,
},
jiraIssuesProps: {},
triggerEvents: [],
2022-05-07 20:08:51 +05:30
sections: [],
2020-07-28 23:09:34 +05:30
fields: [],
type: '',
inheritFromId: 25,
2022-05-07 20:08:51 +05:30
integrationLevel: 'project',
2020-07-28 23:09:34 +05:30
};
2022-01-26 12:08:38 +05:30
export const mockJiraIssueTypes = [
{ id: '1', name: 'issue', description: 'issue' },
{ id: '2', name: 'bug', description: 'bug' },
{ id: '3', name: 'epic', description: 'epic' },
];
2022-04-04 11:22:00 +05:30
export const mockField = {
help: 'The URL of the project',
name: 'project_url',
placeholder: 'https://jira.example.com',
title: 'Project URL',
type: 'text',
value: '1',
};
2022-05-07 20:08:51 +05:30
export const mockSectionConnection = {
type: 'connection',
title: 'Connection details',
description: 'Learn more on how to configure this integration.',
};