Revert "Change base url"

This reverts commit 805065caaf.
This commit is contained in:
ryo-ma 2025-12-03 10:48:53 +09:00
parent 805065caaf
commit 90b4f138f8
2 changed files with 45 additions and 45 deletions

View file

@ -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. readme, change the `?username=` value to your GitHub's username.
``` ```
[![trophy](https://github-profile-trophy.com/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy) [![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)
``` ```
<p align="center"> <p align="center">
<img src="https://github-profile-trophy.com/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" /> <img src="https://github-profile-trophy.vercel.app/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" />
</p> </p>
## Use theme ## Use theme
@ -57,7 +57,7 @@ readme, change the `?username=` value to your GitHub's username.
Add optional parameter of the theme. Add optional parameter of the theme.
``` ```
[![trophy](https://github-profile-trophy.com/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy) [![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)
``` ```
<p align="center"> <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. You can filter the display by specifying the titles of trophy.
``` ```
https://github-profile-trophy.com/?username=ryo-ma&title=Followers https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers
``` ```
<p align="center"> <p align="center">
@ -130,7 +130,7 @@ https://github-profile-trophy.com/?username=ryo-ma&title=Followers
If you want to specify multiple titles. If you want to specify multiple titles.
``` ```
https://github-profile-trophy.com/?username=ryo-ma&title=Stars,Followers https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers
``` ```
<p align="center"> <p align="center">
@ -140,7 +140,7 @@ https://github-profile-trophy.com/?username=ryo-ma&title=Stars,Followers
You can also exclude the trophies you don't want to display. You can also exclude the trophies you don't want to display.
``` ```
https://github-profile-trophy.com/?username=ryo-ma&title=-Stars,-Followers https://github-profile-trophy.vercel.app/?username=ryo-ma&title=-Stars,-Followers
``` ```
## Filter by ranks ## 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` `Available values: SECRET SSS SS S AAA AA A B C`
``` ```
https://github-profile-trophy.com/?username=ryo-ma&rank=S https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S
``` ```
<p align="center"> <p align="center">
@ -159,7 +159,7 @@ https://github-profile-trophy.com/?username=ryo-ma&rank=S
If you want to specify multiple ranks. If you want to specify multiple ranks.
``` ```
https://github-profile-trophy.com/?username=ryo-ma&rank=S,AAA https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA
``` ```
<p align="center"> <p align="center">
@ -169,7 +169,7 @@ https://github-profile-trophy.com/?username=ryo-ma&rank=S,AAA
You can also exclude ranks. You can also exclude ranks.
``` ```
https://github-profile-trophy.com/?username=ryo-ma&rank=-C,-B https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=-C,-B
``` ```
**NOTE: Since `UNKNOWN` is denoted by `?`, in order to include or exclude it you **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 Restrict only row
``` ```
https://github-profile-trophy.com/?username=ryo-ma&row=2 https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2
``` ```
Restrict only column Restrict only column
``` ```
https://github-profile-trophy.com/?username=ryo-ma&column=2 https://github-profile-trophy.vercel.app/?username=ryo-ma&column=2
``` ```
Restrict row & column Restrict row & column
``` ```
https://github-profile-trophy.com/?username=ryo-ma&row=2&column=3 https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3
``` ```
<p align="center"> <p align="center">
@ -208,7 +208,7 @@ https://github-profile-trophy.com/?username=ryo-ma&row=2&column=3
Adaptive column Adaptive column
``` ```
https://github-profile-trophy.com/?username=ryo-ma&column=-1 https://github-profile-trophy.vercel.app/?username=ryo-ma&column=-1
``` ```
You can set `column` to `-1` to adapt the width to the number of trophies, the You can set `column` to `-1` to adapt the width to the number of trophies, the
@ -248,7 +248,7 @@ Available themes.
### flat ### flat
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=flat https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat
``` ```
<p align="center"> <p align="center">
@ -258,7 +258,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=flat
### onedark ### onedark
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=onedark https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark
``` ```
<p align="center"> <p align="center">
@ -268,7 +268,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=onedark
### gruvbox ### gruvbox
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=gruvbox https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox
``` ```
<p align="center"> <p align="center">
@ -278,7 +278,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=gruvbox
### dracula ### dracula
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=dracula https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula
``` ```
<p align="center"> <p align="center">
@ -288,7 +288,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=dracula
### monokai ### monokai
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=monokai https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai
``` ```
<p align="center"> <p align="center">
@ -298,7 +298,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=monokai
### chalk ### chalk
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=chalk https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk
``` ```
<p align="center"> <p align="center">
@ -308,7 +308,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=chalk
### nord ### nord
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=nord https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord
``` ```
<p align="center"> <p align="center">
@ -318,7 +318,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=nord
### alduin ### alduin
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=alduin https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin
``` ```
<p align="center"> <p align="center">
@ -328,7 +328,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=alduin
### darkhub ### darkhub
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=darkhub https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub
``` ```
<p align="center"> <p align="center">
@ -338,7 +338,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=darkhub
### juicyfresh ### juicyfresh
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=juicyfresh https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh
``` ```
<p align="center"> <p align="center">
@ -348,7 +348,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=juicyfresh
### buddhism ### buddhism
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=buddhism https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism
``` ```
<p align="center"> <p align="center">
@ -358,7 +358,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=buddhism
### oldie ### oldie
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=oldie https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
``` ```
<p align="center"> <p align="center">
@ -368,7 +368,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=oldie
### radical ### radical
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=radical https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
``` ```
<p align="center"> <p align="center">
@ -378,7 +378,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=radical
### onestar ### onestar
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=onestar https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar
``` ```
<p align="center"> <p align="center">
@ -388,7 +388,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=onestar
### discord ### discord
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=discord https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord
``` ```
<p align="center"> <p align="center">
@ -398,7 +398,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=discord
### algolia ### algolia
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=algolia https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia
``` ```
<p align="center"> <p align="center">
@ -408,7 +408,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=algolia
### gitdimmed ### gitdimmed
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=gitdimmed https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed
``` ```
<p align="center"> <p align="center">
@ -418,7 +418,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=gitdimmed
### tokyonight ### tokyonight
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=tokyonight https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight
``` ```
<p align="center"> <p align="center">
@ -428,7 +428,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=tokyonight
### matrix ### matrix
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=matrix https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix
``` ```
<p align="center"> <p align="center">
@ -438,7 +438,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=matrix
### apprentice ### apprentice
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=apprentice https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice
``` ```
<p align="center"> <p align="center">
@ -448,7 +448,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=apprentice
### dark_dimmed ### dark_dimmed
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_dimmed https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed
``` ```
<p align="center"> <p align="center">
@ -458,7 +458,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=dark_dimmed
### dark_lover ### dark_lover
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_lover https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover
``` ```
<p align="center"> <p align="center">
@ -468,7 +468,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=dark_lover
### kimbie_dark ### kimbie_dark
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=kimbie_dark https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark
``` ```
<p align="center"> <p align="center">
@ -478,7 +478,7 @@ https://github-profile-trophy.com/?username=ryo-ma&theme=kimbie_dark
### aura ### aura
``` ```
https://github-profile-trophy.com/?username=ryo-ma&theme=aura https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=aura
``` ```
<p align="center"> <p align="center">
@ -492,7 +492,7 @@ You can put a margin in the width between trophies.\
`Default: margin-w=0` `Default: margin-w=0`
``` ```
https://github-profile-trophy.com/?username=ryo-ma&margin-w=15 https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-w=15
``` ```
<p align="center"> <p align="center">
@ -506,7 +506,7 @@ You can put a margin in the height between trophies.\
`Default: margin-h=0` `Default: margin-h=0`
``` ```
https://github-profile-trophy.com/?username=ryo-ma&margin-h=15 https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15
``` ```
<p align="center"> <p align="center">
@ -516,7 +516,7 @@ https://github-profile-trophy.com/?username=ryo-ma&margin-h=15
## Example layout ## Example layout
``` ```
https://github-profile-trophy.com/?username=ryo-ma&column=3&margin-w=15&margin-h=15 https://github-profile-trophy.vercel.app/?username=ryo-ma&column=3&margin-w=15&margin-h=15
``` ```
<p align="center"> <p align="center">
@ -530,7 +530,7 @@ You can turn the background transparent.\
`Default: no-bg=false` `Default: no-bg=false`
``` ```
https://github-profile-trophy.com/?username=ryo-ma&no-bg=true https://github-profile-trophy.vercel.app/?username=ryo-ma&no-bg=true
``` ```
<p align="center"> <p align="center">
@ -544,7 +544,7 @@ You can hide the frames around the trophies.\
`Default: no-frame=false` `Default: no-frame=false`
``` ```
https://github-profile-trophy.com/?username=ryo-ma&no-frame=true https://github-profile-trophy.vercel.app/?username=ryo-ma&no-frame=true
``` ```
<p align="center"> <p align="center">

View file

@ -43,7 +43,7 @@ async function app(req: Request): Promise<Response> {
const column = params.getNumberValue("column", CONSTANTS.DEFAULT_MAX_COLUMN); const column = params.getNumberValue("column", CONSTANTS.DEFAULT_MAX_COLUMN);
const themeParam: string = params.getStringValue("theme", "default"); const themeParam: string = params.getStringValue("theme", "default");
if (username === null) { if (username === null) {
const base = 'https://github-profile-trophy.com'; const [base] = req.url.split("?");
const error = new Error400( const error = new Error400(
`<section> `<section>
<div> <div>
@ -59,7 +59,7 @@ async function app(req: Request): Promise<Response> {
<div> <div>
<h2>You can use this form: </h2> <h2>You can use this form: </h2>
<p>Enter your username and click get trophies</p> <p>Enter your username and click get trophies</p>
<form action="https://github-profile-trophy.com/" method="get"> <form action="https://github-profile-trophy.vercel.app/" method="get">
<label for="username">GitHub Username</label> <label for="username">GitHub Username</label>
<input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required> <input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required>
<label for="theme">Theme (Optional)</label> <label for="theme">Theme (Optional)</label>
@ -73,7 +73,7 @@ async function app(req: Request): Promise<Response> {
</form> </form>
</div> </div>
<script> <script>
const base = "https://github-profile-trophy.com/"; const base = "https://github-profile-trophy.vercel.app/";
const button = document.querySelector("button"); const button = document.querySelector("button");
const input = document.querySelector("input"); const input = document.querySelector("input");
const temporarySpan = document.querySelector("#temporary-span"); const temporarySpan = document.querySelector("#temporary-span");