2023-01-13 00:05:48 +05:30
import { _ _ , s _ _ , n _ _ , sprintf } from '~/locale' ;
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-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 ;