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-linjing-editorial",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"files": [
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"packageKey": "linjing-editorial",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"displayName": "林境建筑画册",
|
||||
"defaultBrandSlug": "linjing-doors",
|
||||
"runtimeContract": "1.0",
|
||||
@@ -1894,6 +1894,31 @@
|
||||
},
|
||||
"pages": ["pages/index/index", "pages/services/index", "pages/bookings/index"],
|
||||
"visualTemplateKey": "linjing-editorial",
|
||||
"visualPresentation": {
|
||||
"description": "适合高端定制、建筑作品和项目型个人品牌。",
|
||||
"variants": {
|
||||
"hero": "architectural",
|
||||
"offeringList": "editorial",
|
||||
"detail": "project-case"
|
||||
},
|
||||
"theme": {
|
||||
"colors": {
|
||||
"background": "#F7F5F1",
|
||||
"foreground": "#252525",
|
||||
"accent": "#8A6846",
|
||||
"dark": "#202221"
|
||||
},
|
||||
"radius": {
|
||||
"card": "16rpx"
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"home": ["founder-card", "brand-hero", "trust-proof", "trust-manifesto", "offering-list"],
|
||||
"offerings": ["offering-list"],
|
||||
"detail": ["offering-detail"],
|
||||
"profile": ["profile"]
|
||||
}
|
||||
},
|
||||
"previewFixture": {
|
||||
"doors": {
|
||||
"schemaVersion": "1",
|
||||
|
||||
Reference in new issue
Block a user