UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

51 lines (50 loc) 1.55 kB
/** @jsxImportSource hono/jsx */ import type { App } from "../../App"; import { Controller } from "../../modules/Controller"; import type { TApiUser } from "../../Api"; import type { Manifest } from "vite"; export type AdminBkndWindowContext = { user?: TApiUser; logout_route: string; admin_basepath: string; logo_return_path?: string; theme?: "dark" | "light" | "system"; }; export type AdminControllerOptions = { basepath?: string; adminBasepath?: string; assetsPath?: string; html?: string; forceDev?: boolean | { mainPath: string; }; debugRerenders?: boolean; theme?: "dark" | "light" | "system"; logoReturnPath?: string; manifest?: Manifest; }; export declare class AdminController extends Controller { private readonly app; private _options; constructor(app: App, _options?: AdminControllerOptions); get ctx(): import("../..").ModuleBuildContext; get options(): { basepath: string; adminBasepath: string; assetsPath: string; logo_return_path: string; html?: string; forceDev?: boolean | { mainPath: string; }; debugRerenders?: boolean; theme?: "dark" | "light" | "system"; logoReturnPath?: string; manifest?: Manifest; }; get basepath(): string; private withBasePath; private withAdminBasePath; getController(): import("hono/hono-base").HonoBase<import("../..").ServerEnv, import("hono/types").BlankSchema, "/">; private getHtml; }