Minor fixes + format
This commit is contained in:
@@ -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
@@ -172,4 +172,4 @@ input[type="number"] {
|
|||||||
img {
|
img {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user