mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Change base url
This commit is contained in:
parent
4047b3725a
commit
805065caaf
2 changed files with 45 additions and 45 deletions
84
README.md
84
README.md
|
|
@ -45,11 +45,11 @@ Add the following code to your readme. When pasting the code into your profile's
|
|||
readme, change the `?username=` value to your GitHub's username.
|
||||
|
||||
```
|
||||
[](https://github.com/ryo-ma/github-profile-trophy)
|
||||
[](https://github.com/ryo-ma/github-profile-trophy)
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
<img src="https://github-profile-trophy.vercel.app/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" />
|
||||
<img src="https://github-profile-trophy.com/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" />
|
||||
</p>
|
||||
|
||||
## Use theme
|
||||
|
|
@ -57,7 +57,7 @@ readme, change the `?username=` value to your GitHub's username.
|
|||
Add optional parameter of the theme.
|
||||
|
||||
```
|
||||
[](https://github.com/ryo-ma/github-profile-trophy)
|
||||
[](https://github.com/ryo-ma/github-profile-trophy)
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -120,7 +120,7 @@ conditions, I will consider adding a trophy. I am waiting for contributions.
|
|||
You can filter the display by specifying the titles of trophy.
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers
|
||||
https://github-profile-trophy.com/?username=ryo-ma&title=Followers
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -130,7 +130,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers
|
|||
If you want to specify multiple titles.
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers
|
||||
https://github-profile-trophy.com/?username=ryo-ma&title=Stars,Followers
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -140,7 +140,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers
|
|||
You can also exclude the trophies you don't want to display.
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=-Stars,-Followers
|
||||
https://github-profile-trophy.com/?username=ryo-ma&title=-Stars,-Followers
|
||||
```
|
||||
|
||||
## Filter by ranks
|
||||
|
|
@ -149,7 +149,7 @@ You can filter the display by specifying the ranks.\
|
|||
`Available values: SECRET SSS SS S AAA AA A B C`
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S
|
||||
https://github-profile-trophy.com/?username=ryo-ma&rank=S
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -159,7 +159,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S
|
|||
If you want to specify multiple ranks.
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA
|
||||
https://github-profile-trophy.com/?username=ryo-ma&rank=S,AAA
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -169,7 +169,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA
|
|||
You can also exclude ranks.
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=-C,-B
|
||||
https://github-profile-trophy.com/?username=ryo-ma&rank=-C,-B
|
||||
```
|
||||
|
||||
**NOTE: Since `UNKNOWN` is denoted by `?`, in order to include or exclude it you
|
||||
|
|
@ -186,19 +186,19 @@ Trophy will be hidden if it exceeds the range of both row and column.
|
|||
Restrict only row
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2
|
||||
https://github-profile-trophy.com/?username=ryo-ma&row=2
|
||||
```
|
||||
|
||||
Restrict only column
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=2
|
||||
https://github-profile-trophy.com/?username=ryo-ma&column=2
|
||||
```
|
||||
|
||||
Restrict row & column
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3
|
||||
https://github-profile-trophy.com/?username=ryo-ma&row=2&column=3
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -208,7 +208,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3
|
|||
Adaptive column
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=-1
|
||||
https://github-profile-trophy.com/?username=ryo-ma&column=-1
|
||||
```
|
||||
|
||||
You can set `column` to `-1` to adapt the width to the number of trophies, the
|
||||
|
|
@ -248,7 +248,7 @@ Available themes.
|
|||
### flat
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=flat
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -258,7 +258,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat
|
|||
### onedark
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=onedark
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -268,7 +268,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark
|
|||
### gruvbox
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=gruvbox
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -278,7 +278,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox
|
|||
### dracula
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=dracula
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -288,7 +288,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula
|
|||
### monokai
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=monokai
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -298,7 +298,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai
|
|||
### chalk
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=chalk
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -308,7 +308,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk
|
|||
### nord
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=nord
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -318,7 +318,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord
|
|||
### alduin
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=alduin
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -328,7 +328,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin
|
|||
### darkhub
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=darkhub
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -338,7 +338,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub
|
|||
### juicyfresh
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=juicyfresh
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -348,7 +348,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh
|
|||
### buddhism
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=buddhism
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -358,7 +358,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism
|
|||
### oldie
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=oldie
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -368,7 +368,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
|
|||
### radical
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=radical
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -378,7 +378,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
|
|||
### onestar
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=onestar
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -388,7 +388,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar
|
|||
### discord
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=discord
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -398,7 +398,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord
|
|||
### algolia
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=algolia
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -408,7 +408,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia
|
|||
### gitdimmed
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=gitdimmed
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -418,7 +418,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed
|
|||
### tokyonight
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=tokyonight
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -428,7 +428,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight
|
|||
### matrix
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=matrix
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -438,7 +438,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix
|
|||
### apprentice
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=apprentice
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -448,7 +448,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice
|
|||
### dark_dimmed
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_dimmed
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -458,7 +458,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed
|
|||
### dark_lover
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_lover
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -468,7 +468,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover
|
|||
### kimbie_dark
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=kimbie_dark
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -478,7 +478,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark
|
|||
### aura
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=aura
|
||||
https://github-profile-trophy.com/?username=ryo-ma&theme=aura
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -492,7 +492,7 @@ You can put a margin in the width between trophies.\
|
|||
`Default: margin-w=0`
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-w=15
|
||||
https://github-profile-trophy.com/?username=ryo-ma&margin-w=15
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -506,7 +506,7 @@ You can put a margin in the height between trophies.\
|
|||
`Default: margin-h=0`
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15
|
||||
https://github-profile-trophy.com/?username=ryo-ma&margin-h=15
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -516,7 +516,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15
|
|||
## Example layout
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=3&margin-w=15&margin-h=15
|
||||
https://github-profile-trophy.com/?username=ryo-ma&column=3&margin-w=15&margin-h=15
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -530,7 +530,7 @@ You can turn the background transparent.\
|
|||
`Default: no-bg=false`
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&no-bg=true
|
||||
https://github-profile-trophy.com/?username=ryo-ma&no-bg=true
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
@ -544,7 +544,7 @@ You can hide the frames around the trophies.\
|
|||
`Default: no-frame=false`
|
||||
|
||||
```
|
||||
https://github-profile-trophy.vercel.app/?username=ryo-ma&no-frame=true
|
||||
https://github-profile-trophy.com/?username=ryo-ma&no-frame=true
|
||||
```
|
||||
|
||||
<p align="center">
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ async function app(req: Request): Promise<Response> {
|
|||
const column = params.getNumberValue("column", CONSTANTS.DEFAULT_MAX_COLUMN);
|
||||
const themeParam: string = params.getStringValue("theme", "default");
|
||||
if (username === null) {
|
||||
const [base] = req.url.split("?");
|
||||
const base = 'https://github-profile-trophy.com';
|
||||
const error = new Error400(
|
||||
`<section>
|
||||
<div>
|
||||
|
|
@ -59,7 +59,7 @@ async function app(req: Request): Promise<Response> {
|
|||
<div>
|
||||
<h2>You can use this form: </h2>
|
||||
<p>Enter your username and click get trophies</p>
|
||||
<form action="https://github-profile-trophy.vercel.app/" method="get">
|
||||
<form action="https://github-profile-trophy.com/" method="get">
|
||||
<label for="username">GitHub Username</label>
|
||||
<input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required>
|
||||
<label for="theme">Theme (Optional)</label>
|
||||
|
|
@ -73,7 +73,7 @@ async function app(req: Request): Promise<Response> {
|
|||
</form>
|
||||
</div>
|
||||
<script>
|
||||
const base = "https://github-profile-trophy.vercel.app/";
|
||||
const base = "https://github-profile-trophy.com/";
|
||||
const button = document.querySelector("button");
|
||||
const input = document.querySelector("input");
|
||||
const temporarySpan = document.querySelector("#temporary-span");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue