Skip to content

Commit

Permalink
feat: update project leaderboard
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Nov 29, 2024
1 parent 020211c commit 1a45214
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@
"leaderboards.projects.name": {
"message": "Project Name"
},
"leaderboards.projects.developers": {
"message": "Developers"
},
"leaderboards.projects.initiator": {
"message": "Initiator"
},
Expand Down
3 changes: 3 additions & 0 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@
"leaderboards.projects.name": {
"message": "项目名"
},
"leaderboards.projects.developers": {
"message": "社区规模"
},
"leaderboards.projects.initiator": {
"message": "发起组织"
},
Expand Down
7 changes: 4 additions & 3 deletions src/pages/leaderboards/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ function OpenLeaderboard() {
setData(data.data);
setOptions([
{ name: '#', type: 'String', fields: ['rank'], width: 80 },
{ name: translate({ id: 'leaderboards.projects.name' }), type: 'StringWithIcon', fields: ['name', 'logo'], width: 250 },
{ name: 'OpenRank', type: 'String', fields: ['openrank'], width: 150 },
{ name: translate({ id: 'leaderboards.projects.name' }), type: 'StringWithIcon', fields: ['name', 'logo'], width: 200 },
{ name: 'OpenRank', type: 'String', fields: ['openrank'], width: 180 },
{ name: translate({ id: 'leaderboards.projects.developers' }), type: 'String', fields: ['developerCount'], width: 180 },
{ name: translate({ id: 'leaderboards.projects.initiator' }), type: 'StringWithIcon', fields: ['initiator', 'initiatorLogo'], width: 250 },
{ name: translate({ id: 'leaderboards.projects.country' }), type: 'String', fields: ['country'], width: 250 },
{ name: translate({ id: 'leaderboards.projects.country' }), type: 'String', fields: ['country'], width: 150 },
]);
}).catch(e => {
console.log(e);
Expand Down

0 comments on commit 1a45214

Please sign in to comment.