mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-03 10:42:00 +08:00
Create servers view
This commit is contained in:
@@ -20,6 +20,7 @@ import MenuIcon from "@material-ui/icons/Menu";
|
||||
import BarChartIcon from "@material-ui/icons/BarChart";
|
||||
import LayersIcon from "@material-ui/icons/Layers";
|
||||
import SettingsIcon from "@material-ui/icons/Settings";
|
||||
import ScheduleIcon from "@material-ui/icons/Schedule";
|
||||
import FeedbackIcon from "@material-ui/icons/Feedback";
|
||||
import CloseIcon from "@material-ui/icons/Close";
|
||||
import { AppState } from "./store";
|
||||
@@ -30,6 +31,7 @@ import SchedulersView from "./views/SchedulersView";
|
||||
import DashboardView from "./views/DashboardView";
|
||||
import TasksView from "./views/TasksView";
|
||||
import SettingsView from "./views/SettingsView";
|
||||
import ServersView from "./views/ServersView";
|
||||
|
||||
const drawerWidth = 220;
|
||||
|
||||
@@ -213,10 +215,15 @@ function App(props: ConnectedProps<typeof connector>) {
|
||||
primary="Queues"
|
||||
icon={<BarChartIcon />}
|
||||
/>
|
||||
<ListItemLink
|
||||
to={paths.SERVERS}
|
||||
primary="Servers"
|
||||
icon={<LayersIcon />}
|
||||
/>
|
||||
<ListItemLink
|
||||
to={paths.SCHEDULERS}
|
||||
primary="Schedulers"
|
||||
icon={<LayersIcon />}
|
||||
icon={<ScheduleIcon />}
|
||||
/>
|
||||
</div>
|
||||
</List>
|
||||
@@ -250,6 +257,9 @@ function App(props: ConnectedProps<typeof connector>) {
|
||||
<Route exact path={paths.SCHEDULERS}>
|
||||
<SchedulersView />
|
||||
</Route>
|
||||
<Route exact path={paths.SERVERS}>
|
||||
<ServersView />
|
||||
</Route>
|
||||
<Route exact path={paths.SETTINGS}>
|
||||
<SettingsView />
|
||||
</Route>
|
||||
|
Reference in New Issue
Block a user