Minor fixes + format

This commit is contained in:
Dreamgineer
2025-10-17 16:46:32 -04:00 Unverified
parent 38f8de1387
commit 0448e74755
6 changed files with 13 additions and 13 deletions
+2
View File
@@ -12,3 +12,5 @@ export const contentType = "image/png";
export default async function Image() { export default async function Image() {
return generate({ title: "เสือกไอดีชาวบ้าน", sub: "" }); return generate({ title: "เสือกไอดีชาวบ้าน", sub: "" });
} }
export const dynamic = "force-dynamic";
+1 -1
View File
@@ -172,4 +172,4 @@ input[type="number"] {
img { img {
user-select: none; user-select: none;
-webkit-user-drag: none; -webkit-user-drag: none;
} }
+2
View File
@@ -12,3 +12,5 @@ export const contentType = "image/png";
export default async function Image() { export default async function Image() {
return generate({ title: "เว็บไซต์อีเว็นต์", sub: "" }); return generate({ title: "เว็บไซต์อีเว็นต์", sub: "" });
} }
export const dynamic = "force-dynamic";
+3
View File
@@ -387,6 +387,9 @@ export function TierList({
<DialogTrigger asChild> <DialogTrigger asChild>
<DropdownMenuItem>การตั้งค่า</DropdownMenuItem> <DropdownMenuItem>การตั้งค่า</DropdownMenuItem>
</DialogTrigger> </DialogTrigger>
<DropdownMenuItem onClick={() => showDisclaimer(true)}>
แสดงเงื่อนไข
</DropdownMenuItem>
</DropdownMenuContent> </DropdownMenuContent>
</DropdownMenu> </DropdownMenu>
<DialogContent> <DialogContent>
+2
View File
@@ -12,3 +12,5 @@ export const contentType = "image/png";
export default async function Image() { export default async function Image() {
return generate({ title: "จัดเทียร์ลิสต์", sub: "" }); return generate({ title: "จัดเทียร์ลิสต์", sub: "" });
} }
export const dynamic = "force-dynamic";
+3 -12
View File
@@ -84,14 +84,7 @@ async function main() {
p === "untiered" p === "untiered"
? [] ? []
: cl : cl
.map( .map((c) => chars.find((ch) => ch.name === c)?.id)
(c) =>
chars.find(
(ch) =>
ch.name ===
(c.startsWith("Traveler Pyro") ? "Traveler" : c),
)?.id,
)
.filter((v): v is string => typeof v === "string"), .filter((v): v is string => typeof v === "string"),
]), ]),
), ),
@@ -107,13 +100,11 @@ async function main() {
string, string,
Partial<{ comment: string; badges: string[] }> Partial<{ comment: string; badges: string[] }>
> = {}; > = {};
for (const [ch, comment] of Object.entries(data.comments)) { for (const [char, comment] of Object.entries(data.comments)) {
const char = ch.startsWith("Traveler Pyro") ? "Traveler" : ch;
states[char] ??= {}; states[char] ??= {};
states[char].comment = comment; states[char].comment = comment;
} }
for (const [ch, badges] of Object.entries(data.badges)) { for (const [char, badges] of Object.entries(data.badges)) {
const char = ch.startsWith("Traveler Pyro") ? "Traveler" : ch;
states[char] ??= {}; states[char] ??= {};
states[char].badges = badges states[char].badges = badges
.map((b) => badgeList[b]) .map((b) => badgeList[b])