feat: full ui refresh

This commit is contained in:
zhom
2026-05-11 23:12:16 +04:00
parent 739b5e2449
commit ed3c209f35
46 changed files with 5956 additions and 1553 deletions
+9
View File
@@ -15,6 +15,9 @@ export type BackendErrorCode =
| "PROFILE_LOCKED"
| "INVALID_PROFILE_ID"
| "PASSWORD_TOO_SHORT"
| "INVALID_LAUNCH_HOOK_URL"
| "COOKIE_DB_LOCKED"
| "COOKIE_DB_UNAVAILABLE"
| "INTERNAL_ERROR";
export interface BackendError {
@@ -81,6 +84,12 @@ export function translateBackendError(t: TFunction, err: unknown): string {
const min = Number.parseInt(parsed.params?.min ?? "8", 10);
return t("backendErrors.passwordTooShort", { min });
}
case "INVALID_LAUNCH_HOOK_URL":
return t("backendErrors.invalidLaunchHookUrl");
case "COOKIE_DB_LOCKED":
return t("backendErrors.cookieDbLocked");
case "COOKIE_DB_UNAVAILABLE":
return t("backendErrors.cookieDbUnavailable");
case "INTERNAL_ERROR":
return t("backendErrors.internal", {
detail: parsed.params?.detail ?? "",
+32
View File
@@ -34,6 +34,38 @@ export interface Theme {
}
export const THEMES: Theme[] = [
{
id: "donut-mono",
name: "Donut Mono",
colors: {
"--background": "#070707",
"--foreground": "#ffffff",
"--card": "#0e0e0e",
"--card-foreground": "#e4e4e4",
"--popover": "#0e0e0e",
"--popover-foreground": "#e4e4e4",
"--primary": "#ffffff",
"--primary-foreground": "#070707",
"--secondary": "#161616",
"--secondary-foreground": "#e4e4e4",
"--muted": "#161616",
"--muted-foreground": "#a0a0a0",
"--accent": "#1f1f1f",
"--accent-foreground": "#ffffff",
"--destructive": "#ec6a5e",
"--destructive-foreground": "#070707",
"--success": "#61c554",
"--success-foreground": "#070707",
"--warning": "#f4be4f",
"--warning-foreground": "#070707",
"--border": "rgba(255,255,255,0.06)",
"--chart-1": "#a0a0a0",
"--chart-2": "#6b6b6b",
"--chart-3": "#444444",
"--chart-4": "#e4e4e4",
"--chart-5": "#ffffff",
},
},
{
id: "tokyo-night",
name: "Tokyo Night",