fix: 收口模板契约与安全门禁

统一模板包 visual 契约并补齐完成证据;修复 release 版本一致性、管理员 token 撤销、CORS 与默认品牌配置;收敛依赖安全风险并完成全量回归验证。
This commit is contained in:
que01 committed 2026-10-18 22:05:31 +08:00
1 parent 456171aa85
commit 4f0b50c7f1
84 files changed
+7367 -5180

No files matched your search

@@ -1,6 +1,6 @@
{
"name": "@personal-brand/template-acheng-campus-food",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"type": "module",
"files": [
@@ -70,22 +70,29 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
</Text>
</View>
<View className="dish-grid">
{list.map((item) => (
<View
className="dish"
key={item.id}
data-editor-target="acheng-campus-food.home.offering"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="dish-copy">
<Text className="dish-name">{item.name}</Text>
<Text className="dish-sub">{item.desc}</Text>
<Text className="price">{item.priceRange}</Text>
{list.length ? (
list.map((item) => (
<View
className="dish"
key={item.id}
data-editor-target="acheng-campus-food.home.offering"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="dish-copy">
<Text className="dish-name">{item.name}</Text>
<Text className="dish-sub">{item.desc}</Text>
<Text className="price">{item.priceRange}</Text>
</View>
</View>
))
) : (
<View className="runtime-state">
餐品与服务正在整理中
<Button onClick={() => navigate("offerings")}>查看全部</Button>
</View>
))}
)}
</View>
<View data-editor-target="food.home.promise-heading">
<Text className="heading manifesto-heading">{p.manifestoTitle}</Text>
@@ -1,6 +1,6 @@
{
"packageKey": "acheng-campus-food",
"version": "1.0.2",
"version": "1.0.3",
"displayName": "阿成校园餐",
"defaultBrandSlug": "default-brand",
"runtimeContract": "1.0",
@@ -1616,6 +1616,31 @@
],
"overrides": ["pages/inquiry", "pages/inquiry-success", "pages/offering", "pages/records"],
"visualTemplateKey": "acheng-campus-food",
"visualPresentation": {
"description": "适合校园餐饮、套餐预订和团体定制的暖橙菜单视觉。",
"variants": {
"hero": "stall-board",
"offeringList": "menu-card",
"detail": "dish-detail"
},
"theme": {
"colors": {
"background": "#FFF8F0",
"foreground": "#29231F",
"accent": "#E87532",
"dark": "#3B2118"
},
"radius": {
"card": "24rpx"
}
},
"layout": {
"home": ["founder-card", "brand-hero", "trust-proof", "offering-list"],
"offerings": ["offering-list"],
"detail": ["offering-detail"],
"profile": ["profile"]
}
},
"previewFixture": {
"food": {
"schemaVersion": "1",