From 4c9f9a05d05f0a46e74d3b86931344995b1cfccf Mon Sep 17 00:00:00 2001 From: que01 Date: Tue, 22 Sep 2026 23:47:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=A7=86=E8=A7=89?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E9=A2=84=E8=A7=88=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/features/workspace/WorkspacePage.tsx | 26 +++++++++++++++++++ docs/template-runtime-progress.md | 1 + packages/api-client/src/index.ts | 4 +-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/apps/admin/src/features/workspace/WorkspacePage.tsx b/apps/admin/src/features/workspace/WorkspacePage.tsx index 1808813..879d56a 100644 --- a/apps/admin/src/features/workspace/WorkspacePage.tsx +++ b/apps/admin/src/features/workspace/WorkspacePage.tsx @@ -233,6 +233,32 @@ export function WorkspacePage() { ) : null} + + 可用视觉模板 + + {(templateCatalog.data?.visuals ?? []).map((visual) => ( + + {visual.name} + + {visual.description} + + + {Object.entries(visual.theme.colors).map(([name, color]) => ( + + {name} + + ))} + + + {Object.values(visual.variants).join(" / ")} + + + ))} + + }; variants: Record; } | null; available: string[]; @@ -400,7 +400,7 @@ export class ApiClient { name: string; description: string; variants: Record; - theme: unknown; + theme: { colors: Record }; }>; }> { return this.request("/public/templates");