@@ -13,7 +13,6 @@ import {
1313 useHistory ,
1414} from "react-router-dom" ;
1515import { ErrorBoundary } from "react-error-boundary" ;
16- import getBaseName from "./utils/getBaseName" ;
1716import {
1817 DevelopmentPreview ,
1918 AppServicesPageNotFound ,
@@ -40,19 +39,6 @@ const QuickStartLoaderFederated = lazy(
4039const 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
5743const DataSciencePage = lazy (
5844 ( ) => import ( "@app/pages/DataScience/DataSciencePage" )
@@ -64,21 +50,9 @@ const KafkaOverviewPage = lazy(
6450const KasPage = lazy ( ( ) => import ( "@app/pages/Kas/KasPage" ) ) ;
6551const OverviewPage = lazy ( ( ) => import ( "@app/pages/Overview/OverviewPage" ) ) ;
6652const 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- ) ;
7253const 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
8357const RedirectToOverview : FunctionComponent = ( ) => < Redirect to = "/overview" /> ;
8458const 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