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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
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.',
};
2022-07-16 23:28:13 +05:30
export const mockSectionJiraIssues = {
type: 'jira_issues',
title: 'Issues',
description:
'Work on Jira issues without leaving GitLab. Add a Jira menu to access a read-only list of your Jira issues. Learn more.',
plan: 'premium',
};