2020-03-10 08:08:16 -04:00
|
|
|
import { __ } from '~/locale';
|
|
|
|
|
2020-01-31 10:08:42 -05:00
|
|
|
export const SNIPPET_VISIBILITY_PRIVATE = 'private';
|
|
|
|
export const SNIPPET_VISIBILITY_INTERNAL = 'internal';
|
|
|
|
export const SNIPPET_VISIBILITY_PUBLIC = 'public';
|
2020-03-10 08:08:16 -04:00
|
|
|
|
|
|
|
export const SNIPPET_VISIBILITY = {
|
2020-04-01 05:07:45 -04:00
|
|
|
[SNIPPET_VISIBILITY_PRIVATE]: {
|
2020-03-10 08:08:16 -04:00
|
|
|
label: __('Private'),
|
2020-04-01 05:07:45 -04:00
|
|
|
icon: 'lock',
|
2020-03-10 08:08:16 -04:00
|
|
|
description: __('The snippet is visible only to me.'),
|
|
|
|
description_project: __('The snippet is visible only to project members.'),
|
|
|
|
},
|
2020-04-01 05:07:45 -04:00
|
|
|
[SNIPPET_VISIBILITY_INTERNAL]: {
|
2020-03-10 08:08:16 -04:00
|
|
|
label: __('Internal'),
|
2020-04-01 05:07:45 -04:00
|
|
|
icon: 'shield',
|
2020-03-10 08:08:16 -04:00
|
|
|
description: __('The snippet is visible to any logged in user.'),
|
|
|
|
},
|
2020-04-01 05:07:45 -04:00
|
|
|
[SNIPPET_VISIBILITY_PUBLIC]: {
|
2020-03-10 08:08:16 -04:00
|
|
|
label: __('Public'),
|
2020-04-01 05:07:45 -04:00
|
|
|
icon: 'earth',
|
2020-03-10 08:08:16 -04:00
|
|
|
description: __('The snippet can be accessed without any authentication.'),
|
|
|
|
},
|
|
|
|
};
|