{/* eslint-disable-next-line */}
-

+
>
);
diff --git a/cvat-ui/src/components/create-cloud-storage-page/gcs-locatiion.tsx b/cvat-ui/src/components/create-cloud-storage-page/gcs-locatiion.tsx
index 4285f820..e988e1c6 100644
--- a/cvat-ui/src/components/create-cloud-storage-page/gcs-locatiion.tsx
+++ b/cvat-ui/src/components/create-cloud-storage-page/gcs-locatiion.tsx
@@ -1,9 +1,11 @@
// Copyright (C) 2021-2022 Intel Corporation
+// Copyright (C) 2023 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
+
import React from 'react';
+import config from 'config';
import Location from './location';
-import consts from '../../consts';
interface Props {
selectedRegion: any;
@@ -22,7 +24,7 @@ export default function GCSLocation(props: Props): JSX.Element {
selectedRegion={selectedRegion}
onSelectRegion={onSelectRegion}
internalCommonProps={internalCommonProps}
- values={consts.DEFAULT_GOOGLE_CLOUD_STORAGE_LOCATIONS}
+ values={config.DEFAULT_GOOGLE_CLOUD_STORAGE_LOCATIONS}
name='location'
label='Location'
href='https://cloud.google.com/storage/docs/locations#available-locations'
diff --git a/cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx b/cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx
index 501498c4..72d6dab5 100644
--- a/cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx
+++ b/cvat-ui/src/components/create-cloud-storage-page/manifests-manager.tsx
@@ -12,7 +12,7 @@ import Input from 'antd/lib/input';
import Row from 'antd/lib/row';
import notification from 'antd/lib/notification';
import Tooltip from 'antd/lib/tooltip';
-import consts from 'consts';
+import config from 'config';
interface Props {
form: any;
@@ -24,7 +24,7 @@ export default function ManifestsManager(props: Props): JSX.Element {
const { form, manifestNames, setManifestNames } = props;
const maxManifestsCount = useRef(5);
const [limitingAddingManifestNotification, setLimitingAddingManifestNotification] = useState(false);
- const { DATASET_MANIFEST_GUIDE_URL } = consts;
+ const { DATASET_MANIFEST_GUIDE_URL } = config;
const updateManifestFields = (): void => {
const newManifestFormItems = manifestNames.map((name, idx) => ({
diff --git a/cvat-ui/src/components/create-cloud-storage-page/s3-region.tsx b/cvat-ui/src/components/create-cloud-storage-page/s3-region.tsx
index e30245e0..58460bd4 100644
--- a/cvat-ui/src/components/create-cloud-storage-page/s3-region.tsx
+++ b/cvat-ui/src/components/create-cloud-storage-page/s3-region.tsx
@@ -1,9 +1,11 @@
// Copyright (C) 2021-2022 Intel Corporation
+// Copyright (C) 2023 CVAT.ai Corporation
//
// SPDX-License-Identifier: MIT
+
import React from 'react';
+import config from 'config';
import Location from './location';
-import consts from '../../consts';
interface Props {
selectedRegion: any;
@@ -22,7 +24,7 @@ export default function S3Region(props: Props): JSX.Element {
selectedRegion={selectedRegion}
onSelectRegion={onSelectRegion}
internalCommonProps={internalCommonProps}
- values={consts.DEFAULT_AWS_S3_REGIONS}
+ values={config.DEFAULT_AWS_S3_REGIONS}
name='region'
label='Region'
href='https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions'
diff --git a/cvat-ui/src/components/create-task-page/project-subset-field.tsx b/cvat-ui/src/components/create-task-page/project-subset-field.tsx
index ac0f68ff..c1259422 100644
--- a/cvat-ui/src/components/create-task-page/project-subset-field.tsx
+++ b/cvat-ui/src/components/create-task-page/project-subset-field.tsx
@@ -5,7 +5,7 @@
import React, { useEffect, useState } from 'react';
import Autocomplete from 'antd/lib/auto-complete';
-import consts from 'consts';
+import config from 'config';
import { getCore } from 'cvat-core-wrapper';
const core = getCore();
@@ -38,7 +38,7 @@ export default function ProjectSubsetField(props: Props): JSX.Element {
setInternalSubsets(
new Set([
...(internalValue ? [internalValue] : []),
- ...consts.DEFAULT_PROJECT_SUBSETS,
+ ...config.DEFAULT_PROJECT_SUBSETS,
...project.subsets,
]),
);
@@ -48,7 +48,7 @@ export default function ProjectSubsetField(props: Props): JSX.Element {
setInternalSubsets(
new Set([
...(internalValue ? [internalValue] : []),
- ...consts.DEFAULT_PROJECT_SUBSETS,
+ ...config.DEFAULT_PROJECT_SUBSETS,
...(projectSubsets || []),
]),
);
diff --git a/cvat-ui/src/components/cvat-app.tsx b/cvat-ui/src/components/cvat-app.tsx
index 13fa7bf8..ce72964a 100644
--- a/cvat-ui/src/components/cvat-app.tsx
+++ b/cvat-ui/src/components/cvat-app.tsx
@@ -68,7 +68,7 @@ import showPlatformNotification, {
showUnsupportedNotification,
} from 'utils/platform-checker';
import '../styles.scss';
-import consts from 'consts';
+import appConfig from 'config';
import EmailConfirmationPage from './email-confirmation-pages/email-confirmed';
import EmailVerificationSentPage from './email-confirmation-pages/email-verification-sent';
import IncorrectEmailConfirmationPage from './email-confirmation-pages/incorrect-email-confirmation';
@@ -140,10 +140,10 @@ class CVATApplication extends React.PureComponent