-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added view code * added navigation interaction * added empty pages * add topic statistics ui * complete topic page style * update the UI style * complete basic features in topic list * 1. adjust the navigation menu 2. optimized the layout --------- Co-authored-by: SUN <[email protected]>
- Loading branch information
Showing
49 changed files
with
2,458 additions
and
1,692 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
REACT_APP_BASE_ROUTE=tree | ||
|
||
REACT_APP_SERVICE_HOST=http://127.0.0.1:9101 | ||
REACT_APP_VIDEO_PATH=http://127.0.0.1:3000/tree/videos | ||
REACT_APP_PUBLIC_KEY=-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwuCSbiRvH2FAMKoC/3ETvbLdDkDSDpkjL/h40YEMsTyacvurcAZ/EPpjGR2rTgGDiOQbItuciMoKpq7jRkg5WS4xs2VxAAEBdWgB4Cp4/LAjuN4LF6qAbCxINIKS7TiyWSu9jCIH4C5nmeptZLrrUUwICIFjRikWktFWGTN2QsXA0MTOnCql2gL/kxKSLFpq/BHyD2mpdIMtEGfiHAJs8R02KmgyQSwCje3m3oNM4GXodqt5dQtO7EI3KcITmnWKFY4RZFLutbG4GZQ0F8XwbpKlQCzu7QFn4hQHjbi7ivRagJWGwRr3ZiROpWhm450diiYbqgFS5IHb6KJDUlR2LwIDAQAB-----END PUBLIC KEY----- | ||
REACT_APP_SERVICE_HOST= |
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 |
---|---|---|
@@ -1,6 +1 @@ | ||
REACT_APP_BASE_ROUTE=tree | ||
|
||
REACT_APP_SERVICE_HOST=http://beta.leafiot.tech/service | ||
|
||
REACT_APP_PUBLIC_KEY=-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwuCSbiRvH2FAMKoC/3ETvbLdDkDSDpkjL/h40YEMsTyacvurcAZ/EPpjGR2rTgGDiOQbItuciMoKpq7jRkg5WS4xs2VxAAEBdWgB4Cp4/LAjuN4LF6qAbCxINIKS7TiyWSu9jCIH4C5nmeptZLrrUUwICIFjRikWktFWGTN2QsXA0MTOnCql2gL/kxKSLFpq/BHyD2mpdIMtEGfiHAJs8R02KmgyQSwCje3m3oNM4GXodqt5dQtO7EI3KcITmnWKFY4RZFLutbG4GZQ0F8XwbpKlQCzu7QFn4hQHjbi7ivRagJWGwRr3ZiROpWhm450diiYbqgFS5IHb6KJDUlR2LwIDAQAB-----END PUBLIC KEY----- | ||
˜ | ||
REACT_APP_SERVICE_HOST=http://az1.pil0txia.com:9898 |
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,3 @@ | ||
{ | ||
// "extends": ["plugin:react/recommended"] | ||
} |
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
Large diffs are not rendered by default.
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
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
Oops, something went wrong.