2021-03-11 19:13:27 +05:30
import { helpPagePath } from '~/helpers/help_page_helper' ;
2020-07-28 23:09:34 +05:30
import { s _ _ , _ _ } from '~/locale' ;
2020-06-23 00:09:42 +05:30
// Translations strings
export const DELETE _TAG _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while marking the tag for deletion.' ,
) ;
export const DELETE _TAG _SUCCESS _MESSAGE = s _ _ (
'ContainerRegistry|Tag successfully marked for deletion.' ,
) ;
export const DELETE _TAGS _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while marking the tags for deletion.' ,
) ;
export const DELETE _TAGS _SUCCESS _MESSAGE = s _ _ (
'ContainerRegistry|Tags successfully marked for deletion.' ,
) ;
2020-07-28 23:09:34 +05:30
2021-01-29 00:20:46 +05:30
export const FETCH _IMAGE _DETAILS _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while fetching the image details.' ,
) ;
2020-07-28 23:09:34 +05:30
export const TAGS _LIST _TITLE = s _ _ ( 'ContainerRegistry|Image tags' ) ;
export const DIGEST _LABEL = s _ _ ( 'ContainerRegistry|Digest: %{imageId}' ) ;
export const CREATED _AT _LABEL = s _ _ ( 'ContainerRegistry|Published %{timeInfo}' ) ;
export const PUBLISHED _DETAILS _ROW _TEXT = s _ _ (
'ContainerRegistry|Published to the %{repositoryPath} image repository at %{time} on %{date}' ,
) ;
export const MANIFEST _DETAILS _ROW _TEST = s _ _ ( 'ContainerRegistry|Manifest digest: %{digest}' ) ;
export const CONFIGURATION _DETAILS _ROW _TEST = s _ _ (
'ContainerRegistry|Configuration digest: %{digest}' ,
) ;
2020-06-23 00:09:42 +05:30
export const REMOVE _TAG _BUTTON _TITLE = s _ _ ( 'ContainerRegistry|Remove tag' ) ;
2021-06-08 01:23:25 +05:30
export const REMOVE _TAGS _BUTTON _TITLE = s _ _ ( 'ContainerRegistry|Delete selected tags' ) ;
2021-03-11 19:13:27 +05:30
2020-06-23 00:09:42 +05:30
export const REMOVE _TAG _CONFIRMATION _TEXT = s _ _ (
` ContainerRegistry|You are about to remove %{item}. Are you sure? ` ,
) ;
export const REMOVE _TAGS _CONFIRMATION _TEXT = s _ _ (
` ContainerRegistry|You are about to remove %{item} tags. Are you sure? ` ,
) ;
2021-03-11 19:13:27 +05:30
export const NO _TAGS _TITLE = s _ _ ( 'ContainerRegistry|This image has no active tags' ) ;
export const NO _TAGS _MESSAGE = s _ _ (
2020-06-23 00:09:42 +05:30
` ContainerRegistry|The last tag related to this image was recently removed.
This empty image and any associated data will be automatically removed as part of the regular Garbage Collection process .
If you have any questions , contact your administrator . ` ,
) ;
2021-03-11 19:13:27 +05:30
export const MISSING _OR _DELETED _IMAGE _TITLE = s _ _ (
'ContainerRegistry|The image repository could not be found.' ,
) ;
export const MISSING _OR _DELETED _IMAGE _MESSAGE = s _ _ (
'ContainerRegistry|The requested image repository does not exist or has been deleted. If you think this is an error, try refreshing the page.' ,
) ;
2021-04-17 20:07:23 +05:30
export const MISSING _OR _DELETED _IMAGE _BREADCRUMB = s _ _ (
2021-03-11 19:13:27 +05:30
'ContainerRegistry|Image repository not found' ,
) ;
2020-06-23 00:09:42 +05:30
export const ADMIN _GARBAGE _COLLECTION _TIP = s _ _ (
'ContainerRegistry|Remember to run %{docLinkStart}garbage collection%{docLinkEnd} to remove the stale data from storage.' ,
) ;
2020-07-28 23:09:34 +05:30
export const REMOVE _TAG _BUTTON _DISABLE _TOOLTIP = s _ _ (
'ContainerRegistry|Deletion disabled due to missing or insufficient permissions.' ,
) ;
export const MISSING _MANIFEST _WARNING _TOOLTIP = s _ _ (
'ContainerRegistry|Invalid tag: missing manifest digest' ,
) ;
2021-02-22 17:27:13 +05:30
export const UPDATED _AT = s _ _ ( 'ContainerRegistry|Last updated %{time}' ) ;
2020-07-28 23:09:34 +05:30
export const NOT _AVAILABLE _TEXT = _ _ ( 'N/A' ) ;
export const NOT _AVAILABLE _SIZE = _ _ ( '0 bytes' ) ;
2021-03-08 18:12:59 +05:30
export const CLEANUP _UNSCHEDULED _TEXT = s _ _ ( 'ContainerRegistry|Cleanup will run %{time}' ) ;
export const CLEANUP _SCHEDULED _TEXT = s _ _ ( 'ContainerRegistry|Cleanup pending' ) ;
export const CLEANUP _ONGOING _TEXT = s _ _ ( 'ContainerRegistry|Cleanup in progress' ) ;
export const CLEANUP _UNFINISHED _TEXT = s _ _ ( 'ContainerRegistry|Cleanup incomplete' ) ;
export const CLEANUP _DISABLED _TEXT = s _ _ ( 'ContainerRegistry|Cleanup disabled' ) ;
export const CLEANUP _SCHEDULED _TOOLTIP = s _ _ ( 'ContainerRegistry|Cleanup will run soon' ) ;
export const CLEANUP _ONGOING _TOOLTIP = s _ _ ( 'ContainerRegistry|Cleanup is currently removing tags' ) ;
export const CLEANUP _UNFINISHED _TOOLTIP = s _ _ (
'ContainerRegistry|Cleanup ran but some tags were not removed' ,
) ;
export const CLEANUP _DISABLED _TOOLTIP = s _ _ (
'ContainerRegistry|Cleanup is disabled for this project' ,
) ;
2021-09-30 23:02:18 +05:30
export const CLEANUP _STATUS _SCHEDULED = s _ _ ( 'ContainerRegistry|Cleanup will run soon' ) ;
export const CLEANUP _STATUS _ONGOING = s _ _ ( 'ContainerRegistry|Cleanup is ongoing' ) ;
export const CLEANUP _STATUS _UNFINISHED = s _ _ ( 'ContainerRegistry|Cleanup timed out' ) ;
2021-03-11 19:13:27 +05:30
export const DETAILS _DELETE _IMAGE _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while scheduling the image for deletion.' ,
) ;
export const DELETE _IMAGE _CONFIRMATION _TITLE = s _ _ ( 'ContainerRegistry|Delete image repository?' ) ;
export const DELETE _IMAGE _CONFIRMATION _TEXT = s _ _ (
2021-10-27 15:23:28 +05:30
'ContainerRegistry|Deleting the image repository will delete all images and tags inside. This action cannot be undone. Please type the following to confirm: %{code}' ,
2021-03-11 19:13:27 +05:30
) ;
export const SCHEDULED _FOR _DELETION _STATUS _TITLE = s _ _ (
'ContainerRegistry|Image repository will be deleted' ,
) ;
export const SCHEDULED _FOR _DELETION _STATUS _MESSAGE = s _ _ (
'ContainerRegistry|This image repository will be deleted. %{linkStart}Learn more.%{linkEnd}' ,
) ;
export const FAILED _DELETION _STATUS _TITLE = s _ _ (
'ContainerRegistry|Image repository deletion failed' ,
) ;
export const FAILED _DELETION _STATUS _MESSAGE = s _ _ (
'ContainerRegistry|This image repository has failed to be deleted' ,
) ;
2021-04-17 20:07:23 +05:30
export const ROOT _IMAGE _TOOLTIP = s _ _ (
'ContainerRegistry|Image repository with no name located at the project URL.' ,
) ;
2020-06-23 00:09:42 +05:30
// Parameters
export const DEFAULT _PAGE = 1 ;
export const DEFAULT _PAGE _SIZE = 10 ;
export const GROUP _PAGE _TYPE = 'groups' ;
export const ALERT _SUCCESS _TAG = 'success_tag' ;
export const ALERT _DANGER _TAG = 'danger_tag' ;
export const ALERT _SUCCESS _TAGS = 'success_tags' ;
export const ALERT _DANGER _TAGS = 'danger_tags' ;
2021-03-11 19:13:27 +05:30
export const ALERT _DANGER _IMAGE = 'danger_image' ;
export const DELETE _SCHEDULED = 'DELETE_SCHEDULED' ;
export const DELETE _FAILED = 'DELETE_FAILED' ;
2020-06-23 00:09:42 +05:30
export const ALERT _MESSAGES = {
[ ALERT _SUCCESS _TAG ] : DELETE _TAG _SUCCESS _MESSAGE ,
[ ALERT _DANGER _TAG ] : DELETE _TAG _ERROR _MESSAGE ,
[ ALERT _SUCCESS _TAGS ] : DELETE _TAGS _SUCCESS _MESSAGE ,
[ ALERT _DANGER _TAGS ] : DELETE _TAGS _ERROR _MESSAGE ,
2021-03-11 19:13:27 +05:30
[ ALERT _DANGER _IMAGE ] : DETAILS _DELETE _IMAGE _ERROR _MESSAGE ,
2020-06-23 00:09:42 +05:30
} ;
2021-03-08 18:12:59 +05:30
export const UNFINISHED _STATUS = 'UNFINISHED' ;
export const UNSCHEDULED _STATUS = 'UNSCHEDULED' ;
export const SCHEDULED _STATUS = 'SCHEDULED' ;
export const ONGOING _STATUS = 'ONGOING' ;
2021-03-11 19:13:27 +05:30
export const IMAGE _STATUS _TITLES = {
[ DELETE _SCHEDULED ] : SCHEDULED _FOR _DELETION _STATUS _TITLE ,
[ DELETE _FAILED ] : FAILED _DELETION _STATUS _TITLE ,
} ;
export const IMAGE _STATUS _MESSAGES = {
[ DELETE _SCHEDULED ] : SCHEDULED _FOR _DELETION _STATUS _MESSAGE ,
[ DELETE _FAILED ] : FAILED _DELETION _STATUS _MESSAGE ,
} ;
export const IMAGE _STATUS _ALERT _TYPE = {
[ DELETE _SCHEDULED ] : 'info' ,
[ DELETE _FAILED ] : 'warning' ,
} ;
2021-10-27 15:23:28 +05:30
export const PACKAGE _DELETE _HELP _PAGE _PATH = helpPagePath (
'user/packages/container_registry/index' ,
{
anchor : 'delete-images' ,
} ,
) ;