2020-04-08 14:13:33 +05:30
import { s _ _ } from '~/locale' ;
2020-03-13 15:44:24 +05:30
2020-04-22 19:07:51 +05:30
// List page
export const CONTAINER _REGISTRY _TITLE = s _ _ ( 'ContainerRegistry|Container Registry' ) ;
export const CONNECTION _ERROR _TITLE = s _ _ ( 'ContainerRegistry|Docker connection error' ) ;
export const CONNECTION _ERROR _MESSAGE = s _ _ (
` ContainerRegistry|We are having trouble connecting to Docker, which could be due to an issue with your project name or path. %{docLinkStart}More Information%{docLinkEnd} ` ,
) ;
export const LIST _INTRO _TEXT = s _ _ (
` ContainerRegistry|With the Docker Container Registry integrated into GitLab, every project can have its own space to store its Docker images. %{docLinkStart}More Information%{docLinkEnd} ` ,
) ;
export const LIST _DELETE _BUTTON _DISABLED = s _ _ (
'ContainerRegistry|Missing or insufficient permission, delete button disabled' ,
) ;
export const REMOVE _REPOSITORY _LABEL = s _ _ ( 'ContainerRegistry|Remove repository' ) ;
export const REMOVE _REPOSITORY _MODAL _TEXT = s _ _ (
'ContainerRegistry|You are about to remove repository %{title}. Once you confirm, this repository will be permanently deleted.' ,
) ;
export const ROW _SCHEDULED _FOR _DELETION = s _ _ (
` ContainerRegistry|This image repository is scheduled for deletion ` ,
) ;
2020-04-08 14:13:33 +05:30
export const FETCH _IMAGES _LIST _ERROR _MESSAGE = s _ _ (
2020-04-22 19:07:51 +05:30
'ContainerRegistry|Something went wrong while fetching the repository list.' ,
2020-03-13 15:44:24 +05:30
) ;
2020-04-08 14:13:33 +05:30
export const FETCH _TAGS _LIST _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while fetching the tags list.' ,
2020-03-13 15:44:24 +05:30
) ;
2020-04-08 14:13:33 +05:30
export const DELETE _IMAGE _ERROR _MESSAGE = s _ _ (
2020-04-22 19:07:51 +05:30
'ContainerRegistry|Something went wrong while scheduling %{title} for deletion. Please try again.' ,
) ;
export const ASYNC _DELETE _IMAGE _ERROR _MESSAGE = s _ _ (
` ContainerRegistry|There was an error during the deletion of this image repository, please try again. ` ,
2020-04-08 14:13:33 +05:30
) ;
2020-04-22 19:07:51 +05:30
export const DELETE _IMAGE _SUCCESS _MESSAGE = s _ _ (
'ContainerRegistry|%{title} was successfully scheduled for deletion' ,
) ;
// Image details page
2020-04-08 14:13:33 +05:30
export const DELETE _TAG _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while deleting the tag.' ,
) ;
export const DELETE _TAG _SUCCESS _MESSAGE = s _ _ ( 'ContainerRegistry|Tag deleted successfully' ) ;
export const DELETE _TAGS _ERROR _MESSAGE = s _ _ (
'ContainerRegistry|Something went wrong while deleting the tags.' ,
) ;
export const DELETE _TAGS _SUCCESS _MESSAGE = s _ _ ( 'ContainerRegistry|Tags deleted successfully' ) ;
2020-03-13 15:44:24 +05:30
export const DEFAULT _PAGE = 1 ;
export const DEFAULT _PAGE _SIZE = 10 ;
export const GROUP _PAGE _TYPE = 'groups' ;
export const LIST _KEY _TAG = 'name' ;
export const LIST _KEY _IMAGE _ID = 'short_revision' ;
export const LIST _KEY _SIZE = 'total_size' ;
export const LIST _KEY _LAST _UPDATED = 'created_at' ;
export const LIST _KEY _ACTIONS = 'actions' ;
export const LIST _KEY _CHECKBOX = 'checkbox' ;
2020-04-08 14:13:33 +05:30
export const LIST _LABEL _TAG = s _ _ ( 'ContainerRegistry|Tag' ) ;
export const LIST _LABEL _IMAGE _ID = s _ _ ( 'ContainerRegistry|Image ID' ) ;
2020-04-22 19:07:51 +05:30
export const LIST _LABEL _SIZE = s _ _ ( 'ContainerRegistry|Compressed Size' ) ;
2020-04-08 14:13:33 +05:30
export const LIST _LABEL _LAST _UPDATED = s _ _ ( 'ContainerRegistry|Last Updated' ) ;
2020-04-22 19:07:51 +05:30
// Expiration policies
2020-04-08 14:13:33 +05:30
export const EXPIRATION _POLICY _ALERT _TITLE = s _ _ (
'ContainerRegistry|Retention policy has been Enabled' ,
) ;
export const EXPIRATION _POLICY _ALERT _PRIMARY _BUTTON = s _ _ ( 'ContainerRegistry|Edit Settings' ) ;
export const EXPIRATION _POLICY _ALERT _FULL _MESSAGE = s _ _ (
'ContainerRegistry|The retention and expiration policy for this Container Registry has been enabled and will run in %{days}. For more information visit the %{linkStart}documentation%{linkEnd}' ,
) ;
export const EXPIRATION _POLICY _ALERT _SHORT _MESSAGE = s _ _ (
'ContainerRegistry|The retention and expiration policy for this Container Registry has been enabled. For more information visit the %{linkStart}documentation%{linkEnd}' ,
) ;
2020-04-22 19:07:51 +05:30
// Quick Start
export const QUICK _START = s _ _ ( 'ContainerRegistry|Quick Start' ) ;
export const LOGIN _COMMAND _LABEL = s _ _ ( 'ContainerRegistry|Login' ) ;
export const COPY _LOGIN _TITLE = s _ _ ( 'ContainerRegistry|Copy login command' ) ;
export const BUILD _COMMAND _LABEL = s _ _ ( 'ContainerRegistry|Build an image' ) ;
export const COPY _BUILD _TITLE = s _ _ ( 'ContainerRegistry|Copy build command' ) ;
export const PUSH _COMMAND _LABEL = s _ _ ( 'ContainerRegistry|Push an image' ) ;
export const COPY _PUSH _TITLE = s _ _ ( 'ContainerRegistry|Copy push command' ) ;
// Image state
export const IMAGE _DELETE _SCHEDULED _STATUS = 'delete_scheduled' ;
export const IMAGE _FAILED _DELETED _STATUS = 'delete_failed' ;