fix: 收口模板契约与安全门禁
统一模板包 visual 契约并补齐完成证据;修复 release 版本一致性、管理员 token 撤销、CORS 与默认品牌配置;收敛依赖安全风险并完成全量回归验证。
This commit is contained in:
1 parent
456171aa85
commit
4f0b50c7f1
84 files changed
+7367
-5180
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@personal-brand/template-atelier-solopreneur",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"files": [
|
||||
|
||||
@@ -88,28 +88,35 @@ function Home({ workspace }: Props) {
|
||||
<Text>{p.caseAction}</Text>
|
||||
</View>
|
||||
<View className="atelier-cases">
|
||||
{workspace.offerings.map((item) => (
|
||||
<View
|
||||
className="atelier-case"
|
||||
key={item.id}
|
||||
data-editor-target="atelier.home.case"
|
||||
data-editor-record-id={item.id}
|
||||
onClick={() => navigate("detail", { id: item.id })}
|
||||
>
|
||||
{item.coverUrl ? (
|
||||
<Image src={item.coverUrl} mode="aspectFill" />
|
||||
) : (
|
||||
<View className="atelier-case-placeholder">
|
||||
<Text>↗</Text>
|
||||
{workspace.offerings.length ? (
|
||||
workspace.offerings.map((item) => (
|
||||
<View
|
||||
className="atelier-case"
|
||||
key={item.id}
|
||||
data-editor-target="atelier.home.case"
|
||||
data-editor-record-id={item.id}
|
||||
onClick={() => navigate("detail", { id: item.id })}
|
||||
>
|
||||
{item.coverUrl ? (
|
||||
<Image src={item.coverUrl} mode="aspectFill" />
|
||||
) : (
|
||||
<View className="atelier-case-placeholder">
|
||||
<Text>↗</Text>
|
||||
</View>
|
||||
)}
|
||||
<View className="atelier-case-copy">
|
||||
<Text className="atelier-card-title">{item.name}</Text>
|
||||
<Text className="atelier-caption">{item.summary}</Text>
|
||||
<Text className="atelier-case-arrow">→</Text>
|
||||
</View>
|
||||
)}
|
||||
<View className="atelier-case-copy">
|
||||
<Text className="atelier-card-title">{item.name}</Text>
|
||||
<Text className="atelier-caption">{item.summary}</Text>
|
||||
<Text className="atelier-case-arrow">→</Text>
|
||||
</View>
|
||||
))
|
||||
) : (
|
||||
<View className="runtime-state">
|
||||
案例内容正在整理中
|
||||
<InquiryAction workspace={workspace} label={p.primaryAction} />
|
||||
</View>
|
||||
))}
|
||||
)}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.home.audienceHeading">
|
||||
<Text>{p.audienceTitle}</Text>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"packageKey": "atelier-solopreneur",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"displayName": "独立工坊 · 品牌小程序",
|
||||
"defaultBrandSlug": "atelier-studio",
|
||||
"runtimeContract": "1.0",
|
||||
@@ -2266,5 +2266,30 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"visualTemplateKey": "atelier-solopreneur"
|
||||
"visualTemplateKey": "atelier-solopreneur",
|
||||
"visualPresentation": {
|
||||
"description": "展示品牌小程序服务、试点案例与合作流程,承接需求咨询。",
|
||||
"variants": {
|
||||
"hero": "editorial",
|
||||
"offeringList": "service-system",
|
||||
"detail": "project-case"
|
||||
},
|
||||
"theme": {
|
||||
"colors": {
|
||||
"background": "#f6f6f4",
|
||||
"foreground": "#17181a",
|
||||
"accent": "#1f3a5f",
|
||||
"dark": "#1f3a5f"
|
||||
},
|
||||
"radius": {
|
||||
"card": "28rpx"
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"home": ["brand-hero", "offering-list"],
|
||||
"offerings": ["offering-list"],
|
||||
"detail": ["offering-detail"],
|
||||
"profile": ["profile"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user