From 7b29a5be1e682fe4302fe41ada554579137c8c5b Mon Sep 17 00:00:00 2001 From: kunalgaurav-bmw Date: Thu, 14 Nov 2024 15:11:45 +0530 Subject: [PATCH] feat(utils folder): rename files to common naming style --- src/components/AuthorizingRouter.tsx | 2 +- src/features/admin/registration/api.ts | 2 +- src/features/admin/userDeprecated/api.ts | 2 +- src/features/admin/userOwn/api.ts | 2 +- src/features/apps/details/api.ts | 2 +- src/features/apps/details/apiTestdata.ts | 2 +- src/features/apps/favorites/api.ts | 2 +- src/features/apps/marketplaceDeprecated/api.ts | 2 +- src/features/apps/marketplaceDeprecated/apiTestdata.ts | 2 +- src/features/connector/api.ts | 2 +- src/features/info/news/api.ts | 2 +- src/features/partnerNetwork/api.ts | 2 +- src/features/provisioning/api.ts | 2 +- src/features/semanticModels/api.ts | 2 +- src/utils/{HttpClient.ts => httpClient.ts} | 0 src/utils/{ScrollToTop.ts => scrollToTop.ts} | 0 16 files changed, 14 insertions(+), 14 deletions(-) rename src/utils/{HttpClient.ts => httpClient.ts} (100%) rename src/utils/{ScrollToTop.ts => scrollToTop.ts} (100%) diff --git a/src/components/AuthorizingRouter.tsx b/src/components/AuthorizingRouter.tsx index 3d4f470e4..401765dcc 100644 --- a/src/components/AuthorizingRouter.tsx +++ b/src/components/AuthorizingRouter.tsx @@ -22,7 +22,7 @@ import Main from 'components/Main' import { BrowserRouter, Routes, Route } from 'react-router-dom' import NotFound from 'components/pages/NotFound' import AccessService from 'services/AccessService' -import ScrollToTop from '../utils/ScrollToTop' +import ScrollToTop from '../utils/scrollToTop' import ErrorBoundary from 'components/pages/ErrorBoundary' import DeleteCompany from './pages/DeleteCompany' diff --git a/src/features/admin/registration/api.ts b/src/features/admin/registration/api.ts index 1cf48ec88..932c58fbd 100644 --- a/src/features/admin/registration/api.ts +++ b/src/features/admin/registration/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getApiBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { InviteData, CompanyDetail, InvitesDataGrid } from './types' import { getHeaders } from 'services/RequestService' import { PAGE_SIZE } from 'types/Constants' diff --git a/src/features/admin/userDeprecated/api.ts b/src/features/admin/userDeprecated/api.ts index 9f3eda855..6364547ef 100644 --- a/src/features/admin/userDeprecated/api.ts +++ b/src/features/admin/userDeprecated/api.ts @@ -21,7 +21,7 @@ import { getApiBase } from 'services/EnvironmentService' import { getHeaders } from 'services/RequestService' import type { PaginResult } from '@catena-x/portal-shared-components' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { TenantUser } from '../userApiSlice' import type { AddUser } from './types' diff --git a/src/features/admin/userOwn/api.ts b/src/features/admin/userOwn/api.ts index 6bb7cee6f..915fc43cf 100644 --- a/src/features/admin/userOwn/api.ts +++ b/src/features/admin/userOwn/api.ts @@ -20,7 +20,7 @@ import { getApiBase } from 'services/EnvironmentService' import { getHeaders } from 'services/RequestService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { UserDetail } from './types' export class Api extends HttpClient { diff --git a/src/features/apps/details/api.ts b/src/features/apps/details/api.ts index a154a9566..671c6a895 100644 --- a/src/features/apps/details/api.ts +++ b/src/features/apps/details/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getApiBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { AppDetails } from './types' import i18next from 'i18next' import { getHeaders } from 'services/RequestService' diff --git a/src/features/apps/details/apiTestdata.ts b/src/features/apps/details/apiTestdata.ts index 7520072b1..de2637034 100644 --- a/src/features/apps/details/apiTestdata.ts +++ b/src/features/apps/details/apiTestdata.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getAssetBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { AppDetails } from './types' export class Api extends HttpClient { diff --git a/src/features/apps/favorites/api.ts b/src/features/apps/favorites/api.ts index 00e74f0f3..ba8cc030a 100644 --- a/src/features/apps/favorites/api.ts +++ b/src/features/apps/favorites/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getApiBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import { getHeaders } from 'services/RequestService' export class Api extends HttpClient { diff --git a/src/features/apps/marketplaceDeprecated/api.ts b/src/features/apps/marketplaceDeprecated/api.ts index 9c80d87f7..271e2c0dd 100644 --- a/src/features/apps/marketplaceDeprecated/api.ts +++ b/src/features/apps/marketplaceDeprecated/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getApiBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { SubscribedApps } from './types' import { getHeaders } from 'services/RequestService' import type { AppMarketplaceApp } from '../types' diff --git a/src/features/apps/marketplaceDeprecated/apiTestdata.ts b/src/features/apps/marketplaceDeprecated/apiTestdata.ts index b4f562c63..62c37ea08 100644 --- a/src/features/apps/marketplaceDeprecated/apiTestdata.ts +++ b/src/features/apps/marketplaceDeprecated/apiTestdata.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import { getAssetBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { AppMarketplaceApp } from './types' export class Api extends HttpClient { diff --git a/src/features/connector/api.ts b/src/features/connector/api.ts index 28c3b1e66..2da2eb917 100644 --- a/src/features/connector/api.ts +++ b/src/features/connector/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import qs from 'qs' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { ConnectorAPIResponse, SearchParams, diff --git a/src/features/info/news/api.ts b/src/features/info/news/api.ts index 4089793df..f544632bc 100644 --- a/src/features/info/news/api.ts +++ b/src/features/info/news/api.ts @@ -20,7 +20,7 @@ import type { CardItems } from '@catena-x/portal-shared-components' import { getAssetBase } from 'services/EnvironmentService' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' export class Api extends HttpClient { private static classInstance?: Api diff --git a/src/features/partnerNetwork/api.ts b/src/features/partnerNetwork/api.ts index 5365350d1..c09cd25f4 100644 --- a/src/features/partnerNetwork/api.ts +++ b/src/features/partnerNetwork/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import qs from 'qs' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { BusinessPartnerResponse, BusinessPartner } from './types' import { getApiBase, getBpdmPoolApiBase } from 'services/EnvironmentService' import { getHeaders } from 'services/RequestService' diff --git a/src/features/provisioning/api.ts b/src/features/provisioning/api.ts index 340247f40..1f63bd611 100644 --- a/src/features/provisioning/api.ts +++ b/src/features/provisioning/api.ts @@ -18,7 +18,7 @@ * SPDX-License-Identifier: Apache-2.0 ********************************************************************************/ -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { ProvisionIdentityProviderData } from './types' import UserService from 'services/UserService' import { getApiBase } from 'services/EnvironmentService' diff --git a/src/features/semanticModels/api.ts b/src/features/semanticModels/api.ts index 9eea34d6f..b18253a8d 100644 --- a/src/features/semanticModels/api.ts +++ b/src/features/semanticModels/api.ts @@ -19,7 +19,7 @@ ********************************************************************************/ import qs from 'qs' -import { HttpClient } from 'utils/HttpClient' +import { HttpClient } from 'utils/httpClient' import type { FilterParams, ModelList, diff --git a/src/utils/HttpClient.ts b/src/utils/httpClient.ts similarity index 100% rename from src/utils/HttpClient.ts rename to src/utils/httpClient.ts diff --git a/src/utils/ScrollToTop.ts b/src/utils/scrollToTop.ts similarity index 100% rename from src/utils/ScrollToTop.ts rename to src/utils/scrollToTop.ts