From 805065caaf21c75e9c5d0dd3efffa3bc36325be4 Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Wed, 3 Dec 2025 10:33:37 +0900 Subject: [PATCH] Change base url --- README.md | 84 ++++++++++++++++++++++++++-------------------------- api/index.ts | 6 ++-- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 69270a4..3d1f79a 100644 --- a/README.md +++ b/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. ``` -[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy) +[![trophy](https://github-profile-trophy.com/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy) ```

- +

## Use theme @@ -57,7 +57,7 @@ readme, change the `?username=` value to your GitHub's username. Add optional parameter of the theme. ``` -[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy) +[![trophy](https://github-profile-trophy.com/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy) ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

@@ -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 ```

diff --git a/api/index.ts b/api/index.ts index 6f39b93..18dca26 100644 --- a/api/index.ts +++ b/api/index.ts @@ -43,7 +43,7 @@ async function app(req: Request): Promise { 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( `

@@ -59,7 +59,7 @@ async function app(req: Request): Promise {

You can use this form:

Enter your username and click get trophies

-
+ @@ -73,7 +73,7 @@ async function app(req: Request): Promise {