2020-07-28 23:09:34 +05:30
import { s _ _ , _ _ } from '~/locale' ;
2021-02-22 17:27:13 +05:30
export const SET _CLEANUP _POLICY _BUTTON = _ _ ( 'Save' ) ;
2020-07-28 23:09:34 +05:30
export const UNAVAILABLE _FEATURE _TITLE = s _ _ (
` ContainerRegistry|Cleanup policy for tags is disabled ` ,
) ;
export const UNAVAILABLE _FEATURE _INTRO _TEXT = s _ _ (
` ContainerRegistry|This project's cleanup policy for tags is not enabled. ` ,
) ;
export const UNAVAILABLE _USER _FEATURE _TEXT = _ _ ( ` Please contact your administrator. ` ) ;
export const UNAVAILABLE _ADMIN _FEATURE _TEXT = s _ _ (
` ContainerRegistry| Please visit the %{linkStart}administration settings%{linkEnd} to enable this feature. ` ,
) ;
2021-02-22 17:27:13 +05:30
export const TEXT _AREA _INVALID _FEEDBACK = s _ _ (
'ContainerRegistry|The value of this input should be less than 256 characters' ,
) ;
export const KEEP _HEADER _TEXT = s _ _ ( 'ContainerRegistry|Keep these tags' ) ;
export const KEEP _INFO _TEXT = s _ _ (
'ContainerRegistry|Tags that match these rules are %{strongStart}kept%{strongEnd}, even if they match a removal rule below. The %{secondStrongStart}latest%{secondStrongEnd} tag is always kept.' ,
) ;
export const KEEP _N _LABEL = s _ _ ( 'ContainerRegistry|Keep the most recent:' ) ;
export const NAME _REGEX _KEEP _LABEL = s _ _ ( 'ContainerRegistry|Keep tags matching:' ) ;
export const NAME _REGEX _KEEP _DESCRIPTION = s _ _ (
'ContainerRegistry|Tags with names that match this regex pattern are kept. %{linkStart}More information%{linkEnd}' ,
) ;
export const REMOVE _HEADER _TEXT = s _ _ ( 'ContainerRegistry|Remove these tags' ) ;
export const REMOVE _INFO _TEXT = s _ _ (
'ContainerRegistry|Tags that match these rules are %{strongStart}removed%{strongEnd}, unless a rule above says to keep them.' ,
) ;
export const EXPIRATION _SCHEDULE _LABEL = s _ _ ( 'ContainerRegistry|Remove tags older than:' ) ;
export const NAME _REGEX _LABEL = s _ _ ( 'ContainerRegistry|Remove tags matching:' ) ;
export const NAME _REGEX _PLACEHOLDER = '.*' ;
export const NAME _REGEX _DESCRIPTION = s _ _ (
'ContainerRegistry|Tags with names that match this regex pattern are removed. %{linkStart}More information%{linkEnd}' ,
) ;
export const ENABLED _TOGGLE _DESCRIPTION = s _ _ (
'ContainerRegistry|%{strongStart}Enabled%{strongEnd} - Tags that match the rules on this page are automatically scheduled for deletion.' ,
) ;
export const DISABLED _TOGGLE _DESCRIPTION = s _ _ (
'ContainerRegistry|%{strongStart}Disabled%{strongEnd} - Tags will not be automatically deleted.' ,
) ;
export const CADENCE _LABEL = s _ _ ( 'ContainerRegistry|Run cleanup:' ) ;
export const NEXT _CLEANUP _LABEL = s _ _ ( 'ContainerRegistry|Next cleanup scheduled to run on:' ) ;
export const NOT _SCHEDULED _POLICY _TEXT = s _ _ ( 'ContainerRegistry|Not yet scheduled' ) ;
export const EXPIRATION _POLICY _FOOTER _NOTE = s _ _ (
'ContainerRegistry|Note: Any policy update will result in a change to the scheduled run date and time' ,
) ;
export const KEEP _N _OPTIONS = [
{ key : 'ONE_TAG' , variable : 1 , default : false } ,
{ key : 'FIVE_TAGS' , variable : 5 , default : false } ,
{ key : 'TEN_TAGS' , variable : 10 , default : true } ,
{ key : 'TWENTY_FIVE_TAGS' , variable : 25 , default : false } ,
{ key : 'FIFTY_TAGS' , variable : 50 , default : false } ,
{ key : 'ONE_HUNDRED_TAGS' , variable : 100 , default : false } ,
] ;
export const CADENCE _OPTIONS = [
{ key : 'EVERY_DAY' , label : _ _ ( 'Every day' ) , default : true } ,
{ key : 'EVERY_WEEK' , label : _ _ ( 'Every week' ) , default : false } ,
{ key : 'EVERY_TWO_WEEKS' , label : _ _ ( 'Every two weeks' ) , default : false } ,
{ key : 'EVERY_MONTH' , label : _ _ ( 'Every month' ) , default : false } ,
{ key : 'EVERY_THREE_MONTHS' , label : _ _ ( 'Every three months' ) , default : false } ,
] ;
export const OLDER _THAN _OPTIONS = [
{ key : 'SEVEN_DAYS' , variable : 7 , default : false } ,
{ key : 'FOURTEEN_DAYS' , variable : 14 , default : false } ,
{ key : 'THIRTY_DAYS' , variable : 30 , default : false } ,
{ key : 'NINETY_DAYS' , variable : 90 , default : true } ,
] ;
export const FETCH _SETTINGS _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while fetching the cleanup policy.' ,
) ;
export const UPDATE _SETTINGS _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while updating the cleanup policy.' ,
) ;
export const UPDATE _SETTINGS _SUCCESS _MESSAGE = s _ _ (
'ContainerRegistry|Cleanup policy successfully saved.' ,
) ;
export const NAME _REGEX _LENGTH = 255 ;