Merge branch 'production'

This commit is contained in:
tresabhi committed 2026-11-27 11:05:51 -06:00
commit ce4961d8f7
3 files changed
+18 -22

No files matched your search

@@ -3,7 +3,7 @@ import { useEffect, useState, type ReactNode } from "react";
import type { MaybeSkeletonComponentProps } from "../types/maybeSkeletonComponentProps";
import { InlineSkeleton } from "./InlineSkeleton";
const TIME = 1793898000 * 1000;
const TIME = 1794675600 * 1000;
const HREF = "https://preview.blitzkit.app/tanks";
export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
@@ -76,11 +76,11 @@ export function Countdown({ skeleton }: MaybeSkeletonComponentProps) {
<Flex direction="column">
<Heading size={{ initial: "4", sm: "6" }}>
More Tier XIs {!skeleton && string}{" "}
All 9 Tier XIs {!skeleton && string}{" "}
{skeleton && <InlineSkeleton width="10rem" />}
</Heading>
<Text size={{ initial: "2", sm: "3" }}>
Catch the next 3 tanks on BlitzKit Preview
Catch all 9 tanks on BlitzKit Preview
</Text>
</Flex>
</Flex>
@@ -1,8 +1,4 @@
import {
WOTB_GLOSSARY_DOMAIN,
WOTB_GLOSSARY_PATH,
type BlitzGlossary,
} from "@blitzkit/core";
import { fetchGlossary } from "@blitzkit/core";
import locales from "@blitzkit/i18n/locales.json";
import type { APIContext, GetStaticPathsItem } from "astro";
import sharp from "sharp";
@@ -35,15 +31,11 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
});
}
const glossary = await fetch(
`${WOTB_GLOSSARY_DOMAIN}/${locales.default}/${WOTB_GLOSSARY_PATH}`,
)
.then((response) => response.json() as Promise<BlitzGlossary>)
.then((glossary) =>
Object.values(glossary)
.entries()
.filter(([key]) => /^prx_season_\d+$/.test(`${key}`)),
);
const glossary = await fetchGlossary(locales.default).then((glossary) =>
Object.values(glossary)
.entries()
.filter(([key]) => /^prx_season_\d+$/.test(`${key}`)),
);
for (const [id, item] of glossary) {
if (!item.image_url) continue;