style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -63,7 +63,7 @@ async function handleError(response: Response): Promise<never> {
|
||||
try {
|
||||
const data = await response.json();
|
||||
if (data && typeof data.detail === "string") {
|
||||
detail = data.detail;
|
||||
({ detail } = data);
|
||||
}
|
||||
} catch {
|
||||
detail = response.statusText;
|
||||
@@ -81,9 +81,9 @@ export async function request<T>(
|
||||
headers["Content-Type"] = "application/json";
|
||||
}
|
||||
const response = await fetch(`${BASE}${path}${buildQuery(query, account)}`, {
|
||||
method,
|
||||
headers,
|
||||
body: body === undefined ? undefined : JSON.stringify(body),
|
||||
headers,
|
||||
method,
|
||||
});
|
||||
if (!response.ok) {
|
||||
return handleError(response);
|
||||
@@ -114,9 +114,9 @@ export async function requestMedia(mediaId: number): Promise<MediaResult> {
|
||||
}
|
||||
const blob = await response.blob();
|
||||
return {
|
||||
mime: response.headers.get("Content-Type"),
|
||||
state: "ready",
|
||||
url: URL.createObjectURL(blob),
|
||||
mime: response.headers.get("Content-Type"),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -134,8 +134,8 @@ export async function requestMediaVersion(
|
||||
}
|
||||
const blob = await response.blob();
|
||||
return {
|
||||
mime: response.headers.get("Content-Type"),
|
||||
state: "ready",
|
||||
url: URL.createObjectURL(blob),
|
||||
mime: response.headers.get("Content-Type"),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user