2022-06-21 17:19:12 +05:30
import { _ _ , s _ _ } from '~/locale' ;
2022-08-27 11:52:29 +05:30
import {
VISIBILITY _LEVEL _PRIVATE ,
VISIBILITY _LEVEL _INTERNAL ,
VISIBILITY _LEVEL _PUBLIC ,
} from '~/visibility_level/constants' ;
2018-03-17 18:26:18 +05:30
export const MAX _CHILDREN _COUNT = 20 ;
2018-11-20 20:47:30 +05:30
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-04-22 19:07:51 +05:30
export const CONTENT _LIST _CLASS = '.groups-list' ;
2018-11-20 20:47:30 +05:30
2018-03-17 18:26:18 +05:30
export const COMMON _STR = {
FAILURE : _ _ ( 'An error occurred. Please try again.' ) ,
2018-11-20 20:47:30 +05:30
LEAVE _FORBIDDEN : s _ _ (
'GroupsTree|Failed to leave the group. Please make sure you are not the only owner.' ,
) ,
2022-04-04 11:22:00 +05:30
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-11-20 20:47:30 +05:30
GROUP _SEARCH _EMPTY : s _ _ ( 'GroupsTree|No groups matched your search' ) ,
GROUP _PROJECT _SEARCH _EMPTY : s _ _ ( 'GroupsTree|No groups or projects matched your search' ) ,
2018-03-17 18:26:18 +05:30
} ;
export const ITEM _TYPE = {
PROJECT : 'project' ,
GROUP : 'group' ,
} ;
export const GROUP _VISIBILITY _TYPE = {
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _PUBLIC ] : _ _ (
2018-11-20 20:47:30 +05:30
'Public - The group and any public projects can be viewed without any authentication.' ,
) ,
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _INTERNAL ] : _ _ (
2021-01-29 00:20:46 +05:30
'Internal - The group and any internal projects can be viewed by any logged in user except external users.' ,
2018-11-20 20:47:30 +05:30
) ,
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _PRIVATE ] : _ _ (
'Private - The group and its projects can only be viewed by members.' ,
) ,
2018-03-17 18:26:18 +05:30
} ;
export const PROJECT _VISIBILITY _TYPE = {
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _PUBLIC ] : _ _ ( 'Public - The project can be accessed without any authentication.' ) ,
[ VISIBILITY _LEVEL _INTERNAL ] : _ _ (
2021-01-29 00:20:46 +05:30
'Internal - The project can be accessed by any logged in user except external users.' ,
) ,
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _PRIVATE ] : _ _ (
2020-04-08 14:13:33 +05:30
'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 = {
2022-08-27 11:52:29 +05:30
[ VISIBILITY _LEVEL _PUBLIC ] : 'earth' ,
[ VISIBILITY _LEVEL _INTERNAL ] : 'shield' ,
[ VISIBILITY _LEVEL _PRIVATE ] : 'lock' ,
2018-03-17 18:26:18 +05:30
} ;