mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Refactor index.ts
This commit is contained in:
parent
2e8118a4cd
commit
862406c006
1 changed files with 2 additions and 2 deletions
4
index.ts
4
index.ts
|
|
@ -13,10 +13,10 @@ export default async (req: ServerRequest) => {
|
|||
const column = params.getNumberValue("column", CONSTANTS.DEFAULT_MAX_COLUMN);
|
||||
const paddingWidth = params.getNumberValue("padding-w", CONSTANTS.DEFAULT_PADDING_W);
|
||||
const paddingHeight = params.getNumberValue("padding-h", CONSTANTS.DEFAULT_PADDING_H);
|
||||
let titles: Array<string> = params.getAll("title").flatMap((r) =>
|
||||
const titles: Array<string> = params.getAll("title").flatMap((r) =>
|
||||
r.split(",")
|
||||
).map((r) => r.trim());
|
||||
let ranks: Array<string> = params.getAll("rank").flatMap((r) => r.split(","))
|
||||
const ranks: Array<string> = params.getAll("rank").flatMap((r) => r.split(","))
|
||||
.map((r) => r.trim());
|
||||
|
||||
if (username != null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue