Retry button on introspection errors

This commit is contained in:
Gregory Schier
2023-06-12 13:20:42 -07:00
parent e02954f396
commit 5dae591c79
8 changed files with 62 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import type { HttpResponse } from './models';
export async function getResponseBodyText(response: HttpResponse): Promise<string | null> {
if (response.body) {
const uint8Array = Uint8Array.of(...response.body);
const uint8Array = Uint8Array.from(response.body);
return new TextDecoder().decode(uint8Array);
}
if (response.bodyPath) {
@@ -14,7 +14,7 @@ export async function getResponseBodyText(response: HttpResponse): Promise<strin
export async function getResponseBodyBlob(response: HttpResponse): Promise<Uint8Array | null> {
if (response.body) {
return Uint8Array.of(...response.body);
return Uint8Array.from(response.body);
}
if (response.bodyPath) {
return readBinaryFile(response.bodyPath);

View File

@@ -8,9 +8,9 @@ const darkTheme: AppTheme = {
appearance: 'dark',
layers: {
root: {
blackPoint: 0.09,
blackPoint: 0.2,
colors: {
gray: '#9b8ebe',
gray: '#6b5b98',
red: '#ff417b',
orange: '#fd9014',
yellow: '#e8d13f',