diff --git a/src/components/player/badge.tsx b/src/app/(stats)/player/[ign]/_components/badge.tsx similarity index 86% rename from src/components/player/badge.tsx rename to src/app/(stats)/player/[ign]/_components/badge.tsx index d46434c..095e181 100644 --- a/src/components/player/badge.tsx +++ b/src/app/(stats)/player/[ign]/_components/badge.tsx @@ -2,7 +2,7 @@ import { DEVUUIDS } from "@/data/general" import { Tooltip } from "react-tooltip" -import DeveloperBadge from "../svgs/developer-badge" +import DeveloperBadge from "../../../../../components/svgs/developer-badge" export function DevBadge({ uuid, size }: { uuid: string, size?: number }) { if (!DEVUUIDS.includes(uuid)) return null diff --git a/src/app/(stats)/player/[ign]/_components/CollapsedStats.tsx b/src/app/(stats)/player/[ign]/_components/collapsed-stats.tsx similarity index 100% rename from src/app/(stats)/player/[ign]/_components/CollapsedStats.tsx rename to src/app/(stats)/player/[ign]/_components/collapsed-stats.tsx diff --git a/src/components/player/displayname.tsx b/src/app/(stats)/player/[ign]/_components/displayname.tsx similarity index 100% rename from src/components/player/displayname.tsx rename to src/app/(stats)/player/[ign]/_components/displayname.tsx diff --git a/src/app/(stats)/player/[ign]/_components/GenericProgress.tsx b/src/app/(stats)/player/[ign]/_components/generic-progress.tsx similarity index 100% rename from src/app/(stats)/player/[ign]/_components/GenericProgress.tsx rename to src/app/(stats)/player/[ign]/_components/generic-progress.tsx diff --git a/src/app/(stats)/player/[ign]/_components/Multicolored.tsx b/src/app/(stats)/player/[ign]/_components/multicolored.tsx similarity index 100% rename from src/app/(stats)/player/[ign]/_components/Multicolored.tsx rename to src/app/(stats)/player/[ign]/_components/multicolored.tsx diff --git a/src/components/player/online-status.tsx b/src/app/(stats)/player/[ign]/_components/online-status.tsx similarity index 100% rename from src/components/player/online-status.tsx rename to src/app/(stats)/player/[ign]/_components/online-status.tsx diff --git a/src/app/(stats)/player/[ign]/_components/Sidebar.tsx b/src/app/(stats)/player/[ign]/_components/sidebar.tsx similarity index 99% rename from src/app/(stats)/player/[ign]/_components/Sidebar.tsx rename to src/app/(stats)/player/[ign]/_components/sidebar.tsx index 2cd4229..776d50d 100644 --- a/src/app/(stats)/player/[ign]/_components/Sidebar.tsx +++ b/src/app/(stats)/player/[ign]/_components/sidebar.tsx @@ -10,7 +10,7 @@ import { Guild } from "@/lib/schema/guild" import { Player } from "@/lib/schema/player" import { Session } from "@/lib/schema/status" import Link from "next/link" -import SocialIcons from "./SocialIcons" +import SocialIcons from "./social-icons" type SidebarProps = { level: number diff --git a/src/app/(stats)/player/[ign]/_components/SocialIcons.tsx b/src/app/(stats)/player/[ign]/_components/social-icons.tsx similarity index 100% rename from src/app/(stats)/player/[ign]/_components/SocialIcons.tsx rename to src/app/(stats)/player/[ign]/_components/social-icons.tsx diff --git a/src/app/(stats)/player/[ign]/_components/Stats.tsx b/src/app/(stats)/player/[ign]/_components/stats.tsx similarity index 100% rename from src/app/(stats)/player/[ign]/_components/Stats.tsx rename to src/app/(stats)/player/[ign]/_components/stats.tsx diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx index 1e00a3d..989e5ba 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/arcade.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" import { formatNumber } from "@/lib/formatters" import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" import { EmptyStats, GeneralStats } from "../stats-components" import ArcadeOtherStats from "./other" import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats" diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/other.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/other.tsx index de918cd..4df500e 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/other.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/other.tsx @@ -3,7 +3,7 @@ import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { capitalizeFirstLetter } from "@/lib/utils" import { ReactNode } from "react" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function ArcadeOtherStats({ stats }: { stats: NonNullable }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx b/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx index c5a06fc..36c2c73 100644 --- a/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/arcade/stats.tsx @@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { capitalizeFirstLetter } from "@/lib/utils" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" import { ArcadePixelPartyStatsTable, ArcadeZombieStatsTable, ArcadeZombieTypesTable } from "./table" export function ArcadeZombieStats({ stats }: { stats: NonNullable }) { diff --git a/src/app/(stats)/player/[ign]/_stats/bedwars/components.tsx b/src/app/(stats)/player/[ign]/_stats/bedwars/components.tsx index a459df9..e0c7564 100644 --- a/src/app/(stats)/player/[ign]/_stats/bedwars/components.tsx +++ b/src/app/(stats)/player/[ign]/_stats/bedwars/components.tsx @@ -2,8 +2,8 @@ import { formatNumber } from "@/lib/formatters" import { getBedwarsPrestige, getBedwarsStar } from "@/lib/hypixel/bedwars/general" import { getBedwarsLevelForExp } from "@/lib/hypixel/bedwars/level" import { cn } from "@/lib/utils" -import { GenericProgress } from "../../_components/GenericProgress" -import Multicolored from "../../_components/Multicolored" +import { GenericProgress } from "../../_components/generic-progress" +import Multicolored from "../../_components/multicolored" export function BedwarsLevel({ xp }: { xp: number }) { const level = getBedwarsLevelForExp(xp) diff --git a/src/app/(stats)/player/[ign]/_stats/bedwars/stats.tsx b/src/app/(stats)/player/[ign]/_stats/bedwars/stats.tsx index 403b198..69a51b9 100644 --- a/src/app/(stats)/player/[ign]/_stats/bedwars/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/bedwars/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { getBedwarsLatestRoom, getBedwarsWalletMax } from "@/lib/hypixel/bedwars/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat, Stat } from "../../_components/Stats" +import { BasicStat, Stat } from "../../_components/stats" import { BedWarsPrestige } from "./components" export default function BedwarsGeneralStats( diff --git a/src/app/(stats)/player/[ign]/_stats/blitz/stats.tsx b/src/app/(stats)/player/[ign]/_stats/blitz/stats.tsx index 0e4aa8d..2521380 100644 --- a/src/app/(stats)/player/[ign]/_stats/blitz/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/blitz/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function BlitzGeneralStats({ stats }: { stats: NonNullable }) { const wins = stats.wins_solo_normal + stats.wins_teams_normal diff --git a/src/app/(stats)/player/[ign]/_stats/build-battle/progress.tsx b/src/app/(stats)/player/[ign]/_stats/build-battle/progress.tsx index 04f9cf8..1972612 100644 --- a/src/app/(stats)/player/[ign]/_stats/build-battle/progress.tsx +++ b/src/app/(stats)/player/[ign]/_stats/build-battle/progress.tsx @@ -1,7 +1,7 @@ import { getBuildBattleRank, getBuildBattleRankNext } from "@/lib/hypixel/build-battle/general" import { getProgress } from "@/lib/hypixel/general" import { cn } from "@/lib/utils" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" export default function BuildBattleTitleProgress({ score }: { score: number }) { const current = getBuildBattleRank(score) diff --git a/src/app/(stats)/player/[ign]/_stats/build-battle/stats.tsx b/src/app/(stats)/player/[ign]/_stats/build-battle/stats.tsx index ad452c8..99a0bee 100644 --- a/src/app/(stats)/player/[ign]/_stats/build-battle/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/build-battle/stats.tsx @@ -3,7 +3,7 @@ import { getBuildBattleRank } from "@/lib/hypixel/build-battle/general" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function BuildBattleGeneralStats({ stats }: { stats: NonNullable }) { const rank = getBuildBattleRank(stats.score) diff --git a/src/app/(stats)/player/[ign]/_stats/classic/stats.tsx b/src/app/(stats)/player/[ign]/_stats/classic/stats.tsx index acf6b75..e812623 100644 --- a/src/app/(stats)/player/[ign]/_stats/classic/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/classic/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export function ArenaBrawlGeneralStats({ coins, keys, ws }: { coins: number, keys: number, ws: number }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/copsandcrims/stats.tsx b/src/app/(stats)/player/[ign]/_stats/copsandcrims/stats.tsx index 437124c..10a1296 100644 --- a/src/app/(stats)/player/[ign]/_stats/copsandcrims/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/copsandcrims/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function CopsAndCrimsGeneralStats( { stats, kills, assits, deaths, wins }: { diff --git a/src/app/(stats)/player/[ign]/_stats/copsandcrims/weapons.tsx b/src/app/(stats)/player/[ign]/_stats/copsandcrims/weapons.tsx index 2938f59..d797d0e 100644 --- a/src/app/(stats)/player/[ign]/_stats/copsandcrims/weapons.tsx +++ b/src/app/(stats)/player/[ign]/_stats/copsandcrims/weapons.tsx @@ -7,7 +7,7 @@ import { } from "@/lib/hypixel/copsandcrims/general" import { romanize } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { GenericProgressNoTooltip } from "../../_components/GenericProgress" +import { GenericProgressNoTooltip } from "../../_components/generic-progress" export default function CopsAndCrimsWeaponStats({ stats }: { stats: NonNullable }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/duels/stats.tsx b/src/app/(stats)/player/[ign]/_stats/duels/stats.tsx index a08852c..49efeda 100644 --- a/src/app/(stats)/player/[ign]/_stats/duels/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/duels/stats.tsx @@ -3,7 +3,7 @@ import { Div } from "@/lib/hypixel/duels/general" import { romanize } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function DuelsGeneralStats( { stats, div, kd, wl }: { stats: NonNullable, div: Div | null, kd: string, wl: string } diff --git a/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx b/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx index 094584f..d915ab2 100644 --- a/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/megawalls/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function MegaWallsGeneralStats({ stats }: { stats: NonNullable }) { const wl = formatNumber(devide(stats.wins, stats.losses)) diff --git a/src/app/(stats)/player/[ign]/_stats/murder-mystery/infection.tsx b/src/app/(stats)/player/[ign]/_stats/murder-mystery/infection.tsx index 384288c..2afb024 100644 --- a/src/app/(stats)/player/[ign]/_stats/murder-mystery/infection.tsx +++ b/src/app/(stats)/player/[ign]/_stats/murder-mystery/infection.tsx @@ -1,7 +1,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function MurderMysteryInfectionStats({ stats }: { stats: NonNullable }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/murder-mystery/stats.tsx b/src/app/(stats)/player/[ign]/_stats/murder-mystery/stats.tsx index d8da9dc..1724135 100644 --- a/src/app/(stats)/player/[ign]/_stats/murder-mystery/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/murder-mystery/stats.tsx @@ -2,7 +2,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getMurderMysteryKnifeName } from "@/lib/hypixel/murder-mystery/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function MurderMysteryGeneralStats({ stats }: { stats: NonNullable }) { const kd = formatNumber(devide(stats.kills, stats.deaths)) diff --git a/src/app/(stats)/player/[ign]/_stats/pit/progress.tsx b/src/app/(stats)/player/[ign]/_stats/pit/progress.tsx index b0b2f9c..401d656 100644 --- a/src/app/(stats)/player/[ign]/_stats/pit/progress.tsx +++ b/src/app/(stats)/player/[ign]/_stats/pit/progress.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { getProgress } from "@/lib/hypixel/general" import { getPitPrestigeColor, getPitXpForPrestige } from "@/lib/hypixel/pit/general" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" export default function PitProgress({ prestige, xp }: { prestige: number, xp: number }) { const presColor = getPitPrestigeColor(prestige) diff --git a/src/app/(stats)/player/[ign]/_stats/pit/stats.tsx b/src/app/(stats)/player/[ign]/_stats/pit/stats.tsx index 3749992..58db939 100644 --- a/src/app/(stats)/player/[ign]/_stats/pit/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/pit/stats.tsx @@ -3,7 +3,7 @@ import { devide, romanize } from "@/lib/hypixel/general" import { getPitLevelColor, getPitPrestige, getPitPrestigeColor } from "@/lib/hypixel/pit/general" import { getPitLevel } from "@/lib/hypixel/pit/level" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function PitGeneralStats({ stats }: { stats: NonNullable }) { const prestige = getPitPrestige(stats) diff --git a/src/app/(stats)/player/[ign]/_stats/skywars/components.tsx b/src/app/(stats)/player/[ign]/_stats/skywars/components.tsx index ad53576..48872c7 100644 --- a/src/app/(stats)/player/[ign]/_stats/skywars/components.tsx +++ b/src/app/(stats)/player/[ign]/_stats/skywars/components.tsx @@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters" import { getSkyWarsIcon, getSkywarsPrestige } from "@/lib/hypixel/skywars/general" import { getSkywarsLevel } from "@/lib/hypixel/skywars/level" import { cn } from "@/lib/utils" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" import { SkywarsHeadsBar, SkywarsPresigeousHeads } from "./client" type SkywarsHeadsProps = { diff --git a/src/app/(stats)/player/[ign]/_stats/skywars/stats.tsx b/src/app/(stats)/player/[ign]/_stats/skywars/stats.tsx index 814e2f7..047677f 100644 --- a/src/app/(stats)/player/[ign]/_stats/skywars/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/skywars/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat, Stat } from "../../_components/Stats" +import { BasicStat, Stat } from "../../_components/stats" import { SkywarsPrestige } from "./components" export default function SkyWarsGeneralStats({ stats, level }: { stats: NonNullable, level: number }) { diff --git a/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx b/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx index 3068b3d..b8a46a9 100644 --- a/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/smashheros/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function SmashHerosGeneralStats({ stats }: { stats: NonNullable }) { const kd = formatNumber(devide(stats.kills, stats.deaths)) diff --git a/src/app/(stats)/player/[ign]/_stats/speeduhc/progress.tsx b/src/app/(stats)/player/[ign]/_stats/speeduhc/progress.tsx index 70b6204..2ee68ca 100644 --- a/src/app/(stats)/player/[ign]/_stats/speeduhc/progress.tsx +++ b/src/app/(stats)/player/[ign]/_stats/speeduhc/progress.tsx @@ -1,6 +1,6 @@ import { getProgress } from "@/lib/hypixel/general" import { getSpeedUHCScore, getSpeedUHCTitle } from "@/lib/hypixel/speeduhc/general" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" export default function SpeedUHCProgress({ level, score }: { level: number, score: number }) { const nextScore = getSpeedUHCScore(level + 1) diff --git a/src/app/(stats)/player/[ign]/_stats/speeduhc/stats.tsx b/src/app/(stats)/player/[ign]/_stats/speeduhc/stats.tsx index a3ac845..601bd7e 100644 --- a/src/app/(stats)/player/[ign]/_stats/speeduhc/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/speeduhc/stats.tsx @@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getSpeedUHCStar, getSpeedUHCTitle } from "@/lib/hypixel/speeduhc/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function SpeedUHCGeneralStats({ stats, uhcCoins }: { stats: NonNullable, uhcCoins: number | undefined }) { const star = getSpeedUHCStar(stats.score) diff --git a/src/app/(stats)/player/[ign]/_stats/stats-components.tsx b/src/app/(stats)/player/[ign]/_stats/stats-components.tsx index 51d9bca..ee9e24f 100644 --- a/src/app/(stats)/player/[ign]/_stats/stats-components.tsx +++ b/src/app/(stats)/player/[ign]/_stats/stats-components.tsx @@ -3,7 +3,7 @@ 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" +import CollapsedStats from "../_components/collapsed-stats" export function GeneralStats( { id, title, children, collapsedStats, className }: { diff --git a/src/app/(stats)/player/[ign]/_stats/tnt-games/stats.tsx b/src/app/(stats)/player/[ign]/_stats/tnt-games/stats.tsx index 79a1435..7a7c8f4 100644 --- a/src/app/(stats)/player/[ign]/_stats/tnt-games/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/tnt-games/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function TNTGamesGeneralStats({ stats }: { stats: NonNullable }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/tnt-games/wizards.tsx b/src/app/(stats)/player/[ign]/_stats/tnt-games/wizards.tsx index 6bba01f..bdee512 100644 --- a/src/app/(stats)/player/[ign]/_stats/tnt-games/wizards.tsx +++ b/src/app/(stats)/player/[ign]/_stats/tnt-games/wizards.tsx @@ -3,8 +3,8 @@ import { formatNumber } from "@/lib/formatters" import { devide, romanize } from "@/lib/hypixel/general" import { getTNTGameMode, getTNTModeStats } from "@/lib/hypixel/tnt-games/general" import { NonNullStats } from "@/lib/schema/player" -import { GenericProgressNoTooltip } from "../../_components/GenericProgress" -import { BasicStat } from "../../_components/Stats" +import { GenericProgressNoTooltip } from "../../_components/generic-progress" +import { BasicStat } from "../../_components/stats" export default function TNTGamesWizardsStats({ stats }: { stats: NonNullable }) { return ( diff --git a/src/app/(stats)/player/[ign]/_stats/uhc/progress.tsx b/src/app/(stats)/player/[ign]/_stats/uhc/progress.tsx index 84e1d09..1cf94a0 100644 --- a/src/app/(stats)/player/[ign]/_stats/uhc/progress.tsx +++ b/src/app/(stats)/player/[ign]/_stats/uhc/progress.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { getProgress } from "@/lib/hypixel/general" import { getUhcStar, getUhcStarNext } from "@/lib/hypixel/uhc/level" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" export default function UHCProgress({ score }: { score: number }) { const current = getUhcStar(score) diff --git a/src/app/(stats)/player/[ign]/_stats/uhc/stats.tsx b/src/app/(stats)/player/[ign]/_stats/uhc/stats.tsx index 04baf3d..2f3cd0b 100644 --- a/src/app/(stats)/player/[ign]/_stats/uhc/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/uhc/stats.tsx @@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getUhcStar } from "@/lib/hypixel/uhc/level" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function UHCGeneralStats( { stats, kills, deaths, wins, heads }: { stats: NonNullable, kills: number, deaths: number, wins: number, heads: number } diff --git a/src/app/(stats)/player/[ign]/_stats/warlords/stats.tsx b/src/app/(stats)/player/[ign]/_stats/warlords/stats.tsx index c5055a4..c790f02 100644 --- a/src/app/(stats)/player/[ign]/_stats/warlords/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/warlords/stats.tsx @@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters" import { devide } from "@/lib/hypixel/general" import { getWarlordsLosses } from "@/lib/hypixel/warlords/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export default function WarlordsGeneralStats({ stats }: { stats: NonNullable }) { const losses = getWarlordsLosses(stats) diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/modes.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/modes.tsx index 3ad56d1..d577158 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/modes.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/modes.tsx @@ -3,7 +3,7 @@ import { devide } from "@/lib/hypixel/general" import { getWoolGamesWoolWarsClass, getWoolGamesWoolWarsClassColor } from "@/lib/hypixel/woolgames/general" import { NonNullStats } from "@/lib/schema/player" import { cn } from "@/lib/utils" -import { BasicStat } from "../../_components/Stats" +import { BasicStat } from "../../_components/stats" export function WoolGamesCaptureTheWool({ ctw }: { ctw: NonNullable["capture_the_wool"] }) { if (!ctw) { diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/progress.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/progress.tsx index c1019cc..448ae1b 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/progress.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/progress.tsx @@ -1,7 +1,7 @@ import { formatNumber } from "@/lib/formatters" import { getWoolGamesPrestige, getWoolGamesXPForLevel } from "@/lib/hypixel/woolgames/general" import { cn } from "@/lib/utils" -import { GenericProgress } from "../../_components/GenericProgress" +import { GenericProgress } from "../../_components/generic-progress" export default function WoolGamesProgress({ xp, level }: { xp: number, level: number }) { const pres = getWoolGamesPrestige(Math.floor(level)) diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx index 829656c..0ca99fc 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/stats.tsx @@ -1,7 +1,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { getWoolGamesPrestige } from "@/lib/hypixel/woolgames/general" import { NonNullStats } from "@/lib/schema/player" -import { BasicStat, Stat } from "../../_components/Stats" +import { BasicStat, Stat } from "../../_components/stats" export default function WoolGamesGeneralStats( { stats, level, kills, wins }: { stats: NonNullable, level: number, kills: number, wins: number } diff --git a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx index 608dfdd..1efef51 100644 --- a/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx +++ b/src/app/(stats)/player/[ign]/_stats/woolgames/woolgames.tsx @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator" 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 Multicolored from "../../_components/multicolored" import { EmptyStats, GeneralStats } from "../stats-components" import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes" import WoolGamesProgress from "./progress" diff --git a/src/app/(stats)/player/[ign]/page.tsx b/src/app/(stats)/player/[ign]/page.tsx index 4315909..b287748 100644 --- a/src/app/(stats)/player/[ign]/page.tsx +++ b/src/app/(stats)/player/[ign]/page.tsx @@ -1,4 +1,4 @@ -import DisplayName from "@/components/player/displayname" +import DisplayName from "@/app/(stats)/player/[ign]/_components/displayname" import { Card, CardContent } from "@/components/ui/card" import { COOKIE_VALUES } from "@/data/general" import { env } from "@/lib/env/server" @@ -13,7 +13,7 @@ import { cookies } from "next/headers" import { Suspense } from "react" import z from "zod" import { PlayerPageLoadText, PlayerStats } from "./_client" -import Sidebar from "./_components/Sidebar" +import Sidebar from "./_components/sidebar" export async function generateMetadata({ params }: { params: Promise<{ ign: string }> }): Promise { const { ign } = await params