From 2ea7ede30c51ca8e09bf2571ae2052ef6717f94d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 23 Jul 2026 12:05:21 +0200 Subject: Remove uses of removed component helper --- src/ui/base/BaseLayout.tsx | 228 +++++++++++++++++++++++---------------------- 1 file changed, 117 insertions(+), 111 deletions(-) (limited to 'src/ui') diff --git a/src/ui/base/BaseLayout.tsx b/src/ui/base/BaseLayout.tsx index c57d41e..2fb999d 100644 --- a/src/ui/base/BaseLayout.tsx +++ b/src/ui/base/BaseLayout.tsx @@ -9,126 +9,132 @@ import { Lightbox } from "../objects/Lightbox.tsx"; export interface Props { page: Select; + pages: readonly Select[]; image?: string; theme?: "l1" | "l2" | null; children?: JSX.Element; class?: unknown; } -export const BaseLayout = site.$.component( - async ({ page, theme = "l1", image: imageUrl, children, class: cls }: Props, pages) => { - const query = site.$.query(pages); +export const BaseLayout = async ({ + page, + pages, + theme = "l1", + image: imageUrl, + children, + class: cls, +}: Props) => { + const query = site.$.query(pages); - const stylesheet = await site.load("styles/style.scss"); - const script = await site.load("scripts/script.ts"); - const fonts = await site.glob("assets/**.woff2"); - const favicon = await site.load("assets/favicon.svg"); - const image = await site.load( - imageUrl ?? "https://strapi.volpeon.ink/uploads/icon_7999cf625e.png", - ); + const stylesheet = await site.load("styles/style.scss"); + const script = await site.load("scripts/script.ts"); + const fonts = await site.glob("assets/**.woff2"); + const favicon = await site.load("assets/favicon.svg"); + const image = await site.load( + imageUrl ?? "https://strapi.volpeon.ink/uploads/icon_7999cf625e.png", + ); - const feeds = query.type(".rss").many(); + const feeds = query.type(".rss").many(); - return ( - <> - {{ __html: "" }} - - - - - - - - - {fonts.map((font) => ( - - ))} + return ( + <> + {{ __html: "" }} + + + + + + + + + {fonts.map((font) => ( + + ))} - - -