Skip to content

Commit 00afc44

Browse files
committed
Change base url
1 parent 4047b37 commit 00afc44

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ Add the following code to your readme. When pasting the code into your profile's
4545
readme, change the `?username=` value to your GitHub's username.
4646

4747
```
48-
[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)
48+
[![trophy](https://github-profile-trophy.com/?username=ryo-ma)](https://github.com/ryo-ma/github-profile-trophy)
4949
```
5050

5151
<p align="center">
52-
<img src="https://github-profile-trophy.vercel.app/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" />
52+
<img src="https://github-profile-trophy.com/?username=ryo-ma&column=8&rank=SSS,SS,S,AAA,AA,A,B,C" />
5353
</p>
5454

5555
## Use theme
5656

5757
Add optional parameter of the theme.
5858

5959
```
60-
[![trophy](https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)
60+
[![trophy](https://github-profile-trophy.com/?username=ryo-ma&theme=onedark)](https://github.com/ryo-ma/github-profile-trophy)
6161
```
6262

6363
<p align="center">
@@ -120,7 +120,7 @@ conditions, I will consider adding a trophy. I am waiting for contributions.
120120
You can filter the display by specifying the titles of trophy.
121121

122122
```
123-
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers
123+
https://github-profile-trophy.com/?username=ryo-ma&title=Followers
124124
```
125125

126126
<p align="center">
@@ -130,7 +130,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Followers
130130
If you want to specify multiple titles.
131131

132132
```
133-
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers
133+
https://github-profile-trophy.com/?username=ryo-ma&title=Stars,Followers
134134
```
135135

136136
<p align="center">
@@ -140,7 +140,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&title=Stars,Followers
140140
You can also exclude the trophies you don't want to display.
141141

142142
```
143-
https://github-profile-trophy.vercel.app/?username=ryo-ma&title=-Stars,-Followers
143+
https://github-profile-trophy.com/?username=ryo-ma&title=-Stars,-Followers
144144
```
145145

146146
## Filter by ranks
@@ -149,7 +149,7 @@ You can filter the display by specifying the ranks.\
149149
`Available values: SECRET SSS SS S AAA AA A B C`
150150

151151
```
152-
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S
152+
https://github-profile-trophy.com/?username=ryo-ma&rank=S
153153
```
154154

155155
<p align="center">
@@ -159,7 +159,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S
159159
If you want to specify multiple ranks.
160160

161161
```
162-
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA
162+
https://github-profile-trophy.com/?username=ryo-ma&rank=S,AAA
163163
```
164164

165165
<p align="center">
@@ -169,7 +169,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=S,AAA
169169
You can also exclude ranks.
170170

171171
```
172-
https://github-profile-trophy.vercel.app/?username=ryo-ma&rank=-C,-B
172+
https://github-profile-trophy.com/?username=ryo-ma&rank=-C,-B
173173
```
174174

175175
**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.
186186
Restrict only row
187187

188188
```
189-
https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2
189+
https://github-profile-trophy.com/?username=ryo-ma&row=2
190190
```
191191

192192
Restrict only column
193193

194194
```
195-
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=2
195+
https://github-profile-trophy.com/?username=ryo-ma&column=2
196196
```
197197

198198
Restrict row & column
199199

200200
```
201-
https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3
201+
https://github-profile-trophy.com/?username=ryo-ma&row=2&column=3
202202
```
203203

204204
<p align="center">
@@ -208,7 +208,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&row=2&column=3
208208
Adaptive column
209209

210210
```
211-
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=-1
211+
https://github-profile-trophy.com/?username=ryo-ma&column=-1
212212
```
213213

214214
You can set `column` to `-1` to adapt the width to the number of trophies, the
@@ -248,7 +248,7 @@ Available themes.
248248
### flat
249249

250250
```
251-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat
251+
https://github-profile-trophy.com/?username=ryo-ma&theme=flat
252252
```
253253

254254
<p align="center">
@@ -258,7 +258,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=flat
258258
### onedark
259259

260260
```
261-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark
261+
https://github-profile-trophy.com/?username=ryo-ma&theme=onedark
262262
```
263263

264264
<p align="center">
@@ -268,7 +268,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onedark
268268
### gruvbox
269269

270270
```
271-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox
271+
https://github-profile-trophy.com/?username=ryo-ma&theme=gruvbox
272272
```
273273

274274
<p align="center">
@@ -278,7 +278,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gruvbox
278278
### dracula
279279

280280
```
281-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula
281+
https://github-profile-trophy.com/?username=ryo-ma&theme=dracula
282282
```
283283

284284
<p align="center">
@@ -288,7 +288,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dracula
288288
### monokai
289289

290290
```
291-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai
291+
https://github-profile-trophy.com/?username=ryo-ma&theme=monokai
292292
```
293293

294294
<p align="center">
@@ -298,7 +298,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=monokai
298298
### chalk
299299

300300
```
301-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk
301+
https://github-profile-trophy.com/?username=ryo-ma&theme=chalk
302302
```
303303

304304
<p align="center">
@@ -308,7 +308,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=chalk
308308
### nord
309309

310310
```
311-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord
311+
https://github-profile-trophy.com/?username=ryo-ma&theme=nord
312312
```
313313

314314
<p align="center">
@@ -318,7 +318,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=nord
318318
### alduin
319319

320320
```
321-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin
321+
https://github-profile-trophy.com/?username=ryo-ma&theme=alduin
322322
```
323323

324324
<p align="center">
@@ -328,7 +328,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=alduin
328328
### darkhub
329329

330330
```
331-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub
331+
https://github-profile-trophy.com/?username=ryo-ma&theme=darkhub
332332
```
333333

334334
<p align="center">
@@ -338,7 +338,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=darkhub
338338
### juicyfresh
339339

340340
```
341-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh
341+
https://github-profile-trophy.com/?username=ryo-ma&theme=juicyfresh
342342
```
343343

344344
<p align="center">
@@ -348,7 +348,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=juicyfresh
348348
### buddhism
349349

350350
```
351-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism
351+
https://github-profile-trophy.com/?username=ryo-ma&theme=buddhism
352352
```
353353

354354
<p align="center">
@@ -358,7 +358,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=buddhism
358358
### oldie
359359

360360
```
361-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
361+
https://github-profile-trophy.com/?username=ryo-ma&theme=oldie
362362
```
363363

364364
<p align="center">
@@ -368,7 +368,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=oldie
368368
### radical
369369

370370
```
371-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
371+
https://github-profile-trophy.com/?username=ryo-ma&theme=radical
372372
```
373373

374374
<p align="center">
@@ -378,7 +378,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=radical
378378
### onestar
379379

380380
```
381-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar
381+
https://github-profile-trophy.com/?username=ryo-ma&theme=onestar
382382
```
383383

384384
<p align="center">
@@ -388,7 +388,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=onestar
388388
### discord
389389

390390
```
391-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord
391+
https://github-profile-trophy.com/?username=ryo-ma&theme=discord
392392
```
393393

394394
<p align="center">
@@ -398,7 +398,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=discord
398398
### algolia
399399

400400
```
401-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia
401+
https://github-profile-trophy.com/?username=ryo-ma&theme=algolia
402402
```
403403

404404
<p align="center">
@@ -408,7 +408,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=algolia
408408
### gitdimmed
409409

410410
```
411-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed
411+
https://github-profile-trophy.com/?username=ryo-ma&theme=gitdimmed
412412
```
413413

414414
<p align="center">
@@ -418,7 +418,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=gitdimmed
418418
### tokyonight
419419

420420
```
421-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight
421+
https://github-profile-trophy.com/?username=ryo-ma&theme=tokyonight
422422
```
423423

424424
<p align="center">
@@ -428,7 +428,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=tokyonight
428428
### matrix
429429

430430
```
431-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix
431+
https://github-profile-trophy.com/?username=ryo-ma&theme=matrix
432432
```
433433

434434
<p align="center">
@@ -438,7 +438,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=matrix
438438
### apprentice
439439

440440
```
441-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice
441+
https://github-profile-trophy.com/?username=ryo-ma&theme=apprentice
442442
```
443443

444444
<p align="center">
@@ -448,7 +448,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=apprentice
448448
### dark_dimmed
449449

450450
```
451-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed
451+
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_dimmed
452452
```
453453

454454
<p align="center">
@@ -458,7 +458,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_dimmed
458458
### dark_lover
459459

460460
```
461-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover
461+
https://github-profile-trophy.com/?username=ryo-ma&theme=dark_lover
462462
```
463463

464464
<p align="center">
@@ -468,7 +468,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=dark_lover
468468
### kimbie_dark
469469

470470
```
471-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark
471+
https://github-profile-trophy.com/?username=ryo-ma&theme=kimbie_dark
472472
```
473473

474474
<p align="center">
@@ -478,7 +478,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=kimbie_dark
478478
### aura
479479

480480
```
481-
https://github-profile-trophy.vercel.app/?username=ryo-ma&theme=aura
481+
https://github-profile-trophy.com/?username=ryo-ma&theme=aura
482482
```
483483

484484
<p align="center">
@@ -492,7 +492,7 @@ You can put a margin in the width between trophies.\
492492
`Default: margin-w=0`
493493

494494
```
495-
https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-w=15
495+
https://github-profile-trophy.com/?username=ryo-ma&margin-w=15
496496
```
497497

498498
<p align="center">
@@ -506,7 +506,7 @@ You can put a margin in the height between trophies.\
506506
`Default: margin-h=0`
507507

508508
```
509-
https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15
509+
https://github-profile-trophy.com/?username=ryo-ma&margin-h=15
510510
```
511511

512512
<p align="center">
@@ -516,7 +516,7 @@ https://github-profile-trophy.vercel.app/?username=ryo-ma&margin-h=15
516516
## Example layout
517517

518518
```
519-
https://github-profile-trophy.vercel.app/?username=ryo-ma&column=3&margin-w=15&margin-h=15
519+
https://github-profile-trophy.com/?username=ryo-ma&column=3&margin-w=15&margin-h=15
520520
```
521521

522522
<p align="center">
@@ -530,7 +530,7 @@ You can turn the background transparent.\
530530
`Default: no-bg=false`
531531

532532
```
533-
https://github-profile-trophy.vercel.app/?username=ryo-ma&no-bg=true
533+
https://github-profile-trophy.com/?username=ryo-ma&no-bg=true
534534
```
535535

536536
<p align="center">
@@ -544,7 +544,7 @@ You can hide the frames around the trophies.\
544544
`Default: no-frame=false`
545545

546546
```
547-
https://github-profile-trophy.vercel.app/?username=ryo-ma&no-frame=true
547+
https://github-profile-trophy.com/?username=ryo-ma&no-frame=true
548548
```
549549

550550
<p align="center">

api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function app(req: Request): Promise<Response> {
4343
const column = params.getNumberValue("column", CONSTANTS.DEFAULT_MAX_COLUMN);
4444
const themeParam: string = params.getStringValue("theme", "default");
4545
if (username === null) {
46-
const [base] = req.url.split("?");
46+
const [base] = 'https://github-profile-trophy.com';
4747
const error = new Error400(
4848
`<section>
4949
<div>
@@ -59,7 +59,7 @@ async function app(req: Request): Promise<Response> {
5959
<div>
6060
<h2>You can use this form: </h2>
6161
<p>Enter your username and click get trophies</p>
62-
<form action="https://github-profile-trophy.vercel.app/" method="get">
62+
<form action="https://github-profile-trophy.com/" method="get">
6363
<label for="username">GitHub Username</label>
6464
<input type="text" name="username" id="username" placeholder="Ex. gabriel-logan" required>
6565
<label for="theme">Theme (Optional)</label>
@@ -73,7 +73,7 @@ async function app(req: Request): Promise<Response> {
7373
</form>
7474
</div>
7575
<script>
76-
const base = "https://github-profile-trophy.vercel.app/";
76+
const base = "https://github-profile-trophy.com/";
7777
const button = document.querySelector("button");
7878
const input = document.querySelector("input");
7979
const temporarySpan = document.querySelector("#temporary-span");

0 commit comments

Comments
 (0)