fix: the last of the errors

This commit is contained in:
TrèsAbhi committed 2025-10-22 18:42:51 -05:00
1 parent f802b997c0
commit ac768d0897
13 files changed
+40 -30

No files matched your search

+3 -1
View File
@@ -19,8 +19,10 @@
"markdown-escape": "^2.0.0",
"pickleparser": "^0.2.1",
"prisma": "^6.17.1",
"protobufjs": "^7.5.4",
"react": "^19.2.0",
"satori": "^0.18.3"
"satori": "^0.18.3",
"sharp": "^0.34.4"
},
"private": true,
"scripts": {
+3 -3
View File
@@ -1,9 +1,9 @@
import sharp from 'sharp';
import sharp from "sharp";
const cache: Record<string, Buffer> = {};
export async function iconPng(url: string) {
if (!url.endsWith('.webp')) return url;
if (!url.endsWith(".webp")) return url;
if (!cache[url]) {
const imageResponse = await fetch(url);
@@ -12,5 +12,5 @@ export async function iconPng(url: string) {
cache[url] = imageBufferPNG;
}
return `data:image/png;base64,${cache[url].toString('base64')}`;
return `data:image/png;base64,${cache[url].toString("base64")}`;
}
+3 -1
View File
@@ -26,8 +26,10 @@
"lz4js": "^0.2.0",
"progress": "^2.0.3",
"puppeteer": "^24.22.3",
"sharp": "^0.34.4",
"three": "^0.180.0",
"ts-proto": "^2.7.7"
"ts-proto": "^2.7.7",
"yaml": "^2.8.1"
},
"private": true,
"scripts": {
@@ -1,9 +1,7 @@
import { DdsReadStream, PvrReadStream } from "@blitzkit/core";
import { existsSync } from "fs";
import sharp from "sharp";
import { DATA_COMPRESSED } from "../../../buildAssets/constants";
import { readDVPLFile } from "../readDVPLFile";
import { TextureMutation } from "./constants";
export async function readTexture(path: string) {
const ddsTexturePath = path.replace(".tex", ".dx11.dds");
@@ -1,7 +1,7 @@
import { CaretRightIcon } from "@radix-ui/react-icons";
import { Box, Flex, Link, Text } from "@radix-ui/themes";
import { Var } from "../../../core/radix/var";
import type { TankGuide } from "../../../pages/[...locale]/tanks/[slug]/index.astro";
import type { TankGuide } from "../../../types/tankGuide";
interface Props {
guide: TankGuide;
@@ -48,7 +48,9 @@ export function GuideSection({ guide }: Props) {
height="100%"
left="0"
style={{
background: `linear-gradient(${Var("gray-a1")}, ${Var("gray-1")})`,
background: `linear-gradient(${Var("gray-a1")}, ${Var(
"gray-1"
)})`,
}}
/>
</Flex>
@@ -17,7 +17,7 @@ import {
import { Duel } from "../../../../stores/duel";
import { Tankopedia } from "../../../../stores/tankopedia";
import type { MaybeSkeletonComponentProps } from "../../../../types/maybeSkeletonComponentProps";
import type { TankGuide } from "./index.astro";
import type { TankGuide } from "../../../../types/tankGuide";
type PageProps = MaybeSkeletonComponentProps &
LocaleAcceptorProps & {
@@ -20,6 +20,7 @@ import { tankCharacteristics } from "../../../../core/blitzkit/tankCharacteristi
import { getStrings } from "../../../../core/i18n/getStrings";
import BaseLayout from "../../../../layouts/BaseLayout.astro";
import { genericDefaultEquipmentMatrix } from "../../../../stores/duel/constants";
import type { TankGuide } from "../../../../types/tankGuide";
import { getStaticPaths as parentGetStaticPaths } from "../index.astro";
import { Page } from "./_index";
@@ -100,12 +101,6 @@ const description = literals(
}
);
export interface TankGuide {
url: string;
description?: string;
image?: string;
}
const guideUrl = `${assertSecret(import.meta.env.PUBLIC_GUIDE_WEBSITE)}/${tank.slug}`;
let guide: TankGuide | undefined = undefined;
const guideResponse = await fetch(guideUrl);
+3 -3
View File
@@ -1,6 +1,6 @@
import { enableMapSet } from 'immer';
import { Varuna } from 'varuna';
import { tierListRows } from '../components/TierList/Table/constants';
import { enableMapSet } from "immer";
import { Varuna } from "varuna";
import { tierListRows } from "../components/TierList/Table/constants";
export interface TierList {
dragging: boolean;
+5
View File
@@ -0,0 +1,5 @@
export interface TankGuide {
url: string;
description?: string;
image?: string;
}
+1 -2
View File
@@ -1,4 +1,3 @@
{
"extends": ["../../tsconfig.json", "astro/tsconfigs/base"],
"compilerOptions": { "jsx": "react-jsx" }
"extends": ["../../tsconfig.json", "astro/tsconfigs/base"]
}