Skip to content

Commit a1ab3be

Browse files
committed
[app] Add new contributor
1 parent d8508e8 commit a1ab3be

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

src/app/contributors/contributors.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ <h2 class="mb-3">{{"ContributorsPage.CommunityContributors" | translate}}</h2>
1818
<a class="text-decoration-none" target="_blank" href="https://github.com/XinJiDA"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/78793632">XinJiDA</a>
1919
</span>
2020
<span class="hstack d-inline-block me-3 mb-1">
21-
<a class="text-decoration-none" target="_blank" href="https://github.com/Eternal973"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/51935482">Eternal973</a>
21+
<a class="text-decoration-none" target="_blank" href="https://github.com/DGCtanuki"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/164617811">DGCtanuki</a>
2222
</span>
2323
<span class="hstack d-inline-block me-3 mb-1">
24-
<a class="text-decoration-none" target="_blank" href="https://github.com/DGCtanuki"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/164617811">DGCtanuki</a>
24+
<a class="text-decoration-none" target="_blank" href="https://github.com/qcsmallblack"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/60247450">Sherlock Ji</a>
25+
</span>
26+
<span class="hstack d-inline-block me-3 mb-1">
27+
<a class="text-decoration-none" target="_blank" href="https://github.com/Eternal973"><img class="avator me-1" src="https://avatars.githubusercontent.com/u/51935482">Eternal973</a>
2528
</span>
2629
</div>
2730
<h2 class="mb-3">{{"ContributorsPage.Donations" | translate}}</h2>

src/app/contributors/contributors.component.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import { TranslateService } from '@ngx-translate/core';
1111
export class ContributorsComponent implements OnInit {
1212

1313
developers: Developer[] = [
14-
{id: 20372033, name: "HoshimiRin", link: "https://github.com/mxihan"},
15-
{id: 29558475, name: "Rinne", link: "https://github.com/OharaRinneY"},
16-
{id: 35133371, name: "Sanhei", link: "https://github.com/Sanheiii"},
17-
{id: 88378875, name: "TCPL", link: "https://github.com/xuanxuan-0403"},
18-
{id: 105532072, name: "天梯Tyuikl", link: "https://github.com/tyuikl32"}
14+
{id: 20372033, name: 'HoshimiRin', link: 'https://github.com/mxihan'},
15+
{id: 29558475, name: 'Rinne', link: 'https://github.com/OharaRinneY'},
16+
{id: 35133371, name: 'Sanhei', link: 'https://github.com/Sanheiii'},
17+
{id: 88378875, name: 'TCPL', link: 'https://github.com/xuanxuan-0403'},
18+
{id: 105532072, name: '天梯Tyuikl', link: 'https://github.com/tyuikl32'}
1919
];
2020
shuffledDevelopers: Developer[];
2121
sponsors: Sponsor[];
@@ -37,24 +37,24 @@ export class ContributorsComponent implements OnInit {
3737
if (resp.SponsorsList) {
3838
const sponsors: Sponsor[] = resp.SponsorsList;
3939
const sortedSponsors = sponsors.sort((a, b) => {
40-
const totalMoneyA = a.CurrentPlan && a.CurrentPlan !== "" ? a.TotalMoney * 2 : a.TotalMoney;
41-
const totalMoneyB = b.CurrentPlan && b.CurrentPlan !== "" ? b.TotalMoney * 2 : b.TotalMoney;
40+
const totalMoneyA = a.CurrentPlan && a.CurrentPlan !== '' ? a.TotalMoney * 2 : a.TotalMoney;
41+
const totalMoneyB = b.CurrentPlan && b.CurrentPlan !== '' ? b.TotalMoney * 2 : b.TotalMoney;
4242
return totalMoneyB - totalMoneyA;
4343
});
4444
this.sponsors = sortedSponsors;
4545
}
4646
},
47-
error =>{
47+
error => {
4848

4949
}
50-
)
50+
);
5151
}
5252
}
5353

5454
interface Developer{
55-
id: number,
56-
name: String,
57-
link: String
55+
id: number;
56+
name: string;
57+
link: string;
5858
}
5959

6060
interface Sponsor {

0 commit comments

Comments
 (0)