mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
proto imports
This commit is contained in:
1 parent
127c55ec93
commit
593ae760e7
42 files changed
+102
-100
No files matched your search
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
+2
-2
@@ -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,
|
||||
),
|
||||
})}
|
||||
</Text>
|
||||
|
||||
+2
-1
@@ -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";
|
||||
|
||||
+6
-4
@@ -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,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { ShellType } from "@blitzkit/core";
|
||||
import { literals } from "@blitzkit/i18n/src/literals";
|
||||
import { ShellType } from "@blitzkit/protos";
|
||||
import {
|
||||
Button,
|
||||
Flex,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { TankDefinition } from "@blitzkit/core";
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { Box } from "@radix-ui/themes";
|
||||
import {
|
||||
useCallback,
|
||||
|
||||
Reference in new issue
Block a user