- {/*
*/}
- {/**/}
- {response?.error && (
-
{response.error}
- )}
- {response && (
- <>
-
-
-
- {response.status}
- {response.statusReason && ` ${response.statusReason}`}
- •
- {response.elapsed}ms •
- {Math.round(response.body.length / 1000)} KB
-
+
+ {/*
*/}
+ {/**/}
+ {response?.error && (
+
{response.error}
+ )}
+ {response && (
+ <>
+
+
+
+ {response.status}
+ {response.statusReason && ` ${response.statusReason}`}
+ •
+ {response.elapsed}ms •
+ {Math.round(response.body.length / 1000)} KB
+
-
- {contentType.includes('html') && (
- setViewMode((m) => (m === 'pretty' ? 'raw' : 'pretty'))}
- />
- )}
- ({
- label: r.status + ' - ' + r.elapsed + ' ms',
- leftSlot: response?.id === r.id ? : <>>,
- onSelect: () => setActiveResponseId(r.id),
- })),
- ]}
- >
-
-
-
+
+ {contentType.includes('html') && (
+ setViewMode((m) => (m === 'pretty' ? 'raw' : 'pretty'))}
+ />
+ )}
+ ({
+ label: r.status + ' - ' + r.elapsed + ' ms',
+ leftSlot: response?.id === r.id ? : <>>,
+ onSelect: () => setActiveResponseId(r.id),
+ })),
+ ]}
+ >
+
+
+
+
- {viewMode === 'pretty' && contentForIframe !== null ? (
-
- ) : response?.body ? (
-
- ) : null}
- >
- )}
-
-
+
+
+
+ {['Preview', 'Headers', 'Cookies', 'Timing'].map((label, i) => (
+
+ ))}
+
+
+ {viewMode === 'pretty' && contentForIframe !== null ? (
+
+ ) : response?.body ? (
+
+ ) : null}
+ >
+ )}
+
);
}
diff --git a/src-web/components/Stacks.tsx b/src-web/components/Stacks.tsx
index e5f3f96f..866867d1 100644
--- a/src-web/components/Stacks.tsx
+++ b/src-web/components/Stacks.tsx
@@ -76,7 +76,7 @@ export function VStack({ className, space, children, ...props }: VStackProps) {
interface BaseStackProps extends HTMLAttributes
{
items?: 'start' | 'center';
- justify?: 'start' | 'end';
+ justify?: 'start' | 'center' | 'end';
as?: React.ElementType;
}
@@ -90,6 +90,7 @@ function BaseStack({ className, items, justify, as = 'div', ...props }: BaseStac
items === 'center' && 'items-center',
items === 'start' && 'items-start',
justify === 'start' && 'justify-start',
+ justify === 'center' && 'justify-center',
justify === 'end' && 'justify-end',
)}
{...props}
diff --git a/src-web/main.css b/src-web/main.css
index 68e8376f..ff6ff8dc 100644
--- a/src-web/main.css
+++ b/src-web/main.css
@@ -125,6 +125,7 @@ html, body, #root {
--color-yellow-800: 45 93% 20%;
--color-yellow-900: 45 93% 10%;
+ --color-gray-25: 217 21% 98%;
--color-gray-50: 217 21% 95%;
--color-gray-100: 217 21% 88%;
--color-gray-200: 217 21% 76%;
@@ -234,5 +235,6 @@ html, body, #root {
--color-gray-200: 217 21% 30%;
--color-gray-100: 217 21% 25%;
--color-gray-50: 217 21% 15%;
+ --color-gray-25: 217 21% 10%;
}
}
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 8ed06842..e70a0fa6 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -34,7 +34,7 @@ module.exports = {
}
function color(name) {
- return {
+ const map = {
50: `hsl(var(--color-${name}-50) / )`,
100: `hsl(var(--color-${name}-100) / )`,
200: `hsl(var(--color-${name}-200) / )`,
@@ -46,4 +46,8 @@ function color(name) {
800: `hsl(var(--color-${name}-800) / )`,
900: `hsl(var(--color-${name}-900) / )`,
}
+ if (name === 'gray') {
+ map[25] = `hsl(var(--color-${name}-25) / )`;
+ }
+ return map;
}