Skip to content

Commit

Permalink
style: prettier format (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim authored Nov 4, 2023
1 parent 1e738c7 commit 861acd8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
37 changes: 15 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ Use `&theme=THEME_NAME` parameter like so:
![GitHub Stats](https://gh-readme-profile.vercel.app/api?username=FajarKim&theme=dark)
```
<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=dark)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=dark" alt="GitHub Stats"/></a>
</details>

#### All inbuilt themes
Expand Down Expand Up @@ -96,9 +95,8 @@ We have included a `transparent` theme that has a transparent background. This t
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=transparent)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=transparent" alt="GitHub Stats"/></a>
</details>

#### Add transparent alpha channel to a themes `bg_color`
Expand All @@ -109,9 +107,8 @@ You can use the `bg_color` parameter to make any of the available themes transpa
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&bg_color=00000000)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&bg_color=00000000" alt="GitHub Stats"/></a>
</details>

#### Use GitHub's theme context tag
Expand All @@ -123,10 +120,9 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp
```

<details>
<summary>Show Example</summary>

[![GitHub stats-Dark](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=dark#gh-dark-mode-only)](https://github.com/FajarKim/github-readme-profile#gh-dark-mode-only)
[![GitHub stats-Light](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=default#gh-light-mode-only)](https://github.com/FajarKim/github-readme-profile#gh-light-mode-only)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile#gh-dark-mode-only"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=dark#gh-dark-mode-only" alt="GitHub Stats-Dark"/></a>
<a href="https://github.com/FajarKim/github-readme-profile#gh-light-mode-only"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&theme=default#gh-light-mode-only" alt="GitHub Stats-Light"/></a>
</details>

#### Hiding individual stats
Expand All @@ -141,9 +137,8 @@ contributed`
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-beta.vercel.app/api?username=FajarKim&hide=repos,forks,prs_merged)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-beta.vercel.app/api?username=FajarKim&hide=repos,forks,prs_merged" alt="GitHub Stats"/></a>
</details>

#### Showing additional individual stats
Expand All @@ -157,9 +152,8 @@ You can pass a query parameter `&show=` to show any specific additional stats wi
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-beta.vercel.app/api?username=FajarKim&show=reviews,issues_closed,discussions_answered)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-beta.vercel.app/api?username=FajarKim&show=reviews,issues_closed,discussions_started,discussions_answered" alt="GitHub Stats"/></a>
</details>

#### Available locales
Expand Down Expand Up @@ -201,9 +195,8 @@ The locale code added to file should be a 2-letter abbreviation from [ISO 639-1]
```

<details>
<summary>Show Example</summary>

[![GitHub Stats](https://github-readme-profile-theta.vercel.app/api?username=FajarKim&locale=id)](https://github.com/FajarKim/github-readme-profile)
<summary>Show Example</summary>
<a href="https://github.com/FajarKim/github-readme-profile"><img src="https://github-readme-profile-theta.vercel.app/api?username=FajarKim&locale=id" alt="GitHub Stats"/></a>
</details>

## 📑 License
Expand Down
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default async function readmeStats(req: any, res: any): Promise<any> {
if (!isValidGradient(uiConfig.bgColor)) {
if (!isValidHexColor(uiConfig.bgColor)) {
throw new Error("Enter a valid hex color code");
};
}
}

const fetchStats = await getData(username);
Expand Down

0 comments on commit 861acd8

Please sign in to comment.