mirror of
https://github.com/openziti/zrok.git
synced 2025-06-19 08:17:05 +02:00
toolbar (#221)
This commit is contained in:
parent
4749411a59
commit
a67dba0959
939
agent/agentUi/package-lock.json
generated
939
agent/agentUi/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,10 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@emotion/react": "^11.13.3",
|
||||||
|
"@emotion/styled": "^11.13.0",
|
||||||
|
"@mui/icons-material": "^6.1.2",
|
||||||
|
"@mui/material": "^6.1.2",
|
||||||
"bootstrap": "^5.3.3",
|
"bootstrap": "^5.3.3",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-bootstrap": "^2.10.5",
|
"react-bootstrap": "^2.10.5",
|
||||||
|
@ -3,6 +3,11 @@ import "bootstrap/dist/css/bootstrap.min.css";
|
|||||||
import {useEffect, useState} from "react";
|
import {useEffect, useState} from "react";
|
||||||
import {AgentApi, ApiClient} from "./api/src/index.js";
|
import {AgentApi, ApiClient} from "./api/src/index.js";
|
||||||
import DataTable from "react-data-table-component";
|
import DataTable from "react-data-table-component";
|
||||||
|
import ShareIcon from "@mui/icons-material/Share";
|
||||||
|
import MenuIcon from "@mui/icons-material/Menu";
|
||||||
|
import LanIcon from "@mui/icons-material/Lan";
|
||||||
|
import ListIcon from "@mui/icons-material/List";
|
||||||
|
import {AppBar, Button, IconButton, Toolbar, Typography} from "@mui/material";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [version, setVersion] = useState("");
|
const [version, setVersion] = useState("");
|
||||||
@ -77,8 +82,25 @@ function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1>zrok Agent</h1>
|
<AppBar position={"static"}>
|
||||||
<code>Connected Version: {version}</code>
|
<Toolbar>
|
||||||
|
<IconButton
|
||||||
|
size={"large"}
|
||||||
|
edge={"start"}
|
||||||
|
color={"inherit"}
|
||||||
|
aria-label={"menu"}
|
||||||
|
sx={{mr: 2}}
|
||||||
|
>
|
||||||
|
<MenuIcon/>
|
||||||
|
</IconButton>
|
||||||
|
<Typography variant={"p"} component={"div"} sx={{flexGrow: 1}}>
|
||||||
|
zrok Agent { version !== "" ? " | " + version : ""}
|
||||||
|
</Typography>
|
||||||
|
<Button color={"inherit"}><ListIcon /></Button>
|
||||||
|
<Button color={"inherit"}><LanIcon /></Button>
|
||||||
|
<Button color={"inherit"}><ShareIcon /></Button>
|
||||||
|
</Toolbar>
|
||||||
|
</AppBar>
|
||||||
|
|
||||||
<div class={"info"}>
|
<div class={"info"}>
|
||||||
<h2>Shares</h2>
|
<h2>Shares</h2>
|
||||||
@ -97,6 +119,8 @@ function App() {
|
|||||||
noDataComponent={<div/>}
|
noDataComponent={<div/>}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<code>Connected Version: {version}</code>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user