mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Replace Cayley with SQLite3
This commit is contained in:
@ -154,7 +154,7 @@ export function Layout({ title, page, children }: Props): JSX.Element {
|
||||
<MenuIcon />
|
||||
</IconButton>
|
||||
<Typography variant="h5" noWrap>
|
||||
<span className={title !== "" && classes.titleHighlight}>
|
||||
<span className={title !== "" ? classes.titleHighlight : ""}>
|
||||
Hetty://
|
||||
</span>
|
||||
{title}
|
||||
|
@ -32,7 +32,7 @@ const HTTP_REQUEST_LOG = gql`
|
||||
`;
|
||||
|
||||
interface Props {
|
||||
requestId: string;
|
||||
requestId: number;
|
||||
}
|
||||
|
||||
function LogDetail({ requestId: id }: Props): JSX.Element {
|
||||
|
@ -25,14 +25,14 @@ const HTTP_REQUEST_LOGS = gql`
|
||||
|
||||
function LogsOverview(): JSX.Element {
|
||||
const router = useRouter();
|
||||
const detailReqLogId = router.query.id as string;
|
||||
console.log(detailReqLogId);
|
||||
const detailReqLogId =
|
||||
router.query.id && parseInt(router.query.id as string, 10);
|
||||
|
||||
const { loading, error, data } = useQuery(HTTP_REQUEST_LOGS, {
|
||||
pollInterval: 1000,
|
||||
});
|
||||
|
||||
const handleLogClick = (reqId: string) => {
|
||||
const handleLogClick = (reqId: number) => {
|
||||
router.push("/proxy/logs?id=" + reqId, undefined, {
|
||||
shallow: false,
|
||||
});
|
||||
|
@ -31,8 +31,8 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
|
||||
interface Props {
|
||||
logs: Array<any>;
|
||||
selectedReqLogId?: string;
|
||||
onLogClick(requestId: string): void;
|
||||
selectedReqLogId?: number;
|
||||
onLogClick(requestId: number): void;
|
||||
theme: Theme;
|
||||
}
|
||||
|
||||
@ -63,8 +63,8 @@ function RequestList({
|
||||
|
||||
interface RequestListTableProps {
|
||||
logs?: any;
|
||||
selectedReqLogId?: string;
|
||||
onLogClick(requestId: string): void;
|
||||
selectedReqLogId?: number;
|
||||
onLogClick(requestId: number): void;
|
||||
theme: Theme;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user