From 8ecd94c26a9627700cfcea6653d9317246b7ea42 Mon Sep 17 00:00:00 2001 From: que01 Date: Tue, 22 Sep 2026 23:58:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BE=93=E5=87=BA=E8=A7=86=E8=A7=89?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=B8=83=E5=B1=80=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/main.ts | 1 + packages/api-client/src/index.ts | 1 + packages/config/src/index.ts | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 4b2f188..517097c 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -269,6 +269,7 @@ export class PublicWorkspaceController { theme: visualTemplate?.theme ?? { colors: { background: "#F7F5F1", foreground: "#252525", accent: "#8A6846" }, }, + ...(visualTemplate?.layout ? { layout: visualTemplate.layout } : {}), }; return { ...runtimeWorkspace, diff --git a/packages/api-client/src/index.ts b/packages/api-client/src/index.ts index 3e9fa65..3ff54e7 100644 --- a/packages/api-client/src/index.ts +++ b/packages/api-client/src/index.ts @@ -199,6 +199,7 @@ export interface PublicWorkspace { spacing?: Record; radius?: Record; }; + layout?: { home: string[]; offerings: string[]; detail: string[]; profile: string[] }; contractVersion: string; brand: BrandProfile | null; template: { key: BrandTemplateKey; version: string; name: string } | null; diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index 9eb5aa6..5ce1bfb 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -87,6 +87,12 @@ export const visualTemplates: Record