feat: 分离模板演示数据并校验预览资源
This commit is contained in:
1 parent
6edde5a8d6
commit
b60174885e
31 files changed
+1785
-69
No files matched your search
@@ -3,6 +3,26 @@ import type { CapabilityKey } from "./template-keys.js";
|
||||
import type { VisualTemplateKey } from "./template-keys.js";
|
||||
import type { TemplateSampleContent } from "./template-sample-content.js";
|
||||
|
||||
export interface TemplatePreviewFixture {
|
||||
schemaVersion: "1";
|
||||
brand: {
|
||||
name: string;
|
||||
tagline: string;
|
||||
description: string;
|
||||
avatarUrl?: string;
|
||||
coverUrl?: string;
|
||||
hours?: string;
|
||||
address?: string;
|
||||
deliveryNote?: string;
|
||||
};
|
||||
content: TemplateSampleContent;
|
||||
safety: {
|
||||
submissions: "disabled";
|
||||
customerRecords: "disabled";
|
||||
contactActions: "disabled";
|
||||
};
|
||||
}
|
||||
|
||||
export interface TemplatePackageManifest {
|
||||
packageKey: string;
|
||||
version: string;
|
||||
@@ -127,4 +147,5 @@ export interface TemplatePackageManifest {
|
||||
}[];
|
||||
overrides?: readonly string[];
|
||||
sampleContent?: Partial<Record<BrandTemplateKey, TemplateSampleContent>>;
|
||||
previewFixture?: Partial<Record<BrandTemplateKey, TemplatePreviewFixture>>;
|
||||
}
|
||||
Reference in new issue
Block a user