mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add Proto
to request detail, update theme
This commit is contained in:
@ -10,6 +10,7 @@ const HTTP_REQUEST_LOG = gql`
|
||||
id
|
||||
method
|
||||
url
|
||||
proto
|
||||
body
|
||||
response {
|
||||
proto
|
||||
@ -30,17 +31,17 @@ function LogDetail({ requestId: id }: Props): JSX.Element {
|
||||
variables: { id },
|
||||
});
|
||||
|
||||
if (loading) return "Loading...";
|
||||
if (error) return `Error: ${error.message}`;
|
||||
if (loading) return <div>"Loading..."</div>;
|
||||
if (error) return <div>`Error: ${error.message}`</div>;
|
||||
|
||||
const { method, url, body, response } = data.httpRequestLog;
|
||||
const { method, url, proto, body, response } = data.httpRequestLog;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Grid container item spacing={2}>
|
||||
<Grid item xs={6}>
|
||||
<Box component={Paper} maxHeight="60vh" overflow="scroll">
|
||||
<RequestDetail request={{ method, url, body }} />
|
||||
<RequestDetail request={{ method, url, proto, body }} />
|
||||
</Box>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
|
Reference in New Issue
Block a user