diff options
Diffstat (limited to 'app/assets/javascripts/packages_and_registries/package_registry/constants.js')
-rw-r--r-- | app/assets/javascripts/packages_and_registries/package_registry/constants.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/assets/javascripts/packages_and_registries/package_registry/constants.js b/app/assets/javascripts/packages_and_registries/package_registry/constants.js index f023b4481a0..6a88880fa90 100644 --- a/app/assets/javascripts/packages_and_registries/package_registry/constants.js +++ b/app/assets/javascripts/packages_and_registries/package_registry/constants.js @@ -1,5 +1,4 @@ -/* eslint-disable @gitlab/require-string-literal-i18n-helpers */ -import { __, s__ } from '~/locale'; +import { s__ } from '~/locale'; export const PACKAGE_TYPE_CONAN = 'CONAN'; export const PACKAGE_TYPE_MAVEN = 'MAVEN'; @@ -71,7 +70,7 @@ export const DELETE_PACKAGE_ERROR_MESSAGE = s__( 'PackageRegistry|Something went wrong while deleting the package.', ); export const DELETE_PACKAGE_FILE_ERROR_MESSAGE = s__( - __('PackageRegistry|Something went wrong while deleting the package file.'), + 'PackageRegistry|Something went wrong while deleting the package file.', ); export const DELETE_PACKAGE_FILE_SUCCESS_MESSAGE = s__( 'PackageRegistry|Package file deleted successfully', @@ -87,3 +86,10 @@ export const PACKAGE_PROCESSING_STATUS = 'PROCESSING'; export const NPM_PACKAGE_MANAGER = 'npm'; export const YARN_PACKAGE_MANAGER = 'yarn'; + +export const PROJECT_PACKAGE_ENDPOINT_TYPE = 'project'; +export const INSTANCE_PACKAGE_ENDPOINT_TYPE = 'instance'; + +export const PROJECT_RESOURCE_TYPE = 'project'; +export const GROUP_RESOURCE_TYPE = 'group'; +export const LIST_QUERY_DEBOUNCE_TIME = 50; |