2023-03-17 16:20:25 +05:30
import { s _ _ , _ _ } from '~/locale' ;
import { helpPagePath } from '~/helpers/help_page_helper' ;
export const ERROR _MESSAGE = s _ _ (
'UsageQuota|Something went wrong while fetching project storage statistics' ,
) ;
export const LEARN _MORE _LABEL = _ _ ( 'Learn more.' ) ;
export const USAGE _QUOTAS _LABEL = s _ _ ( 'UsageQuota|Usage Quotas' ) ;
export const TOTAL _USAGE _TITLE = s _ _ ( 'UsageQuota|Usage breakdown' ) ;
export const TOTAL _USAGE _SUBTITLE = s _ _ (
2023-06-20 00:43:36 +05:30
'UsageQuota|Includes artifacts, repositories, wiki, and other items.' ,
2023-03-17 16:20:25 +05:30
) ;
export const TOTAL _USAGE _DEFAULT _TEXT = _ _ ( 'Not applicable.' ) ;
export const HELP _LINK _ARIA _LABEL = s _ _ ( 'UsageQuota|%{linkTitle} help link' ) ;
export const RECALCULATE _REPOSITORY _LABEL = s _ _ ( 'UsageQuota|Recalculate repository usage' ) ;
export const projectContainerRegistryPopoverContent = s _ _ (
'UsageQuotas|The project-level storage statistics for the Container Registry are directional only and do not include savings for instance-wide deduplication.' ,
) ;
export const containerRegistryId = 'containerRegistrySize' ;
export const containerRegistryPopoverId = 'container-registry-popover' ;
export const PROJECT _TABLE _LABEL _STORAGE _TYPE = s _ _ ( 'UsageQuota|Storage type' ) ;
export const PROJECT _TABLE _LABEL _USAGE = s _ _ ( 'UsageQuota|Usage' ) ;
export const PROJECT _STORAGE _TYPES = [
{
id : 'containerRegistrySize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Container Registry' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ (
'UsageQuota|Gitlab-integrated Docker Container Registry for storing Docker Images.' ,
) ,
} ,
{
id : 'buildArtifactsSize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Job artifacts' ) ,
description : s _ _ ( 'UsageQuota|Job artifacts created by CI/CD.' ) ,
} ,
{
id : 'pipelineArtifactsSize' ,
name : _ _ ( 'Pipeline artifacts' ) ,
description : s _ _ ( 'UsageQuota|Pipeline artifacts created by CI/CD.' ) ,
2023-03-17 16:20:25 +05:30
} ,
{
id : 'lfsObjectsSize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'LFS' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ ( 'UsageQuota|Audio samples, videos, datasets, and graphics.' ) ,
} ,
{
id : 'packagesSize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Packages' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ ( 'UsageQuota|Code packages and container images.' ) ,
} ,
{
id : 'repositorySize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Repository' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ ( 'UsageQuota|Git repository.' ) ,
} ,
{
id : 'snippetsSize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Snippets' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ ( 'UsageQuota|Shared bits of code and text.' ) ,
} ,
{
id : 'wikiSize' ,
2023-06-20 00:43:36 +05:30
name : _ _ ( 'Wiki' ) ,
2023-03-17 16:20:25 +05:30
description : s _ _ ( 'UsageQuota|Wiki content.' ) ,
} ,
] ;
export const projectHelpPaths = {
containerRegistry : helpPagePath (
'user/packages/container_registry/reduce_container_registry_storage' ,
) ,
usageQuotas : helpPagePath ( 'user/usage_quotas' ) ,
usageQuotasNamespaceStorageLimit : helpPagePath ( 'user/usage_quotas' , {
anchor : 'namespace-storage-limit' ,
} ) ,
buildArtifacts : helpPagePath ( 'ci/pipelines/job_artifacts' , {
anchor : 'when-job-artifacts-are-deleted' ,
} ) ,
2023-06-20 00:43:36 +05:30
pipelineArtifacts : helpPagePath ( '/ci/pipelines/pipeline_artifacts' , {
anchor : 'when-pipeline-artifacts-are-deleted' ,
} ) ,
2023-03-17 16:20:25 +05:30
packages : helpPagePath ( 'user/packages/package_registry/index.md' , {
anchor : 'reduce-storage-usage' ,
} ) ,
repository : helpPagePath ( 'user/project/repository/reducing_the_repo_size_using_git' ) ,
snippets : helpPagePath ( 'user/snippets' , {
anchor : 'reduce-snippets-repository-size' ,
} ) ,
wiki : helpPagePath ( 'administration/wikis/index.md' , {
anchor : 'reduce-wiki-repository-size' ,
} ) ,
} ;