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
4
index.ts
4
index.ts
|
|
@ -1,7 +1,7 @@
|
||||||
import { ServerRequest } from "./deps.ts";
|
import { ServerRequest } from "./deps.ts";
|
||||||
import { GithubAPIClient } from "./src/github_api_client.ts";
|
import { GithubAPIClient } from "./src/github_api_client.ts";
|
||||||
import { Card } from "./src/card.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 { COLORS, Theme } from "./src/theme.ts";
|
||||||
import "https://deno.land/x/dotenv@v0.5.0/load.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");
|
const themeParam: string = params.getStringValue("theme", "default");
|
||||||
let theme: Theme = COLORS.default;
|
let theme: Theme = COLORS.default;
|
||||||
if (Object.keys(COLORS).includes(themeParam)) {
|
if (Object.keys(COLORS).includes(themeParam)) {
|
||||||
theme = COLORS[themeParam]
|
theme = COLORS[themeParam];
|
||||||
}
|
}
|
||||||
const marginWidth = params.getNumberValue(
|
const marginWidth = params.getNumberValue(
|
||||||
"margin-w",
|
"margin-w",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue