From e4ad955ae346e740cbec485a571a838ccc9100ed Mon Sep 17 00:00:00 2001 From: Lumm1t Date: Sun, 14 Feb 2021 19:57:08 +0100 Subject: [PATCH 1/5] chore(gitignore): ignore .idea folder --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a5c8936..3c497e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode -.env \ No newline at end of file +.env +.idea From 560a8ab98303f71b46e10ea9c228838058dd2542 Mon Sep 17 00:00:00 2001 From: Lumm1t Date: Sun, 14 Feb 2021 19:57:29 +0100 Subject: [PATCH 2/5] fix(typo): marginHight -> marginHeight --- src/card.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/card.ts b/src/card.ts index 8d8919f..3a20b91 100644 --- a/src/card.ts +++ b/src/card.ts @@ -26,7 +26,7 @@ export class Card { private maxRow: number, private panelSize: number, private marginWidth: number, - private marginHight: number, + private marginHeight: number, private noBackground: boolean, private noFrame: boolean, ) { @@ -85,7 +85,7 @@ export class Card { if (row > this.maxRow) { row = this.maxRow; } - this.height = this.panelSize * row + this.marginHight * (row - 1); + this.height = this.panelSize * row + this.marginHeight * (row - 1); // Join all trophy const renderedTrophy = trophyList.reduce( @@ -93,7 +93,7 @@ export class Card { const currentColumn = i % this.maxColumn; const currentRow = Math.floor(i / this.maxColumn); const x = this.panelSize * currentColumn + this.marginWidth * currentColumn; - const y = this.panelSize * currentRow + this.marginHight * currentRow; + const y = this.panelSize * currentRow + this.marginHeight * currentRow; return sum + trophy.render(theme, x, y, this.panelSize, this.noBackground, this.noFrame); }, "", From 02f861a50b10a8e40a12322ef4e09d8105ee1e1b Mon Sep 17 00:00:00 2001 From: Lumm1t Date: Sun, 14 Feb 2021 19:59:51 +0100 Subject: [PATCH 3/5] feat(icons): remove deprecated HTML attribute --- src/icons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/icons.ts b/src/icons.ts index 4629f2d..ff32626 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -2,7 +2,7 @@ import { RANK } from "./utils.ts"; import { Theme } from "./theme.ts"; const leafIcon = (laurel: string): string => { - return ` + return ` Created by potrace 1.15, written by Peter Selinger 2001-2017 From d1afb967cd1d5d736ba155566c9415d1423ca313 Mon Sep 17 00:00:00 2001 From: Lumm1t Date: Sun, 14 Feb 2021 20:01:22 +0100 Subject: [PATCH 4/5] fix(typo): splitedURL -> splittedURL --- src/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index bfce4f6..e0a1a2c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -38,11 +38,11 @@ export class CustomURLSearchParams extends URLSearchParams { } export function parseParams(req: ServerRequest): CustomURLSearchParams { - const splitedURL = req.url.split("?"); - if (splitedURL.length < 2) { + const splittedURL = req.url.split("?"); + if (splittedURL.length < 2) { return new CustomURLSearchParams(); } - return new CustomURLSearchParams(splitedURL[1]); + return new CustomURLSearchParams(splittedURL[1]); } export function abridgeScore(score: number): string { From ae47c57a17751860ef9d25f82da73953cfe213a4 Mon Sep 17 00:00:00 2001 From: Lumm1t Date: Mon, 15 Feb 2021 14:07:28 +0100 Subject: [PATCH 5/5] fix(typo): maxWidht -> maxWidth --- src/icons.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icons.ts b/src/icons.ts index ff32626..8e7dbf7 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -31,7 +31,7 @@ export const getNextRankBar = ( percentage: number, color: string, ): string => { - const maxWidht = 80; + const maxWidth = 80; return `