UI enhancements, i18n, history drawer, and requested features

This commit is contained in:
2026-06-04 00:01:32 +02:00
parent c3e167bde9
commit 3a2c738bd0
14 changed files with 598 additions and 288 deletions
+2 -1
View File
@@ -108,10 +108,11 @@ export interface StyleRandomResponse {
export async function randomStyle(
mode: "normal" | "crazy",
signal?: AbortSignal,
idea?: string,
): Promise<string> {
const data = await postJson<StyleRandomResponse>(
"/api/style/random",
{ mode },
{ mode, idea: idea ?? "" },
signal,
);
return data.style;