Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug server #70

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Add debug server menu
xepozz committed Sep 16, 2023
commit f7f03e6de5d3804f5fcd149aa1e7e92d46b1d6a1
8 changes: 6 additions & 2 deletions packages/yii-dev-panel/src/Application/Component/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {ContentCut, GitHub, Refresh} from '@mui/icons-material';
import AdbIcon from '@mui/icons-material/Adb';
import InfoIcon from '@mui/icons-material/Info';
import {
CssBaseline,
IconButton,
@@ -180,10 +181,13 @@ export const Layout = React.memo(({children}: React.PropsWithChildren) => {
})}
</Box>
<div>
<IconButton size="large" onClick={handleMenu} color="inherit">
<IconButton size="large" href={'/debug-server'} color="inherit">
<AdbIcon />
</IconButton>
<Menu keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
<IconButton size="large" onClick={handleMenu} color="inherit">
<InfoIcon />
</IconButton>
<Menu anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
<MenuItem component={Link} href={repositoryUrl} target="_blank">
<ListItemIcon>
<GitHub fontSize="small" />