2017-10-04 10:10:24 -04:00
import { _ _ , s _ _ } from '../locale' ;
export const MAX _CHILDREN _COUNT = 20 ;
2018-09-07 02:09:13 -04:00
export const ACTIVE _TAB _SUBGROUPS _AND _PROJECTS = 'subgroups_and_projects' ;
export const ACTIVE _TAB _SHARED = 'shared' ;
export const ACTIVE _TAB _ARCHIVED = 'archived' ;
export const GROUPS _LIST _HOLDER _CLASS = '.js-groups-list-holder' ;
export const GROUPS _FILTER _FORM _CLASS = '.js-group-filter-form' ;
2020-03-20 08:10:03 -04:00
export const CONTENT _LIST _CLASS = '.groups-list' ;
2018-09-07 02:09:13 -04:00
2017-10-04 10:10:24 -04:00
export const COMMON _STR = {
FAILURE : _ _ ( 'An error occurred. Please try again.' ) ,
2018-09-07 02:09:13 -04:00
LEAVE _FORBIDDEN : s _ _ (
'GroupsTree|Failed to leave the group. Please make sure you are not the only owner.' ,
) ,
2022-02-11 13:18:58 -05:00
LEAVE _BTN _TITLE : s _ _ ( 'GroupsTree|Leave group' ) ,
EDIT _BTN _TITLE : s _ _ ( 'GroupsTree|Edit' ) ,
REMOVE _BTN _TITLE : s _ _ ( 'GroupsTree|Delete' ) ,
OPTIONS _DROPDOWN _TITLE : s _ _ ( 'GroupsTree|Options' ) ,
2018-09-07 02:09:13 -04:00
GROUP _SEARCH _EMPTY : s _ _ ( 'GroupsTree|No groups matched your search' ) ,
GROUP _PROJECT _SEARCH _EMPTY : s _ _ ( 'GroupsTree|No groups or projects matched your search' ) ,
2017-10-04 10:10:24 -04:00
} ;
export const ITEM _TYPE = {
PROJECT : 'project' ,
GROUP : 'group' ,
} ;
export const GROUP _VISIBILITY _TYPE = {
2018-09-07 02:09:13 -04:00
public : _ _ (
'Public - The group and any public projects can be viewed without any authentication.' ,
) ,
internal : _ _ (
2020-10-30 11:08:59 -04:00
'Internal - The group and any internal projects can be viewed by any logged in user except external users.' ,
2018-09-07 02:09:13 -04:00
) ,
2017-10-04 10:10:24 -04:00
private : _ _ ( 'Private - The group and its projects can only be viewed by members.' ) ,
} ;
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:00:33 -05:00
public : 'earth' ,
internal : 'shield' ,
private : 'lock' ,
2017-10-04 10:10:24 -04:00
} ;