diff --git a/packages/core/src/blitz/fetchGlossary.ts b/packages/core/src/blitz/fetchGlossary.ts index 049e2a0d3..1a0d1c5dc 100644 --- a/packages/core/src/blitz/fetchGlossary.ts +++ b/packages/core/src/blitz/fetchGlossary.ts @@ -1,11 +1,15 @@ -import type { BlitzGlossary } from "../types"; +import { BlitzGlossary } from "../types"; export const WOTB_GLOSSARY_DOMAIN = "https://na.wotblitz.com"; export const WOTB_GLOSSARY_PATH = "api/glossary/stuff"; export async function fetchGlossary(locale: string) { - const response = await fetch( - `${WOTB_GLOSSARY_DOMAIN}/${locale}/${WOTB_GLOSSARY_PATH}`, - ); - return (await response.json()) as BlitzGlossary; + // const response = await fetch( + // `${assertSecret( + // import.meta.env.WOTB_GLOSSARY_DOMAIN, + // )}/${locale}${assertSecret(import.meta.env.WOTB_GLOSSARY_PATH)}`, + // ); + // return (await response.json()) as BlitzGlossary; + + return {} as BlitzGlossary; } diff --git a/packages/website/src/components/Countdown.tsx b/packages/website/src/components/Countdown.tsx index bfc878efe..9668ed2dc 100644 --- a/packages/website/src/components/Countdown.tsx +++ b/packages/website/src/components/Countdown.tsx @@ -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) { - More Tier XIs {!skeleton && string}{" "} + All 9 Tier XIs {!skeleton && string}{" "} {skeleton && } - Catch the next 3 tanks on BlitzKit Preview + Catch all 9 tanks on BlitzKit Preview diff --git a/packages/website/src/pages/[...chunk_api]/icons/currencies/[id].webp.ts b/packages/website/src/pages/[...chunk_api]/icons/currencies/[id].webp.ts index 525b649fa..6602595a4 100644 --- a/packages/website/src/pages/[...chunk_api]/icons/currencies/[id].webp.ts +++ b/packages/website/src/pages/[...chunk_api]/icons/currencies/[id].webp.ts @@ -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) - .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;