2018-03-17 18:26:18 +05:30
export const mockEndpoint = '/dashboard/groups.json' ;
export const ITEM _TYPE = {
PROJECT : 'project' ,
GROUP : 'group' ,
2017-09-10 17:25:29 +05:30
} ;
2018-03-17 18:26:18 +05:30
export const GROUP _VISIBILITY _TYPE = {
public : 'Public - The group and any public projects can be viewed without any authentication.' ,
2021-01-29 00:20:46 +05:30
internal :
'Internal - The group and any internal projects can be viewed by any logged in user except external users.' ,
2018-03-17 18:26:18 +05:30
private : 'Private - The group and its projects can only be viewed by members.' ,
2017-09-10 17:25:29 +05:30
} ;
2018-03-17 18:26:18 +05:30
export const PROJECT _VISIBILITY _TYPE = {
public : 'Public - The project can be accessed without any authentication.' ,
2021-01-29 00:20:46 +05:30
internal : 'Internal - The project can be accessed by any logged in user except external users.' ,
2020-04-08 14:13:33 +05:30
private :
'Private - Project access must be granted explicitly to each user. If this project is part of a group, access will be granted to members of the group.' ,
2018-03-17 18:26:18 +05:30
} ;
export const VISIBILITY _TYPE _ICON = {
public : 'earth' ,
internal : 'shield' ,
private : 'lock' ,
2017-09-10 17:25:29 +05:30
} ;
2018-03-17 18:26:18 +05:30
export const mockParentGroupItem = {
id : 55 ,
name : 'hardware' ,
description : '' ,
2017-09-10 17:25:29 +05:30
visibility : 'public' ,
2018-03-17 18:26:18 +05:30
fullName : 'platform / hardware' ,
relativePath : '/platform/hardware' ,
canEdit : true ,
type : 'group' ,
avatarUrl : null ,
permission : 'Owner' ,
editPath : '/groups/platform/hardware/edit' ,
childrenCount : 3 ,
leavePath : '/groups/platform/hardware/group_members/leave' ,
parentId : 54 ,
memberCount : '1' ,
projectCount : 1 ,
subgroupCount : 2 ,
canLeave : false ,
children : [ ] ,
isOpen : true ,
isChildrenLoading : false ,
isBeingRemoved : false ,
updatedAt : '2017-04-09T18:40:39.101Z' ,
2017-09-10 17:25:29 +05:30
} ;
2018-03-17 18:26:18 +05:30
export const mockRawChildren = [
{
id : 57 ,
name : 'bsp' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform / hardware / bsp' ,
relative _path : '/platform/hardware/bsp' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/hardware/bsp/edit' ,
children _count : 6 ,
leave _path : '/groups/platform/hardware/bsp/group_members/leave' ,
parent _id : 55 ,
number _users _with _delimiter : '1' ,
project _count : 4 ,
subgroup _count : 2 ,
can _leave : false ,
children : [ ] ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
] ;
export const mockChildren = [
{
id : 57 ,
name : 'bsp' ,
description : '' ,
visibility : 'public' ,
fullName : 'platform / hardware / bsp' ,
relativePath : '/platform/hardware/bsp' ,
canEdit : true ,
type : 'group' ,
avatarUrl : null ,
permission : 'Owner' ,
editPath : '/groups/platform/hardware/bsp/edit' ,
childrenCount : 6 ,
leavePath : '/groups/platform/hardware/bsp/group_members/leave' ,
parentId : 55 ,
memberCount : '1' ,
projectCount : 4 ,
subgroupCount : 2 ,
canLeave : false ,
children : [ ] ,
isOpen : true ,
isChildrenLoading : false ,
isBeingRemoved : false ,
updatedAt : '2017-04-09T18:40:39.101Z' ,
2017-09-10 17:25:29 +05:30
} ,
2018-03-17 18:26:18 +05:30
] ;
export const mockGroups = [
{
id : 75 ,
name : 'test-group' ,
description : '' ,
visibility : 'public' ,
full _name : 'test-group' ,
relative _path : '/test-group' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/test-group/edit' ,
children _count : 2 ,
leave _path : '/groups/test-group/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '1' ,
project _count : 2 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 67 ,
name : 'open-source' ,
description : '' ,
visibility : 'private' ,
full _name : 'open-source' ,
relative _path : '/open-source' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/open-source/edit' ,
children _count : 0 ,
leave _path : '/groups/open-source/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '1' ,
project _count : 0 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 54 ,
name : 'platform' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform' ,
relative _path : '/platform' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/edit' ,
children _count : 1 ,
leave _path : '/groups/platform/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '1' ,
project _count : 0 ,
subgroup _count : 1 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 5 ,
name : 'H5bp' ,
description : 'Minus dolor consequuntur qui nam recusandae quam incidunt.' ,
visibility : 'public' ,
full _name : 'H5bp' ,
relative _path : '/h5bp' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/h5bp/edit' ,
children _count : 1 ,
leave _path : '/groups/h5bp/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '5' ,
project _count : 1 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 4 ,
name : 'Twitter' ,
description : 'Deserunt hic nostrum placeat veniam.' ,
visibility : 'public' ,
full _name : 'Twitter' ,
relative _path : '/twitter' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/twitter/edit' ,
children _count : 2 ,
leave _path : '/groups/twitter/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '5' ,
project _count : 2 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 3 ,
name : 'Documentcloud' ,
description : 'Consequatur saepe totam ea pariatur maxime.' ,
visibility : 'public' ,
full _name : 'Documentcloud' ,
relative _path : '/documentcloud' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/documentcloud/edit' ,
children _count : 1 ,
leave _path : '/groups/documentcloud/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '5' ,
project _count : 1 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
{
id : 2 ,
name : 'Gitlab Org' ,
description : 'Debitis ea quas aperiam velit doloremque ab.' ,
visibility : 'public' ,
full _name : 'Gitlab Org' ,
relative _path : '/gitlab-org' ,
can _edit : true ,
type : 'group' ,
avatar _url : '/uploads/-/system/group/avatar/2/GitLab.png' ,
permission : 'Owner' ,
edit _path : '/groups/gitlab-org/edit' ,
children _count : 4 ,
leave _path : '/groups/gitlab-org/group_members/leave' ,
parent _id : null ,
number _users _with _delimiter : '5' ,
project _count : 4 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
} ,
] ;
export const mockSearchedGroups = [
{
id : 55 ,
name : 'hardware' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform / hardware' ,
relative _path : '/platform/hardware' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/hardware/edit' ,
children _count : 3 ,
leave _path : '/groups/platform/hardware/group_members/leave' ,
parent _id : 54 ,
number _users _with _delimiter : '1' ,
project _count : 1 ,
subgroup _count : 2 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
children : [
{
id : 57 ,
name : 'bsp' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform / hardware / bsp' ,
relative _path : '/platform/hardware/bsp' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/hardware/bsp/edit' ,
children _count : 6 ,
leave _path : '/groups/platform/hardware/bsp/group_members/leave' ,
parent _id : 55 ,
number _users _with _delimiter : '1' ,
project _count : 4 ,
subgroup _count : 2 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
children : [
{
id : 60 ,
name : 'kernel' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform / hardware / bsp / kernel' ,
relative _path : '/platform/hardware/bsp/kernel' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/hardware/bsp/kernel/edit' ,
children _count : 1 ,
leave _path : '/groups/platform/hardware/bsp/kernel/group_members/leave' ,
parent _id : 57 ,
number _users _with _delimiter : '1' ,
project _count : 0 ,
subgroup _count : 1 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
children : [
{
id : 61 ,
name : 'common' ,
description : '' ,
visibility : 'public' ,
full _name : 'platform / hardware / bsp / kernel / common' ,
relative _path : '/platform/hardware/bsp/kernel/common' ,
can _edit : true ,
type : 'group' ,
avatar _url : null ,
permission : 'Owner' ,
edit _path : '/groups/platform/hardware/bsp/kernel/common/edit' ,
children _count : 2 ,
leave _path : '/groups/platform/hardware/bsp/kernel/common/group_members/leave' ,
parent _id : 60 ,
number _users _with _delimiter : '1' ,
project _count : 2 ,
subgroup _count : 0 ,
can _leave : false ,
updated _at : '2017-04-09T18:40:39.101Z' ,
children : [
{
id : 17 ,
name : 'v4.4' ,
2018-12-13 13:39:08 +05:30
description :
'Voluptatem qui ea error aperiam veritatis doloremque consequatur temporibus.' ,
2018-03-17 18:26:18 +05:30
visibility : 'public' ,
full _name : 'platform / hardware / bsp / kernel / common / v4.4' ,
relative _path : '/platform/hardware/bsp/kernel/common/v4.4' ,
can _edit : true ,
type : 'project' ,
avatar _url : null ,
permission : null ,
edit _path : '/platform/hardware/bsp/kernel/common/v4.4/edit' ,
star _count : 0 ,
updated _at : '2017-09-12T06:37:04.925Z' ,
} ,
{
id : 16 ,
name : 'v4.1' ,
description : 'Rerum expedita voluptatem doloribus neque ducimus ut hic.' ,
visibility : 'public' ,
full _name : 'platform / hardware / bsp / kernel / common / v4.1' ,
relative _path : '/platform/hardware/bsp/kernel/common/v4.1' ,
can _edit : true ,
type : 'project' ,
avatar _url : null ,
permission : null ,
edit _path : '/platform/hardware/bsp/kernel/common/v4.1/edit' ,
star _count : 0 ,
updated _at : '2017-04-09T18:41:03.112Z' ,
} ,
] ,
} ,
] ,
} ,
] ,
} ,
] ,
} ,
] ;
export const mockRawPageInfo = {
'x-per-page' : 10 ,
'x-page' : 10 ,
'x-total' : 10 ,
'x-total-pages' : 10 ,
'x-next-page' : 10 ,
'x-prev-page' : 10 ,
2017-09-10 17:25:29 +05:30
} ;
2018-03-17 18:26:18 +05:30
export const mockPageInfo = {
perPage : 10 ,
page : 10 ,
total : 10 ,
totalPages : 10 ,
nextPage : 10 ,
prevPage : 10 ,
} ;