mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-27 19:27:01 +02:00
Merge main into proxy branch (formatting and docs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { HttpResponse } from '@yaakapp-internal/models';
|
||||
import { useSaveResponse } from '../../hooks/useSaveResponse';
|
||||
import { getContentTypeFromHeaders } from '../../lib/model_util';
|
||||
import { Button } from '../core/Button';
|
||||
import { Banner, InlineCode, LoadingIcon } from '@yaakapp-internal/ui';
|
||||
import { EmptyStateText } from '../EmptyStateText';
|
||||
import type { HttpResponse } from "@yaakapp-internal/models";
|
||||
import { useSaveResponse } from "../../hooks/useSaveResponse";
|
||||
import { getContentTypeFromHeaders } from "../../lib/model_util";
|
||||
import { Button } from "../core/Button";
|
||||
import { Banner, InlineCode, LoadingIcon } from "@yaakapp-internal/ui";
|
||||
import { EmptyStateText } from "../EmptyStateText";
|
||||
|
||||
interface Props {
|
||||
response: HttpResponse;
|
||||
@@ -11,10 +11,10 @@ interface Props {
|
||||
|
||||
export function BinaryViewer({ response }: Props) {
|
||||
const saveResponse = useSaveResponse(response);
|
||||
const contentType = getContentTypeFromHeaders(response.headers) ?? 'unknown';
|
||||
const contentType = getContentTypeFromHeaders(response.headers) ?? "unknown";
|
||||
|
||||
// Wait until the response has been fully-downloaded
|
||||
if (response.state !== 'closed') {
|
||||
if (response.state !== "closed") {
|
||||
return (
|
||||
<EmptyStateText>
|
||||
<LoadingIcon size="sm" />
|
||||
|
||||
Reference in New Issue
Block a user