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