refactor: 拆分业务、信任内容与公共工作台模块

This commit is contained in:
que01 committed 2026-10-12 05:11:26 +08:00
1 parent 357f271639
commit 466dc66907
33 files changed
+4950 -4500

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
import type { TemplatePackageManifest } from "./index.js";
export declare const generatedTemplatePackageRegistry: readonly TemplatePackageManifest[];
export declare const generatedTemplatePackageRegistryHash: string;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -20,8 +20,8 @@ export interface TemplatePackageManifest {
iconPath?: string;
selectedIconPath?: string;
}[];
renderers: Readonly<Record<string, string>>;
runtimeOwnedPages: readonly string[];
renderers?: Readonly<Record<string, string>>;
runtimeOwnedPages?: readonly string[];
dataSlots: readonly {
key: string;
source: string;
@@ -39,6 +39,7 @@ export interface TemplatePackageManifest {
itemValueKey?: string;
required?: boolean;
maxLength?: number;
previewTarget?: string;
placeholder?: string;
options?: readonly { value: string; label: string }[];
}[];
@@ -49,7 +50,18 @@ export interface TemplatePackageManifest {
label: string;
help: string;
required: boolean;
kind?: string;
aspectRatio?: string;
}[];
inquiryFormFields?: readonly {
key: string;
label: string;
type: string;
required: boolean;
placeholder?: string;
options?: readonly { label: string; value: string }[];
}[];
pages: readonly string[];
admin: {
sections: readonly {
key: string;
@@ -71,11 +83,12 @@ export interface TemplatePackageManifest {
help?: string;
required?: boolean;
itemFields?: readonly { key: string; label: string; input?: string; required?: boolean }[];
kind?: string;
itemValueKey?: string;
maxLength?: number;
placeholder?: string;
options?: readonly { value: string; label: string }[];
previewTarget?: string;
options?: readonly { value: string; label: string }[];
}[];
}[];
};
@@ -91,9 +104,15 @@ export interface TemplatePackageManifest {
};
help?: string;
placeholder?: string;
previewTargets?: readonly {
key: string;
label: string;
page?: string;
}[];
required?: boolean;
maxPublishedItems?: number;
hideStandardFields?: readonly ("summary" | "content")[];
pages?: readonly string[];
configFields?: readonly {
key: string;
binding: string;
@@ -101,8 +120,11 @@ export interface TemplatePackageManifest {
input: string;
itemFields?: readonly { key: string; label: string; input?: string; required?: boolean }[];
itemValueKey?: string;
placeholder?: string;
previewTarget?: string;
required?: boolean;
}[];
}[];
overrides?: readonly string[];
sampleContent?: Partial<Record<BrandTemplateKey, TemplateSampleContent>>;
}
@@ -23,6 +23,7 @@ export interface TemplateSampleContent {
type: string;
required: boolean;
options?: Array<{ label: string; value: string }>;
placeholder?: string;
}>;
capabilityKey: string;
}