Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit 460e791

Browse files
authored
Merge pull request #914 from redhat-developer/downgrade-http-proxy-agent
Downgrade http proxy agent and removed unused routes
2 parents 1fed25c + 5d4b3ac commit 460e791

3 files changed

Lines changed: 22 additions & 162 deletions

File tree

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"eslint-plugin-react-hooks": "4.6.0",
8383
"html-replace-webpack-plugin": "2.6.0",
8484
"html-webpack-plugin": "5.5.2",
85-
"https-proxy-agent": "7.0.0",
85+
"https-proxy-agent": "5.0.1",
8686
"husky": "8.0.3",
8787
"i18next": "22.5.1",
8888
"jest": "29.5.0",
@@ -121,7 +121,7 @@
121121
"@patternfly/react-table": "4.113.0",
122122
"@redhat-cloud-services/frontend-components": "3.9.37",
123123
"@redhat-cloud-services/frontend-components-notifications": "3.2.14",
124-
"@redhat-cloud-services/frontend-components-utilities": "3.5.1",
124+
"@redhat-cloud-services/frontend-components-utilities": "2.0.1",
125125
"axios": "1.4.0",
126126
"react": "17.0.2",
127127
"react-dom": "17.0.2",

src/app/AppRoutes.tsx

Lines changed: 0 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
useHistory,
1414
} from "react-router-dom";
1515
import { ErrorBoundary } from "react-error-boundary";
16-
import getBaseName from "./utils/getBaseName";
1716
import {
1817
DevelopmentPreview,
1918
AppServicesPageNotFound,
@@ -40,19 +39,6 @@ const QuickStartLoaderFederated = lazy(
4039
const APIManagementPage = lazy(
4140
() => import("@app/pages/APIManagement/APIManagementPage")
4241
);
43-
const ArtifactRedirect = lazy(
44-
() => import("@app/pages/ServiceRegistry/ArtifactsRedirect")
45-
);
46-
const Artifacts = lazy(() => import("@app/pages/ServiceRegistry/Artifacts"));
47-
const ArtifactVersionDetails = lazy(
48-
() => import("@app/pages/ServiceRegistry/ArtifactVersion")
49-
);
50-
const ApiDesignerHomePage = lazy(
51-
() => import("@app/pages/APIDesigner/ApiDesignerHomePage")
52-
);
53-
const ApiDesignerEditorPage = lazy(
54-
() => import("@app/pages/APIDesigner/ApiDesignerEditorPage")
55-
);
5642

5743
const DataSciencePage = lazy(
5844
() => import("@app/pages/DataScience/DataSciencePage")
@@ -64,21 +50,9 @@ const KafkaOverviewPage = lazy(
6450
const KasPage = lazy(() => import("@app/pages/Kas/KasPage"));
6551
const OverviewPage = lazy(() => import("@app/pages/Overview/OverviewPage"));
6652
const ResourcesPage = lazy(() => import("@app/pages/Resources/ResourcesPage"));
67-
const RulesPage = lazy(() => import("@app/pages/ServiceRegistry/RulesPage"));
68-
const RolesPage = lazy(() => import("@app/pages/ServiceRegistry/RolesPage"));
69-
const SettingsPage = lazy(
70-
() => import("@app/pages/ServiceRegistry/SettingsPage")
71-
);
7253
const ServiceAccountsPage = lazy(
7354
() => import("@app/pages/ServiceAccounts/ServiceAccountsPage")
7455
);
75-
const CosPage = lazy(() => import("@app/pages/CosPage/CosPage"));
76-
const ServiceRegistryPage = lazy(
77-
() => import("@app/pages/ServiceRegistry/ServiceRegistryPage")
78-
);
79-
const SmartEventsPage = lazy(
80-
() => import("@app/pages/SmartEventsPage/SmartEventsPage")
81-
);
8256

8357
const RedirectToOverview: FunctionComponent = () => <Redirect to="/overview" />;
8458
const RedirectToStreamsKafkas: FunctionComponent = () => (
@@ -156,22 +130,6 @@ const appRoutes: AppRouteConfig<unknown>[] = [
156130
basename: "/streams/kafkas",
157131
devPreview: false,
158132
},
159-
{
160-
component: ServiceRegistryPage,
161-
exact: true,
162-
label: "Service Registry",
163-
path: "/service-registry",
164-
title: "Service Registry | Red Hat OpenShift Application Services",
165-
basename: "/service-registry",
166-
},
167-
{
168-
component: Artifacts,
169-
exact: true,
170-
label: "Service Registry",
171-
path: "/service-registry/t/:tenantId",
172-
title: "Service Registry | Red Hat OpenShift Application Services",
173-
basename: "/service-registry",
174-
},
175133
{
176134
component: RedirectToServiceAccounts,
177135
exact: true,
@@ -200,95 +158,6 @@ const appRoutes: AppRouteConfig<unknown>[] = [
200158
/**
201159
* END OF STREAMS SECTION
202160
*/
203-
204-
/**
205-
* SERVICE REGISTRY SECTION
206-
*/
207-
{
208-
component: Artifacts,
209-
exact: true,
210-
label: "Service Registry",
211-
path: "/service-registry/t/:tenantId/artifacts",
212-
title: "Service Registry | Red Hat OpenShift Application Services",
213-
basename: "/service-registry",
214-
},
215-
{
216-
component: RulesPage,
217-
exact: true,
218-
label: "Service Registry",
219-
path: "/service-registry/t/:tenantId/rules",
220-
title: "Service Registry | Red Hat OpenShift Application Services",
221-
basename: "/service-registry",
222-
},
223-
{
224-
component: RolesPage,
225-
exact: true,
226-
label: "Service Registry",
227-
path: "/service-registry/t/:tenantId/roles",
228-
title: "Service Registry | Red Hat OpenShift Application Services",
229-
basename: "/service-registry",
230-
},
231-
{
232-
component: SettingsPage,
233-
exact: true,
234-
label: "Service Registry",
235-
path: "/service-registry/t/:tenantId/settings",
236-
title: "Service Registry | Red Hat OpenShift Application Services",
237-
basename: "/service-registry",
238-
},
239-
{
240-
component: ArtifactRedirect,
241-
exact: true,
242-
label: "Service Registry",
243-
path: "/service-registry/t/:tenantId/artifacts/:groupId/:artifactId",
244-
title: "Service Registry | Red Hat OpenShift Application Services",
245-
basename: "/service-registry",
246-
},
247-
{
248-
component: ArtifactVersionDetails,
249-
exact: true,
250-
label: "Service Registry",
251-
path: "/service-registry/t/:tenantId/artifacts/:groupId/:artifactId/versions/:version",
252-
title: "Service Registry | Red Hat OpenShift Application Services",
253-
basename: "/service-registry",
254-
},
255-
/**
256-
* END OF SERVICE REGISTRY SECTION
257-
*/
258-
259-
/**
260-
* API DESIGNER SECTION
261-
*/
262-
{
263-
component: ApiDesignerHomePage,
264-
exact: true,
265-
label: "API Designer",
266-
path: "/api-designer",
267-
title: "API Designer | Red Hat OpenShift Application Services",
268-
basename: "/api-designer",
269-
devPreview: true,
270-
},
271-
{
272-
component: ApiDesignerEditorPage,
273-
exact: true,
274-
label: "Service Registry",
275-
path: "/api-designer/designs/:designId/editor",
276-
title: "API Designer | Red Hat OpenShift Application Services",
277-
basename: "/api-designer",
278-
devPreview: true,
279-
},
280-
/**
281-
* END OF API DESIGNER SECTION
282-
*/
283-
284-
{
285-
component: CosPage,
286-
exact: false,
287-
label: "COS",
288-
path: "/connectors",
289-
title: "Connectors | Red Hat OpenShift Application Services",
290-
basename: `${getBaseName(window.location.pathname)}/connectors`,
291-
},
292161
{
293162
component: ServiceAccountsPage,
294163
exact: true,
@@ -297,15 +166,6 @@ const appRoutes: AppRouteConfig<unknown>[] = [
297166
title: "Service Accounts | Red Hat OpenShift Application Services",
298167
devPreview: false,
299168
},
300-
{
301-
component: SmartEventsPage,
302-
exact: false,
303-
label: "Smart Events",
304-
path: "/smart-events",
305-
title: "Smart Events | Red Hat OpenShift Application Services",
306-
basename: `${getBaseName(window.location.pathname)}/smart-events`,
307-
devPreview: true,
308-
},
309169

310170
// old url handling
311171
{

0 commit comments

Comments
 (0)