mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
Use logo image
This commit is contained in:
parent
fe6898e75e
commit
1601a0861a
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- (ui): Hide action buttons in read-only mode
|
- (ui): Hide action buttons in read-only mode
|
||||||
- (ui): Display queue latency in dashboard page and queue detail page.
|
- (ui): Display queue latency in dashboard page and queue detail page.
|
||||||
- (ui): Added copy-to-clipboard button for task ID in tasks list-view page.
|
- (ui): Added copy-to-clipboard button for task ID in tasks list-view page.
|
||||||
|
- (ui): Use logo image in the appbar (thank you @koddr!)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- (ui): Pagination in ActiveTasks table is fixed
|
- (ui): Pagination in ActiveTasks table is fixed
|
||||||
|
@ -12,7 +12,6 @@ import ListItemIcon from "@material-ui/core/ListItemIcon";
|
|||||||
import ListItemText from "@material-ui/core/ListItemText";
|
import ListItemText from "@material-ui/core/ListItemText";
|
||||||
import Snackbar from "@material-ui/core/Snackbar";
|
import Snackbar from "@material-ui/core/Snackbar";
|
||||||
import SnackbarContent from "@material-ui/core/SnackbarContent";
|
import SnackbarContent from "@material-ui/core/SnackbarContent";
|
||||||
import Typography from "@material-ui/core/Typography";
|
|
||||||
import IconButton from "@material-ui/core/IconButton";
|
import IconButton from "@material-ui/core/IconButton";
|
||||||
import Slide from "@material-ui/core/Slide";
|
import Slide from "@material-ui/core/Slide";
|
||||||
import { TransitionProps } from "@material-ui/core/transitions";
|
import { TransitionProps } from "@material-ui/core/transitions";
|
||||||
@ -40,6 +39,8 @@ import ServersView from "./views/ServersView";
|
|||||||
import RedisInfoView from "./views/RedisInfoView";
|
import RedisInfoView from "./views/RedisInfoView";
|
||||||
import MetricsView from "./views/MetricsView";
|
import MetricsView from "./views/MetricsView";
|
||||||
import PageNotFoundView from "./views/PageNotFoundView";
|
import PageNotFoundView from "./views/PageNotFoundView";
|
||||||
|
import { ReactComponent as Logo } from "./images/logo-color.svg";
|
||||||
|
import { ReactComponent as LogoDarkTheme } from "./images/logo-white.svg";
|
||||||
|
|
||||||
const drawerWidth = 220;
|
const drawerWidth = 220;
|
||||||
|
|
||||||
@ -74,9 +75,6 @@ const useStyles = (theme: Theme) =>
|
|||||||
menuButtonHidden: {
|
menuButtonHidden: {
|
||||||
display: "none",
|
display: "none",
|
||||||
},
|
},
|
||||||
title: {
|
|
||||||
flexGrow: 1,
|
|
||||||
},
|
|
||||||
drawerPaper: {
|
drawerPaper: {
|
||||||
position: "relative",
|
position: "relative",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
@ -176,15 +174,11 @@ function App(props: ConnectedProps<typeof connector>) {
|
|||||||
>
|
>
|
||||||
<MenuIcon />
|
<MenuIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<Typography
|
{isDarkTheme(theme) ? (
|
||||||
component="h1"
|
<LogoDarkTheme width={200} height={48} />
|
||||||
variant="h6"
|
) : (
|
||||||
noWrap
|
<Logo width={200} height={48} />
|
||||||
className={classes.title}
|
)}
|
||||||
color="textPrimary"
|
|
||||||
>
|
|
||||||
Asynq Monitoring
|
|
||||||
</Typography>
|
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
</AppBar>
|
</AppBar>
|
||||||
<div className={classes.mainContainer}>
|
<div className={classes.mainContainer}>
|
||||||
|
Loading…
Reference in New Issue
Block a user