Illustrate local, self-hosted and platform object mounts
Verify and deploy Tabularium / verify-and-deploy (push) Successful in 5m25s

This commit is contained in:
2026-10-27 23:40:18 +08:00
parent 9fcfbdb694
commit 2bfdc2d35a
7 changed files with 912 additions and 7 deletions
@@ -1,8 +1,6 @@
import { useRef, useState } from "react";
const source = "/figures/endor-architecture.svg";
export function ArchitectureFigure({ alt }: { alt: string }) {
export function ArchitectureFigure({ source, alt }: { source: string; alt: string }) {
const dialog = useRef<HTMLDialogElement>(null);
const trigger = useRef<HTMLButtonElement>(null);
const stage = useRef<HTMLDivElement>(null);
@@ -19,7 +17,7 @@ export function ArchitectureFigure({ alt }: { alt: string }) {
ref={trigger}
className="architecture-preview"
onClick={open}
aria-label="放大 Endor 架构图"
aria-label={`放大:${alt}`}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={source} alt={alt} />
@@ -27,7 +25,7 @@ export function ArchitectureFigure({ alt }: { alt: string }) {
<dialog
ref={dialog}
className="image-lightbox"
aria-label="Endor 架构图大图"
aria-label={alt}
onClick={(event) => {
if (
event.target === dialog.current ||