feat: 在后台展示能力插件状态
This commit is contained in:
1 parent
38a1ebcb5a
commit
366687297f
1 file changed
+22
@@ -193,11 +193,33 @@ export function WorkspacePage() {
|
||||
runtimeQuery.data?.offerings?.length ??
|
||||
0}
|
||||
</Tag>
|
||||
<Tag>插件 {runtimeQuery.data?.plugins?.length ?? 0}</Tag>
|
||||
</Space>
|
||||
<Typography.Paragraph type="secondary" style={{ marginBottom: 0 }}>
|
||||
小程序和后台预览消费同一份 Runtime Workspace;模板 key
|
||||
只用于安装和版本管理,不作为客户端业务分支。
|
||||
</Typography.Paragraph>
|
||||
<Space direction="vertical" style={{ width: "100%" }}>
|
||||
<Typography.Text strong>能力插件</Typography.Text>
|
||||
{(runtimeQuery.data?.plugins ?? []).map((plugin) => (
|
||||
<Card key={plugin.key} size="small">
|
||||
<Space wrap>
|
||||
<Typography.Text strong>{plugin.displayName}</Typography.Text>
|
||||
<Tag color={plugin.status === "enabled" ? "green" : "orange"}>
|
||||
{plugin.status}
|
||||
</Tag>
|
||||
<Tag>v{plugin.version}</Tag>
|
||||
<Typography.Text type="secondary">{plugin.apiContract}</Typography.Text>
|
||||
</Space>
|
||||
<Typography.Paragraph type="secondary" style={{ margin: "8px 0 0" }}>
|
||||
依赖模块:{plugin.requiredModules.join("、")} · Schema:{plugin.configSchema}
|
||||
</Typography.Paragraph>
|
||||
</Card>
|
||||
))}
|
||||
{!runtimeQuery.data?.plugins?.length && (
|
||||
<Typography.Text type="secondary">当前模板未启用能力插件。</Typography.Text>
|
||||
)}
|
||||
</Space>
|
||||
<Space wrap>
|
||||
<Typography.Text strong>视觉模板</Typography.Text>
|
||||
<Select
|
||||
|
||||
Reference in new issue
Block a user