debian-mirror-gitlab/app/assets/javascripts/packages/shared/constants.js

50 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-11-18 22:05:49 +05:30
import { s__ } from '~/locale';
2020-11-24 15:15:51 +05:30
2020-10-24 23:57:45 +05:30
export const PackageType = {
CONAN: 'conan',
MAVEN: 'maven',
NPM: 'npm',
NUGET: 'nuget',
PYPI: 'pypi',
COMPOSER: 'composer',
2021-04-29 21:17:54 +05:30
RUBYGEMS: 'rubygems',
2021-02-22 17:27:13 +05:30
GENERIC: 'generic',
2021-09-30 23:02:18 +05:30
DEBIAN: 'debian',
HELM: 'helm',
2020-10-24 23:57:45 +05:30
};
2021-09-04 01:27:46 +05:30
// we want this separated from the main dictionary to avoid it being pulled in the search of package
export const TERRAFORM_PACKAGE_TYPE = 'terraform_module';
2020-10-24 23:57:45 +05:30
export const TrackingActions = {
DELETE_PACKAGE: 'delete_package',
REQUEST_DELETE_PACKAGE: 'request_delete_package',
CANCEL_DELETE_PACKAGE: 'cancel_delete_package',
PULL_PACKAGE: 'pull_package',
2021-09-04 01:27:46 +05:30
DELETE_PACKAGE_FILE: 'delete_package_file',
REQUEST_DELETE_PACKAGE_FILE: 'request_delete_package_file',
CANCEL_DELETE_PACKAGE_FILE: 'cancel_delete_package_file',
2020-10-24 23:57:45 +05:30
};
export const TrackingCategories = {
[PackageType.MAVEN]: 'MavenPackages',
[PackageType.NPM]: 'NpmPackages',
[PackageType.CONAN]: 'ConanPackages',
};
2020-11-24 15:15:51 +05:30
export const SHOW_DELETE_SUCCESS_ALERT = 'showSuccessDeleteAlert';
2021-09-04 01:27:46 +05:30
export const DELETE_PACKAGE_ERROR_MESSAGE = s__(
'PackageRegistry|Something went wrong while deleting the package.',
);
export const DELETE_PACKAGE_FILE_ERROR_MESSAGE = s__(
2021-11-18 22:05:49 +05:30
'PackageRegistry|Something went wrong while deleting the package file.',
2021-09-04 01:27:46 +05:30
);
export const DELETE_PACKAGE_FILE_SUCCESS_MESSAGE = s__(
'PackageRegistry|Package file deleted successfully',
);
2021-06-08 01:23:25 +05:30
export const PACKAGE_ERROR_STATUS = 'error';
export const PACKAGE_DEFAULT_STATUS = 'default';
export const PACKAGE_HIDDEN_STATUS = 'hidden';
export const PACKAGE_PROCESSING_STATUS = 'processing';