-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b9d956
commit 92a3aa7
Showing
49 changed files
with
456 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 4 additions & 16 deletions
20
packages/manager/src/routes/account.tsx → ...nager/src/routes/account/AccountRoute.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const AccountRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<ProductInformationBanner bannerLocation="Account" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { NotFound } from 'src/components/NotFound'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
import { useFlags } from 'src/hooks/useFlags'; | ||
|
||
export const BetaRoutes = () => { | ||
const flags = useFlags(); | ||
const { selfServeBetas } = flags; | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
{selfServeBetas ? <Outlet /> : <NotFound />} | ||
</React.Suspense> | ||
); | ||
}; |
20 changes: 3 additions & 17 deletions
20
packages/manager/src/routes/betas.tsx → packages/manager/src/routes/betas/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
packages/manager/src/routes/cloudPulse/CloudPulseRoute.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { DocumentTitleSegment } from 'src/components/DocumentTitle'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const CloudPulseRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<DocumentTitleSegment segment="Cloud Pulse" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { createRoute } from '@tanstack/react-router'; | ||
|
||
import { rootRoute } from '../root'; | ||
import { CloudPulseRoutes } from './CloudPulseRoute'; | ||
|
||
const cloudPulseRoute = createRoute({ | ||
component: CloudPulseRoutes, | ||
getParentRoute: () => rootRoute, | ||
path: 'monitor/cloudpulse', | ||
}); | ||
|
||
const cloudPulseLandingRoute = createRoute({ | ||
getParentRoute: () => cloudPulseRoute, | ||
path: '/', | ||
}).lazy(() => | ||
import('src/features/CloudPulse/CloudPulseLanding').then( | ||
(m) => m.cloudPulseLandingLazyRoute | ||
) | ||
); | ||
|
||
export const cloudPulseRouteTree = cloudPulseRoute.addChildren([ | ||
cloudPulseLandingRoute, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { DocumentTitleSegment } from 'src/components/DocumentTitle'; | ||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const DatabasesRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<DocumentTitleSegment segment="Databases" /> | ||
<ProductInformationBanner bannerLocation="Databases" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
20 changes: 3 additions & 17 deletions
20
packages/manager/src/routes/databases.tsx → ...ges/manager/src/routes/databases/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const DomainsRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<ProductInformationBanner bannerLocation="Domains" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
18 changes: 3 additions & 15 deletions
18
packages/manager/src/routes/domains.tsx → packages/manager/src/routes/domains/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const EventsRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
16 changes: 3 additions & 13 deletions
16
packages/manager/src/routes/events.tsx → packages/manager/src/routes/events/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const FirewallsRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<ProductInformationBanner bannerLocation="Firewalls" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
18 changes: 3 additions & 15 deletions
18
packages/manager/src/routes/firewalls.tsx → ...ges/manager/src/routes/firewalls/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Outlet } from '@tanstack/react-router'; | ||
import React from 'react'; | ||
|
||
import { ProductInformationBanner } from 'src/components/ProductInformationBanner/ProductInformationBanner'; | ||
import { SuspenseLoader } from 'src/components/SuspenseLoader'; | ||
|
||
export const ImagesRoutes = () => { | ||
return ( | ||
<React.Suspense fallback={<SuspenseLoader />}> | ||
<ProductInformationBanner bannerLocation="Images" /> | ||
<Outlet /> | ||
</React.Suspense> | ||
); | ||
}; |
18 changes: 3 additions & 15 deletions
18
packages/manager/src/routes/images.tsx → packages/manager/src/routes/images/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.