mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-14 13:16:11 +01:00
aliases
This commit is contained in:
1 parent
13cda7aec0
commit
b26c5137f3
53 files changed
+236
-932
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { formatCompact, TIER_ROMAN_NUMERALS } from "@blitzkit/core";
|
||||
import { alias, formatCompact, TIER_ROMAN_NUMERALS } from "@blitzkit/core";
|
||||
import { literals } from "@blitzkit/i18n/src/literals";
|
||||
import { Box, Flex, Skeleton, Text } from "@radix-ui/themes";
|
||||
import { awaitableAverageDefinitions } from "../../../../core/awaitables/averageDefinitions";
|
||||
@@ -58,7 +58,7 @@ export function Node({ id, highlight, nextIds, skeleton }: NodeProps) {
|
||||
mx={highlight ? "2" : "0"}
|
||||
style={{
|
||||
background: highlight
|
||||
? `url(${`/api/flags/fade/${tank.nation}.webp`})`
|
||||
? `url(${alias("api", `/flags/fade/${tank.nation}.webp`)})`
|
||||
: undefined,
|
||||
backgroundPosition: "center",
|
||||
backgroundSize: "cover",
|
||||
@@ -79,7 +79,7 @@ export function Node({ id, highlight, nextIds, skeleton }: NodeProps) {
|
||||
>
|
||||
<img
|
||||
alt={unwrap(tank.name!)}
|
||||
src={`/api/tanks/${id}/icons/big.webp`}
|
||||
src={alias("api", `/tanks/${id}/icons/big.webp`)}
|
||||
width={64}
|
||||
height={64}
|
||||
style={{
|
||||
@@ -99,7 +99,7 @@ export function Node({ id, highlight, nextIds, skeleton }: NodeProps) {
|
||||
<Flex gap="1" align="center">
|
||||
<img
|
||||
alt="XP"
|
||||
src={"/api/icons/currencies/xp.webp"}
|
||||
src={alias("api", "/icons/currencies/xp.webp")}
|
||||
style={{
|
||||
width: "1em",
|
||||
height: "1em",
|
||||
@@ -114,7 +114,7 @@ export function Node({ id, highlight, nextIds, skeleton }: NodeProps) {
|
||||
<Flex gap="1" align="center">
|
||||
<img
|
||||
alt="Silver"
|
||||
src={"/api/icons/currencies/silver.webp"}
|
||||
src={alias("api", "/icons/currencies/silver.webp")}
|
||||
style={{
|
||||
width: "1em",
|
||||
height: "1em",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TankType } from "@blitzkit/core";
|
||||
import { alias, TankType } from "@blitzkit/core";
|
||||
import { literals } from "@blitzkit/i18n/src/literals";
|
||||
import { CaretLeftIcon, CaretRightIcon, PlusIcon } from "@radix-ui/react-icons";
|
||||
import { Flex, Heading, IconButton, ScrollArea, Text } from "@radix-ui/themes";
|
||||
@@ -105,7 +105,7 @@ export function TechTreeSection({ skeleton }: MaybeSkeletonComponentProps) {
|
||||
<Flex gap="1" align="center">
|
||||
<img
|
||||
alt="XP"
|
||||
src={"/api/icons/currencies/xp.webp"}
|
||||
src={alias("api", "/icons/currencies/xp.webp")}
|
||||
style={{
|
||||
width: "1em",
|
||||
height: "1em",
|
||||
@@ -121,7 +121,7 @@ export function TechTreeSection({ skeleton }: MaybeSkeletonComponentProps) {
|
||||
<Flex gap="1" align="center">
|
||||
<img
|
||||
alt="Silver"
|
||||
src={"/api/icons/currencies/silver.webp"}
|
||||
src={alias("api", "/icons/currencies/silver.webp")}
|
||||
style={{
|
||||
width: "1em",
|
||||
height: "1em",
|
||||
|
||||
Reference in new issue
Block a user