refactor: unify theme type and admin options from AdminController

This commit is contained in:
cameronapak
2025-07-22 08:33:42 -05:00
parent f07f3d1007
commit 03aac3437b
2 changed files with 4 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import { css, Style } from "hono/css";
import { Controller } from "modules/Controller";
import * as SystemPermissions from "modules/permissions";
import type { TApiUser } from "Api";
import type { AppTheme } from "ui/client/use-theme";
const htmlBkndContextReplace = "<!-- BKND_CONTEXT -->";
@@ -18,7 +19,7 @@ export type AdminBkndWindowContext = {
logout_route: string;
admin_basepath: string;
logo_return_path?: string;
theme?: "dark" | "light" | "system";
theme?: AppTheme;
};
// @todo: add migration to remove admin path from config