Tidy up proxy logs, add copy action for headers

This commit is contained in:
David Stotijn
2020-09-27 18:59:38 +02:00
parent 854839daf8
commit ab90bfe4e9
11 changed files with 140 additions and 78 deletions

View File

@ -11,7 +11,7 @@ import SettingsEthernetIcon from "@material-ui/icons/SettingsEthernet";
import SendIcon from "@material-ui/icons/Send";
import Link from "next/link";
import Layout from "../components/Layout";
import Layout, { Page } from "../components/Layout";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
@ -33,7 +33,7 @@ const useStyles = makeStyles((theme: Theme) =>
function Index(): JSX.Element {
const classes = useStyles();
return (
<Layout>
<Layout page={Page.Home} title="">
<Box p={4}>
<Box mb={4} width="60%">
<Typography variant="h2">

View File

@ -1,16 +1,13 @@
import React from "react";
import { Box, Button, Typography } from "@material-ui/core";
import { Button, Typography } from "@material-ui/core";
import ListIcon from "@material-ui/icons/List";
import Link from "next/link";
import Layout from "../../components/Layout";
import Layout, { Page } from "../../components/Layout";
function Index(): JSX.Element {
return (
<Layout>
<Box mb={2}>
<Typography variant="h5">Proxy setup</Typography>
</Box>
<Layout page={Page.ProxySetup} title="Proxy setup">
<Typography paragraph>Coming soon</Typography>
<Link href="/proxy/logs" passHref>
<Button

View File

@ -1,14 +1,9 @@
import { Typography, Box } from "@material-ui/core";
import LogsOverview from "../../../components/reqlog/LogsOverview";
import Layout from "../../../components/Layout";
import Layout, { Page } from "../../../components/Layout";
function ProxyLogs(): JSX.Element {
return (
<Layout>
<Box mb={2}>
<Typography variant="h5">Proxy logs</Typography>
</Box>
<Layout page={Page.ProxyLogs} title="Proxy logs">
<LogsOverview />
</Layout>
);

View File

@ -1,13 +1,10 @@
import { Box, Typography } from "@material-ui/core";
import Layout from "../../components/Layout";
import Layout, { Page } from "../../components/Layout";
function Index(): JSX.Element {
return (
<Layout>
<Box mb={2}>
<Typography variant="h5">Sender</Typography>
</Box>
<Layout page={Page.Sender} title="Sender">
<Typography paragraph>Coming soon</Typography>
</Layout>
);