mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix code format
This commit is contained in:
parent
dd9c357dad
commit
3e6f0c90e2
1 changed files with 3 additions and 3 deletions
6
index.ts
6
index.ts
|
|
@ -1,7 +1,7 @@
|
|||
import { ServerRequest } from "./deps.ts";
|
||||
import { GithubAPIClient } from "./src/github_api_client.ts";
|
||||
import { Card } from "./src/card.ts";
|
||||
import { parseParams, CONSTANTS } from "./src/utils.ts";
|
||||
import { CONSTANTS, parseParams } from "./src/utils.ts";
|
||||
import { COLORS, Theme } from "./src/theme.ts";
|
||||
import "https://deno.land/x/dotenv@v0.5.0/load.ts";
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ export default async (req: ServerRequest) => {
|
|||
const themeParam: string = params.getStringValue("theme", "default");
|
||||
let theme: Theme = COLORS.default;
|
||||
if (Object.keys(COLORS).includes(themeParam)) {
|
||||
theme = COLORS[themeParam]
|
||||
theme = COLORS[themeParam];
|
||||
}
|
||||
const marginWidth = params.getNumberValue(
|
||||
"margin-w",
|
||||
|
|
@ -46,7 +46,7 @@ export default async (req: ServerRequest) => {
|
|||
if (userInfo === null) {
|
||||
req.respond(
|
||||
{
|
||||
body: "Can not find a user with userID: "+username,
|
||||
body: "Can not find a user with userID: " + username,
|
||||
status: 404,
|
||||
headers: new Headers({ "Content-Type": "text" }),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue