Merge branch 'RayhanADev-patch-1'

This commit is contained in:
ryo-ma 2021-05-02 22:59:47 +09:00
commit f8d8599d40
2 changed files with 19 additions and 5 deletions

View file

@ -181,7 +181,7 @@ Available themes.
| [juicyfresh](#juicyfresh) |
| [buddhism](#buddhism) |
| [oldie](#oldie) |
| [radical](#radical) |
### 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">
</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

View file

@ -48,7 +48,7 @@ export class GithubAPIClient {
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
totalCount
nodes {
languages(first: 1, orderBy: {direction:DESC, field: SIZE}) {
languages(first: 3, orderBy: {direction:DESC, field: SIZE}) {
nodes {
name
}
@ -85,8 +85,12 @@ export class GithubAPIClient {
const languages = new Set<string>();
userData.repositories.nodes.forEach((node: Repository) => {
if (node.languages.nodes[0] != undefined) {
languages.add(node.languages.nodes[0].name);
if (node.languages.nodes != undefined) {
node.languages.nodes.forEach((node: Language) => {
if (node != undefined) {
languages.add(node.name);
}
});
}
});
const durationTime = new Date().getTime() -
@ -108,7 +112,7 @@ export class GithubAPIClient {
languages.size,
durationYear,
ancientAccount,
joined2020
joined2020,
);
return userInfo;
}