feat: remove typesense

This commit is contained in:
2025-01-05 23:14:19 +01:00
parent d0d49b217d
commit 709fb2d7be
21 changed files with 128 additions and 381 deletions

View File

@ -65,7 +65,9 @@ const Image = (
style={props.style}
srcset={responsiveAttributes.srcset}
sizes={responsiveAttributes.sizes}
src={`/api/images?image=${asset(props.src)}`}
src={`/api/images?image=${asset(props.src)}${
props.width ? `&width=${props.width}` : ""
}${props.height ? `&height=${props.height}` : ""}`}
width={props.width}
height={props.height}
class={props.class}

View File

@ -1,6 +1,6 @@
import { ComponentChildren } from "preact";
import Search from "@islands/Search.tsx";
import { SearchResult } from "@lib/types.ts";
import { GenericResource, SearchResult } from "@lib/types.ts";
export type Props = {
children: ComponentChildren;
@ -9,7 +9,7 @@ export type Props = {
url: URL;
description?: string;
context?: { type: string };
searchResults?: SearchResult;
searchResults?: GenericResource[];
};
export const MainLayout = (