2023-01-13 00:05:48 +05:30
import { _ _ , s _ _ , n _ _ , sprintf } from '~/locale' ;
2023-04-23 21:23:45 +05:30
export const PAGE _TITLE = s _ _ ( 'Artifacts|Artifacts' ) ;
export const TOTAL _ARTIFACTS _SIZE = s _ _ ( 'Artifacts|Total artifacts size' ) ;
export const SIZE _UNKNOWN = _ _ ( 'Unknown' ) ;
2023-01-13 00:05:48 +05:30
export const JOB _STATUS _GROUP _SUCCESS = 'success' ;
export const STATUS _BADGE _VARIANTS = {
success : 'success' ,
passed : 'success' ,
error : 'danger' ,
failed : 'danger' ,
pending : 'warning' ,
'waiting-for-resource' : 'warning' ,
'failed-with-warnings' : 'warning' ,
'success-with-warnings' : 'warning' ,
running : 'info' ,
canceled : 'neutral' ,
disabled : 'neutral' ,
scheduled : 'neutral' ,
manual : 'neutral' ,
notification : 'muted' ,
preparing : 'muted' ,
created : 'muted' ,
skipped : 'muted' ,
notfound : 'muted' ,
} ;
export const I18N _DOWNLOAD = _ _ ( 'Download' ) ;
export const I18N _BROWSE = s _ _ ( 'Artifacts|Browse' ) ;
export const I18N _DELETE = _ _ ( 'Delete' ) ;
export const I18N _EXPIRED = _ _ ( 'Expired' ) ;
export const I18N _DESTROY _ERROR = s _ _ ( 'Artifacts|An error occurred while deleting the artifact' ) ;
export const I18N _FETCH _ERROR = s _ _ ( 'Artifacts|An error occurred while retrieving job artifacts' ) ;
export const I18N _ARTIFACTS = _ _ ( 'Artifacts' ) ;
export const I18N _JOB = _ _ ( 'Job' ) ;
export const I18N _SIZE = _ _ ( 'Size' ) ;
export const I18N _CREATED = _ _ ( 'Created' ) ;
export const I18N _ARTIFACTS _COUNT = ( count ) => n _ _ ( '%d file' , '%d files' , count ) ;
export const I18N _MODAL _TITLE = ( artifactName ) =>
sprintf ( s _ _ ( 'Artifacts|Delete %{name}?' ) , { name : artifactName } ) ;
export const I18N _MODAL _BODY = s _ _ (
'Artifacts|This artifact will be permanently deleted. Any reports generated from this artifact will be empty.' ,
) ;
export const I18N _MODAL _PRIMARY = s _ _ ( 'Artifacts|Delete artifact' ) ;
export const I18N _MODAL _CANCEL = _ _ ( 'Cancel' ) ;
2023-03-17 16:20:25 +05:30
export const I18N _FEEDBACK _BANNER _TITLE = s _ _ ( 'Artifacts|Help us improve this page' ) ;
export const I18N _FEEDBACK _BANNER _BODY = s _ _ (
'Artifacts|We want you to be able to use this page to easily manage your CI/CD job artifacts. We are working to improve this experience and would appreciate any feedback you have about the improvements we are making.' ,
) ;
export const I18N _FEEDBACK _BANNER _BUTTON = s _ _ ( 'Artifacts|Take a quick survey' ) ;
export const FEEDBACK _URL = 'https://gitlab.fra1.qualtrics.com/jfe/form/SV_cI9rAUI20Vo2St8' ;
2023-05-27 22:25:52 +05:30
export const BULK _DELETE _FEATURE _FLAG = 'ciJobArtifactBulkDestroy' ;
2023-07-09 08:55:56 +05:30
export const SELECTED _ARTIFACTS _MAX _COUNT = 50 ;
export const I18N _BULK _DELETE _MAX _SELECTED = s _ _ (
'Artifacts|Maximum selected artifacts limit reached' ,
) ;
2023-05-27 22:25:52 +05:30
export const I18N _BULK _DELETE _BANNER = ( count ) =>
sprintf (
n _ _ (
'Artifacts|%{strongStart}%{count}%{strongEnd} artifact selected' ,
'Artifacts|%{strongStart}%{count}%{strongEnd} artifacts selected' ,
count ,
) ,
{
count ,
} ,
) ;
export const I18N _BULK _DELETE _CLEAR _SELECTION = s _ _ ( 'Artifacts|Clear selection' ) ;
export const I18N _BULK _DELETE _DELETE _SELECTED = s _ _ ( 'Artifacts|Delete selected' ) ;
export const BULK _DELETE _MODAL _ID = 'artifacts-bulk-delete-modal' ;
export const I18N _BULK _DELETE _MODAL _TITLE = ( count ) =>
n _ _ ( 'Artifacts|Delete %d artifact?' , 'Artifacts|Delete %d artifacts?' , count ) ;
export const I18N _BULK _DELETE _BODY = ( count ) =>
sprintf (
n _ _ (
'Artifacts|The selected artifact will be permanently deleted. Any reports generated from these artifacts will be empty.' ,
'Artifacts|The selected artifacts will be permanently deleted. Any reports generated from these artifacts will be empty.' ,
count ,
) ,
{ count } ,
) ;
export const I18N _BULK _DELETE _ACTION = ( count ) =>
n _ _ ( 'Artifacts|Delete %d artifact' , 'Artifacts|Delete %d artifacts' , count ) ;
export const I18N _BULK _DELETE _PARTIAL _ERROR = s _ _ (
'Artifacts|An error occurred while deleting. Some artifacts may not have been deleted.' ,
) ;
export const I18N _BULK _DELETE _ERROR = s _ _ (
'Artifacts|Something went wrong while deleting. Please refresh the page to try again.' ,
) ;
export const I18N _BULK _DELETE _CONFIRMATION _TOAST = ( count ) =>
n _ _ ( 'Artifacts|%d selected artifact deleted' , 'Artifacts|%d selected artifacts deleted' , count ) ;
2023-01-13 00:05:48 +05:30
export const INITIAL _CURRENT _PAGE = 1 ;
export const INITIAL _PREVIOUS _PAGE _CURSOR = '' ;
export const INITIAL _NEXT _PAGE _CURSOR = '' ;
export const JOBS _PER _PAGE = 20 ;
export const INITIAL _LAST _PAGE _SIZE = null ;
export const ARCHIVE _FILE _TYPE = 'ARCHIVE' ;
export const ARTIFACT _ROW _HEIGHT = 56 ;
export const ARTIFACTS _SHOWN _WITHOUT _SCROLLING = 4 ;