From de734f4a2117fe0bc0da725cdac409508b522b6f Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 21 Sep 2025 21:50:19 +0200 Subject: [PATCH] Updated names --- .../(stats)/player/[ign]/_stats/arcade/arcade.tsx | 2 +- .../(stats)/player/[ign]/_stats/bedwars/bedwars.tsx | 2 +- src/app/(stats)/player/[ign]/_stats/blitz/blitz.tsx | 2 +- .../[ign]/_stats/build-battle/build-battle.tsx | 2 +- .../player/[ign]/_stats/classic/arenabrawl.tsx | 2 +- .../player/[ign]/_stats/classic/paintball.tsx | 2 +- .../player/[ign]/_stats/classic/vampirez.tsx | 2 +- .../(stats)/player/[ign]/_stats/classic/walls.tsx | 2 +- .../[ign]/_stats/copsandcrims/copsandcrims.tsx | 2 +- src/app/(stats)/player/[ign]/_stats/duels/duels.tsx | 2 +- .../player/[ign]/_stats/megawalls/megawalls.tsx | 2 +- .../[ign]/_stats/murder-mystery/murder-mystery.tsx | 2 +- src/app/(stats)/player/[ign]/_stats/pit/pit.tsx | 2 +- .../(stats)/player/[ign]/_stats/skywars/skywars.tsx | 2 +- .../player/[ign]/_stats/smashheros/smashheros.tsx | 2 +- .../player/[ign]/_stats/speeduhc/speeduhc.tsx | 2 +- .../{GeneralStats.tsx => stats-components.tsx} | 13 +++++++++++++ .../player/[ign]/_stats/tnt-games/tnt-games.tsx | 2 +- src/app/(stats)/player/[ign]/_stats/uhc/uhc.tsx | 2 +- .../player/[ign]/_stats/warlords/warlords.tsx | 2 +- .../player/[ign]/_stats/woolgames/woolgames.tsx | 2 +- 21 files changed, 33 insertions(+), 20 deletions(-) rename src/app/(stats)/player/[ign]/_stats/{GeneralStats.tsx => stats-components.tsx} (73%) diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx index 1dda259..01ec281 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general" import { NonNullStats } from "@/lib/schema/player" import { BasicStat } from "../../_components/Stats" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import ArcadeOtherStats from "./other" import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats" diff --git a/src/app/(stats)/player/[ign]/_stats/bedwars/bedwars.tsx b/src/app/(stats)/player/[ign]/_stats/bedwars/bedwars.tsx index 9e298b4..5851c9b 100644 --- a/src/app/(stats)/player/[ign]/_stats/bedwars/bedwars.tsx +++ b/src/app/(stats)/player/[ign]/_stats/bedwars/bedwars.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getBedwarsLevelForExp, getTotalBedwarsExpForLevel } from "@/lib/hypixel/bedwars/level" import { devide, getProgress } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { BedwarsLevel, BedwarsProgress } from "./components" import BedwarsGeneralStats from "./stats" import BedwarsStatTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/blitz/blitz.tsx b/src/app/(stats)/player/[ign]/_stats/blitz/blitz.tsx index e314f0d..97b941c 100644 --- a/src/app/(stats)/player/[ign]/_stats/blitz/blitz.tsx +++ b/src/app/(stats)/player/[ign]/_stats/blitz/blitz.tsx @@ -4,7 +4,7 @@ import { getBlitzMostPlayedKit } from "@/lib/hypixel/blitz/general" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import BlitzGeneralStats from "./stats" import { BlitzKitStatsTable, BlitzModeStatsTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/build-battle/build-battle.tsx b/src/app/(stats)/player/[ign]/_stats/build-battle/build-battle.tsx index 83d7854..4dfe3f0 100644 --- a/src/app/(stats)/player/[ign]/_stats/build-battle/build-battle.tsx +++ b/src/app/(stats)/player/[ign]/_stats/build-battle/build-battle.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getBuildBattleRank } from "@/lib/hypixel/build-battle/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import BuildBattleTitleProgress from "./progress" import BuildBattleGeneralStats from "./stats" import BuildBattleStatsTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/classic/arenabrawl.tsx b/src/app/(stats)/player/[ign]/_stats/classic/arenabrawl.tsx index 6ccd46b..39fc5c7 100644 --- a/src/app/(stats)/player/[ign]/_stats/classic/arenabrawl.tsx +++ b/src/app/(stats)/player/[ign]/_stats/classic/arenabrawl.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { ArenaBrawlGeneralStats } from "./stats" import { ArenaBrawlModeStatsTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/classic/paintball.tsx b/src/app/(stats)/player/[ign]/_stats/classic/paintball.tsx index e69d41e..981c2e3 100644 --- a/src/app/(stats)/player/[ign]/_stats/classic/paintball.tsx +++ b/src/app/(stats)/player/[ign]/_stats/classic/paintball.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { PaintballGeneralStats } from "./stats" export default function PaintballStats({ stats }: { stats: NonNullStats["Paintball"] }) { diff --git a/src/app/(stats)/player/[ign]/_stats/classic/vampirez.tsx b/src/app/(stats)/player/[ign]/_stats/classic/vampirez.tsx index 6009a58..da6fa5a 100644 --- a/src/app/(stats)/player/[ign]/_stats/classic/vampirez.tsx +++ b/src/app/(stats)/player/[ign]/_stats/classic/vampirez.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { VampireZGeneralStats } from "./stats" export default function VampireZStats({ stats }: { stats: NonNullStats["VampireZ"] }) { diff --git a/src/app/(stats)/player/[ign]/_stats/classic/walls.tsx b/src/app/(stats)/player/[ign]/_stats/classic/walls.tsx index 941246f..c505e07 100644 --- a/src/app/(stats)/player/[ign]/_stats/classic/walls.tsx +++ b/src/app/(stats)/player/[ign]/_stats/classic/walls.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { WallsGeneralStats } from "./stats" export default function WallsStats({ stats }: { stats: NonNullStats["Walls"] }) { diff --git a/src/app/(stats)/player/[ign]/_stats/copsandcrims/copsandcrims.tsx b/src/app/(stats)/player/[ign]/_stats/copsandcrims/copsandcrims.tsx index 53be132..d1ef1be 100644 --- a/src/app/(stats)/player/[ign]/_stats/copsandcrims/copsandcrims.tsx +++ b/src/app/(stats)/player/[ign]/_stats/copsandcrims/copsandcrims.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getCopsAndCrimsScoreColor } from "@/lib/hypixel/copsandcrims/general" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import CopsAndCrimsGeneralStats from "./stats" import CopsAndCrimsStatTable from "./table" import CopsAndCrimsWeaponStats from "./weapons" diff --git a/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx b/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx index 704ba7a..f825c23 100644 --- a/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx +++ b/src/app/(stats)/player/[ign]/_stats/duels/duels.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getDuelsAllDivisions, getDuelsMostPlayed } from "@/lib/hypixel/duels/general" import { devide, romanize } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import DuelsGeneralStats from "./stats" import DuelsStatsTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx b/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx index 070e409..54ee3e0 100644 --- a/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx +++ b/src/app/(stats)/player/[ign]/_stats/megawalls/megawalls.tsx @@ -4,7 +4,7 @@ import { devide } from "@/lib/hypixel/general" import { getMegaWallsDifficultyColor, getMegawallsMostPlayed } from "@/lib/hypixel/megawalls/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import MegaWallsGeneralStats from "./stats" import { MegaWallsClassesTable, MegaWallsModesTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/murder-mystery/murder-mystery.tsx b/src/app/(stats)/player/[ign]/_stats/murder-mystery/murder-mystery.tsx index f6b79b0..f7fa03c 100644 --- a/src/app/(stats)/player/[ign]/_stats/murder-mystery/murder-mystery.tsx +++ b/src/app/(stats)/player/[ign]/_stats/murder-mystery/murder-mystery.tsx @@ -1,7 +1,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import MurderMysteryInfectionStats from "./infection" import MurderMysteryGeneralStats from "./stats" import MurderMysteryStatTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/pit/pit.tsx b/src/app/(stats)/player/[ign]/_stats/pit/pit.tsx index 2a77f68..c5172e5 100644 --- a/src/app/(stats)/player/[ign]/_stats/pit/pit.tsx +++ b/src/app/(stats)/player/[ign]/_stats/pit/pit.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getPitPrestige } from "@/lib/hypixel/pit/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import PitLevel from "./level" import PitProgress from "./progress" import PitGeneralStats from "./stats" diff --git a/src/app/(stats)/player/[ign]/_stats/skywars/skywars.tsx b/src/app/(stats)/player/[ign]/_stats/skywars/skywars.tsx index b44a724..e4518e6 100644 --- a/src/app/(stats)/player/[ign]/_stats/skywars/skywars.tsx +++ b/src/app/(stats)/player/[ign]/_stats/skywars/skywars.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { devide, getProgress } from "@/lib/hypixel/general" import { getSkywarsLevel, getSkywarsXpForLevel } from "@/lib/hypixel/skywars/level" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { SkywarsAngelOfDeath, SkywarsHeads, SkywarsLevel, SkywarsProgress, SkywarsShardProgress } from "./components" import SkyWarsGeneralStats from "./stats" import SkywarsStatTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx b/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx index fe4f9f9..72cc172 100644 --- a/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx +++ b/src/app/(stats)/player/[ign]/_stats/smashheros/smashheros.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getSmashHerosDifficultyColor, getSmashHerosMostPlayedHero } from "@/lib/hypixel/smashhero/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import SmashHerosGeneralStats from "./stats" import { SmashHerosHeroTable, SmashHerosModeTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/speeduhc/speeduhc.tsx b/src/app/(stats)/player/[ign]/_stats/speeduhc/speeduhc.tsx index 7e769d7..5d497d0 100644 --- a/src/app/(stats)/player/[ign]/_stats/speeduhc/speeduhc.tsx +++ b/src/app/(stats)/player/[ign]/_stats/speeduhc/speeduhc.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getSpeedUHCStar } from "@/lib/hypixel/speeduhc/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import SpeedUHCProgress from "./progress" import SpeedUHCGeneralStats from "./stats" import { SpeedUHCMasteryStatsTable, SpeedUHCModeStatsTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/GeneralStats.tsx b/src/app/(stats)/player/[ign]/_stats/stats-components.tsx similarity index 73% rename from src/app/(stats)/player/[ign]/_stats/GeneralStats.tsx rename to src/app/(stats)/player/[ign]/_stats/stats-components.tsx index 7960d8f..ebcd166 100644 --- a/src/app/(stats)/player/[ign]/_stats/GeneralStats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/stats-components.tsx @@ -1,6 +1,7 @@ import { AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion" import { Card, CardContent } from "@/components/ui/card" import { cn } from "@/lib/utils" +import { CircleSlash } from "lucide-react" import { ReactNode } from "react" import CollapsedStats from "../_components/CollapsedStats" @@ -31,3 +32,15 @@ export default function GeneralStats( ) } + +export function EmptyStats({ title }: { title: string }) { + return ( + + +

{title}

+

{`This person has no ${title} stats.`}

+ +
+
+ ) +} diff --git a/src/app/(stats)/player/[ign]/_stats/tnt-games/tnt-games.tsx b/src/app/(stats)/player/[ign]/_stats/tnt-games/tnt-games.tsx index 70f0f54..8908c99 100644 --- a/src/app/(stats)/player/[ign]/_stats/tnt-games/tnt-games.tsx +++ b/src/app/(stats)/player/[ign]/_stats/tnt-games/tnt-games.tsx @@ -1,6 +1,6 @@ import { Separator } from "@/components/ui/separator" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import TNTGamesGeneralStats from "./stats" import TNTGamesWizardsStats from "./wizards" diff --git a/src/app/(stats)/player/[ign]/_stats/uhc/uhc.tsx b/src/app/(stats)/player/[ign]/_stats/uhc/uhc.tsx index 284de1c..2e7d5ba 100644 --- a/src/app/(stats)/player/[ign]/_stats/uhc/uhc.tsx +++ b/src/app/(stats)/player/[ign]/_stats/uhc/uhc.tsx @@ -4,7 +4,7 @@ import { devide } from "@/lib/hypixel/general" import { getUHCStatsCombined } from "@/lib/hypixel/uhc/general" import { getUhcStarValue } from "@/lib/hypixel/uhc/level" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import UHCProgress from "./progress" import UHCGeneralStats from "./stats" import UHCStatTable from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/warlords/warlords.tsx b/src/app/(stats)/player/[ign]/_stats/warlords/warlords.tsx index 9ea0617..e0433a9 100644 --- a/src/app/(stats)/player/[ign]/_stats/warlords/warlords.tsx +++ b/src/app/(stats)/player/[ign]/_stats/warlords/warlords.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getWarlordsLosses, getWarlordsMostPlayedClass } from "@/lib/hypixel/warlords/general" import { NonNullStats } from "@/lib/schema/player" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { WarlordsWeaponsBar } from "./client" import WarlordsGeneralStats from "./stats" import { WarlordsClassStatsTable, WarlordsModeStatsTable } from "./table" diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx index 3067f76..4a828d4 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx @@ -3,7 +3,7 @@ import { formatNumber } from "@/lib/formatters" import { getWoolGamesLevel, getWoolGamesPrestige, getWoolGamesPretigeIcon } from "@/lib/hypixel/woolgames/general" import { NonNullStats } from "@/lib/schema/player" import Multicolored from "../../_components/Multicolored" -import GeneralStats from "../GeneralStats" +import GeneralStats from "../stats-components" import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes" import WoolGamesProgress from "./progress" import WoolGamesGeneralStats from "./stats"