forked from apache/eventmesh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. optimized the layout
- Loading branch information
SUN
committed
May 27, 2024
1 parent
6a26862
commit 4d2b285
Showing
38 changed files
with
609 additions
and
290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const AppSectionBoxShadow = '2px 2px 40px 2px rgba(0,0,0,.05)' | ||
export const AppBackgroundColor = '#f9fafb' | ||
export const AppThemeConfig = { | ||
palette: { | ||
primary: { | ||
main: '#188aeb' | ||
} | ||
} | ||
} |
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
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
eventmesh-dashboard-view/src/components/page/RootLayout.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,27 @@ | ||
import React, { forwardRef } from 'react' | ||
import { Box, Stack, StackProps } from '@mui/material' | ||
|
||
import { Outlet } from 'react-router-dom' | ||
import { grey } from '@mui/material/colors' | ||
import Navigation from '../../routes/navigation/Navigation' | ||
|
||
interface RootLayoutProps extends StackProps {} | ||
|
||
const RootLayout = forwardRef<typeof Box, RootLayoutProps>( | ||
({ children, ...props }, ref) => { | ||
return ( | ||
<Stack | ||
direction="row" | ||
sx={{ | ||
position: 'relative', | ||
height: '100vh', | ||
bgcolor: grey[100] | ||
}}> | ||
<Navigation /> | ||
<Box sx={{ flexGrow: 1, pl: 4, overflow: 'hidden' }}>{children}</Box> | ||
</Stack> | ||
) | ||
} | ||
) | ||
RootLayout.displayName = 'RootLayout' | ||
export default RootLayout |
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.
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 React, { forwardRef } from 'react' | ||
import { Box, BoxProps } from '@mui/material' | ||
import RootLayout from '../../components/page/RootLayout' | ||
|
||
interface ClustersProps extends BoxProps {} | ||
|
||
const Clusters = forwardRef<typeof Box, ClustersProps>(({ ...props }, ref) => { | ||
return <RootLayout>Clusters</RootLayout> | ||
}) | ||
|
||
Clusters.displayName = 'Clusters' | ||
export default Clusters |
4 changes: 2 additions & 2 deletions
4
...view/src/routes/connection/Connection.tsx → .../routes/cluster/connection/Connection.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
4 changes: 2 additions & 2 deletions
4
...board-view/src/routes/message/Message.tsx → ...ew/src/routes/cluster/message/Message.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
17 changes: 17 additions & 0 deletions
17
eventmesh-dashboard-view/src/routes/cluster/overview/Overview.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,17 @@ | ||
import React, { forwardRef } from 'react' | ||
import { Box, BoxProps } from '@mui/material' | ||
import Construction from '../../../components/Construction' | ||
import RootLayout from '../../../components/page/RootLayout' | ||
|
||
interface HomeProps extends BoxProps {} | ||
|
||
const Home = forwardRef<typeof Box, HomeProps>(({ ...props }, ref) => { | ||
return ( | ||
<RootLayout> | ||
<Construction /> | ||
</RootLayout> | ||
) | ||
}) | ||
|
||
Home.displayName = 'Home' | ||
export default Home |
4 changes: 2 additions & 2 deletions
4
...board-view/src/routes/runtime/Runtime.tsx → ...ew/src/routes/cluster/runtime/Runtime.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
4 changes: 2 additions & 2 deletions
4
...ard-view/src/routes/security/Security.tsx → .../src/routes/cluster/security/Security.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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...iew/src/routes/topic/stats/StatsChart.tsx → ...routes/cluster/topic/stats/StatsChart.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
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
eventmesh-dashboard-view/src/routes/cluster/topic/stats/stats.types.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type ResourceStats = { | ||
connectionsNum: number | ||
topicsNum: number | ||
} |
File renamed without changes.
Oops, something went wrong.