Lock the right pane while focused, add project focus, quiet lead

This commit is contained in:
Ian Gulliver
2026-10-15 09:59:13 -07:00
parent bdd1ae48f0
commit fdd005b591
32 changed files with 576 additions and 227 deletions
+2 -1
View File
@@ -43,6 +43,7 @@ type Options<O> = {
path?: PathParams<O>;
query?: QueryParams<O>;
body?: Body<O>;
keepalive?: boolean;
};
export class ApiError extends Error {
@@ -75,7 +76,7 @@ export async function request<M extends Method, P extends PathsWith<M>>(
url += `?${query}`;
}
const init: RequestInit = { method: method.toUpperCase() };
const init: RequestInit = { method: method.toUpperCase(), keepalive: opts.keepalive ?? false };
if (opts.body instanceof Blob) {
init.headers = { "Content-Type": opts.body.type || "application/octet-stream" };
init.body = opts.body;