fix: 收敛模板编辑发布契约并还原餐饮页面视觉
This commit is contained in:
1 parent
20bcb43534
commit
f4061a24bd
102 files changed
+4510
-870
No files matched your search
@@ -67,10 +67,20 @@ export type BrandPresentationUpdate = Partial<
|
||||
|
||||
export interface TemplateAdminField {
|
||||
key: string;
|
||||
page?: string;
|
||||
binding: string;
|
||||
label: string;
|
||||
help?: string;
|
||||
input: "text" | "textarea" | "phone" | "image" | "number" | "list";
|
||||
input:
|
||||
| "text"
|
||||
| "textarea"
|
||||
| "phone"
|
||||
| "image"
|
||||
| "number"
|
||||
| "boolean"
|
||||
| "select"
|
||||
| "multi-select"
|
||||
| "list";
|
||||
itemFields?: Array<{
|
||||
key: string;
|
||||
label: string;
|
||||
@@ -81,12 +91,14 @@ export interface TemplateAdminField {
|
||||
required?: boolean;
|
||||
maxLength?: number;
|
||||
placeholder?: string;
|
||||
options?: Array<{ value: string; label: string }>;
|
||||
}
|
||||
|
||||
export interface TemplateAdminSection {
|
||||
key: string;
|
||||
title: string;
|
||||
description: string;
|
||||
page: string;
|
||||
target: "brand" | "offering" | "trust" | "inquiry";
|
||||
fields: TemplateAdminField[];
|
||||
}
|
||||
@@ -94,13 +106,25 @@ export interface TemplateAdminSection {
|
||||
export interface AdminTemplateContent {
|
||||
displayName: string;
|
||||
admin: { sections: TemplateAdminSection[] };
|
||||
navigation: Array<{ key: string; label: string; page: string }>;
|
||||
templateFields?: TemplateAdminField[];
|
||||
trustContentTypes?: Array<{
|
||||
type: string;
|
||||
label: string;
|
||||
adminFields: {
|
||||
title: string;
|
||||
summary: string;
|
||||
content: string;
|
||||
summaryHelp?: string;
|
||||
summaryPlaceholder?: string;
|
||||
};
|
||||
pages?: string[];
|
||||
help?: string;
|
||||
placeholder?: string;
|
||||
required?: boolean;
|
||||
configFields?: TemplateAdminField[];
|
||||
maxPublishedItems?: number;
|
||||
hideStandardFields?: Array<"summary" | "content">;
|
||||
}>;
|
||||
assetSlots: Array<{
|
||||
key: string;
|
||||
@@ -716,6 +740,7 @@ export class ApiClient {
|
||||
templateKey: string;
|
||||
alreadyImported: boolean;
|
||||
counts: Record<string, number>;
|
||||
willCreateInquiryForm: boolean;
|
||||
}> {
|
||||
return this.request("/admin/workspace/sample-content/preview");
|
||||
}
|
||||
@@ -845,3 +870,5 @@ export class ApiClient {
|
||||
}
|
||||
|
||||
export const apiClientName = "personal-brand-api-client";
|
||||
|
||||
export { isTrustContentComplete } from "@personal-brand/types";
|
||||
Reference in new issue
Block a user