This commit is contained in:
ryo-ma 2020-08-24 02:23:35 +09:00
parent 894d829eec
commit 76a68918ad
3 changed files with 3 additions and 4 deletions

View file

@ -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" }),
}, },

View file

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

View file

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