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