mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Merge branch 'RayhanADev-patch-1'
This commit is contained in:
commit
f8d8599d40
2 changed files with 19 additions and 5 deletions
12
README.md
12
README.md
|
|
@ -181,7 +181,7 @@ Available themes.
|
||||||
| [juicyfresh](#juicyfresh) |
|
| [juicyfresh](#juicyfresh) |
|
||||||
| [buddhism](#buddhism) |
|
| [buddhism](#buddhism) |
|
||||||
| [oldie](#oldie) |
|
| [oldie](#oldie) |
|
||||||
|
| [radical](#radical) |
|
||||||
|
|
||||||
### flat
|
### flat
|
||||||
|
|
||||||
|
|
@ -303,6 +303,16 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
|
||||||
<img width="660" src="https://user-images.githubusercontent.com/6661165/113709581-a0a5d380-971d-11eb-8583-770dc4091ebf.png">
|
<img width="660" src="https://user-images.githubusercontent.com/6661165/113709581-a0a5d380-971d-11eb-8583-770dc4091ebf.png">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
### radical
|
||||||
|
|
||||||
|
```
|
||||||
|
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
|
||||||
|
```
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img width="660" src="https://user-images.githubusercontent.com/6661165/116633521-adbc8800-a994-11eb-97c4-e45a32721491.png">
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
## Margin Width
|
## Margin Width
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export class GithubAPIClient {
|
||||||
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
|
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
|
||||||
totalCount
|
totalCount
|
||||||
nodes {
|
nodes {
|
||||||
languages(first: 1, orderBy: {direction:DESC, field: SIZE}) {
|
languages(first: 3, orderBy: {direction:DESC, field: SIZE}) {
|
||||||
nodes {
|
nodes {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
|
@ -85,8 +85,12 @@ export class GithubAPIClient {
|
||||||
|
|
||||||
const languages = new Set<string>();
|
const languages = new Set<string>();
|
||||||
userData.repositories.nodes.forEach((node: Repository) => {
|
userData.repositories.nodes.forEach((node: Repository) => {
|
||||||
if (node.languages.nodes[0] != undefined) {
|
if (node.languages.nodes != undefined) {
|
||||||
languages.add(node.languages.nodes[0].name);
|
node.languages.nodes.forEach((node: Language) => {
|
||||||
|
if (node != undefined) {
|
||||||
|
languages.add(node.name);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const durationTime = new Date().getTime() -
|
const durationTime = new Date().getTime() -
|
||||||
|
|
@ -108,7 +112,7 @@ export class GithubAPIClient {
|
||||||
languages.size,
|
languages.size,
|
||||||
durationYear,
|
durationYear,
|
||||||
ancientAccount,
|
ancientAccount,
|
||||||
joined2020
|
joined2020,
|
||||||
);
|
);
|
||||||
return userInfo;
|
return userInfo;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue