From f53a1f6e457cb0262f58a086d24f824264f07942 Mon Sep 17 00:00:00 2001 From: Jandiasnow <88074479@qq.com> Date: Mon, 6 Mar 2023 13:50:46 +0800 Subject: [PATCH] feat: update pages --- config/config.local.ts | 5 - package.json | 6 +- pnpm-lock.yaml | 346 ++++++++++++++----------- src/global.less | 77 +++--- src/i18n.js | 58 +++++ src/index.js | 1 + src/pages/FederationDetail/index.jsx | 2 +- src/pages/Network/index.jsx | 196 +++++++------- src/pages/NetworkDetail/index.jsx | 121 ++++++--- src/pages/OrganizationDetail/index.jsx | 293 ++++++++++----------- 10 files changed, 624 insertions(+), 481 deletions(-) create mode 100644 src/index.js diff --git a/config/config.local.ts b/config/config.local.ts index ba3e117..f2b9f6b 100644 --- a/config/config.local.ts +++ b/config/config.local.ts @@ -19,10 +19,5 @@ export default defineConfig({ changeOrigin: true, secure: false, }, - '/token': { - target: 'https://portal.172.22.96.209.nip.io', - changeOrigin: true, - secure: false, - }, }, }); diff --git a/package.json b/package.json index 18ecc77..b4827f7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "**/*.{md,json}": ["prettier --write"] }, "dependencies": { - "@alilc/lowcode-datasource-engine": "latest", + "@alilc/lowcode-datasource-engine": "^1.0.0", "@alilc/lowcode-datasource-fetch-handler": "latest", "@ant-design/icons": "^5.0.0", "@ant-design/pro-components": "^2.3.52", @@ -48,10 +48,10 @@ "@formily/core": "^2.1.4", "@formily/react": "^2.1.4", "@tenx-ui/icon": "^2.4.15", - "@tenx-ui/materials": "1.0.18", + "@tenx-ui/materials": "1.0.19", "@tenx-ui/utils": "^2.3.0", "@umijs/max": "^4.0.42", - "antd": "^5.1.4", + "antd": "^5.1.5", "babel-runtime": "^6.26.0", "classnames": "^2.2.5", "dayjs": "^1.11.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f17dfa..ec81ff3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: 5.4 specifiers: - '@alilc/lowcode-datasource-engine': latest + '@alilc/lowcode-datasource-engine': ^1.0.0 '@alilc/lowcode-datasource-fetch-handler': latest '@ant-design/icons': ^5.0.0 '@ant-design/pro-components': ^2.3.52 @@ -13,7 +13,7 @@ specifiers: '@formily/core': ^2.1.4 '@formily/react': ^2.1.4 '@tenx-ui/icon': ^2.4.15 - '@tenx-ui/materials': 1.0.18 + '@tenx-ui/materials': 1.0.19 '@tenx-ui/utils': ^2.3.0 '@testing-library/jest-dom': ^5.16.4 '@testing-library/react': ^13 @@ -29,7 +29,7 @@ specifiers: '@typescript-eslint/eslint-plugin': ^5.45.0 '@typescript-eslint/parser': ^5.45.0 '@umijs/max': ^4.0.42 - antd: ^5.1.4 + antd: ^5.1.5 babel-plugin-import: ^1.13.3 babel-plugin-transform-react-remove-prop-types: ^0.4.13 babel-runtime: ^6.26.0 @@ -68,15 +68,15 @@ dependencies: '@alilc/lowcode-datasource-engine': 1.1.4 '@alilc/lowcode-datasource-fetch-handler': 1.1.4 '@ant-design/icons': 5.0.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-components': 2.3.52_3eprgtpjc4b52y4s5m2payzg5q - '@formily/antd': 2.2.16_yjqdmdfrtsnptz6f47tu6vulyu + '@ant-design/pro-components': 2.3.52_gobdu7oqf7subfinaleisgb544 + '@formily/antd': 2.2.16_umkr7xkembx4rnrs36jomvuiga '@formily/core': 2.2.16 '@formily/react': 2.2.16_imsf4monu2ro3jsq722crax7fe '@tenx-ui/icon': 2.4.15_4wymetwju2f67kkws2jsebarle - '@tenx-ui/materials': 1.0.18_lcdpohno6xepm2x6gp4hxh65iu + '@tenx-ui/materials': 1.0.19_uxg2dbmuxi6z4lw5feefx5zea4 '@tenx-ui/utils': 2.3.0_v2m5e27vhdewzwhryxwfaorcca '@umijs/max': 4.0.44_dubak3sm6kr32wj4hxzec2jvdy - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y babel-runtime: 6.26.0 classnames: 2.3.2 dayjs: 1.11.7 @@ -193,30 +193,13 @@ packages: /@ant-design/colors/6.0.0: resolution: {integrity: sha1-m5NmJXz/zEfbQrnQIDu1ksE8Apg=} dependencies: - '@ctrl/tinycolor': 3.5.0 + '@ctrl/tinycolor': 3.6.0 dev: false /@ant-design/colors/7.0.0: resolution: {integrity: sha512-iVm/9PfGCbC0dSMBrz7oiEXZaaGH7ceU40OJEfKmyuzR9R5CRimJYPlRiFtMQGQcbNMea/ePcoIebi4ASGYXtg==} dependencies: - '@ctrl/tinycolor': 3.5.0 - dev: false - - /@ant-design/cssinjs/1.4.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-siFyX5VyiJWKBQAffI8zE0WZ4OWfI35QnqesbtHaVg49QxHFAcFN9VbJ+Qoos24JxABcxfopEwMWe2joZ2QVBQ==} - peerDependencies: - react: '>=16.0.0' - react-dom: '>=16.0.0' - dependencies: - '@babel/runtime': 7.20.7 - '@emotion/hash': 0.8.0 - '@emotion/unitless': 0.7.5 - classnames: 2.3.2 - csstype: 3.1.1 - rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y - react: 18.2.0 - react-dom: 18.2.0_react@18.2.0 - stylis: 4.1.3 + '@ctrl/tinycolor': 3.6.0 dev: false /@ant-design/cssinjs/1.5.6_biqbaboplfbrettd7655fr4n2y: @@ -272,17 +255,17 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /@ant-design/pro-card/2.1.10_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-card/2.1.10_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-edajGd2/35w73tLC7yMZf2/8tWg4Wz9pmN6jQgFo+QIRXoaHd5zpeQaOMxZojeqzCxTH0Qt60YpeLp/S+ahupQ==} peerDependencies: antd: '>=4.23.0' react: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 omit.js: 2.0.2 rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y @@ -292,25 +275,25 @@ packages: - react-dom dev: false - /@ant-design/pro-components/2.3.52_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-components/2.3.52_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-df51Xi59QRXXIc5uMcO/7/tPjNziGt1w40860yCztFBNCoNc9B+xvDwsuRWgvRL1yqM4SZL1Al7T392CtyESSg==} peerDependencies: antd: '>=4.23.0' react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@ant-design/pro-card': 2.1.10_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-descriptions': 2.0.44_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-field': 2.2.5_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-form': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-layout': 7.6.1_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-list': 2.0.45_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-skeleton': 2.0.7_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-table': 3.2.12_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-card': 2.1.10_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-descriptions': 2.0.44_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-field': 2.2.5_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-form': 2.5.4_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-layout': 7.6.1_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-list': 2.0.45_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-skeleton': 2.0.7_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-table': 3.2.12_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 transitivePeerDependencies: @@ -318,18 +301,18 @@ packages: - rc-field-form dev: false - /@ant-design/pro-descriptions/2.0.44_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-descriptions/2.0.44_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-UEwZbvjOBTxWvPGv8qb3i+Q5czuHFYwRokSgVzVyS2el6xLYr4ZjG0a2CQsjbBnIb0MvZCfnkIn+W0XD/bjS3g==} peerDependencies: antd: '>=4.23.0' react: '>=16.9.0' dependencies: - '@ant-design/pro-field': 2.2.5_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-form': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-skeleton': 2.0.7_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-field': 2.2.5_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-form': 2.5.4_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-skeleton': 2.0.7_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 use-json-comparison: 1.0.6_react@18.2.0 @@ -339,18 +322,18 @@ packages: - react-dom dev: false - /@ant-design/pro-field/2.2.5_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-field/2.2.5_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-7Rp0uRhdCUnOFKXkId5wCjjQJBWo0sMhOQs10y40/hNpGpTEpVuEmJo2Jx4Sj2hj/g663WOUSF0YBK7PhFtTFA==} peerDependencies: antd: '>=4.23.0' react: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 '@chenshuai2144/sketch-color': 1.0.8_react@18.2.0 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 dayjs: 1.11.7 lodash.tonumber: 4.0.3 @@ -362,7 +345,7 @@ packages: - react-dom dev: false - /@ant-design/pro-form/2.5.4_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-form/2.5.4_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-Udzs2BLLHK9xhryB0GqE4FvC0KVjiD88z0NqSkJT1AfFMbBn5ERUh2TJ87vfSc8CS4UPGGeU868YzXVMR9AkbA==} peerDependencies: '@types/lodash.merge': ^4.6.7 @@ -375,12 +358,12 @@ packages: optional: true dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-field': 2.2.5_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-field': 2.2.5_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 '@umijs/use-params': 1.0.9_react@18.2.0 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 lodash.merge: 4.6.2 omit.js: 2.0.2 @@ -392,7 +375,7 @@ packages: use-media-antd-query: 1.1.0_react@18.2.0 dev: false - /@ant-design/pro-layout/7.6.1_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-layout/7.6.1_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-MNmOALRmVbAUbsbJSmUdXyKgvxyTG1pp9YYwway5AqKz28PdfDp6HhqrvCE7zRnxIaJWv9Vb6IZ/XqstI5zDeg==} peerDependencies: antd: '>=4.23.0' @@ -400,12 +383,12 @@ packages: react-dom: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 '@umijs/route-utils': 4.0.1 '@umijs/use-params': 1.0.9_react@18.2.0 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 lodash.merge: 4.6.2 omit.js: 2.0.2 @@ -421,7 +404,7 @@ packages: warning: 4.0.3 dev: false - /@ant-design/pro-list/2.0.45_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-list/2.0.45_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-jGcTqL+ziAKZ71NERmbfFST+BoOIyVy6NQNDvTNa2V/r2ZYR+eLStEcRfTp0MyWaWillXJqBIi3jNhDUIXWVhg==} peerDependencies: antd: '>=4.23.0' @@ -429,11 +412,11 @@ packages: react-dom: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-card': 2.1.10_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-field': 2.2.5_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-table': 3.2.12_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-card': 2.1.10_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-field': 2.2.5_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-table': 3.2.12_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 dayjs: 1.11.7 rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y @@ -447,7 +430,7 @@ packages: - rc-field-form dev: false - /@ant-design/pro-provider/2.4.0_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-provider/2.4.0_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-toz3F7moI6o99DCaEJRQv/jYrQXYlxiM3RpTb5L+zXYwc4hFxfv8Jj2Qm6XMX0DRZgCsDt5KK7R+9c9LzoNxbg==} peerDependencies: antd: '>=4.23.0' @@ -457,14 +440,14 @@ packages: '@ant-design/cssinjs': 1.5.6_biqbaboplfbrettd7655fr4n2y '@babel/runtime': 7.20.7 '@ctrl/tinycolor': 3.5.0 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 swr: 2.0.0_react@18.2.0 dev: false - /@ant-design/pro-skeleton/2.0.7_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-skeleton/2.0.7_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-7RoCUVgWDTGrWeNuFlscsxrrXc5jshYXk6gjkQKospR0hQ1AK/aWlkttAAaqDFZlvPxSyLu8w11TmquRuYcNcg==} peerDependencies: antd: '>=4.23.0' @@ -472,13 +455,13 @@ packages: react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 use-media-antd-query: 1.1.0_react@18.2.0 dev: false - /@ant-design/pro-table/3.2.12_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-table/3.2.12_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-jhfKBtU5DnOlj0eL/Tz3D5j9DZt6KeWCcaJOA/FDr/ZTj5ROUThhK5DqzeLjR9O/DTBCgiwB8Vpiqt0uWPWlXw==} peerDependencies: antd: '>=4.23.0' @@ -487,13 +470,13 @@ packages: react-dom: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-card': 2.1.10_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-field': 2.2.5_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-form': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q - '@ant-design/pro-utils': 2.5.4_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-card': 2.1.10_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-field': 2.2.5_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-form': 2.5.4_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 + '@ant-design/pro-utils': 2.5.4_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 dayjs: 1.11.7 omit.js: 2.0.2 @@ -508,7 +491,7 @@ packages: - '@types/lodash.merge' dev: false - /@ant-design/pro-utils/2.5.4_3eprgtpjc4b52y4s5m2payzg5q: + /@ant-design/pro-utils/2.5.4_gobdu7oqf7subfinaleisgb544: resolution: {integrity: sha512-fwnGRcYQbJwIyTWvioCw443qJ2Jq/TdkR/LFoewJqQK8zeZ7I62pEgLqxK0l0sffZpN1cKAIQfydqvcT3kl+mQ==} peerDependencies: antd: '>=4.23.0' @@ -516,9 +499,9 @@ packages: react-dom: '>=16.9.0' dependencies: '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-provider': 2.4.0_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-provider': 2.4.0_gobdu7oqf7subfinaleisgb544 '@babel/runtime': 7.20.7 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 dayjs: 1.11.7 rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y @@ -2384,6 +2367,11 @@ packages: engines: {node: '>=10'} dev: false + /@ctrl/tinycolor/3.6.0: + resolution: {integrity: sha512-/Z3l6pXthq0JvMYdUFyX9j0MaCltlIn6mfh9jLyQwg5aPKxkyNa0PTHtU1AlFXLNk55ZuAeJRcpvq+tmLfKmaQ==} + engines: {node: '>=10'} + dev: false + /@emotion/hash/0.8.0: resolution: {integrity: sha1-u7/2iXj+/b5ozLUzvIy+HRr7VBM=} dev: false @@ -2739,7 +2727,7 @@ packages: resolution: {integrity: sha1-LcjFcETeA0DrU6e6YC5Zq/gNx5k=} dev: false - /@formily/antd/2.2.16_yjqdmdfrtsnptz6f47tu6vulyu: + /@formily/antd/2.2.16_umkr7xkembx4rnrs36jomvuiga: resolution: {integrity: sha512-kADsOqzPDfeynl+WK0GpXohcrpX9tsgP2YJTnINP+Q9TxNNnQau8O4nI7XhtuGQAvzLq8osw4o12PX9l1ahjxw==} engines: {npm: '>=3.0.0'} peerDependencies: @@ -2766,7 +2754,7 @@ packages: '@formily/shared': 2.2.16 '@types/react': 18.0.26 '@types/react-dom': 18.0.10 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -3417,6 +3405,20 @@ packages: '@babel/runtime': 7.20.7 dev: false + /@rc-component/mutate-observer/1.0.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-okqRJSfNisXdI6CUeOLZC5ukBW/8kir2Ii4PJiKpUt+3+uS7dxwJUMxsUZquxA1rQuL8YcEmKVp/TCnR+yUdZA==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + dependencies: + '@babel/runtime': 7.20.7 + classnames: 2.3.2 + rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + /@rc-component/portal/1.1.0_biqbaboplfbrettd7655fr4n2y: resolution: {integrity: sha512-tbXM9SB1r5FOuZjRCljERFByFiEUcMmCWMXLog/NmgCzlAzreXyf23Vei3ZpSMxSMavzPnhCovfZjZdmxS3d1w==} engines: {node: '>=8.x'} @@ -3431,8 +3433,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /@rc-component/tour/1.1.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-Cy45VnNEDq6DLF5eKonIflObDfofbPq7AJpSf18qLN+j9+wW+sNlRv3JnCMDUsCdhSlnM4+yJ1RMokKp9GCpOQ==} + /@rc-component/tour/1.8.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-rrRGioHTLQlGca27G2+lw7QpRb3uuMYCUIJjj31/B44VCJS0P2tqYhOgtzvWQmaLMlWH3ZlpzotkKX13NT4XEA==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -3440,8 +3442,26 @@ packages: dependencies: '@babel/runtime': 7.20.7 '@rc-component/portal': 1.1.0_biqbaboplfbrettd7655fr4n2y + '@rc-component/trigger': 1.5.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 - rc-trigger: 5.3.4_biqbaboplfbrettd7655fr4n2y + rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + dev: false + + /@rc-component/trigger/1.5.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-uF5H7FjRbSDaCIWe+aASk/vdTJtmhZvAIcH5IbO/jBXdEbLz9OYoY7QfHWfmUwNGaEX640+z8mAawiVBQGOwFw==} + engines: {node: '>=8.x'} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + dependencies: + '@babel/runtime': 7.20.7 + '@rc-component/portal': 1.1.0_biqbaboplfbrettd7655fr4n2y + classnames: 2.3.2 + rc-align: 4.0.15_biqbaboplfbrettd7655fr4n2y + rc-motion: 2.6.3_biqbaboplfbrettd7655fr4n2y + rc-resize-observer: 1.3.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -3698,15 +3718,14 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /@tenx-ui/materials/1.0.18_lcdpohno6xepm2x6gp4hxh65iu: - resolution: {integrity: sha512-/UtwkfnktzFCBpFtLFhffFIDr+gGx0uo090eV3wtb+WlSKVaFKzurPLLg1a9FRWP/Cyug9nbpr9ppgy1DeT9MQ==} + /@tenx-ui/materials/1.0.19_uxg2dbmuxi6z4lw5feefx5zea4: + resolution: {integrity: sha512-2/Y7RHYrNxDPnwphgf6zVlo0F7++mkg9RjdjZcQcxKaErT9TnWLrb8LD1cyNnDEYurEZzqvH/cblAJlrn+gT2A==} peerDependencies: antd: ^5.1.5 dependencies: '@tenx-ui/icon': 2.4.15_4wymetwju2f67kkws2jsebarle '@tenx-ui/utils': 2.3.0_v2m5e27vhdewzwhryxwfaorcca - '@types/react': 18.0.26 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y transitivePeerDependencies: - classnames - lodash @@ -4335,8 +4354,8 @@ packages: hasBin: true dependencies: '@umijs/lint': 4.0.44_6noexx63pelq4np7d7j3j4nzia - '@umijs/plugins': 4.0.44_aegj6e4bshbj2ek6a2qagy3lt4 - antd: 5.1.4_biqbaboplfbrettd7655fr4n2y + '@umijs/plugins': 4.0.44_otdnfuxrotyhgpgctf5id7z7uy + antd: 5.3.0_biqbaboplfbrettd7655fr4n2y eslint: 8.31.0 stylelint: 14.8.2 umi: 4.0.44_4bptg4kislztx7vdvq7mncub5y @@ -4406,13 +4425,13 @@ packages: tsx: 3.12.2 dev: false - /@umijs/plugins/4.0.44_aegj6e4bshbj2ek6a2qagy3lt4: + /@umijs/plugins/4.0.44_otdnfuxrotyhgpgctf5id7z7uy: resolution: {integrity: sha512-jOwvMOycqcJ2DtCDy4RAUBI9iP3S4cmFILVGKKXXl1q/89/5JtCt2p0KD0JH8qQele+2Q7gusP5+mhbbojNEDA==} dependencies: '@ahooksjs/use-request': 2.8.15_react@18.2.0 '@ant-design/antd-theme-variable': 1.0.0 '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/pro-components': 2.3.52_3eprgtpjc4b52y4s5m2payzg5q + '@ant-design/pro-components': 2.3.52_gobdu7oqf7subfinaleisgb544 '@tanstack/react-query': 4.22.0_biqbaboplfbrettd7655fr4n2y '@tanstack/react-query-devtools': 4.22.0_gp275tdwez2a4eujt75dnnp754 '@umijs/bundler-utils': 4.0.44 @@ -4755,53 +4774,55 @@ packages: dayjs: 1.11.7 dev: false - /antd/5.1.4_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-74j1+8jRYDglCSvNgx7DGvBH6gerHvtV6k6DylIVQLuViza5YPYH0MVUQwrw6a65iTfuRUY59Oo3EfqerGk8Uw==} + /antd/5.3.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-+l8K2AQ+yvIOq9hzWtha3nG3ydFfwN6+fUmSGCqyThFrLPI2Y3IUPXdAXP4aQcYAnu1Q0sLwsTgHRvE2AXfZUw==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: - '@ant-design/colors': 6.0.0 - '@ant-design/cssinjs': 1.4.0_biqbaboplfbrettd7655fr4n2y - '@ant-design/icons': 4.8.0_biqbaboplfbrettd7655fr4n2y + '@ant-design/colors': 7.0.0 + '@ant-design/cssinjs': 1.5.6_biqbaboplfbrettd7655fr4n2y + '@ant-design/icons': 5.0.0_biqbaboplfbrettd7655fr4n2y '@ant-design/react-slick': 1.0.0_react@18.2.0 '@babel/runtime': 7.20.7 - '@ctrl/tinycolor': 3.5.0 - '@rc-component/tour': 1.1.0_biqbaboplfbrettd7655fr4n2y + '@ctrl/tinycolor': 3.6.0 + '@rc-component/mutate-observer': 1.0.0_biqbaboplfbrettd7655fr4n2y + '@rc-component/tour': 1.8.0_biqbaboplfbrettd7655fr4n2y + '@rc-component/trigger': 1.5.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 copy-to-clipboard: 3.3.3 dayjs: 1.11.7 qrcode.react: 3.1.0_react@18.2.0 - rc-cascader: 3.8.0_biqbaboplfbrettd7655fr4n2y + rc-cascader: 3.9.0_biqbaboplfbrettd7655fr4n2y rc-checkbox: 2.3.2_biqbaboplfbrettd7655fr4n2y - rc-collapse: 3.4.2_biqbaboplfbrettd7655fr4n2y + rc-collapse: 3.5.2_biqbaboplfbrettd7655fr4n2y rc-dialog: 9.0.2_biqbaboplfbrettd7655fr4n2y rc-drawer: 6.1.2_biqbaboplfbrettd7655fr4n2y rc-dropdown: 4.0.1_biqbaboplfbrettd7655fr4n2y rc-field-form: 1.27.3_biqbaboplfbrettd7655fr4n2y - rc-image: 5.13.0_biqbaboplfbrettd7655fr4n2y - rc-input: 0.1.4_biqbaboplfbrettd7655fr4n2y + rc-image: 5.15.2_biqbaboplfbrettd7655fr4n2y + rc-input: 0.2.2_biqbaboplfbrettd7655fr4n2y rc-input-number: 7.4.0_biqbaboplfbrettd7655fr4n2y - rc-mentions: 1.13.1_biqbaboplfbrettd7655fr4n2y - rc-menu: 9.8.1_biqbaboplfbrettd7655fr4n2y + rc-mentions: 2.0.0_biqbaboplfbrettd7655fr4n2y + rc-menu: 9.8.2_biqbaboplfbrettd7655fr4n2y rc-motion: 2.6.3_biqbaboplfbrettd7655fr4n2y rc-notification: 5.0.2_biqbaboplfbrettd7655fr4n2y rc-pagination: 3.2.0_biqbaboplfbrettd7655fr4n2y - rc-picker: 3.1.4_mlnkrlbros4rghcauwy625gk7y + rc-picker: 3.2.4_mlnkrlbros4rghcauwy625gk7y rc-progress: 3.4.1_biqbaboplfbrettd7655fr4n2y rc-rate: 2.9.2_biqbaboplfbrettd7655fr4n2y rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y - rc-segmented: 2.1.0_biqbaboplfbrettd7655fr4n2y - rc-select: 14.2.0_biqbaboplfbrettd7655fr4n2y - rc-slider: 10.0.1_biqbaboplfbrettd7655fr4n2y + rc-segmented: 2.1.2_biqbaboplfbrettd7655fr4n2y + rc-select: 14.3.0_biqbaboplfbrettd7655fr4n2y + rc-slider: 10.1.1_biqbaboplfbrettd7655fr4n2y rc-steps: 6.0.0_biqbaboplfbrettd7655fr4n2y rc-switch: 4.0.0_biqbaboplfbrettd7655fr4n2y - rc-table: 7.30.3_biqbaboplfbrettd7655fr4n2y + rc-table: 7.31.0_biqbaboplfbrettd7655fr4n2y rc-tabs: 12.5.6_biqbaboplfbrettd7655fr4n2y - rc-textarea: 0.4.7_biqbaboplfbrettd7655fr4n2y - rc-tooltip: 5.2.2_biqbaboplfbrettd7655fr4n2y + rc-textarea: 1.0.1_biqbaboplfbrettd7655fr4n2y + rc-tooltip: 6.0.1_biqbaboplfbrettd7655fr4n2y rc-tree: 5.7.2_biqbaboplfbrettd7655fr4n2y - rc-tree-select: 5.6.0_biqbaboplfbrettd7655fr4n2y + rc-tree-select: 5.7.0_biqbaboplfbrettd7655fr4n2y rc-trigger: 5.3.4_biqbaboplfbrettd7655fr4n2y rc-upload: 4.3.4_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y @@ -11122,8 +11143,8 @@ packages: resize-observer-polyfill: 1.5.1 dev: false - /rc-cascader/3.8.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-zCz/NzsNRQ1TIfiR3rQNxjeRvgRHEkNdo0FjHQZ6Ay6n4tdCmMrM7+81ThNaf21JLQ1gS2AUG2t5uikGV78obA==} + /rc-cascader/3.9.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-XppS7Vd11l4oqgkIQX2RHAbsR9j+UR7IpjzWhK5wUmweY4w5OsF5RdFlxAb8oC9JsIbK4lBeGLmDWYxfi9S37g==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -11131,7 +11152,7 @@ packages: '@babel/runtime': 7.20.7 array-tree-filter: 2.1.0 classnames: 2.3.2 - rc-select: 14.2.0_biqbaboplfbrettd7655fr4n2y + rc-select: 14.3.0_biqbaboplfbrettd7655fr4n2y rc-tree: 5.7.2_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 @@ -11150,8 +11171,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-collapse/3.4.2_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-jpTwLgJzkhAgp2Wpi3xmbTbbYExg6fkptL67Uu5LCRVEj6wqmy0DHTjjeynsjOLsppHGHu41t1ELntZ0lEvS/Q==} + /rc-collapse/3.5.2_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-/TNiT3DW1t3sUCiVD/DPUYooJZ3BLA93/2rZsB3eM2bGJCCla2X9D2E4tgm7LGMQGy5Atb2lMUn2FQuvQNvavQ==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -11162,7 +11183,6 @@ packages: rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - shallowequal: 1.1.0 dev: false /rc-dialog/9.0.2_biqbaboplfbrettd7655fr4n2y: @@ -11223,8 +11243,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-image/5.13.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-iZTOmw5eWo2+gcrJMMcnd7SsxVHl3w5xlyCgsULUdJhJbnuI8i/AL0tVOsE7aLn9VfOh1qgDT3mC2G75/c7mqg==} + /rc-image/5.15.2_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-QaeWP20v51eGyrkl24PyusTmbMk42A3vGPl7hEa15jcQjECOX36tLtvLk5sjl3vaLQpMskB8BbwiqPsN7I7aow==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -11253,8 +11273,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-input/0.1.4_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-FqDdNz+fV2dKNgfXzcSLKvC+jEs1709t7nD+WdfjrdSaOcefpgc7BUJYadc3usaING+b7ediMTfKxuJBsEFbXA==} + /rc-input/0.2.2_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-xgkVcFgtRO0Hl9hmvslZhObNyxbSpTmy3nR1Tk4XrjjZ9lFJ7GcJBy6ss30Pdb0oX36cHzLN8I7VCjBGeRNB9A==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' @@ -11266,24 +11286,25 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-mentions/1.13.1_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-FCkaWw6JQygtOz0+Vxz/M/NWqrWHB9LwqlY2RtcuFqWJNFK9njijOOzTSsBGANliGufVUzx/xuPHmZPBV0+Hgw==} + /rc-mentions/2.0.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-58NSeM6R5MrgYAhR2TH27JgAN7ivp3iBTmty3q6gvrrGHelPMdGxpJ5aH7AIlodCrPWLAm1lT4XoiuI4s9snXA==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.20.7 classnames: 2.3.2 - rc-menu: 9.8.1_biqbaboplfbrettd7655fr4n2y - rc-textarea: 0.4.7_biqbaboplfbrettd7655fr4n2y + rc-input: 0.2.2_biqbaboplfbrettd7655fr4n2y + rc-menu: 9.8.2_biqbaboplfbrettd7655fr4n2y + rc-textarea: 1.0.1_biqbaboplfbrettd7655fr4n2y rc-trigger: 5.3.4_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 dev: false - /rc-menu/9.8.1_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-179weouypfjWJSRvvoo/vPy+StojsMzK2XC5jRNhL1ryt/N/8wAFESte8K6jZJkNp9DHDLFTe+dCGmikKpiFuA==} + /rc-menu/9.8.2_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-EahOJVjLuEnJsThoPN+mGnVm431RzVzDLZWHRS/YnXTQULa7OsgdJa/Y7qXxc3Z5sz8mgT6xYtgpmBXLxrZFaQ==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' @@ -11296,7 +11317,6 @@ packages: rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - shallowequal: 1.1.0 dev: false /rc-motion/2.6.3_biqbaboplfbrettd7655fr4n2y: @@ -11335,7 +11355,7 @@ packages: dependencies: '@babel/runtime': 7.20.7 classnames: 2.3.2 - rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y + rc-resize-observer: 1.3.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -11353,8 +11373,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-picker/3.1.4_mlnkrlbros4rghcauwy625gk7y: - resolution: {integrity: sha512-4qANXNc3C02YENNQvun329zf9VLvSQ2W8RkKQRu8k1P+EtSGqe3klcAKCfz/1TuCiDvgRjJlzRmyZAkwvsbI8w==} + /rc-picker/3.2.4_mlnkrlbros4rghcauwy625gk7y: + resolution: {integrity: sha512-AydqPVS12u+46P6DwF0iMi4p5UAAnb64drcA/zUgNXkkB6rQhUwtYP7E75YM0WylT54F3sLhe+WttZynxtsU+Q==} engines: {node: '>=8.x'} peerDependencies: date-fns: '>= 2.x' @@ -11377,7 +11397,6 @@ packages: rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - shallowequal: 1.1.0 dev: false /rc-progress/3.4.1_biqbaboplfbrettd7655fr4n2y: @@ -11421,8 +11440,22 @@ packages: resize-observer-polyfill: 1.5.1 dev: false - /rc-segmented/2.1.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-hUlonro+pYoZcwrH6Vm56B2ftLfQh046hrwif/VwLIw1j3zGt52p5mREBwmeVzXnSwgnagpOpfafspzs1asjGw==} + /rc-resize-observer/1.3.1_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-iFUdt3NNhflbY3mwySv5CA1TC06zdJ+pfo0oc27xpf4PIOvfZwZGtD9Kz41wGYqC4SLio93RVAirSSpYlV/uYg==} + peerDependencies: + react: '>=16.9.0' + react-dom: '>=16.9.0' + dependencies: + '@babel/runtime': 7.20.7 + classnames: 2.3.2 + rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y + react: 18.2.0 + react-dom: 18.2.0_react@18.2.0 + resize-observer-polyfill: 1.5.1 + dev: false + + /rc-segmented/2.1.2_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-qGo1bCr83ESXpXVOCXjFe1QJlCAQXyi9KCiy8eX3rIMYlTeJr/ftySIaTnYsitL18SvWf5ZEHsfqIWoX0EMfFQ==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' @@ -11435,26 +11468,26 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-select/14.2.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-tvxHmbAA0EIhBkB7dyaRhcBUIWHocQbUFY/fBlezj2jg5p65a5VQ/UhBg2I9TA1wjpsr5CCx0ruZPkYcUMjDoQ==} + /rc-select/14.3.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-y+TeAKvAvfAS7WXn4nFU8xtWJ1kLC7SVBvX3UQYtfU+N3BYNpNzHw/3F1Gu34rN2YWTG4hwspwFvDuRtGXytlQ==} engines: {node: '>=8.x'} peerDependencies: react: '*' react-dom: '*' dependencies: '@babel/runtime': 7.20.7 + '@rc-component/trigger': 1.5.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 rc-motion: 2.6.3_biqbaboplfbrettd7655fr4n2y rc-overflow: 1.2.8_biqbaboplfbrettd7655fr4n2y - rc-trigger: 5.3.4_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y rc-virtual-list: 3.4.13_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 dev: false - /rc-slider/10.0.1_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-igTKF3zBet7oS/3yNiIlmU8KnZ45npmrmHlUUio8PNbIhzMcsh+oE/r2UD42Y6YD2D/s+kzCQkzQrPD6RY435Q==} + /rc-slider/10.1.1_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-gn8oXazZISEhnmRinI89Z/JD/joAaM35jp+gDtIVSTD/JJMCCBqThqLk1SVJmvtfeiEF/kKaFY0+qt4SDHFUDw==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -11465,7 +11498,6 @@ packages: rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - shallowequal: 1.1.0 dev: false /rc-steps/6.0.0_biqbaboplfbrettd7655fr4n2y: @@ -11495,8 +11527,8 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-table/7.30.3_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-PHe+lZKwPo3qui5j79m54vKu8b4hebk04x+4Hy65NvwUU3+NNFGS5FZpylXQMkueMnE8hgh22ZuScQDkCtzQFQ==} + /rc-table/7.31.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-TiWonax1f0B/WBh4yyA0q9GyGdKluvC1z39cPoTuRDf+zsBFDyla4T8xCK8Hzx4EugPE9f9a9fCa/i7N9+SSyA==} engines: {node: '>=8.x'} peerDependencies: react: '>=16.9.0' @@ -11505,7 +11537,7 @@ packages: '@babel/runtime': 7.20.7 '@rc-component/context': 1.3.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 - rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y + rc-resize-observer: 1.3.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 @@ -11521,7 +11553,7 @@ packages: '@babel/runtime': 7.20.7 classnames: 2.3.2 rc-dropdown: 4.0.1_biqbaboplfbrettd7655fr4n2y - rc-menu: 9.8.1_biqbaboplfbrettd7655fr4n2y + rc-menu: 9.8.2_biqbaboplfbrettd7655fr4n2y rc-motion: 2.6.3_biqbaboplfbrettd7655fr4n2y rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y @@ -11529,43 +11561,43 @@ packages: react-dom: 18.2.0_react@18.2.0 dev: false - /rc-textarea/0.4.7_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-IQPd1CDI3mnMlkFyzt2O4gQ2lxUsnBAeJEoZGJnkkXgORNqyM9qovdrCj9NzcRfpHgLdzaEbU3AmobNFGUznwQ==} + /rc-textarea/1.0.1_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-dtIm96apjJpCUcCeTtbnLGJaVlqbOqVgN0P9z+bqMSi7rcV5QVeUtBnG+jQTGk/uD183Z7jbhc8Dx7G3luDCwg==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.20.7 classnames: 2.3.2 + rc-input: 0.2.2_biqbaboplfbrettd7655fr4n2y rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - shallowequal: 1.1.0 dev: false - /rc-tooltip/5.2.2_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-jtQzU/18S6EI3lhSGoDYhPqNpWajMtS5VV/ld1LwyfrDByQpYmw/LW6U7oFXXLukjfDHQ7Ju705A82PRNFWYhg==} + /rc-tooltip/6.0.1_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-MdvPlsD1fDSxKp9+HjXrc/CxLmA/s11QYIh1R7aExxfodKP7CZA++DG1AjrW80F8IUdHYcR43HAm0Y2BYPelHA==} peerDependencies: react: '>=16.9.0' react-dom: '>=16.9.0' dependencies: '@babel/runtime': 7.20.7 + '@rc-component/trigger': 1.5.0_biqbaboplfbrettd7655fr4n2y classnames: 2.3.2 - rc-trigger: 5.3.4_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 dev: false - /rc-tree-select/5.6.0_biqbaboplfbrettd7655fr4n2y: - resolution: {integrity: sha512-XG6pu0a9l6+mzhQqUYfR2VIONbe/3LjVc3wKt28k6uBMZsI1j+SSxRyt/7jWRq8Kok8jHJBQASlDg6ehr9Sp0w==} + /rc-tree-select/5.7.0_biqbaboplfbrettd7655fr4n2y: + resolution: {integrity: sha512-YGMpBFK9qBkgng2ZhOw7yFiL9VnjHij+uNvP+tiU/QZGdf2XcO8LHXQNUZRGAEzx4PT5lUs6d7kIfkQ9a74bqg==} peerDependencies: react: '*' react-dom: '*' dependencies: '@babel/runtime': 7.20.7 classnames: 2.3.2 - rc-select: 14.2.0_biqbaboplfbrettd7655fr4n2y + rc-select: 14.3.0_biqbaboplfbrettd7655fr4n2y rc-tree: 5.7.2_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 @@ -11648,7 +11680,7 @@ packages: dependencies: '@babel/runtime': 7.20.7 classnames: 2.3.2 - rc-resize-observer: 1.2.1_biqbaboplfbrettd7655fr4n2y + rc-resize-observer: 1.3.1_biqbaboplfbrettd7655fr4n2y rc-util: 5.27.1_biqbaboplfbrettd7655fr4n2y react: 18.2.0 react-dom: 18.2.0_react@18.2.0 diff --git a/src/global.less b/src/global.less index 2b8b668..5c2a476 100644 --- a/src/global.less +++ b/src/global.less @@ -9,41 +9,42 @@ * @author zhangpc * @date 2020-01-15 */ -@import '~@tenx-ui/icon/assets/index.css'; -@import '~@tenx-ui/materials/dist/TenxUiMaterials.css'; - -::-webkit-scrollbar-track { - box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15); - background-color: #f5f5f5; -} -::-webkit-scrollbar { - width: 6px; - height: 6px; - background-color: #f5f5f5; -} -::-webkit-scrollbar-thumb { - background-color: rgba(0, 0, 0, 0.25); - border-radius: 4px; - &:hover { - background-color: rgba(0, 0, 0, 0.45); - } - &:active { - background-color: rgba(0, 0, 0, 0.45); - } -} - -body, -html { - margin: 0; - padding: 0; - width: 100%; - height: 100%; - #root, - .ant-pro, - .ant-pro-layout { - height: 100%; - .ant-pro-sider-collapsed-button { - top: 50%; - } - } -} + @import '~@tenx-ui/icon/assets/index.css'; + @import '~@tenx-ui/materials/dist/TenxUiMaterials.css'; + + ::-webkit-scrollbar-track { + box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15); + background-color: #f5f5f5; + } + ::-webkit-scrollbar { + width: 6px; + height: 6px; + background-color: #f5f5f5; + } + ::-webkit-scrollbar-thumb { + background-color: rgba(0, 0, 0, 0.25); + border-radius: 4px; + &:hover { + background-color: rgba(0, 0, 0, 0.45); + } + &:active { + background-color: rgba(0, 0, 0, 0.45); + } + } + + body, + html { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + #root, + .ant-pro, + .ant-pro-layout { + height: 100%; + .ant-pro-sider-collapsed-button { + top: 50%; + } + } + } + \ No newline at end of file diff --git a/src/i18n.js b/src/i18n.js index 51b3608..3948aef 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -32,6 +32,7 @@ const i18nConfig = { 'i18n-22h13n1kd8vi': 'Total proposal', 'i18n-27jnv87egc2': 'New network success', 'i18n-289qyoqa3vs': 'User', + 'i18n-2b4dhrz51wu': 'more', 'i18n-2ielocre': 'The contract version is for identification and maintenance. The recommended format is v1.0', 'i18n-2rczbtzx': 'New contract', @@ -44,6 +45,7 @@ const i18nConfig = { 'Ensure that the network to which the organization joins has been disabled and exited from the alliance. After being deleted, the network cannot be restored.', 'i18n-386epq7m': 'Local network', 'i18n-3cphsjan5d2': 'Choose your own organization', + 'i18n-3g6iq8ncfsh': 'Version details', 'i18n-3hlx98g9': 'Node management', 'i18n-3ja6wz9xvoh': 'Tip: After confirmation, all administrator permissions are transferred to the new user', @@ -77,8 +79,10 @@ const i18nConfig = { 'i18n-5wdi9bc5': 'Contract management', 'i18n-5xl7aihzcuy': 'total', 'i18n-60cjqhh2': 'Node name', + 'i18n-636u5idg': 'The endorsement policy was added successfully', 'i18n-65qwbj9telu': 'The proposal to stop the network succeeded', 'i18n-66pkydvtrcv': 'I manage', + 'i18n-67illnj3hic': '6 month', 'i18n-6a9y7k26xhq': 'Please select a user type', 'i18n-6bj0f7fay8': 'Proposal type', 'i18n-6ndnzzhki9k': 'Enterprise edition', @@ -138,6 +142,7 @@ const i18nConfig = { 'i18n-asxi59j4': 'Deleting a member will be deleted from all networks and channels in the alliance. Exercise caution!', 'i18n-ax4swl3ryv7': 'Cluster size', + 'i18n-axcofu86f15': 'Management federation', 'i18n-b3d2mz7i': 'Please enter the contract name', 'i18n-b3i37ksj9vv': 'By default, the node is configured with 4-core CPU, 8GB memory, and 200 GB disk', @@ -154,7 +159,10 @@ const i18nConfig = { 'i18n-bxsxgogh': 'Join node', 'i18n-c0d66z03kpk': 'join time', 'i18n-c0g042oc': 'Confirm to initiate the deletion proposal', + 'i18n-c3oheknv0lu': + 'The network will disband after the proposal is approved, whether to continue', 'i18n-c4sdg9d9': '4 core CPU 8 GB memory', + 'i18n-cbe4xaexa7q': 'more', 'i18n-cbhoi5g6': 'Node storage', 'i18n-ch5wgxkhdhs': 'The user name contains 3 to 20 letters, digits, and underscores', @@ -197,6 +205,7 @@ const i18nConfig = { 'i18n-f83f1t03e': 'Please select a proposal type', 'i18n-fcr3rfde': 'Confirm the motion to dissolve the alliance', 'i18n-fg85es7zp8': 'The total number of nodes I have', + 'i18n-fgzkvayfbdl': 'View certificate service', 'i18n-fifkprltibf': 'Normal', 'i18n-fl4pb7jd': 'Channel information', 'i18n-flja3ls6': 'Cloud host and configuration', @@ -231,6 +240,7 @@ const i18nConfig = { 'i18n-hzr79mlu': 'An important way for the chain to interact', 'i18n-i4bwnz1b': 'The blockchain on the list', 'i18n-i69exda650e': 'create federation', + 'i18n-i7slyi98o4e': 'DissolveFederationProposal', 'i18n-i94pxfwl0cb': 'Failed', 'i18n-iahrowai': 'Initiating organization', 'i18n-ias68eipm18': 'delete', @@ -250,15 +260,18 @@ const i18nConfig = { 'i18n-jdv1hwgs': 'You can view it in the organization list and invite members to join', 'i18n-jhpf4qg9': 'Deployment node', + 'i18n-jmam3xzi5le': '2 year', 'i18n-k3l0vmchhq': 'Channel description', 'i18n-k5inn5jmnt9': 'operation', 'i18n-kcfnvyebgwr': 'Voting time', 'i18n-kh6e0jr0i7b': 'Number of nodes', 'i18n-kllir0y1': 'Cancellation of contract', + 'i18n-knuex06q': 'Adding a node succeeded', 'i18n-kqc5q3s99wo': 'Node database', 'i18n-krjfpdz3pfp': 'pending', 'i18n-ks9tefvs1g': 'Details of proposal', 'i18n-kwbu3vyst6': 'create network', + 'i18n-l0it3k61ec': 'CreateFederationProposal', 'i18n-l0t1y311yy': 'The cause description consists of 0 to 200 characters', 'i18n-l8fybssesij': 'Succeeded in creating a channel', 'i18n-l8vvga48': 'Viewing progress', @@ -266,6 +279,7 @@ const i18nConfig = { 'i18n-l9xc0l1g': 'Select the file to be uploaded', 'i18n-ldhfyodm92n': 'Have voted', 'i18n-lfchnp1t': 'Dissolve', + 'i18n-lie8dycfnu': '3 month', 'i18n-lkzmdgmv': "If you don't already have an organization, you can", 'i18n-lu4j2exhudd': 'Organization description', 'i18n-lu7m1mohwn': 'Proposal list', @@ -280,6 +294,7 @@ const i18nConfig = { 'i18n-mwsw0gqsjf': 'agree', 'i18n-n58z07yheg': 'New federation failure', 'i18n-n5ny2k3khy': 'New user', + 'i18n-n7pr8w2kqpn': 'disagree', 'i18n-nbke0i5upzc': 'The recommended format is xxxOrg', 'i18n-neccml35hvq': 'It consists of uppercase and lowercase letters, numbers, and hyphens. The beginning and end can only be a letter or number', @@ -327,17 +342,22 @@ const i18nConfig = { 'i18n-rs16rywzo': 'Number of added nodes', 'i18n-rufvxaz1mnc': 'DeleteMemberProposal', 'i18n-rw0h41prk6': 'Please enter a discription', + 'i18n-rzd7hbhq': 'day', 'i18n-s4aho8fc': 'The invitation to join channel has been sent', 'i18n-sc2b0neb': 'After the contract installation deployment is submitted, the organization needs to vote according to the voting policy', 'i18n-scjygs4e08n': 'time', 'i18n-si4qi37l': 'Number of members', + 'i18n-sivjo10j': 'Failed to add an endorsement policy. Procedure', + 'i18n-sj5yius84sn': 'label', 'i18n-sluhnzoa': 'Initiate the transaction, can be in the Liu', 'i18n-snaon3b2fni': 'New channel', 'i18n-sndszzqhg7j': 'decide', 'i18n-sp06ivzs': 'organization', 'i18n-srf1wvh67pg': 'management', 'i18n-sryyou2g7dd': 'Proposal to stop the network failed', + 'i18n-sunw6qwy': 'Node addition failure', + 'i18n-tb85t2eb0c': 'Organization member configuration', 'i18n-tcgbsroi': 'Policy content', 'i18n-th9ag1qgsu': 'Authentication information', 'i18n-tixlz8m0le9': 'confirm', @@ -346,6 +366,7 @@ const i18nConfig = { 'i18n-tmdw6s6q': 'Network organization', 'i18n-tp1bif8s': 'Contract document', 'i18n-tqaysbds': 'Installation and deployment contract', + 'i18n-trhw8lpkemh': '1 month', 'i18n-ttjyzz0s45l': 'Please enter the user name', 'i18n-tu47rri2uk': 'unvoted', 'i18n-twykcar3l6l': 'Consensus algorithm', @@ -353,17 +374,22 @@ const i18nConfig = { 'After the successful purchase of block chain network, the affiliate cannot be replaced. You can', 'i18n-tzncutaq': 'Number of organizational nodes', 'i18n-ugehpppw': 'Purchase time', + 'i18n-uq1hm9mlcqd': '1 year', + 'i18n-urdvb24dc3': 'node', 'i18n-uyu5gd4c': 'Deployment channel', 'i18n-v10ihnkwhn': 'transfer', 'i18n-v1exwbga': 'hide', 'i18n-v1ic8b3llyo': 'Cut-off time', + 'i18n-v4wf8ejznd': 'Total organizational users', 'i18n-v6gmjbqnol': 'Set initiator', 'i18n-v7xu122b9o': 'item', 'i18n-vg3668rl': 'Please select organization', 'i18n-vo8kd18n6pd': 'Consensus cluster node', 'i18n-vx0dwibl': 'Every channel is a logos', + 'i18n-vxubih1pqa': 'Network ID', 'i18n-w2pedy31': 'Network basic information', 'i18n-w3qy6omh': 'Policy description', + 'i18n-w4mcacnr3z': 'Number of networks', 'i18n-w8mwq8gtr08': 'all', 'i18n-w8nbxtmd': 'upgrade', 'i18n-watjije0jk': 'Update time', @@ -382,17 +408,21 @@ const i18nConfig = { 'i18n-xf6wcwuc': 'If there are other user organizations in a channel, other users must vote to join the channel', 'i18n-xgyxfdl8q': 'Consensus component', + 'i18n-xinrdc2qk1f': 'Network member', 'i18n-xlmv8ef2bsq': ' Know the details>>', 'i18n-xnyhdqu3': 'Number of applied contracts', 'i18n-xr251ak8b2': 'The association description consists of 0 to 200 characters', 'i18n-xtno2l9qqog': 'Error', + 'i18n-y0o0zplhhom': 'Network information', 'i18n-y29rf6lwd8q': 'Organization creation failure', 'i18n-ycr2zketd3o': 'Organization name', 'i18n-yuz82i6v': 'All network channel members will receive the proposal, after passing the network channel service is unavailable!', 'i18n-yy3f9rxigm': 'Deleting a user succeeded', 'i18n-yyexdt18ora': 'creator', + 'i18n-z04apojz8aj': + 'After the union is dissolved, you still need to manually delete internal resources', 'i18n-z0me61yhdpc': 'Update vote failed', 'i18n-z29zhp7a': 'New line "or Condition"', 'i18n-zj5zwqud': 'Service docking', @@ -433,6 +463,7 @@ const i18nConfig = { 'i18n-22h13n1kd8vi': '全部提议', 'i18n-27jnv87egc2': '新建网络成功', 'i18n-289qyoqa3vs': '用户', + 'i18n-2b4dhrz51wu': '更多', 'i18n-2ielocre': '合约版本供识别与维护使用,建议格式: v1.0', 'i18n-2rczbtzx': '新建合约', 'i18n-2rnclk3j': '部署中,请等待投票', @@ -444,6 +475,7 @@ const i18nConfig = { '请确保组织加入的网络已经停用,并退出联盟,删除之后不可恢复,请慎重!', 'i18n-386epq7m': '所在网络', 'i18n-3cphsjan5d2': '选择自己拥有的组织', + 'i18n-3g6iq8ncfsh': '版本详细介绍', 'i18n-3hlx98g9': '节点管理', 'i18n-3ja6wz9xvoh': '提示:确认后,管理员权限将全部转移给新用户', 'i18n-3lwzud889in': '您正在从组织', @@ -474,8 +506,10 @@ const i18nConfig = { 'i18n-5wdi9bc5': '合约管理', 'i18n-5xl7aihzcuy': '共计', 'i18n-60cjqhh2': '节点名', + 'i18n-636u5idg': '新增背书策略成功', 'i18n-65qwbj9telu': '停止网络提议成功', 'i18n-66pkydvtrcv': '我管理的', + 'i18n-67illnj3hic': '6个月', 'i18n-6a9y7k26xhq': '请选择用户类型', 'i18n-6bj0f7fay8': '提议类型', 'i18n-6ndnzzhki9k': '企业版', @@ -534,6 +568,7 @@ const i18nConfig = { 'i18n-armm7kw0zpr': '转移管理员权限', 'i18n-asxi59j4': '删除成员会同步从联盟下所有网络和通道中删除,请慎重!', 'i18n-ax4swl3ryv7': '集群大小', + 'i18n-axcofu86f15': '解散联盟', 'i18n-b3d2mz7i': '请输入合约名称', 'i18n-b3i37ksj9vv': '节点默认配置为 4核CPU 8G内存 200G磁盘', 'i18n-b5zuy9i6xlf': '请输入联盟名称', @@ -548,7 +583,9 @@ const i18nConfig = { 'i18n-bxsxgogh': '加入节点', 'i18n-c0d66z03kpk': '加入时间', 'i18n-c0g042oc': '确认发起删除成员提议', + 'i18n-c3oheknv0lu': '网络将在提议通过后解散,是否继续', 'i18n-c4sdg9d9': '4 核 CPU 8G 内存', + 'i18n-cbe4xaexa7q': '更多', 'i18n-cbhoi5g6': '节点存储', 'i18n-ch5wgxkhdhs': '用户名称由 3 ~ 20 个大小写字母, 数字, 下划线组成', 'i18n-ci3cdwcy': '加入通道', @@ -588,6 +625,7 @@ const i18nConfig = { 'i18n-f83f1t03e': '请选择提议类型', 'i18n-fcr3rfde': '确认发起解散联盟提议', 'i18n-fg85es7zp8': '我的节点总数', + 'i18n-fgzkvayfbdl': '查看证书服务', 'i18n-fifkprltibf': '正常', 'i18n-fl4pb7jd': '通道信息', 'i18n-flja3ls6': '云主机及配置', @@ -620,6 +658,7 @@ const i18nConfig = { 'i18n-hzr79mlu': '链进行交互的重要途径', 'i18n-i4bwnz1b': '辑上的区块链', 'i18n-i69exda650e': '新建联盟', + 'i18n-i7slyi98o4e': '解散联盟', 'i18n-i94pxfwl0cb': '提议失败', 'i18n-iahrowai': '发起组织', 'i18n-ias68eipm18': '删除', @@ -637,15 +676,18 @@ const i18nConfig = { 'i18n-j8xxbkn3j7a': '新建网络失败', 'i18n-jdv1hwgs': '您可以在组织列表查看,并可以邀请成员加入', 'i18n-jhpf4qg9': '部署节点', + 'i18n-jmam3xzi5le': '2年', 'i18n-k3l0vmchhq': '通道描述', 'i18n-k5inn5jmnt9': '操作', 'i18n-kcfnvyebgwr': '投票时间', 'i18n-kh6e0jr0i7b': '节点数量', 'i18n-kllir0y1': '合约删除', + 'i18n-knuex06q': '添加节点成功', 'i18n-kqc5q3s99wo': '节点数据库', 'i18n-krjfpdz3pfp': '待处理的', 'i18n-ks9tefvs1g': '提议详情', 'i18n-kwbu3vyst6': '新建网络', + 'i18n-l0it3k61ec': '创建联盟', 'i18n-l0t1y311yy': '原因描述由 0 ~ 200 字符组成', 'i18n-l8fybssesij': '新建通道成功', 'i18n-l8vvga48': '查看进度', @@ -653,6 +695,7 @@ const i18nConfig = { 'i18n-l9xc0l1g': '选择上传的文件', 'i18n-ldhfyodm92n': '已投票', 'i18n-lfchnp1t': '解散', + 'i18n-lie8dycfnu': '3个月', 'i18n-lkzmdgmv': '如果您还没有组织,您可以', 'i18n-lu4j2exhudd': '组织描述', 'i18n-lu7m1mohwn': '提议列表', @@ -667,6 +710,7 @@ const i18nConfig = { 'i18n-mwsw0gqsjf': '同意', 'i18n-n58z07yheg': '新建联盟失败', 'i18n-n5ny2k3khy': '新增用户', + 'i18n-n7pr8w2kqpn': '不同意', 'i18n-nbke0i5upzc': '组织名称,建议格式 xxxOrg', 'i18n-neccml35hvq': '大小写字母, 数字, 中划线组成,开头和结尾只能是字母或数字', @@ -713,16 +757,21 @@ const i18nConfig = { 'i18n-rs16rywzo': '加入节点个数', 'i18n-rufvxaz1mnc': '联盟驱逐组织', 'i18n-rw0h41prk6': '请输入描述', + 'i18n-rzd7hbhq': '天', 'i18n-s4aho8fc': '邀请加入通道已发送', 'i18n-sc2b0neb': '合约安装部署提交后,组织需要根据投票策略进行投票', 'i18n-scjygs4e08n': '过期时间', 'i18n-si4qi37l': '成员数', + 'i18n-sivjo10j': '新增背书策略失败', + 'i18n-sj5yius84sn': '标签', 'i18n-sluhnzoa': '发起交易后,即可在浏', 'i18n-snaon3b2fni': '新建通道', 'i18n-sndszzqhg7j': '决定', 'i18n-sp06ivzs': '组织', 'i18n-srf1wvh67pg': '管理', 'i18n-sryyou2g7dd': '停止网络提议失败', + 'i18n-sunw6qwy': '添加节点失败', + 'i18n-tb85t2eb0c': '组织成员配置', 'i18n-tcgbsroi': '策略内容', 'i18n-th9ag1qgsu': '认证信息', 'i18n-tixlz8m0le9': '确定', @@ -731,23 +780,29 @@ const i18nConfig = { 'i18n-tmdw6s6q': '网络组织', 'i18n-tp1bif8s': '合约文件', 'i18n-tqaysbds': '安装部署合约', + 'i18n-trhw8lpkemh': '1个月', 'i18n-ttjyzz0s45l': '请输入用户名称', 'i18n-tu47rri2uk': '未投票', 'i18n-twykcar3l6l': '共识算法', 'i18n-txk6oui9mfs': '区块链网络购买成功后,所属联盟不能更换。您可以', 'i18n-tzncutaq': '组织节点数', 'i18n-ugehpppw': '购买时长', + 'i18n-uq1hm9mlcqd': '1年', + 'i18n-urdvb24dc3': '个节点', 'i18n-uyu5gd4c': '部署通道', 'i18n-v10ihnkwhn': '转移', 'i18n-v1exwbga': '隐藏', 'i18n-v1ic8b3llyo': '截止时间', + 'i18n-v4wf8ejznd': '组织用户总数', 'i18n-v6gmjbqnol': '设置发起者', 'i18n-v7xu122b9o': '条', 'i18n-vg3668rl': '请选择组织', 'i18n-vo8kd18n6pd': '共识集群节点', 'i18n-vx0dwibl': '每一个通道即为一条逻', + 'i18n-vxubih1pqa': '网络 ID', 'i18n-w2pedy31': '网络基础信息', 'i18n-w3qy6omh': '策略描述', + 'i18n-w4mcacnr3z': '网络个数', 'i18n-w8mwq8gtr08': '全部', 'i18n-w8nbxtmd': '升级', 'i18n-watjije0jk': '更新时间', @@ -766,15 +821,18 @@ const i18nConfig = { 'i18n-xf6wcwuc': '当通道中有其他用户组织时,需要其他用户投票同意,才能加入成功', 'i18n-xgyxfdl8q': '共识组件', + 'i18n-xinrdc2qk1f': '网络成员', 'i18n-xlmv8ef2bsq': ' 了解详情>>', 'i18n-xnyhdqu3': '应用合约数', 'i18n-xr251ak8b2': '联盟描述由 0 ~ 200 字符组成', 'i18n-xtno2l9qqog': '异常', + 'i18n-y0o0zplhhom': '网络信息', 'i18n-y29rf6lwd8q': '创建组织失败', 'i18n-ycr2zketd3o': '组织名称', 'i18n-yuz82i6v': '所有网络通道成员将会收到提议,通过后网络通道服务不可用!', 'i18n-yy3f9rxigm': '删除用户成功', 'i18n-yyexdt18ora': '创建人', + 'i18n-z04apojz8aj': '解散联盟后,内部资源仍需要手动删除', 'i18n-z0me61yhdpc': '更新投票失败', 'i18n-z29zhp7a': '新增一行“or 条件”', 'i18n-zj5zwqud': '业务对接', diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..57a2e89 --- /dev/null +++ b/src/index.js @@ -0,0 +1 @@ +import "./app" \ No newline at end of file diff --git a/src/pages/FederationDetail/index.jsx b/src/pages/FederationDetail/index.jsx index 82b6024..6c24ecf 100644 --- a/src/pages/FederationDetail/index.jsx +++ b/src/pages/FederationDetail/index.jsx @@ -1204,7 +1204,7 @@ class FederationDetail$$Page extends React.Component { render: (text, record, index) => ((__$$context) => ( record.status)} types={[ { children: this.i18n('i18n-zrowlr7zwx') /* 正常 */, diff --git a/src/pages/Network/index.jsx b/src/pages/Network/index.jsx index 6168772..2b16eec 100644 --- a/src/pages/Network/index.jsx +++ b/src/pages/Network/index.jsx @@ -49,15 +49,15 @@ class Network$$Page extends React.Component { __$$i18n._inject2(this); this.state = { + current: 1, + filter: 'ALL', isOpenModal: false, modalType: 'create', - filter: 'ALL', - searchValue: undefined, - searchKey: 'name', - size: 10, - current: 1, organizations: [], record: {}, + searchKey: 'name', + searchValue: undefined, + size: 10, }; } @@ -67,61 +67,42 @@ class Network$$Page extends React.Component { componentWillUnmount() {} - onMenuClick(e, payload) { - const { key } = payload; - this.setState({ - record: payload === null || payload === void 0 ? void 0 : payload.record, - }); - if (key === 'dissolve') { - this.openDissolveModal(); - } - if (key === 'delete') { - this.openDeleteModal(); - } - if (key === 'detail') { - var _this$history, _payload$record; - (_this$history = this.history) === null || _this$history === void 0 - ? void 0 - : _this$history.push( - `/network/detail/${ - payload === null || payload === void 0 - ? void 0 - : (_payload$record = payload.record) === null || - _payload$record === void 0 - ? void 0 - : _payload$record.name - }` - ); - } - } - - openDissolveModal() { - this.setState({ - isOpenModal: true, - modalType: 'dissolve', - }); - } - - openDissolveSuccessModal() { - this.setState({ - isOpenModal: true, - modalType: 'dissolvesuccess', - }); - } - - openDeleteModal() { - this.setState({ - isOpenModal: true, - modalType: 'delete', - }); - } - closeModal() { this.setState({ isOpenModal: false, }); } + async confirmDeleteModal(e, payload) { + try { + var _this$state$record; + await this.props.appHelper.utils.bff.deleteNetwork({ + name: + (_this$state$record = this.state.record) === null || + _this$state$record === void 0 + ? void 0 + : _this$state$record.name, + }); + this.closeModal(); + this.utils.notification.success({ + message: this.i18n('i18n-wm7zxvqr'), + }); + this.props.useGetFederations.mutate(); + } catch (error) { + var _error$response; + this.utils.notification.warnings({ + message: this.i18n('i18n-8kpvya3f'), + errors: + error === null || error === void 0 + ? void 0 + : (_error$response = error.response) === null || + _error$response === void 0 + ? void 0 + : _error$response.errors, + }); + } + } + async confirmDissolveModal(e, payload) { try { var _this$state$record, @@ -161,36 +142,6 @@ class Network$$Page extends React.Component { } } - async confirmDeleteModal(e, payload) { - try { - var _this$state$record; - await this.props.appHelper.utils.bff.deleteNetwork({ - name: - (_this$state$record = this.state.record) === null || - _this$state$record === void 0 - ? void 0 - : _this$state$record.name, - }); - this.closeModal(); - this.utils.notification.success({ - message: this.i18n('i18n-wm7zxvqr'), - }); - this.props.useGetFederations.mutate(); - } catch (error) { - var _error$response; - this.utils.notification.warnings({ - message: this.i18n('i18n-8kpvya3f'), - errors: - error === null || error === void 0 - ? void 0 - : (_error$response = error.response) === null || - _error$response === void 0 - ? void 0 - : _error$response.errors, - }); - } - } - handleFilterChange(e) { this.setState({ filter: e.target.value, @@ -198,17 +149,25 @@ class Network$$Page extends React.Component { }); } - handleSearchValueChange(e) { + handlePaginationChange(c, s) { this.setState({ - searchValue: e.target.value, - current: 1, + size: s, + current: c, }); } - handlePaginationChange(c, s) { + handleRefresh(event) { + var _this$props$utils$bff; + (_this$props$utils$bff = this.props.utils.bff.useGetNetworks) === null || + _this$props$utils$bff === void 0 + ? void 0 + : _this$props$utils$bff.mute(); + } + + handleSearchValueChange(e) { this.setState({ - size: s, - current: c, + searchValue: e.target.value, + current: 1, }); } @@ -220,12 +179,53 @@ class Network$$Page extends React.Component { }); } - handleRefresh(event) { - var _this$props$utils$bff; - (_this$props$utils$bff = this.props.utils.bff.useGetNetworks) === null || - _this$props$utils$bff === void 0 - ? void 0 - : _this$props$utils$bff.mute(); + onMenuClick(e, payload) { + const { key } = payload; + this.setState({ + record: payload === null || payload === void 0 ? void 0 : payload.record, + }); + if (key === 'dissolve') { + this.openDissolveModal(); + } + if (key === 'delete') { + this.openDeleteModal(); + } + if (key === 'detail') { + var _this$history, _payload$record; + (_this$history = this.history) === null || _this$history === void 0 + ? void 0 + : _this$history.push( + `/network/detail/${ + payload === null || payload === void 0 + ? void 0 + : (_payload$record = payload.record) === null || + _payload$record === void 0 + ? void 0 + : _payload$record.name + }` + ); + } + } + + openDeleteModal() { + this.setState({ + isOpenModal: true, + modalType: 'delete', + }); + } + + openDissolveModal() { + this.setState({ + isOpenModal: true, + modalType: 'dissolve', + }); + } + + openDissolveSuccessModal() { + this.setState({ + isOpenModal: true, + modalType: 'dissolvesuccess', + }); } componentDidMount() {} @@ -737,7 +737,9 @@ class Network$$Page extends React.Component { `${ item?.channels?.length !== undefined ? item?.channels?.filter( - (item) => item.iamInvolved + (item) => + item.iamInvolved || + item.createdByMe )?.length : '-' }/${ diff --git a/src/pages/NetworkDetail/index.jsx b/src/pages/NetworkDetail/index.jsx index 3d3d957..2b615eb 100644 --- a/src/pages/NetworkDetail/index.jsx +++ b/src/pages/NetworkDetail/index.jsx @@ -191,15 +191,14 @@ class NetworkDetail$$Page extends React.Component { ? void 0 : _this$$$formRef$curre.form; form.submit(async (v) => { - this.getPeers(v, () => { - this.setState({ - channel: { - ...this.state.channel, - addData: v, - step: 1, - }, - }); + this.setState({ + channel: { + ...this.state.channel, + addData: v, + step: 1, + }, }); + this.getPeers(v, () => {}); }); } @@ -551,7 +550,13 @@ class NetworkDetail$$Page extends React.Component { } async getChannelsForCreateEpolicy(callback) { - var _this$match, _this$match$params, _res$channelsForCreat; + var _this$match, + _this$match$params, + _res$channelsForCreat, + _this$$, + _this$$$formRef, + _this$$$formRef$curre, + _res$channelsForCreat2; const res = await this.props.appHelper.utils.bff.getChannelsForCreateEpolicy({ network: @@ -580,6 +585,29 @@ class NetworkDetail$$Page extends React.Component { }, callback ); + const form = + (_this$$ = this.$('formily_create_strategy')) === null || + _this$$ === void 0 + ? void 0 + : (_this$$$formRef = _this$$.formRef) === null || + _this$$$formRef === void 0 + ? void 0 + : (_this$$$formRef$curre = _this$$$formRef.current) === null || + _this$$$formRef$curre === void 0 + ? void 0 + : _this$$$formRef$curre.form; + form.setFieldState('channel', { + dataSource: + (res === null || res === void 0 + ? void 0 + : (_res$channelsForCreat2 = res.channelsForCreateEpolicy) === null || + _res$channelsForCreat2 === void 0 + ? void 0 + : _res$channelsForCreat2.map((item) => ({ + value: JSON.stringify(item), + label: item.name, + }))) || [], + }); } async getEpolicies() { @@ -601,7 +629,7 @@ class NetworkDetail$$Page extends React.Component { }); } - async getPeers(v, callback) { + async getPeers(v, callback, usedPeers) { var _ref, _res$ibppeersForCreat, _res$ibppeersForCreat2, @@ -639,7 +667,7 @@ class NetworkDetail$$Page extends React.Component { _res$ibppeersForCreat2 === void 0 ? void 0 : (_res$ibppeersForCreat3 = _res$ibppeersForCreat2.map((item) => { - var _item$ibppeers2; + var _item$ibppeers2, _item$ibppeers2$filte, _item$ibppeers2$filte2; return { key: item.name, title: item.name, @@ -647,10 +675,30 @@ class NetworkDetail$$Page extends React.Component { (_item$ibppeers2 = item.ibppeers) === null || _item$ibppeers2 === void 0 ? void 0 - : _item$ibppeers2.map((peer) => ({ - key: item.name + peer.name, - title: peer.name, - })), + : (_item$ibppeers2$filte = _item$ibppeers2.filter( + (item) => item.status === 'Deployed' + )) === null || _item$ibppeers2$filte === void 0 + ? void 0 + : (_item$ibppeers2$filte2 = _item$ibppeers2$filte.map( + (peer) => ({ + key: item.name + peer.name, + title: peer.name, + }) + )) === null || _item$ibppeers2$filte2 === void 0 + ? void 0 + : _item$ibppeers2$filte2.filter((peer) => { + return usedPeers !== null && + usedPeers !== void 0 && + usedPeers.length + ? usedPeers.every( + (used) => + !( + used.name === peer.title && + used.namespace === item.name + ) + ) + : true; + }), }; })) === null || _res$ibppeersForCreat3 === void 0 ? void 0 @@ -839,6 +887,15 @@ class NetworkDetail$$Page extends React.Component { openAddChannelPeerModal(e, payload) { var _payload$record, _payload$record$membe; + this.setState({ + channel: { + ...this.state.channel, + record: payload.record, + }, + isOpenModal: true, + modalType: 'addchannelpeer', + peers: [], + }); this.getPeers( { organizations: @@ -852,16 +909,8 @@ class NetworkDetail$$Page extends React.Component { ? void 0 : _payload$record$membe.map((item) => item.name)) || [], }, - () => { - this.setState({ - channel: { - ...this.state.channel, - record: payload.record, - }, - isOpenModal: true, - modalType: 'addchannelpeer', - }); - } + () => {}, + payload.record.peers || [] ); } @@ -880,12 +929,11 @@ class NetworkDetail$$Page extends React.Component { } openAddStrategyModal() { - this.getChannelsForCreateEpolicy(() => { - this.setState({ - isOpenModal: true, - modalType: 'addstrategy', - }); + this.setState({ + isOpenModal: true, + modalType: 'addstrategy', }); + this.getChannelsForCreateEpolicy(() => {}); } openDeleteChannelModal(e, payload) { @@ -2687,7 +2735,7 @@ class NetworkDetail$$Page extends React.Component { {__$$eval( () => this.props.useGetNetwork?.data?.network?.channels?.filter( - (item) => item.iamInvolved + (item) => item.createdByMe )?.length || '0' )} @@ -3135,7 +3183,7 @@ class NetworkDetail$$Page extends React.Component { hoverable={false} loading={false} size="default" - style={{ height: '280px' }} + style={{ height: '300px' }} type="default" > @@ -3468,7 +3516,7 @@ class NetworkDetail$$Page extends React.Component { hoverable={false} loading={false} size="default" - style={{ height: '280px' }} + style={{ height: '300px' }} type="default" > @@ -3937,7 +3985,12 @@ class NetworkDetail$$Page extends React.Component { __component_name="Button" block={false} danger={false} - disabled={false} + disabled={__$$eval(() => + record?.admin === + __$$context.props.authData?.user?.name + ? undefined + : true + )} ghost={false} href={__$$eval( () => `/organization/${record.name}` diff --git a/src/pages/OrganizationDetail/index.jsx b/src/pages/OrganizationDetail/index.jsx index 66dd28d..0e50a39 100644 --- a/src/pages/OrganizationDetail/index.jsx +++ b/src/pages/OrganizationDetail/index.jsx @@ -56,15 +56,15 @@ class OrganizationDetail$$Page extends React.Component { __$$i18n._inject2(this); this.state = { + current: 1, + filter: 'ALL', isOpenModal: false, modalType: 'create', - filter: 'ALL', - searchValue: undefined, + peers: [], + record: {}, searchKey: 'name', + searchValue: undefined, size: 10, - current: 1, - record: {}, - peers: [], }; } @@ -78,101 +78,6 @@ class OrganizationDetail$$Page extends React.Component { componentWillUnmount() {} - async getIbppeers() { - var _this$match, _this$match$params; - const res = await this.props.appHelper.utils.bff.getIbppeers({ - organization: - (_this$match = this.match) === null || _this$match === void 0 - ? void 0 - : (_this$match$params = _this$match.params) === null || - _this$match$params === void 0 - ? void 0 - : _this$match$params.id, - }); - this.setState({ - peers: (res === null || res === void 0 ? void 0 : res.ibppeers) || [], - }); - } - - openCreateModal() { - this.setState({ - isOpenModal: true, - modalType: 'create', - }); - } - - openCreateNodeModal() { - this.setState( - { - isOpenModal: true, - modalType: 'createnode', - }, - () => { - setTimeout(() => { - var _this$props$useGetOrg, - _this$props$useGetOrg2, - _this$$, - _this$$$formRef, - _this$$$formRef$curre, - _this$state$peers; - const organization = - ((_this$props$useGetOrg = this.props.useGetOrganization) === null || - _this$props$useGetOrg === void 0 - ? void 0 - : (_this$props$useGetOrg2 = _this$props$useGetOrg.data) === - null || _this$props$useGetOrg2 === void 0 - ? void 0 - : _this$props$useGetOrg2.organization) || {}; - const form = - (_this$$ = this.$('formily_create_node')) === null || - _this$$ === void 0 - ? void 0 - : (_this$$$formRef = _this$$.formRef) === null || - _this$$$formRef === void 0 - ? void 0 - : (_this$$$formRef$curre = _this$$$formRef.current) === null || - _this$$$formRef$curre === void 0 - ? void 0 - : _this$$$formRef$curre.form; - form.setValues({ - organization: organization.name, - nodes: - ((_this$state$peers = this.state.peers) === null || - _this$state$peers === void 0 - ? void 0 - : _this$state$peers.length) || 0, - count: 1, - storage: 50, - time: '30', - }); - }, 0); - } - ); - } - - openCreateSuccessModal() { - this.setState({ - isOpenModal: true, - modalType: 'createsuccess', - }); - } - - openTransferModal(e, payload) { - this.setState({ - isOpenModal: true, - modalType: 'transfer', - record: payload === null || payload === void 0 ? void 0 : payload.record, - }); - } - - openDeleteModal(e, payload) { - this.setState({ - isOpenModal: true, - modalType: 'delete', - record: payload === null || payload === void 0 ? void 0 : payload.record, - }); - } - closeModal() { this.setState({ isOpenModal: false, @@ -244,7 +149,7 @@ class OrganizationDetail$$Page extends React.Component { }); } - confirmTransferModal(e, payload) { + confirmCreateNodelModal(e, payload) { var _this$props$useGetOrg, _this$props$useGetOrg2, _this$$, @@ -259,7 +164,7 @@ class OrganizationDetail$$Page extends React.Component { ? void 0 : _this$props$useGetOrg2.organization) || {}; const form = - (_this$$ = this.$('formily_transfer')) === null || _this$$ === void 0 + (_this$$ = this.$('formily_create_node')) === null || _this$$ === void 0 ? void 0 : (_this$$$formRef = _this$$.formRef) === null || _this$$$formRef === void 0 @@ -270,19 +175,19 @@ class OrganizationDetail$$Page extends React.Component { : _this$$$formRef$curre.form; form.submit(async (v) => { try { - await this.props.appHelper.utils.bff.updateOrganization({ - name: organization.name, - organization: v, + const res = await this.props.appHelper.utils.bff.createIbppeer({ + org: organization.name, + count: v.count, }); this.closeModal(); this.utils.notification.success({ - message: this.i18n('i18n-hjonznxjara'), + message: this.i18n('i18n-x26twb9oy0l'), }); - this.props.useGetOrganization.mutate(); + this.getIbppeers(); } catch (error) { var _error$response; this.utils.notification.warnings({ - message: this.i18n('i18n-zzu9mo73zo'), + message: this.i18n('i18n-43getajmxf3'), errors: error === null || error === void 0 ? void 0 @@ -349,7 +254,7 @@ class OrganizationDetail$$Page extends React.Component { } } - confirmCreateNodelModal(e, payload) { + confirmTransferModal(e, payload) { var _this$props$useGetOrg, _this$props$useGetOrg2, _this$$, @@ -364,7 +269,7 @@ class OrganizationDetail$$Page extends React.Component { ? void 0 : _this$props$useGetOrg2.organization) || {}; const form = - (_this$$ = this.$('formily_create_node')) === null || _this$$ === void 0 + (_this$$ = this.$('formily_transfer')) === null || _this$$ === void 0 ? void 0 : (_this$$$formRef = _this$$.formRef) === null || _this$$$formRef === void 0 @@ -375,19 +280,19 @@ class OrganizationDetail$$Page extends React.Component { : _this$$$formRef$curre.form; form.submit(async (v) => { try { - const res = await this.props.appHelper.utils.bff.createIbppeer({ - org: organization.name, - count: v.count, + await this.props.appHelper.utils.bff.updateOrganization({ + name: organization.name, + organization: v, }); this.closeModal(); this.utils.notification.success({ - message: this.i18n('i18n-x26twb9oy0l'), + message: this.i18n('i18n-hjonznxjara'), }); - this.getIbppeers(); + this.props.useGetOrganization.mutate(); } catch (error) { var _error$response; this.utils.notification.warnings({ - message: this.i18n('i18n-43getajmxf3'), + message: this.i18n('i18n-zzu9mo73zo'), errors: error === null || error === void 0 ? void 0 @@ -400,6 +305,22 @@ class OrganizationDetail$$Page extends React.Component { }); } + async getIbppeers() { + var _this$match, _this$match$params; + const res = await this.props.appHelper.utils.bff.getIbppeers({ + organization: + (_this$match = this.match) === null || _this$match === void 0 + ? void 0 + : (_this$match$params = _this$match.params) === null || + _this$match$params === void 0 + ? void 0 + : _this$match$params.id, + }); + this.setState({ + peers: (res === null || res === void 0 ? void 0 : res.ibppeers) || [], + }); + } + handleFilterChange(e) { this.setState({ filter: e.target.value, @@ -407,13 +328,35 @@ class OrganizationDetail$$Page extends React.Component { }); } - handleSearchValueChange(e) { + handleNodeFilterChange(e) { + this.setState({ + filter: e.target.value, + current: 1, + }); + } + + handleNodePaginationChange(c, s) { + this.setState({ + size: s, + current: c, + }); + } + + handleNodeSearchValueChange(e) { this.setState({ searchValue: e.target.value, current: 1, }); } + handleNodeTableChange(pagination, filters, sorter, extra) { + this.setState({ + pagination, + filters, + sorter, + }); + } + handlePaginationChange(c, s) { this.setState({ size: s, @@ -421,6 +364,13 @@ class OrganizationDetail$$Page extends React.Component { }); } + handleSearchValueChange(e) { + this.setState({ + searchValue: e.target.value, + current: 1, + }); + } + handleTableChange(pagination, filters, sorter, extra) { this.setState({ pagination, @@ -429,42 +379,92 @@ class OrganizationDetail$$Page extends React.Component { }); } - paginationShowTotal(total, range) { + nodePaginationShowTotal(total, range) { return `${this.i18n('i18n-5xl7aihzcuy')} ${total} ${this.i18n( 'i18n-v7xu122b9o' )}`; } - handleNodeFilterChange(e) { + openCreateModal() { this.setState({ - filter: e.target.value, - current: 1, + isOpenModal: true, + modalType: 'create', }); } - handleNodeSearchValueChange(e) { + openCreateNodeModal() { + this.setState( + { + isOpenModal: true, + modalType: 'createnode', + }, + () => { + setTimeout(() => { + var _this$props$useGetOrg, + _this$props$useGetOrg2, + _this$$, + _this$$$formRef, + _this$$$formRef$curre, + _this$state$peers; + const organization = + ((_this$props$useGetOrg = this.props.useGetOrganization) === null || + _this$props$useGetOrg === void 0 + ? void 0 + : (_this$props$useGetOrg2 = _this$props$useGetOrg.data) === + null || _this$props$useGetOrg2 === void 0 + ? void 0 + : _this$props$useGetOrg2.organization) || {}; + const form = + (_this$$ = this.$('formily_create_node')) === null || + _this$$ === void 0 + ? void 0 + : (_this$$$formRef = _this$$.formRef) === null || + _this$$$formRef === void 0 + ? void 0 + : (_this$$$formRef$curre = _this$$$formRef.current) === null || + _this$$$formRef$curre === void 0 + ? void 0 + : _this$$$formRef$curre.form; + form.setValues({ + organization: organization.name, + nodes: + ((_this$state$peers = this.state.peers) === null || + _this$state$peers === void 0 + ? void 0 + : _this$state$peers.length) || 0, + count: 1, + storage: 50, + time: '30', + }); + }, 0); + } + ); + } + + openCreateSuccessModal() { this.setState({ - searchValue: e.target.value, - current: 1, + isOpenModal: true, + modalType: 'createsuccess', }); } - handleNodePaginationChange(c, s) { + openDeleteModal(e, payload) { this.setState({ - size: s, - current: c, + isOpenModal: true, + modalType: 'delete', + record: payload === null || payload === void 0 ? void 0 : payload.record, }); } - handleNodeTableChange(pagination, filters, sorter, extra) { + openTransferModal(e, payload) { this.setState({ - pagination, - filters, - sorter, + isOpenModal: true, + modalType: 'transfer', + record: payload === null || payload === void 0 ? void 0 : payload.record, }); } - nodePaginationShowTotal(total, range) { + paginationShowTotal(total, range) { return `${this.i18n('i18n-5xl7aihzcuy')} ${total} ${this.i18n( 'i18n-v7xu122b9o' )}`; @@ -592,8 +592,9 @@ class OrganizationDetail$$Page extends React.Component { relativeTime={false} time={__$$eval( () => - this.props.useGetOrganization?.data?.organization - ?.joinAt + this.props.useGetOrganization?.data?.organization?.users?.find( + (item) => item.isOrganizationAdmin + )?.joinedAt )} /> ), @@ -685,8 +686,8 @@ class OrganizationDetail$$Page extends React.Component { { children: __$$eval( () => - this.props.useGetOrganization?.data?.organization?.nodes - ?.length || '-' + this.props.useGetOrganization?.data?.organization + ?.ibppeers?.length || '-' ), key: 'ayb0txehyzf', label: this.i18n('i18n-kh6e0jr0i7b') /* 节点数量 */, @@ -895,8 +896,8 @@ class OrganizationDetail$$Page extends React.Component { > {__$$eval( () => - this.props.useGetOrganization?.data?.organization?.nodes - ?.length || '-' + this.props.useGetOrganization?.data?.organization + ?.ibppeers?.length || '-' )} @@ -2595,36 +2596,36 @@ class OrganizationDetail$$Page extends React.Component { __component_name="FormilyInput" componentProps={{ 'x-component-props': { - placeholder: '请输入', - addonAfter: 'G', _unsafe_MixedSetter_addonAfter_select: 'StringSetter', + addonAfter: 'G', + placeholder: '请输入', }, }} fieldProps={{ + _unsafe_MixedSetter_default_select: 'StringSetter', + default: '50', name: 'storage', title: this.i18n('i18n-cbhoi5g6') /* 节点存储 */, 'x-pattern': 'disabled', 'x-validator': [], - default: '50', - _unsafe_MixedSetter_default_select: 'StringSetter', }} />