From 593ae760e73fa298fdaac03e9538c1a0026a8f64 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 27 Sep 2026 17:19:39 -0500 Subject: [PATCH] proto imports --- .agents/skills/repo-boundaries/SKILL.md | 2 +- packages/scripts/src/reviews.ts | 3 ++- packages/website/src/components/AvatarCard.tsx | 3 ++- .../src/components/CompareTankCard/index.tsx | 3 ++- .../src/components/ConsumablesManager.tsx | 2 +- .../src/components/EquipmentManager/index.tsx | 12 ++++++------ packages/website/src/components/Guesser.tsx | 8 ++------ .../website/src/components/ModuleManager.tsx | 18 +++++++++--------- .../src/components/Performance/TankRow.tsx | 3 ++- .../components/SpacedArmorSceneComponent.tsx | 7 ++----- .../src/components/TankRowHeaderCell.tsx | 3 ++- .../components/TankSearch/components/Card.tsx | 2 +- .../TankSearch/components/QuickLink.tsx | 2 +- .../AssaultRangesVisualizer/index.tsx | 4 ++-- .../Characteristics/components/Crew.tsx | 3 ++- .../components/Modules.tsx | 10 ++++++---- .../Options/components/CustomShellButton.tsx | 2 +- .../Tankopedia/MetaSection/index.tsx | 8 ++------ .../Tankopedia/TechTreeSection/index.tsx | 3 ++- packages/website/src/components/TanksEmbed.tsx | 8 +++++--- .../website/src/components/TierList/Tile.tsx | 2 +- .../src/core/blitz/applyPitchYawLimits.ts | 7 ++----- .../website/src/core/blitz/correctZYTuple.ts | 6 +++--- .../website/src/core/blitzkit/resolveReload.ts | 6 +++--- .../src/core/blitzkit/resolveThickness.ts | 2 +- .../src/core/blitzkit/tankCharacteristics.ts | 12 +++++++----- .../src/core/blitzkit/tankToCompareMember.ts | 8 ++++---- .../website/src/hooks/useAppliedEquipments.ts | 6 +++--- packages/website/src/hooks/useEccentricity.ts | 2 +- packages/website/src/hooks/useTankTransform.ts | 9 ++------- .../[...chunk_api]/definitions/equipment.pb.ts | 2 +- .../[...chunk_api]/definitions/gallery.pb.ts | 2 +- .../[...chunk_api]/definitions/maps.pb.ts | 2 +- .../[...chunk_api]/definitions/skills.pb.ts | 2 +- .../[...chunk_api]/gallery/avatars/[name].ts | 3 ++- .../[...locale]/mixer/_index.tsx | 8 +++++--- packages/website/src/stores/guess.ts | 2 +- packages/website/src/stores/mixer.ts | 2 +- packages/website/src/stores/performance.ts | 2 +- .../website/src/tankopedia/createTankState.ts | 3 ++- packages/website/src/tankopedia/hasUpgrades.ts | 2 +- packages/website/src/types/characteristics.ts | 6 +++++- 42 files changed, 102 insertions(+), 100 deletions(-) diff --git a/.agents/skills/repo-boundaries/SKILL.md b/.agents/skills/repo-boundaries/SKILL.md index ca2a2ce6d..ac28a38a0 100644 --- a/.agents/skills/repo-boundaries/SKILL.md +++ b/.agents/skills/repo-boundaries/SKILL.md @@ -7,7 +7,7 @@ description: Apply the user's persistent repository boundaries whenever working Apply these boundaries to all work in the user's repositories: -- Never run any Git command or invoke Git through a shell, script, or tool. This includes read-only commands such as status, diff, and log. Use ordinary file inspection and editing tools instead. +- Read-only Git commands are allowed when useful, including status, diff, log, and show. Do not run Git commands that modify repository state. - Never edit `bun.lock`, including regenerating or formatting it. When dependency manifests change, leave the lockfile alone; the user will update it by running `bun install`. These are firm constraints, not preferences to revisit for a task. Continue useful work within them and explain any limitation if a requested result would require crossing either boundary. diff --git a/packages/scripts/src/reviews.ts b/packages/scripts/src/reviews.ts index 93d7521fe..5b739727a 100644 --- a/packages/scripts/src/reviews.ts +++ b/packages/scripts/src/reviews.ts @@ -1,5 +1,6 @@ -import { asset, Reviews, Video, youtubers } from "@blitzkit/core"; +import { asset, youtubers } from "@blitzkit/core"; import locales from "@blitzkit/i18n/locales.json"; +import { Reviews, Video } from "@blitzkit/protos"; import { google } from "googleapis"; import { cloneDeep, uniqBy } from "lodash-es"; import { AssetUploader } from "./core/github/assetUploader"; diff --git a/packages/website/src/components/AvatarCard.tsx b/packages/website/src/components/AvatarCard.tsx index a3e746577..c8bb4e187 100644 --- a/packages/website/src/components/AvatarCard.tsx +++ b/packages/website/src/components/AvatarCard.tsx @@ -1,4 +1,5 @@ -import { alias, Avatar } from "@blitzkit/core"; +import { alias } from "@blitzkit/core"; +import { Avatar } from "@blitzkit/protos"; import { Cross1Icon, DownloadIcon } from "@radix-ui/react-icons"; import { useRef } from "react"; import { useIntersection } from "../hooks/useIntersection"; diff --git a/packages/website/src/components/CompareTankCard/index.tsx b/packages/website/src/components/CompareTankCard/index.tsx index e80c255bd..5b9a61b86 100644 --- a/packages/website/src/components/CompareTankCard/index.tsx +++ b/packages/website/src/components/CompareTankCard/index.tsx @@ -1,4 +1,5 @@ -import { type TankDefinition, tankIcon } from "@blitzkit/core"; +import { tankIcon } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { useEffect, useRef } from "react"; import { Vector2 } from "three"; import { useLocale } from "../../hooks/useLocale"; diff --git a/packages/website/src/components/ConsumablesManager.tsx b/packages/website/src/components/ConsumablesManager.tsx index 54bca6752..4df119eef 100644 --- a/packages/website/src/components/ConsumablesManager.tsx +++ b/packages/website/src/components/ConsumablesManager.tsx @@ -1,4 +1,4 @@ -import type { Consumable } from "@blitzkit/core"; +import type { Consumable } from "@blitzkit/protos"; import { Flex, type FlexProps } from "@radix-ui/themes"; import { ConsumableButton } from "./ModuleButtons/ConsumableButton"; diff --git a/packages/website/src/components/EquipmentManager/index.tsx b/packages/website/src/components/EquipmentManager/index.tsx index 657572e1c..41e1646f9 100644 --- a/packages/website/src/components/EquipmentManager/index.tsx +++ b/packages/website/src/components/EquipmentManager/index.tsx @@ -1,9 +1,9 @@ -import type { EquipmentPreset } from '@blitzkit/core'; -import { Flex } from '@radix-ui/themes'; -import { chunk, cloneDeep } from 'lodash-es'; -import type { EquipmentMatrix } from '../../stores/duel'; -import { EquipmentButton } from '../ModuleButtons/EquipmentButton'; -import './index.css'; +import type { EquipmentPreset } from "@blitzkit/protos"; +import { Flex } from "@radix-ui/themes"; +import { chunk, cloneDeep } from "lodash-es"; +import type { EquipmentMatrix } from "../../stores/duel"; +import { EquipmentButton } from "../ModuleButtons/EquipmentButton"; +import "./index.css"; interface EquipmentManagerProps { preset: EquipmentPreset; diff --git a/packages/website/src/components/Guesser.tsx b/packages/website/src/components/Guesser.tsx index 41c253443..02adb99da 100644 --- a/packages/website/src/components/Guesser.tsx +++ b/packages/website/src/components/Guesser.tsx @@ -1,10 +1,6 @@ -import { - alias, - SEARCH_KEYS, - TankDefinition, - TIER_ROMAN_NUMERALS, -} from "@blitzkit/core"; +import { alias, SEARCH_KEYS, TIER_ROMAN_NUMERALS } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n"; +import { TankDefinition } from "@blitzkit/protos"; import { ArrowRightIcon, EyeOpenIcon, diff --git a/packages/website/src/components/ModuleManager.tsx b/packages/website/src/components/ModuleManager.tsx index 30d63a161..4f61531db 100644 --- a/packages/website/src/components/ModuleManager.tsx +++ b/packages/website/src/components/ModuleManager.tsx @@ -1,12 +1,12 @@ -import { - TIER_ROMAN_NUMERALS, - type EngineDefinition, - type GunDefinition, - type ShellDefinition, - type TankDefinition, - type TrackDefinition, - type TurretDefinition, -} from "@blitzkit/core"; +import { TIER_ROMAN_NUMERALS } from "@blitzkit/core"; +import type { + EngineDefinition, + GunDefinition, + ShellDefinition, + TankDefinition, + TrackDefinition, + TurretDefinition, +} from "@blitzkit/protos"; import { DropdownMenu, Flex } from "@radix-ui/themes"; import { useState } from "react"; import { useLocale } from "../hooks/useLocale"; diff --git a/packages/website/src/components/Performance/TankRow.tsx b/packages/website/src/components/Performance/TankRow.tsx index 8bdf77fb6..d9dde1e38 100644 --- a/packages/website/src/components/Performance/TankRow.tsx +++ b/packages/website/src/components/Performance/TankRow.tsx @@ -1,4 +1,5 @@ -import { TankDefinition, formatCompact } from "@blitzkit/core"; +import { formatCompact } from "@blitzkit/core"; +import { TankDefinition } from "@blitzkit/protos"; import { Table } from "@radix-ui/themes"; import { memo } from "react"; import { awaitableAverageDefinitions } from "../../core/awaitables/averageDefinitions"; diff --git a/packages/website/src/components/SpacedArmorSceneComponent.tsx b/packages/website/src/components/SpacedArmorSceneComponent.tsx index 0c56ab578..e6c830427 100644 --- a/packages/website/src/components/SpacedArmorSceneComponent.tsx +++ b/packages/website/src/components/SpacedArmorSceneComponent.tsx @@ -1,8 +1,5 @@ -import { - ShellType, - isExplosive, - resolvePenetrationCoefficient, -} from "@blitzkit/core"; +import { isExplosive, resolvePenetrationCoefficient } from "@blitzkit/core"; +import { ShellType } from "@blitzkit/protos"; import { useThree } from "@react-three/fiber"; import { useCallback } from "react"; import { diff --git a/packages/website/src/components/TankRowHeaderCell.tsx b/packages/website/src/components/TankRowHeaderCell.tsx index 75cf846de..2e3890a43 100644 --- a/packages/website/src/components/TankRowHeaderCell.tsx +++ b/packages/website/src/components/TankRowHeaderCell.tsx @@ -1,4 +1,5 @@ -import { type TankDefinition, tankIcon, TankType } from "@blitzkit/core"; +import { tankIcon } from "@blitzkit/core"; +import { type TankDefinition, TankType } from "@blitzkit/protos"; import { Box, Flex } from "@radix-ui/themes"; import { useLocale } from "../hooks/useLocale"; import { classIcons } from "./ClassIcon"; diff --git a/packages/website/src/components/TankSearch/components/Card.tsx b/packages/website/src/components/TankSearch/components/Card.tsx index 25f20c8de..980275688 100644 --- a/packages/website/src/components/TankSearch/components/Card.tsx +++ b/packages/website/src/components/TankSearch/components/Card.tsx @@ -2,8 +2,8 @@ import { normalizeBoundingBox, resolveDpm, unionBoundingBox, - type TankDefinition, } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { useMemo } from "react"; import { api } from "../../../api/dynamic"; import { resolveReload } from "../../../core/blitzkit/resolveReload"; diff --git a/packages/website/src/components/TankSearch/components/QuickLink.tsx b/packages/website/src/components/TankSearch/components/QuickLink.tsx index 976b7fba3..1a34793d1 100644 --- a/packages/website/src/components/TankSearch/components/QuickLink.tsx +++ b/packages/website/src/components/TankSearch/components/QuickLink.tsx @@ -1,4 +1,4 @@ -import { type TankDefinition } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { CaretRightIcon } from "@radix-ui/react-icons"; import { useLocale } from "../../../hooks/useLocale"; import { TankFilters } from "../../../stores/tankFilters"; diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/AssaultRangesVisualizer/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/AssaultRangesVisualizer/index.tsx index 5fb137305..248c84048 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/AssaultRangesVisualizer/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/AssaultRangesVisualizer/index.tsx @@ -1,5 +1,5 @@ -import type { AssaultRanges } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n"; +import type { AssaultRanges } from "@blitzkit/protos"; import { Box, Flex, Text } from "@radix-ui/themes"; import { clamp } from "three/src/math/MathUtils.js"; import { @@ -68,7 +68,7 @@ export function AssaultRangesVisualizer({ ranges: _ranges, stats }: Props) { > {literals(strings.common.units.hp, { value: Math.round( - stats.damageWithoutAssault * range.factor + stats.damageWithoutAssault * range.factor, ), })} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx index 633d077b7..518991a72 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx @@ -1,5 +1,6 @@ -import { CREW_MEMBER_NAMES, CrewType } from "@blitzkit/core"; +import { CREW_MEMBER_NAMES } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n"; +import { CrewType } from "@blitzkit/protos"; import { AccessibilityIcon, InfoCircledIcon } from "@radix-ui/react-icons"; import { Flex, Heading, IconButton, Popover, Text } from "@radix-ui/themes"; import { Fragment } from "react/jsx-runtime"; diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx index 25f8c382a..f43651195 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx @@ -1,16 +1,18 @@ import { alias, - EngineDefinition, formatCompact, - GunDefinition, - ModuleType, tankIcon, TIER_ROMAN_NUMERALS, +} from "@blitzkit/core"; +import { + EngineDefinition, + GunDefinition, + ModuleType, TrackDefinition, TurretDefinition, type TankDefinition, type Unlock, -} from "@blitzkit/core"; +} from "@blitzkit/protos"; import { Button, ChevronDownIcon, diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/Options/components/CustomShellButton.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/Options/components/CustomShellButton.tsx index 95a04c441..1f530c1a4 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/Options/components/CustomShellButton.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/Options/components/CustomShellButton.tsx @@ -1,5 +1,5 @@ -import { ShellType } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n/src/literals"; +import { ShellType } from "@blitzkit/protos"; import { Button, Flex, diff --git a/packages/website/src/components/Tankopedia/MetaSection/index.tsx b/packages/website/src/components/Tankopedia/MetaSection/index.tsx index ca25dbdfe..b2d80a902 100644 --- a/packages/website/src/components/Tankopedia/MetaSection/index.tsx +++ b/packages/website/src/components/Tankopedia/MetaSection/index.tsx @@ -1,9 +1,5 @@ -import { - alias, - TankPriceType, - TankType, - TIER_ROMAN_NUMERALS, -} from "@blitzkit/core"; +import { alias, TIER_ROMAN_NUMERALS } from "@blitzkit/core"; +import { TankPriceType, TankType } from "@blitzkit/protos"; import { Box, Flex } from "@radix-ui/themes"; import { Var } from "../../../core/radix/var"; import { useLocale } from "../../../hooks/useLocale"; diff --git a/packages/website/src/components/Tankopedia/TechTreeSection/index.tsx b/packages/website/src/components/Tankopedia/TechTreeSection/index.tsx index 7bf4e5c2b..e0807b0a4 100644 --- a/packages/website/src/components/Tankopedia/TechTreeSection/index.tsx +++ b/packages/website/src/components/Tankopedia/TechTreeSection/index.tsx @@ -1,5 +1,6 @@ -import { alias, TankType } from "@blitzkit/core"; +import { alias } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n/src/literals"; +import { TankType } from "@blitzkit/protos"; import { CaretLeftIcon, CaretRightIcon, PlusIcon } from "@radix-ui/react-icons"; import { Flex, Heading, IconButton, ScrollArea, Text } from "@radix-ui/themes"; import { Fragment, useEffect, useMemo, useRef, useState } from "react"; diff --git a/packages/website/src/components/TanksEmbed.tsx b/packages/website/src/components/TanksEmbed.tsx index a68d4b57e..18d45d849 100644 --- a/packages/website/src/components/TanksEmbed.tsx +++ b/packages/website/src/components/TanksEmbed.tsx @@ -1,12 +1,14 @@ import { formatCompositeStat, - TankClass, - TankDefinition, - TankType, type CompositeStats, type CompositeStatsKey, } from "@blitzkit/core"; import strings from "@blitzkit/i18n/strings/en.json"; +import { + TankClass, + TankDefinition, + TankType, +} from "@blitzkit/protos"; import { amberDark, blueDark } from "@radix-ui/colors"; import { Flex, Text, type FlexProps } from "@radix-ui/themes"; import { times } from "lodash-es"; diff --git a/packages/website/src/components/TierList/Tile.tsx b/packages/website/src/components/TierList/Tile.tsx index 7b7191465..be14be588 100644 --- a/packages/website/src/components/TierList/Tile.tsx +++ b/packages/website/src/components/TierList/Tile.tsx @@ -1,4 +1,4 @@ -import type { TankDefinition } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { Box } from "@radix-ui/themes"; import { useCallback, diff --git a/packages/website/src/core/blitz/applyPitchYawLimits.ts b/packages/website/src/core/blitz/applyPitchYawLimits.ts index f8757b7fd..451d9f607 100644 --- a/packages/website/src/core/blitz/applyPitchYawLimits.ts +++ b/packages/website/src/core/blitz/applyPitchYawLimits.ts @@ -1,8 +1,5 @@ -import { - normalizeAngleRad, - type PitchLimits, - type YawLimits, -} from "@blitzkit/core"; +import { normalizeAngleRad } from "@blitzkit/core"; +import type { PitchLimits, YawLimits } from "@blitzkit/protos"; import { clamp } from "lodash-es"; import { degToRad } from "three/src/math/MathUtils.js"; diff --git a/packages/website/src/core/blitz/correctZYTuple.ts b/packages/website/src/core/blitz/correctZYTuple.ts index 572f3439d..e8fcdbecc 100644 --- a/packages/website/src/core/blitz/correctZYTuple.ts +++ b/packages/website/src/core/blitz/correctZYTuple.ts @@ -1,6 +1,6 @@ -import type { Vector3 as BlitzkitVector3 } from '@blitzkit/core'; -import { Vector3 as THREEVector3 } from 'three'; -import { rotateDavaVector } from './rotateDavaVector'; +import type { Vector3 as BlitzkitVector3 } from "@blitzkit/protos"; +import { Vector3 as THREEVector3 } from "three"; +import { rotateDavaVector } from "./rotateDavaVector"; export function correctZYTuple(tuple: BlitzkitVector3) { return rotateDavaVector(new THREEVector3(tuple.x, tuple.y, -tuple.z)); diff --git a/packages/website/src/core/blitzkit/resolveReload.ts b/packages/website/src/core/blitzkit/resolveReload.ts index dd5fd0b00..1e64f14c7 100644 --- a/packages/website/src/core/blitzkit/resolveReload.ts +++ b/packages/website/src/core/blitzkit/resolveReload.ts @@ -1,9 +1,9 @@ -import type { GunDefinition } from '@blitzkit/core'; +import type { GunDefinition } from "@blitzkit/protos"; export function resolveReload(gun: GunDefinition) { - if (gun.gun_type!.$case === 'regular') { + if (gun.gun_type!.$case === "regular") { return gun.gun_type!.value.reload; - } else if (gun.gun_type!.$case === 'auto_loader') { + } else if (gun.gun_type!.$case === "auto_loader") { return ( gun.gun_type!.value.clip_reload + (gun.gun_type!.value.shell_count - 1) * gun.gun_type!.value.intra_clip diff --git a/packages/website/src/core/blitzkit/resolveThickness.ts b/packages/website/src/core/blitzkit/resolveThickness.ts index 032f5aaf1..4e8fd605d 100644 --- a/packages/website/src/core/blitzkit/resolveThickness.ts +++ b/packages/website/src/core/blitzkit/resolveThickness.ts @@ -1,4 +1,4 @@ -import type { Armor } from '@blitzkit/core'; +import type { Armor } from "@blitzkit/protos"; export function resolveArmor(armor: Armor, index: number) { const spaced = armor.spaced?.includes(index) ?? false; diff --git a/packages/website/src/core/blitzkit/tankCharacteristics.ts b/packages/website/src/core/blitzkit/tankCharacteristics.ts index d9d041098..dc33cb807 100644 --- a/packages/website/src/core/blitzkit/tankCharacteristics.ts +++ b/packages/website/src/core/blitzkit/tankCharacteristics.ts @@ -1,15 +1,18 @@ import { - CrewType, degressiveStat, isExplosive, normalizeBoundingBox, progressiveStat, resolveDpm, resolvePenetrationCoefficient, - ShellType, sum, - TankClass, unionBoundingBox, +} from "@blitzkit/core"; +import { coefficient } from "@blitzkit/core/src/blitzkit/coefficient"; +import { + CrewType, + ShellType, + TankClass, type EngineDefinition, type EquipmentDefinitions, type GunDefinition, @@ -19,8 +22,7 @@ import { type TankDefinition, type TrackDefinition, type TurretDefinition, -} from "@blitzkit/core"; -import { coefficient } from "@blitzkit/core/src/blitzkit/coefficient"; +} from "@blitzkit/protos"; import type { EquipmentMatrix } from "../../stores/duel"; import { defaultEqualizer } from "./tankToDuelMember"; diff --git a/packages/website/src/core/blitzkit/tankToCompareMember.ts b/packages/website/src/core/blitzkit/tankToCompareMember.ts index 2930293d3..e97fa84d2 100644 --- a/packages/website/src/core/blitzkit/tankToCompareMember.ts +++ b/packages/website/src/core/blitzkit/tankToCompareMember.ts @@ -1,7 +1,7 @@ -import type { ProvisionDefinitions, TankDefinition } from '@blitzkit/core'; -import { uniqueId } from 'lodash-es'; -import type { CompareMember } from '../../stores/compareEphemeral'; -import { tankToDuelMember } from './tankToDuelMember'; +import type { ProvisionDefinitions, TankDefinition } from "@blitzkit/protos"; +import { uniqueId } from "lodash-es"; +import type { CompareMember } from "../../stores/compareEphemeral"; +import { tankToDuelMember } from "./tankToDuelMember"; export function tankToCompareMember( tank: TankDefinition, diff --git a/packages/website/src/hooks/useAppliedEquipments.ts b/packages/website/src/hooks/useAppliedEquipments.ts index 15e9e1c86..bf338e2be 100644 --- a/packages/website/src/hooks/useAppliedEquipments.ts +++ b/packages/website/src/hooks/useAppliedEquipments.ts @@ -1,5 +1,5 @@ -import { EquipmentPreset } from '@blitzkit/core'; -import type { EquipmentMatrix } from '../stores/duel'; +import { EquipmentPreset } from "@blitzkit/protos"; +import type { EquipmentMatrix } from "../stores/duel"; export function useAppliedEquipments( matrix: EquipmentMatrix, @@ -7,6 +7,6 @@ export function useAppliedEquipments( ) { const flatMatrix = matrix.flat(); return preset.slots.map( - (options, index) => options[flatMatrix[index] == 1 ? 'right' : 'left'], + (options, index) => options[flatMatrix[index] == 1 ? "right" : "left"], ); } diff --git a/packages/website/src/hooks/useEccentricity.ts b/packages/website/src/hooks/useEccentricity.ts index ba26014d4..d6749862e 100644 --- a/packages/website/src/hooks/useEccentricity.ts +++ b/packages/website/src/hooks/useEccentricity.ts @@ -1,4 +1,4 @@ -import { TankDefinition } from "@blitzkit/core"; +import { TankDefinition } from "@blitzkit/protos"; import { sumBy } from "lodash-es"; import { useMemo } from "react"; import { api } from "../api/dynamic"; diff --git a/packages/website/src/hooks/useTankTransform.ts b/packages/website/src/hooks/useTankTransform.ts index be26cb6be..a6da65ee7 100644 --- a/packages/website/src/hooks/useTankTransform.ts +++ b/packages/website/src/hooks/useTankTransform.ts @@ -1,10 +1,5 @@ -import { - I_HAT, - J_HAT, - K_HAT, - TrackDefinition, - TurretDefinition, -} from "@blitzkit/core"; +import { I_HAT, J_HAT, K_HAT } from "@blitzkit/core"; +import { TrackDefinition, TurretDefinition } from "@blitzkit/protos"; import { invalidate } from "@react-three/fiber"; import type { QuicklimeEvent } from "quicklime"; import { type RefObject, useEffect } from "react"; diff --git a/packages/website/src/pages/[...chunk_api]/definitions/equipment.pb.ts b/packages/website/src/pages/[...chunk_api]/definitions/equipment.pb.ts index 1072e5b53..6bfef775a 100644 --- a/packages/website/src/pages/[...chunk_api]/definitions/equipment.pb.ts +++ b/packages/website/src/pages/[...chunk_api]/definitions/equipment.pb.ts @@ -1,4 +1,4 @@ -import { EquipmentDefinitions } from "@blitzkit/core"; +import { EquipmentDefinitions } from "@blitzkit/protos"; import { api } from "../../../api/dynamic"; export { getStaticPaths } from "../_index"; diff --git a/packages/website/src/pages/[...chunk_api]/definitions/gallery.pb.ts b/packages/website/src/pages/[...chunk_api]/definitions/gallery.pb.ts index 065231e48..63621929b 100644 --- a/packages/website/src/pages/[...chunk_api]/definitions/gallery.pb.ts +++ b/packages/website/src/pages/[...chunk_api]/definitions/gallery.pb.ts @@ -1,4 +1,4 @@ -import { Gallery } from "@blitzkit/core"; +import { Gallery } from "@blitzkit/protos"; import { api } from "../../../api/dynamic"; export { getStaticPaths } from "../_index"; diff --git a/packages/website/src/pages/[...chunk_api]/definitions/maps.pb.ts b/packages/website/src/pages/[...chunk_api]/definitions/maps.pb.ts index b6241913d..b1f997ee1 100644 --- a/packages/website/src/pages/[...chunk_api]/definitions/maps.pb.ts +++ b/packages/website/src/pages/[...chunk_api]/definitions/maps.pb.ts @@ -1,4 +1,4 @@ -import { MapDefinitions } from "@blitzkit/core"; +import { MapDefinitions } from "@blitzkit/protos"; import { api } from "../../../api/dynamic"; export { getStaticPaths } from "../_index"; diff --git a/packages/website/src/pages/[...chunk_api]/definitions/skills.pb.ts b/packages/website/src/pages/[...chunk_api]/definitions/skills.pb.ts index 3f6de0460..26a071c97 100644 --- a/packages/website/src/pages/[...chunk_api]/definitions/skills.pb.ts +++ b/packages/website/src/pages/[...chunk_api]/definitions/skills.pb.ts @@ -1,4 +1,4 @@ -import { SkillDefinitions } from "@blitzkit/core"; +import { SkillDefinitions } from "@blitzkit/protos"; import { api } from "../../../api/dynamic"; export { getStaticPaths } from "../_index"; diff --git a/packages/website/src/pages/[...chunk_api]/gallery/avatars/[name].ts b/packages/website/src/pages/[...chunk_api]/gallery/avatars/[name].ts index 1b6a176f7..d69a77cfa 100644 --- a/packages/website/src/pages/[...chunk_api]/gallery/avatars/[name].ts +++ b/packages/website/src/pages/[...chunk_api]/gallery/avatars/[name].ts @@ -1,5 +1,6 @@ -import { fetchGlossary, type Avatar } from "@blitzkit/core"; +import { fetchGlossary } from "@blitzkit/core"; import locales from "@blitzkit/i18n/locales.json"; +import type { Avatar } from "@blitzkit/protos"; import type { APIContext, GetStaticPathsItem } from "astro"; import { extname } from "path"; import { mixStaticPaths } from "../../../../astro/mixStaticPaths"; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/mixer/_index.tsx b/packages/website/src/pages/[...chunk_default]/[...locale]/mixer/_index.tsx index aa4d79501..f63c59b91 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/mixer/_index.tsx +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/mixer/_index.tsx @@ -1,11 +1,13 @@ import { alias, - GunDefinition, - TankDefinition, TIER_ROMAN_NUMERALS, - TurretDefinition, } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n"; +import { + GunDefinition, + TankDefinition, + TurretDefinition, +} from "@blitzkit/protos"; import { CaretRightIcon, CaretUpIcon, UpdateIcon } from "@radix-ui/react-icons"; import { Box, diff --git a/packages/website/src/stores/guess.ts b/packages/website/src/stores/guess.ts index 0d91fa0fd..0229d3dda 100644 --- a/packages/website/src/stores/guess.ts +++ b/packages/website/src/stores/guess.ts @@ -1,4 +1,4 @@ -import type { TankDefinition } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { times } from "lodash-es"; import { Soapstone } from "soapstone"; diff --git a/packages/website/src/stores/mixer.ts b/packages/website/src/stores/mixer.ts index a7d20c4d0..80d50f125 100644 --- a/packages/website/src/stores/mixer.ts +++ b/packages/website/src/stores/mixer.ts @@ -2,7 +2,7 @@ import type { GunDefinition, TankDefinition, TurretDefinition, -} from "@blitzkit/core"; +} from "@blitzkit/protos"; import { Soapstone } from "soapstone"; export interface Mixer { diff --git a/packages/website/src/stores/performance.ts b/packages/website/src/stores/performance.ts index 628d6ba58..588dfc39c 100644 --- a/packages/website/src/stores/performance.ts +++ b/packages/website/src/stores/performance.ts @@ -1,4 +1,4 @@ -import type { Samples } from "@blitzkit/core"; +import type { Samples } from "@blitzkit/protos"; import { Soapstone } from "soapstone"; export interface Performance { diff --git a/packages/website/src/tankopedia/createTankState.ts b/packages/website/src/tankopedia/createTankState.ts index 71050b488..fbea2160a 100644 --- a/packages/website/src/tankopedia/createTankState.ts +++ b/packages/website/src/tankopedia/createTankState.ts @@ -1,4 +1,5 @@ -import { createDefaultProvisions, type TankDefinition } from "@blitzkit/core"; +import { createDefaultProvisions } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; import { api } from "../api/dynamic"; import { createTankStatus } from "./createTankStatus"; import type { TankState } from "./tankState"; diff --git a/packages/website/src/tankopedia/hasUpgrades.ts b/packages/website/src/tankopedia/hasUpgrades.ts index 267bf2630..080fcd063 100644 --- a/packages/website/src/tankopedia/hasUpgrades.ts +++ b/packages/website/src/tankopedia/hasUpgrades.ts @@ -1,4 +1,4 @@ -import type { TankDefinition } from "@blitzkit/core"; +import type { TankDefinition } from "@blitzkit/protos"; export function hasUpgrades(tank: TankDefinition) { return ( diff --git a/packages/website/src/types/characteristics.ts b/packages/website/src/types/characteristics.ts index 7433c3715..752c3afd9 100644 --- a/packages/website/src/types/characteristics.ts +++ b/packages/website/src/types/characteristics.ts @@ -1,4 +1,8 @@ -import type { Equalizer, GunDefinition, ShellDefinition } from "@blitzkit/core"; +import type { + Equalizer, + GunDefinition, + ShellDefinition, +} from "@blitzkit/protos"; import { characteristics } from "../config/characteristics"; export type Characteristic = {