add css kv var, move away from ssr ( multiple queries ), remove colors kv var, add option to disable logging per route
All checks were successful
Code quality checks / biome (push) Successful in 15s
All checks were successful
Code quality checks / biome (push) Successful in 15s
This commit is contained in:
parent
bd680ab607
commit
3b6c68c25d
18 changed files with 571 additions and 667 deletions
8
types/routes.d.ts
vendored
8
types/routes.d.ts
vendored
|
@ -3,6 +3,7 @@ type RouteDef = {
|
|||
accepts: string | null | string[];
|
||||
returns: string;
|
||||
needsBody?: "multipart" | "json";
|
||||
log?: boolean;
|
||||
};
|
||||
|
||||
type RouteModule = {
|
||||
|
@ -13,10 +14,3 @@ type RouteModule = {
|
|||
) => Promise<Response> | Response;
|
||||
routeDef: RouteDef;
|
||||
};
|
||||
|
||||
type Palette = Awaited<ReturnType<typeof Vibrant.prototype.getPalette>>;
|
||||
type Swatch = Awaited<ReturnType<typeof Vibrant.prototype.getSwatches>>;
|
||||
type ImageColorResult = {
|
||||
img: string;
|
||||
colors: Palette | Record<string, string>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue