debian-mirror-gitlab/spec/frontend/invite_members/mock_data/member_modal.js

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

80 lines
1.9 KiB
JavaScript
Raw Normal View History

2022-04-04 11:22:00 +05:30
export const propsData = {
id: '1',
2022-06-21 17:19:12 +05:30
rootId: '1',
2022-04-04 11:22:00 +05:30
name: 'test name',
isProject: false,
accessLevels: { Guest: 10, Reporter: 20, Developer: 30, Maintainer: 40, Owner: 50 },
defaultAccessLevel: 30,
helpLink: 'https://example.com',
tasksToBeDoneOptions: [
{ text: 'First task', value: 'first' },
{ text: 'Second task', value: 'second' },
],
projects: [
{ text: 'First project', value: '1' },
{ text: 'Second project', value: '2' },
],
};
export const inviteSource = 'unknown';
export const newProjectPath = 'projects/new';
2022-07-16 23:28:13 +05:30
export const freeUsersLimit = 5;
2023-01-13 00:05:48 +05:30
export const remainingSeats = 2;
2022-04-04 11:22:00 +05:30
export const user1 = { id: 1, name: 'Name One', username: 'one_1', avatar_url: '' };
export const user2 = { id: 2, name: 'Name Two', username: 'one_2', avatar_url: '' };
export const user3 = {
id: 'user-defined-token',
name: 'email@example.com',
avatar_url: '',
};
export const user4 = {
2022-08-13 15:12:31 +05:30
id: 'user-defined-token2',
2022-04-04 11:22:00 +05:30
name: 'email4@example.com',
2022-08-13 15:12:31 +05:30
avatar_url: '',
};
export const user5 = {
id: '3',
username: 'root',
name: 'root',
2022-04-04 11:22:00 +05:30
avatar_url: '',
};
2022-08-27 11:52:29 +05:30
export const user6 = {
id: 'user-defined-token3',
name: 'email5@example.com',
avatar_url: '',
};
2022-04-04 11:22:00 +05:30
2023-06-20 00:43:36 +05:30
export const postData = {
user_id: `${user1.id},${user2.id}`,
access_level: propsData.defaultAccessLevel,
expires_at: undefined,
invite_source: inviteSource,
format: 'json',
tasks_to_be_done: [],
tasks_project_id: '',
};
export const emailPostData = {
access_level: propsData.defaultAccessLevel,
expires_at: undefined,
email: `${user3.name}`,
invite_source: inviteSource,
tasks_to_be_done: [],
tasks_project_id: '',
format: 'json',
};
export const singleUserPostData = {
access_level: propsData.defaultAccessLevel,
expires_at: undefined,
user_id: `${user1.id}`,
email: `${user3.name}`,
invite_source: inviteSource,
tasks_to_be_done: [],
tasks_project_id: '',
format: 'json',
};
2022-04-04 11:22:00 +05:30
export const GlEmoji = { template: '<img/>' };