Skip to content

Commit

Permalink
feat: add network detail pages (36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandiasnow authored and Carrotzpc committed Feb 28, 2023
1 parent 78f8501 commit 463465d
Show file tree
Hide file tree
Showing 14 changed files with 7,997 additions and 1,412 deletions.
271 changes: 234 additions & 37 deletions bff-sdk/sdk.ts

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ const routes = [
path: '/network/detail/:id',
component: '@/pages/NetworkDetail',
},
{
path: '/network/detail/:id/channel/:channelId',
component: '@/pages/NetworkChannelDetail',
},
{
path: '/network/detail/:id/contract/:contractId',
component: '@/pages/NetworkContractDetail',
},
],
},
];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@formily/core": "^2.1.4",
"@formily/react": "^2.1.4",
"@tenx-ui/icon": "^2.4.15",
"@tenx-ui/materials": "1.0.14",
"@tenx-ui/materials": "1.0.16",
"@tenx-ui/utils": "^2.3.0",
"@umijs/max": "^4.0.42",
"antd": "^5.1.4",
Expand Down
312 changes: 256 additions & 56 deletions src/i18n.js

Large diffs are not rendered by default.

69 changes: 42 additions & 27 deletions src/pages/FederationDetail/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
Typography,
Icon,
Table,
Status,
Space,
Input,
Status,
Modal,
FormilyForm,
FormilySelect,
Expand Down Expand Up @@ -721,31 +721,6 @@ class FederationDetail$$Page extends React.Component {
title:
this.i18n('i18n-th9ag1qgsu') /* 认证信息 */,
},
{
dataIndex: 'status',
render: (text, record, index) =>
((__$$context) => (
<Status
id="disabled"
types={[
{
children: '未知',
icon: 'tenx-ui-icon:Circle',
id: 'disabled',
type: 'disabled',
},
]}
/>
))(
__$$createChildContext(__$$context, {
text,
record,
index,
})
),
title:
this.i18n('i18n-bik6xl952y6') /* 状态 */,
},
{
dataIndex: 'joinedAt',
key: 'infomation',
Expand Down Expand Up @@ -1114,6 +1089,24 @@ class FederationDetail$$Page extends React.Component {
{
dataIndex: 'ordererType',
key: 'ordererType',
render: (text, record, index) =>
((__$$context) => (
<Typography.Text
__component_name="Typography.Text"
disabled={false}
ellipsis={true}
strong={false}
style={{ fontSize: '' }}
>
{__$$eval(() => record?.initiator?.admin || '-')}
</Typography.Text>
))(
__$$createChildContext(__$$context, {
text,
record,
index,
})
),
title: this.i18n('i18n-7ww60oxk') /* 创建者 */,
},
{
Expand All @@ -1128,7 +1121,11 @@ class FederationDetail$$Page extends React.Component {
strong={false}
style={{ fontSize: '' }}
>
{__$$eval(() => text?.length || 0)}
{__$$eval(() =>
record?.organizations?.length
? record?.organizations?.length
: '0'
)}
</Typography.Text>
))(
__$$createChildContext(__$$context, {
Expand All @@ -1142,6 +1139,24 @@ class FederationDetail$$Page extends React.Component {
{
dataIndex: 'clusterSize',
key: 'clusterSize',
render: (text, record, index) =>
((__$$context) => (
<Typography.Text
__component_name="Typography.Text"
disabled={false}
ellipsis={true}
strong={false}
style={{ fontSize: '' }}
>
{__$$eval(() => record?.channels?.length || '0')}
</Typography.Text>
))(
__$$createChildContext(__$$context, {
text,
record,
index,
})
),
title: this.i18n('i18n-707onz6g') /* 通道数 */,
},
{
Expand Down
Loading

0 comments on commit 463465d

Please sign in to comment.