mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix typo
This commit is contained in:
parent
894d829eec
commit
76a68918ad
3 changed files with 3 additions and 4 deletions
2
index.ts
2
index.ts
|
|
@ -25,7 +25,7 @@ export default async (req: ServerRequest) => {
|
||||||
} else {
|
} else {
|
||||||
req.respond(
|
req.respond(
|
||||||
{
|
{
|
||||||
body: "Can not find username",
|
body: "Can not find a query parameter: username",
|
||||||
status: 404,
|
status: 404,
|
||||||
headers: new Headers({ "Content-Type": "text" }),
|
headers: new Headers({ "Content-Type": "text" }),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ export class Card {
|
||||||
}
|
}
|
||||||
this.height = this.panelSize * panelHeightCount;
|
this.height = this.panelSize * panelHeightCount;
|
||||||
|
|
||||||
const renderdTrophy = trophyList.reduce(
|
const renderedTrophy = trophyList.reduce(
|
||||||
(sum: string, trophy: Trophy, i: number) => {
|
(sum: string, trophy: Trophy, i: number) => {
|
||||||
const x = this.panelSize * (i % this.maxPanelWidthCount);
|
const x = this.panelSize * (i % this.maxPanelWidthCount);
|
||||||
const y = this.panelSize * Math.floor(i / this.maxPanelWidthCount);
|
const y = this.panelSize * Math.floor(i / this.maxPanelWidthCount);
|
||||||
|
|
@ -52,7 +52,7 @@ export class Card {
|
||||||
fill="none"
|
fill="none"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
${renderdTrophy}
|
${renderedTrophy}
|
||||||
</svg>`;
|
</svg>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ export abstract class Trophy {
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<rect
|
<rect
|
||||||
data-testid="card-bg"
|
|
||||||
x="0.5"
|
x="0.5"
|
||||||
y="0.5"
|
y="0.5"
|
||||||
rx="4.5"
|
rx="4.5"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue