Skip to content

Commit

Permalink
feat: fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
张鹏程(时速云) authored and Carrotzpc committed Feb 14, 2023
1 parent 907998b commit cc81502
Show file tree
Hide file tree
Showing 12 changed files with 270 additions and 69 deletions.
14 changes: 12 additions & 2 deletions bff-sdk/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ export type Network = {
federation?: Maybe<Scalars['String']>;
/** 网络发起者(组织) */
initiator?: Maybe<Organization>;
/** 更新时间 */
lastHeartbeatTime?: Maybe<Scalars['String']>;
/** name */
name: Scalars['ID'];
/** 引擎类型 */
Expand Down Expand Up @@ -362,7 +364,7 @@ export type QueryProposalsArgs = {

/** IBPCR 状态 */
export enum StatusType {
/** Created is the status when component is created successfully */
/** 正常 */
Created = 'Created',
/** Deployed is the status when the component's deployment is done successfully */
Deployed = 'Deployed',
Expand All @@ -380,7 +382,7 @@ export enum StatusType {
FederationPending = 'FederationPending',
/** Initializing is the status when a component is initializing */
Initializing = 'Initializing',
/** 运行中 */
/** 正常 */
NetworkCreated = 'NetworkCreated',
/** 已解散 */
NetworkDissolved = 'NetworkDissolved',
Expand Down Expand Up @@ -449,6 +451,8 @@ export enum VotePhase {
Created = 'Created',
/** The proposal has been finished. */
Finished = 'Finished',
/** 未投票 */
NotVoted = 'NotVoted',
/** The organization administrator has vote for the proposal. */
Voted = 'Voted',
}
Expand Down Expand Up @@ -606,6 +610,7 @@ export type GetNetworksQuery = {
__typename?: 'Network';
name: string;
creationTimestamp?: string | null;
lastHeartbeatTime?: string | null;
expiredTime?: string | null;
federation?: string | null;
clusterSize?: number | null;
Expand Down Expand Up @@ -634,6 +639,7 @@ export type GetNetworkQuery = {
__typename?: 'Network';
name: string;
creationTimestamp?: string | null;
lastHeartbeatTime?: string | null;
expiredTime?: string | null;
federation?: string | null;
clusterSize?: number | null;
Expand Down Expand Up @@ -662,6 +668,7 @@ export type CreateNetworkMutation = {
__typename?: 'Network';
name: string;
creationTimestamp?: string | null;
lastHeartbeatTime?: string | null;
expiredTime?: string | null;
federation?: string | null;
clusterSize?: number | null;
Expand Down Expand Up @@ -977,6 +984,7 @@ export const GetNetworksDocument = gql`
networks {
name
creationTimestamp
lastHeartbeatTime
expiredTime
federation
clusterSize
Expand All @@ -998,6 +1006,7 @@ export const GetNetworkDocument = gql`
network(name: $name) {
name
creationTimestamp
lastHeartbeatTime
expiredTime
federation
clusterSize
Expand All @@ -1019,6 +1028,7 @@ export const CreateNetworkDocument = gql`
networkCreate(network: $network) {
name
creationTimestamp
lastHeartbeatTime
expiredTime
federation
clusterSize
Expand Down
4 changes: 2 additions & 2 deletions config/config.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { defineConfig } from '@umijs/max';
export default defineConfig({
proxy: {
'/bff': {
target: 'https://bc.172.22.50.142.nip.io',
target: 'https://bc.172.22.96.209.nip.io',
changeOrigin: true,
secure: false,
},
'/token': {
target: 'https://bc.172.22.50.142.nip.io',
target: 'https://bc.172.22.96.209.nip.io',
changeOrigin: true,
secure: false,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@formily/core": "^2.1.4",
"@formily/react": "^2.1.4",
"@tenx-ui/icon": "^2.4.13",
"@tenx-ui/materials": "1.0.13",
"@tenx-ui/materials": "1.0.14",
"@tenx-ui/utils": "^2.2.1",
"@umijs/max": "^4.0.42",
"antd": "^5.1.4",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 31 additions & 14 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const i18nConfig = {
"i18n-0it28c04tx6": "Select a consensus algorithm",
"i18n-0l8kit6a2d3": "My channel/Total channel",
"i18n-0tsputxj615": "New administrator",
"i18n-0u5pwt0jtl4":
"The channel name contains 3 to 50 letters, digits, and underscores (_)",
"i18n-1247x9lxlbkg": "Please enter description",
"i18n-18ncsld69pu": "Organization number",
"i18n-1d5ai7x8ukw": "Warning",
"i18n-1d5bt7sz4jb": "FederationPending",
"i18n-1g6cw1w1uv4": "Real-name authentication",
"i18n-1vangoko4yf": "Created",
Expand All @@ -34,6 +35,8 @@ const i18nConfig = {
"i18n-4m04opydvf9": "My node/total node",
"i18n-4t70z9gdf8u": "View details",
"i18n-54sfaqivd5i": "Organization management",
"i18n-5eitggraalr":
"The channel description consists of 0 to 200 characters",
"i18n-5er0ayqzcp": "Last update time",
"i18n-5jwxi1nlnsm": "I created",
"i18n-5xl7aihzcuy": "total",
Expand All @@ -47,7 +50,6 @@ const i18nConfig = {
"i18n-6ojbq0y628y": "Expired",
"i18n-6sh24mree": "Succeeded",
"i18n-71sxvlf0d98": "refresh",
"i18n-7co6jrkxoa": "Initializing",
"i18n-7s50z0jhy96": "cause",
"i18n-85kkwp67i5u": "Channel creation failure",
"i18n-8vybx9itd3n": "federation members",
Expand Down Expand Up @@ -78,18 +80,24 @@ const i18nConfig = {
"i18n-bko8c4ii1ad": "Please select a member",
"i18n-bm3i5ksesut": "Version selection",
"i18n-bpso2h286ae": "Please enter a display name",
"i18n-brvipauy4t4":
"The organization description consists of 0 to 200 characters",
"i18n-bvuyqd393pj": "Enter the organization name or creator search",
"i18n-c0d66z03kpk": "join time",
"i18n-c3oheknv0lu":
"The network will disband after the proposal is approved, whether to continue",
"i18n-cbe4xaexa7q": "more",
"i18n-ch5wgxkhdhs":
"The user name contains 3 to 20 letters, digits, and underscores",
"i18n-cj4k368h6p9": "Voting",
"i18n-cj9hvn1xox5": "Please enter node configuration",
"i18n-cprrxhrkty": "Configuration member",
"i18n-csjzk2p708j": "Financial security edition",
"i18n-d3zo18q4hrn": "Proposed name",
"i18n-d4bbvp00v5t": "New federation success",
"i18n-d6xpwgoamdo": "Please enter an organization name",
"i18n-de6rhkx2m7v":
"The display name consists of 0 ~ 20 Chinese and English numbers",
"i18n-dlxiuotq6z4": "affiliate",
"i18n-dr1hx3bw3v":
"The organization name must start with a letter and contain no more than 12 digits and letters. Only web start-ups can create multiple organizations",
Expand All @@ -106,7 +114,6 @@ const i18nConfig = {
"i18n-fifkprltibf": "Normal",
"i18n-fpx7c35bovp": "Please select a proposed voting strategy",
"i18n-fvcps4edx44": "name",
"i18n-fx1ig20n6wh": "Deploying",
"i18n-g2ktwfqaf0g": "duration",
"i18n-g8rbmvh04cd": "Proposal strategy",
"i18n-gagifmv2uun": "Successful dissolution of federation",
Expand All @@ -124,14 +131,15 @@ const i18nConfig = {
"The administrator permission is transferred successfully. Procedure",
"i18n-hlh9eenb9wn": "Disband network",
"i18n-hpj9pfyfpq": "Network details",
"i18n-hruojjr57f": "NetworkCreated",
"i18n-i69exda650e": "create federation",
"i18n-i7slyi98o4e": "DissolveFederationProposal",
"i18n-i94pxfwl0cb": "Failed",
"i18n-ias68eipm18": "delete",
"i18n-ibaeqidf0n": "Error",
"i18n-ienrgm2j5p9": "Please enter a channel name",
"i18n-ihfepbwjnv": "Name of the invited member/organization",
"i18n-iiub6ybv6ms":
"The organization name contains 3 to 10 uppercase and lowercase letters, digits, and underscores",
"i18n-iku70tej4ja": "The last time a node was added",
"i18n-inwcelhiing": "admin",
"i18n-irf019z3fd": "Configuring the user Type",
Expand All @@ -149,6 +157,7 @@ const i18nConfig = {
"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-l8xumyvnlya": "cancel",
"i18n-ldhfyodm92n": "Have voted",
Expand All @@ -165,9 +174,10 @@ const i18nConfig = {
"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",
"i18n-nezb9wehqyh": "Select the initiator",
"i18n-nfnc1vxid1": "Current state",
"i18n-nidprik2g7d": "NetworkDissolved",
"i18n-nijfmnd2nf": "initiator",
"i18n-nkfizmvwbzo": "Affiliated organization",
"i18n-nm17suv2xhh": "Delete a user from",
Expand Down Expand Up @@ -219,11 +229,14 @@ const i18nConfig = {
"i18n-wbcc2febor": "all organization",
"i18n-wctt13ld2x": "initiator",
"i18n-wlgvrke3jz9": "introduce",
"i18n-wprl86g5wy": "The value contains 3 to 20 characters",
"i18n-x26twb9oy0l": "Succeeded in adding a user",
"i18n-xb2o10tue1m": "network",
"i18n-xgyxfdl8q": "Consensus component",
"i18n-xinrdc2qk1f": "Network member",
"i18n-xlmv8ef2bsq": " Know the details>>",
"i18n-xr251ak8b2":
"The association description consists of 0 to 200 characters",
"i18n-xtno2l9qqog": "Error",
"i18n-y0o0zplhhom": "Network information",
"i18n-y29rf6lwd8q": "Organization creation failure",
Expand All @@ -233,7 +246,6 @@ const i18nConfig = {
"i18n-z04apojz8aj":
"After the union is dissolved, you still need to manually delete internal resources",
"i18n-z0me61yhdpc": "Update vote failed",
"i18n-ze225i4koum": "Precreated",
"i18n-zjmh7vtphh": "Node configuration",
"i18n-zrowlr7zwx": "NetworkCreated",
"i18n-zzu9mo73zo": "Description Failed to transfer administrator rights",
Expand All @@ -245,12 +257,12 @@ const i18nConfig = {
"i18n-0it28c04tx6": "请选择共识算法",
"i18n-0l8kit6a2d3": "我的通道/总通道",
"i18n-0tsputxj615": "新的管理员用户",
"i18n-0u5pwt0jtl4": "通道名称由 3 ~ 50 个大小写字母, 数字, 下划线组成",
"i18n-1247x9lxlbkg": "请输入组织描述",
"i18n-18ncsld69pu": "组织数",
"i18n-1d5ai7x8ukw": "Warning",
"i18n-1d5bt7sz4jb": "组建中",
"i18n-1g6cw1w1uv4": "实名认证",
"i18n-1vangoko4yf": "Created",
"i18n-1vangoko4yf": "正常",
"i18n-1x4p2xt91ss": "创建组织成功",
"i18n-21s244w63fc": "请输入原因",
"i18n-21z9nbkoohk": "成员限制",
Expand All @@ -272,6 +284,7 @@ const i18nConfig = {
"i18n-4m04opydvf9": "我的节点/总节点",
"i18n-4t70z9gdf8u": "查看详情",
"i18n-54sfaqivd5i": "组织管理",
"i18n-5eitggraalr": "通道描述由 0 ~ 200 字符组成",
"i18n-5er0ayqzcp": "最近更新时间",
"i18n-5jwxi1nlnsm": "我创建的",
"i18n-5xl7aihzcuy": "共计",
Expand All @@ -285,7 +298,6 @@ const i18nConfig = {
"i18n-6ojbq0y628y": "提议超时",
"i18n-6sh24mree": "提议成功",
"i18n-71sxvlf0d98": "刷新",
"i18n-7co6jrkxoa": "Initializing",
"i18n-7s50z0jhy96": "原因",
"i18n-85kkwp67i5u": "新建通道失败",
"i18n-8vybx9itd3n": "联盟成员",
Expand Down Expand Up @@ -315,17 +327,20 @@ const i18nConfig = {
"i18n-bko8c4ii1ad": "请选择成员",
"i18n-bm3i5ksesut": "版本选择",
"i18n-bpso2h286ae": "请输入展示名",
"i18n-brvipauy4t4": "组织描述由 0 ~ 200 字符组成",
"i18n-bvuyqd393pj": "输入组织名称或创建人搜索",
"i18n-c0d66z03kpk": "加入时间",
"i18n-c3oheknv0lu": "网络将在提议通过后解散,是否继续",
"i18n-cbe4xaexa7q": "更多",
"i18n-ch5wgxkhdhs": "用户名称由 3 ~ 20 个大小写字母, 数字, 下划线组成",
"i18n-cj4k368h6p9": "投票中",
"i18n-cj9hvn1xox5": "请输入节点配置",
"i18n-cprrxhrkty": "配置成员",
"i18n-csjzk2p708j": "金融安全版",
"i18n-d3zo18q4hrn": "提议名称",
"i18n-d4bbvp00v5t": "新建联盟成功",
"i18n-d6xpwgoamdo": "请输入组织名称",
"i18n-de6rhkx2m7v": "展示名由 0 ~ 20 个中英文、数字组成",
"i18n-dlxiuotq6z4": "所属联盟",
"i18n-dr1hx3bw3v":
"组织名称须以字母开头,12 位以内数字和字母组成。只有网络初创者可以新建多个组织",
Expand All @@ -342,7 +357,6 @@ const i18nConfig = {
"i18n-fifkprltibf": "正常",
"i18n-fpx7c35bovp": "请选择提议投票策略",
"i18n-fvcps4edx44": "联盟名称",
"i18n-fx1ig20n6wh": "Deploying",
"i18n-g2ktwfqaf0g": "时长",
"i18n-g8rbmvh04cd": "提议策略",
"i18n-gagifmv2uun": "解散联盟成功",
Expand All @@ -358,14 +372,14 @@ const i18nConfig = {
"i18n-hjonznxjara": "转移管理员权限成功",
"i18n-hlh9eenb9wn": "解散网络",
"i18n-hpj9pfyfpq": "网络详情",
"i18n-hruojjr57f": "NetworkCreated",
"i18n-i69exda650e": "新建联盟",
"i18n-i7slyi98o4e": "解散联盟",
"i18n-i94pxfwl0cb": "提议失败",
"i18n-ias68eipm18": "删除",
"i18n-ibaeqidf0n": "提议异常",
"i18n-ienrgm2j5p9": "请输入通道名称",
"i18n-ihfepbwjnv": "被邀请的成员/组织名称",
"i18n-iiub6ybv6ms": "组织名称由 3 ~ 10 个大小写字母, 数字, 下划线组成",
"i18n-iku70tej4ja": "节点最近加入时间",
"i18n-inwcelhiing": "管理员Admin",
"i18n-irf019z3fd": "配置用户类型",
Expand All @@ -383,6 +397,7 @@ const i18nConfig = {
"i18n-ks9tefvs1g": "提议详情",
"i18n-kwbu3vyst6": "新建网络",
"i18n-l0it3k61ec": "创建联盟",
"i18n-l0t1y311yy": "原因描述由 0 ~ 200 字符组成",
"i18n-l8fybssesij": "新建通道成功",
"i18n-l8xumyvnlya": "取消",
"i18n-ldhfyodm92n": "已投票",
Expand All @@ -399,9 +414,10 @@ const i18nConfig = {
"i18n-n5ny2k3khy": "新增用户",
"i18n-n7pr8w2kqpn": "不同意",
"i18n-nbke0i5upzc": "组织名称,建议格式 xxxOrg",
"i18n-neccml35hvq":
"大小写字母, 数字, 中划线组成,开头和结尾只能是字母或数字",
"i18n-nezb9wehqyh": "请选择发起者",
"i18n-nfnc1vxid1": "当前状态",
"i18n-nidprik2g7d": "NetworkDissolved",
"i18n-nijfmnd2nf": "发起人",
"i18n-nkfizmvwbzo": "所属组织",
"i18n-nm17suv2xhh": "中删除用户",
Expand Down Expand Up @@ -452,11 +468,13 @@ const i18nConfig = {
"i18n-wbcc2febor": "全部组织",
"i18n-wctt13ld2x": "发起者",
"i18n-wlgvrke3jz9": "介绍",
"i18n-wprl86g5wy": "字符长度为 3 ~ 20",
"i18n-x26twb9oy0l": "新增用户成功",
"i18n-xb2o10tue1m": "网络",
"i18n-xgyxfdl8q": "共识组件",
"i18n-xinrdc2qk1f": "网络成员",
"i18n-xlmv8ef2bsq": " 了解详情>>",
"i18n-xr251ak8b2": "联盟描述由 0 ~ 200 字符组成",
"i18n-xtno2l9qqog": "异常",
"i18n-y0o0zplhhom": "网络信息",
"i18n-y29rf6lwd8q": "创建组织失败",
Expand All @@ -465,9 +483,8 @@ const i18nConfig = {
"i18n-yyexdt18ora": "创建人",
"i18n-z04apojz8aj": "解散联盟后,内部资源仍需要手动删除",
"i18n-z0me61yhdpc": "更新投票失败",
"i18n-ze225i4koum": "Precreated",
"i18n-zjmh7vtphh": "节点配置",
"i18n-zrowlr7zwx": "运行中",
"i18n-zrowlr7zwx": "正常",
"i18n-zzu9mo73zo": "转移管理员权限失败",
},
};
Expand Down
Loading

0 comments on commit cc81502

Please sign in to comment.