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 {
|
||||
req.respond(
|
||||
{
|
||||
body: "Can not find username",
|
||||
body: "Can not find a query parameter: username",
|
||||
status: 404,
|
||||
headers: new Headers({ "Content-Type": "text" }),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export class Card {
|
|||
}
|
||||
this.height = this.panelSize * panelHeightCount;
|
||||
|
||||
const renderdTrophy = trophyList.reduce(
|
||||
const renderedTrophy = trophyList.reduce(
|
||||
(sum: string, trophy: Trophy, i: number) => {
|
||||
const x = this.panelSize * (i % this.maxPanelWidthCount);
|
||||
const y = this.panelSize * Math.floor(i / this.maxPanelWidthCount);
|
||||
|
|
@ -52,7 +52,7 @@ export class Card {
|
|||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
${renderdTrophy}
|
||||
${renderedTrophy}
|
||||
</svg>`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ export abstract class Trophy {
|
|||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect
|
||||
data-testid="card-bg"
|
||||
x="0.5"
|
||||
y="0.5"
|
||||
rx="4.5"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue