Files
persionalBrand/packages/template-compiler/test/fixtures/template-drill-consultant/template.json
T
que01 4f0b50c7f1 fix: 收口模板契约与安全门禁
统一模板包 visual 契约并补齐完成证据;修复 release 版本一致性、管理员 token 撤销、CORS 与默认品牌配置;收敛依赖安全风险并完成全量回归验证。
2026-10-18 22:05:31 +08:00

114 lines
2.7 KiB
JSON

{
"packageKey": "drill-consultant",
"version": "0.1.0",
"displayName": "咨询师演练模板",
"visualTemplateKey": "drill-consultant",
"visualPresentation": {
"description": "用于编译器测试的咨询师视觉演练。",
"variants": {
"hero": "consulting",
"offeringList": "service-list",
"detail": "case"
},
"theme": {
"colors": {
"background": "#f7f7f4",
"foreground": "#202020",
"accent": "#2f5d62",
"dark": "#17252a"
},
"radius": {
"card": "16rpx"
}
}
},
"defaultBrandSlug": "drill-consultant",
"runtimeContract": "1.0",
"supportedIndustryTemplates": ["consulting"],
"entrypoints": {
"home": "pages/index/index",
"offerings": "pages/services/index",
"detail": "pages/offering/detail",
"inquiry": "pages/inquiry/index",
"success": "pages/inquiry-success/index",
"records": "pages/records/index",
"profile": "pages/profile/index"
},
"navigation": [
{
"key": "home",
"label": "首页",
"page": "home"
},
{
"key": "offerings",
"label": "服务",
"page": "offerings"
},
{
"key": "profile",
"label": "关于我",
"page": "profile"
}
],
"requiredCapabilities": ["offerings", "inquiry"],
"pages": ["pages/index/index", "pages/services/index", "pages/profile/index"],
"dataSlots": [
{
"key": "brand.identity",
"source": "brand",
"required": true,
"description": "顾问姓名、定位和联系方式"
},
{
"key": "offering.list",
"source": "offering",
"required": true,
"description": "咨询服务项目"
}
],
"assetSlots": [],
"admin": {
"sections": [
{
"key": "identity",
"title": "顾问介绍",
"description": "客户在首页看到的姓名和定位",
"page": "home",
"fields": [
{
"key": "name",
"binding": "brand.name",
"label": "姓名",
"input": "text",
"required": true
}
]
}
]
},
"previewFixture": {
"consulting": {
"schemaVersion": "1",
"brand": {
"name": "咨询师演练",
"tagline": "用于编译器测试的虚构品牌",
"description": "此内容仅用于模板编译器测试。"
},
"content": {
"templateKey": "consulting",
"inquiryFormName": "演练咨询表单",
"capabilityKey": "inquiry",
"offerings": [],
"trustContent": [],
"fields": []
},
"safety": {
"submissions": "disabled",
"customerRecords": "disabled",
"contactActions": "disabled"
}
}
}
}