2017-10-04 10:10:24 -04:00
export const mockEndpoint = '/dashboard/groups.json' ;
export const ITEM _TYPE = {
PROJECT : 'project' ,
GROUP : 'group' ,
2017-05-25 20:49:46 -04:00
} ;
2017-10-04 10:10:24 -04:00
export const GROUP _VISIBILITY _TYPE = {
public : 'Public - The group and any public projects can be viewed without any authentication.' ,
2020-10-30 11:08:59 -04:00
internal :
'Internal - The group and any internal projects can be viewed by any logged in user except external users.' ,
2017-10-04 10:10:24 -04:00
private : 'Private - The group and its projects can only be viewed by members.' ,
2017-05-25 20:49:46 -04:00
} ;
2017-10-04 10:10:24 -04:00
export const PROJECT _VISIBILITY _TYPE = {
public : 'Public - The project can be accessed without any authentication.' ,
2020-10-30 11:08:59 -04:00
internal : 'Internal - The project can be accessed by any logged in user except external users.' ,
2020-02-27 10:09:24 -05:00
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.' ,
2017-10-04 10:10:24 -04:00
} ;
export const VISIBILITY _TYPE _ICON = {
2017-12-22 02:36:01 -05:00
public : 'earth' ,
internal : 'shield' ,
private : 'lock' ,
2017-05-25 20:49:46 -04:00
} ;
2017-10-04 10:10:24 -04:00
export const mockParentGroupItem = {
id : 55 ,
name : 'hardware' ,
description : '' ,
2017-05-25 20:49:46 -04:00
visibility : 'public' ,
2017-10-04 10:10:24 -04:00
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 ,
2017-12-22 02:36:01 -05:00
updatedAt : '2017-04-09T18:40:39.101Z' ,
2017-05-25 20:49:46 -04:00
} ;
2017-10-04 10:10:24 -04:00
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 : [ ] ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
] ;
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 ,
2017-12-22 02:36:01 -05:00
updatedAt : '2017-04-09T18:40:39.101Z' ,
2017-05-22 19:20:15 -04:00
} ,
2017-10-04 10:10:24 -04:00
] ;
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
} ,
] ;
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:40:39.101Z' ,
2017-10-04 10:10:24 -04:00
children : [
{
id : 17 ,
name : 'v4.4' ,
2018-10-17 03:13:26 -04:00
description :
'Voluptatem qui ea error aperiam veritatis doloremque consequatur temporibus.' ,
2017-10-04 10:10:24 -04:00
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-09-12T06:37:04.925Z' ,
2017-10-04 10:10:24 -04:00
} ,
{
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 ,
2017-12-22 02:36:01 -05:00
updated _at : '2017-04-09T18:41:03.112Z' ,
2017-10-04 10:10:24 -04:00
} ,
] ,
} ,
] ,
} ,
] ,
} ,
] ,
} ,
] ;
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-05-22 19:20:15 -04:00
} ;
2017-05-25 20:49:46 -04:00
2017-10-04 10:10:24 -04:00
export const mockPageInfo = {
perPage : 10 ,
page : 10 ,
total : 10 ,
totalPages : 10 ,
nextPage : 10 ,
prevPage : 10 ,
} ;