feat: 分离模板演示数据并校验预览资源
This commit is contained in:
1 parent
6edde5a8d6
commit
b60174885e
31 files changed
+1785
-69
No files matched your search
@@ -133,6 +133,25 @@ export interface TemplatePackagePreview {
|
||||
missingSampleSlots: string[];
|
||||
};
|
||||
workspace: RuntimeWorkspace;
|
||||
preview: {
|
||||
assetFiles: Record<string, { sha256: string; dataUrl: string }>;
|
||||
fixtureSource: "previewFixture" | "legacy-sampleContent";
|
||||
safety: { submissions: "disabled"; customerRecords: "disabled"; contactActions: "disabled" };
|
||||
diagnostics: Array<{ code: string; severity: "warning"; message: string }>;
|
||||
pages: Array<{
|
||||
key: string;
|
||||
modules: Array<{ key: string; title: string; bindings: string[] }>;
|
||||
}>;
|
||||
assets: Array<{
|
||||
key: string;
|
||||
label: string;
|
||||
binding: string;
|
||||
required: boolean;
|
||||
populated: number;
|
||||
total: number;
|
||||
status: "missing" | "unverified" | "ready";
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
export interface TemplatePackageList {
|
||||
|
||||
Reference in new issue
Block a user