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

@@ -101,26 +101,33 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
{p.worksAction}
</Text>
</View>
{workspace.offerings.map(offering).map((item) => (
<View
className="work-card"
key={item.id}
data-editor-target="linjing-editorial.home.offering"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="work-info">
<Text className="work-category">
{item.category} · {item.area}
</Text>
<Text className="work-name">{item.name}</Text>
<Text className="work-desc">
{[item.series, ...item.keywords.slice(0, 2)].filter(Boolean).join(" · ")}
</Text>
{workspace.offerings.length ? (
workspace.offerings.map(offering).map((item) => (
<View
className="work-card"
key={item.id}
data-editor-target="linjing-editorial.home.offering"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="work-info">
<Text className="work-category">
{item.category} · {item.area}
</Text>
<Text className="work-name">{item.name}</Text>
<Text className="work-desc">
{[item.series, ...item.keywords.slice(0, 2)].filter(Boolean).join(" · ")}
</Text>
</View>
</View>
))
) : (
<View className="runtime-state">
作品与服务正在整理中
<Button onClick={() => navigate("inquiry")}>联系我们</Button>
</View>
))}
)}
</View>
<View className="flow" data-editor-target="editorial.home.flow">
<Text className="flow-eyebrow">{p.flowEyebrow}</Text>
@@ -256,28 +263,35 @@ function List({ workspace }: { workspace: RuntimeWorkspace }) {
<Text className="eyebrow">{p.worksEyebrow}</Text>
<Text className="section-title">{p.worksTitle || "作品与服务"}</Text>
<Text className="subtitle">{p.subtitle}</Text>
{workspace.offerings.map(offering).map((item) => (
<View
className="work-card"
key={item.id}
data-editor-target="linjing-editorial.offerings.item"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="work-info">
<Text className="work-category">
{item.category} · {item.area}
</Text>
<Text className="work-name">{item.name}</Text>
<Text className="work-desc">{item.desc}</Text>
<Text className="work-price">{item.priceRange}</Text>
<Text className="more" data-editor-target="linjing-editorial.offerings.action">
{p.detailAction || "了解详情 →"}
</Text>
{workspace.offerings.length ? (
workspace.offerings.map(offering).map((item) => (
<View
className="work-card"
key={item.id}
data-editor-target="linjing-editorial.offerings.item"
data-editor-record-id={item.id}
onClick={() => navigate("detail", { id: item.id })}
>
<Image src={item.image} mode="aspectFill" />
<View className="work-info">
<Text className="work-category">
{item.category} · {item.area}
</Text>
<Text className="work-name">{item.name}</Text>
<Text className="work-desc">{item.desc}</Text>
<Text className="work-price">{item.priceRange}</Text>
<Text className="more" data-editor-target="linjing-editorial.offerings.action">
{p.detailAction || "了解详情 →"}
</Text>
</View>
</View>
))
) : (
<View className="runtime-state">
作品与服务正在整理中
<Button onClick={() => navigate("inquiry")}>联系我们</Button>
</View>
))}
)}
<Text className="subtitle">{p.closingText}</Text>
{p.closingAction &&
(inquiryPluginState(workspace).enabled ? (