feat: 完善后台可视化模板编辑与区域绑定
This commit is contained in:
1 parent
0b14b5a814
commit
5b85fe769f
18 files changed
+1620
-239
No files matched your search
@@ -53,7 +53,13 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
<View className="intro" data-editor-target="editorial.home.proof">
|
||||
<Text className="eyebrow dark">{p.proofEyebrow}</Text>
|
||||
<Text className="section-title">{p.proofTitle}</Text>
|
||||
<Text className="body">{credential?.content}</Text>
|
||||
<Text
|
||||
className="body"
|
||||
data-editor-target="trust:credential"
|
||||
data-editor-record-id={credential?.id}
|
||||
>
|
||||
{credential?.content}
|
||||
</Text>
|
||||
<View className="stats">
|
||||
{t.stats?.map((item, index) => (
|
||||
<View key={index}>
|
||||
@@ -88,6 +94,8 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
<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" />
|
||||
@@ -205,7 +213,12 @@ function Profile({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
</View>
|
||||
)}
|
||||
{workspace.trustItems.map((item) => (
|
||||
<View className="info-card trust-card" key={item.id}>
|
||||
<View
|
||||
className="info-card trust-card"
|
||||
key={item.id}
|
||||
data-editor-target={`trust:${item.type}`}
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
<View className="card-title">{item.title}</View>
|
||||
{item.summary && <Text className="trust-summary">{item.summary}</Text>}
|
||||
<Text>{item.content}</Text>
|
||||
@@ -227,6 +240,8 @@ function List({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
<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" />
|
||||
@@ -258,7 +273,11 @@ function Detail({ workspace, id }: { workspace: RuntimeWorkspace; id?: string })
|
||||
const item = offering(found);
|
||||
const p = presentation(workspace, "detail");
|
||||
return (
|
||||
<View className="editorial-detail" data-editor-target="linjing-editorial.detail.projectDetail">
|
||||
<View
|
||||
className="editorial-detail"
|
||||
data-editor-target="linjing-editorial.detail.projectDetail"
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
<View className="detail">
|
||||
<View className="hero-wrap">
|
||||
<Image
|
||||
|
||||
Reference in new issue
Block a user