Renamed files

This commit is contained in:
2025-09-26 14:15:51 +02:00
parent 38f196bd9a
commit 765fb5de4d
42 changed files with 38 additions and 38 deletions

View File

@@ -2,7 +2,7 @@
import { DEVUUIDS } from "@/data/general" import { DEVUUIDS } from "@/data/general"
import { Tooltip } from "react-tooltip" 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 }) { export function DevBadge({ uuid, size }: { uuid: string, size?: number }) {
if (!DEVUUIDS.includes(uuid)) return null if (!DEVUUIDS.includes(uuid)) return null

View File

@@ -10,7 +10,7 @@ import { Guild } from "@/lib/schema/guild"
import { Player } from "@/lib/schema/player" import { Player } from "@/lib/schema/player"
import { Session } from "@/lib/schema/status" import { Session } from "@/lib/schema/status"
import Link from "next/link" import Link from "next/link"
import SocialIcons from "./SocialIcons" import SocialIcons from "./social-icons"
type SidebarProps = { type SidebarProps = {
level: number level: number

View File

@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general" import { getArcadeTotalWins } from "@/lib/hypixel/arcade/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
import { EmptyStats, GeneralStats } from "../stats-components" import { EmptyStats, GeneralStats } from "../stats-components"
import ArcadeOtherStats from "./other" import ArcadeOtherStats from "./other"
import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats" import { ArcadeMiniWallsStats, ArcadePixelPartyStats, ArcadeZombieStats } from "./stats"

View File

@@ -3,7 +3,7 @@ import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { capitalizeFirstLetter } from "@/lib/utils" import { capitalizeFirstLetter } from "@/lib/utils"
import { ReactNode } from "react" import { ReactNode } from "react"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function ArcadeOtherStats({ stats }: { stats: NonNullable<NonNullStats["Arcade"]> }) { export default function ArcadeOtherStats({ stats }: { stats: NonNullable<NonNullStats["Arcade"]> }) {
return ( return (

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { capitalizeFirstLetter } from "@/lib/utils" import { capitalizeFirstLetter } from "@/lib/utils"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
import { ArcadePixelPartyStatsTable, ArcadeZombieStatsTable, ArcadeZombieTypesTable } from "./table" import { ArcadePixelPartyStatsTable, ArcadeZombieStatsTable, ArcadeZombieTypesTable } from "./table"
export function ArcadeZombieStats({ stats }: { stats: NonNullable<NonNullStats["Arcade"]> }) { export function ArcadeZombieStats({ stats }: { stats: NonNullable<NonNullStats["Arcade"]> }) {

View File

@@ -2,8 +2,8 @@ import { formatNumber } from "@/lib/formatters"
import { getBedwarsPrestige, getBedwarsStar } from "@/lib/hypixel/bedwars/general" import { getBedwarsPrestige, getBedwarsStar } from "@/lib/hypixel/bedwars/general"
import { getBedwarsLevelForExp } from "@/lib/hypixel/bedwars/level" import { getBedwarsLevelForExp } from "@/lib/hypixel/bedwars/level"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { GenericProgress } from "../../_components/GenericProgress" import { GenericProgress } from "../../_components/generic-progress"
import Multicolored from "../../_components/Multicolored" import Multicolored from "../../_components/multicolored"
export function BedwarsLevel({ xp }: { xp: number }) { export function BedwarsLevel({ xp }: { xp: number }) {
const level = getBedwarsLevelForExp(xp) const level = getBedwarsLevelForExp(xp)

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getBedwarsLatestRoom, getBedwarsWalletMax } from "@/lib/hypixel/bedwars/general" import { getBedwarsLatestRoom, getBedwarsWalletMax } from "@/lib/hypixel/bedwars/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat, Stat } from "../../_components/Stats" import { BasicStat, Stat } from "../../_components/stats"
import { BedWarsPrestige } from "./components" import { BedWarsPrestige } from "./components"
export default function BedwarsGeneralStats( export default function BedwarsGeneralStats(

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function BlitzGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Blitz"]> }) { export default function BlitzGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Blitz"]> }) {
const wins = stats.wins_solo_normal + stats.wins_teams_normal const wins = stats.wins_solo_normal + stats.wins_teams_normal

View File

@@ -1,7 +1,7 @@
import { getBuildBattleRank, getBuildBattleRankNext } from "@/lib/hypixel/build-battle/general" import { getBuildBattleRank, getBuildBattleRankNext } from "@/lib/hypixel/build-battle/general"
import { getProgress } from "@/lib/hypixel/general" import { getProgress } from "@/lib/hypixel/general"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { GenericProgress } from "../../_components/GenericProgress" import { GenericProgress } from "../../_components/generic-progress"
export default function BuildBattleTitleProgress({ score }: { score: number }) { export default function BuildBattleTitleProgress({ score }: { score: number }) {
const current = getBuildBattleRank(score) const current = getBuildBattleRank(score)

View File

@@ -3,7 +3,7 @@ import { getBuildBattleRank } from "@/lib/hypixel/build-battle/general"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function BuildBattleGeneralStats({ stats }: { stats: NonNullable<NonNullStats["BuildBattle"]> }) { export default function BuildBattleGeneralStats({ stats }: { stats: NonNullable<NonNullStats["BuildBattle"]> }) {
const rank = getBuildBattleRank(stats.score) const rank = getBuildBattleRank(stats.score)

View File

@@ -1,7 +1,7 @@
import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { formatNumber, formatSecondsToTime } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" 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 }) { export function ArenaBrawlGeneralStats({ coins, keys, ws }: { coins: number, keys: number, ws: number }) {
return ( return (

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function CopsAndCrimsGeneralStats( export default function CopsAndCrimsGeneralStats(
{ stats, kills, assits, deaths, wins }: { { stats, kills, assits, deaths, wins }: {

View File

@@ -7,7 +7,7 @@ import {
} from "@/lib/hypixel/copsandcrims/general" } from "@/lib/hypixel/copsandcrims/general"
import { romanize } from "@/lib/hypixel/general" import { romanize } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { GenericProgressNoTooltip } from "../../_components/GenericProgress" import { GenericProgressNoTooltip } from "../../_components/generic-progress"
export default function CopsAndCrimsWeaponStats({ stats }: { stats: NonNullable<NonNullStats["CopsAndCrims"]> }) { export default function CopsAndCrimsWeaponStats({ stats }: { stats: NonNullable<NonNullStats["CopsAndCrims"]> }) {
return ( return (

View File

@@ -3,7 +3,7 @@ import { Div } from "@/lib/hypixel/duels/general"
import { romanize } from "@/lib/hypixel/general" import { romanize } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function DuelsGeneralStats( export default function DuelsGeneralStats(
{ stats, div, kd, wl }: { stats: NonNullable<NonNullStats["Duels"]>, div: Div | null, kd: string, wl: string } { stats, div, kd, wl }: { stats: NonNullable<NonNullStats["Duels"]>, div: Div | null, kd: string, wl: string }

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function MegaWallsGeneralStats({ stats }: { stats: NonNullable<NonNullStats["MegaWalls"]> }) { export default function MegaWallsGeneralStats({ stats }: { stats: NonNullable<NonNullStats["MegaWalls"]> }) {
const wl = formatNumber(devide(stats.wins, stats.losses)) const wl = formatNumber(devide(stats.wins, stats.losses))

View File

@@ -1,7 +1,7 @@
import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { formatNumber, formatSecondsToTime } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function MurderMysteryInfectionStats({ stats }: { stats: NonNullable<NonNullStats["MurderMystery"]> }) { export default function MurderMysteryInfectionStats({ stats }: { stats: NonNullable<NonNullStats["MurderMystery"]> }) {
return ( return (

View File

@@ -2,7 +2,7 @@ import { formatNumber, formatSecondsToTime } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { getMurderMysteryKnifeName } from "@/lib/hypixel/murder-mystery/general" import { getMurderMysteryKnifeName } from "@/lib/hypixel/murder-mystery/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function MurderMysteryGeneralStats({ stats }: { stats: NonNullable<NonNullStats["MurderMystery"]> }) { export default function MurderMysteryGeneralStats({ stats }: { stats: NonNullable<NonNullStats["MurderMystery"]> }) {
const kd = formatNumber(devide(stats.kills, stats.deaths)) const kd = formatNumber(devide(stats.kills, stats.deaths))

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getProgress } from "@/lib/hypixel/general" import { getProgress } from "@/lib/hypixel/general"
import { getPitPrestigeColor, getPitXpForPrestige } from "@/lib/hypixel/pit/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 }) { export default function PitProgress({ prestige, xp }: { prestige: number, xp: number }) {
const presColor = getPitPrestigeColor(prestige) const presColor = getPitPrestigeColor(prestige)

View File

@@ -3,7 +3,7 @@ import { devide, romanize } from "@/lib/hypixel/general"
import { getPitLevelColor, getPitPrestige, getPitPrestigeColor } from "@/lib/hypixel/pit/general" import { getPitLevelColor, getPitPrestige, getPitPrestigeColor } from "@/lib/hypixel/pit/general"
import { getPitLevel } from "@/lib/hypixel/pit/level" import { getPitLevel } from "@/lib/hypixel/pit/level"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function PitGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Pit"]> }) { export default function PitGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Pit"]> }) {
const prestige = getPitPrestige(stats) const prestige = getPitPrestige(stats)

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { getSkyWarsIcon, getSkywarsPrestige } from "@/lib/hypixel/skywars/general" import { getSkyWarsIcon, getSkywarsPrestige } from "@/lib/hypixel/skywars/general"
import { getSkywarsLevel } from "@/lib/hypixel/skywars/level" import { getSkywarsLevel } from "@/lib/hypixel/skywars/level"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { GenericProgress } from "../../_components/GenericProgress" import { GenericProgress } from "../../_components/generic-progress"
import { SkywarsHeadsBar, SkywarsPresigeousHeads } from "./client" import { SkywarsHeadsBar, SkywarsPresigeousHeads } from "./client"
type SkywarsHeadsProps = { type SkywarsHeadsProps = {

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat, Stat } from "../../_components/Stats" import { BasicStat, Stat } from "../../_components/stats"
import { SkywarsPrestige } from "./components" import { SkywarsPrestige } from "./components"
export default function SkyWarsGeneralStats({ stats, level }: { stats: NonNullable<NonNullStats["SkyWars"]>, level: number }) { export default function SkyWarsGeneralStats({ stats, level }: { stats: NonNullable<NonNullStats["SkyWars"]>, level: number }) {

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function SmashHerosGeneralStats({ stats }: { stats: NonNullable<NonNullStats["SmashHeros"]> }) { export default function SmashHerosGeneralStats({ stats }: { stats: NonNullable<NonNullStats["SmashHeros"]> }) {
const kd = formatNumber(devide(stats.kills, stats.deaths)) const kd = formatNumber(devide(stats.kills, stats.deaths))

View File

@@ -1,6 +1,6 @@
import { getProgress } from "@/lib/hypixel/general" import { getProgress } from "@/lib/hypixel/general"
import { getSpeedUHCScore, getSpeedUHCTitle } from "@/lib/hypixel/speeduhc/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 }) { export default function SpeedUHCProgress({ level, score }: { level: number, score: number }) {
const nextScore = getSpeedUHCScore(level + 1) const nextScore = getSpeedUHCScore(level + 1)

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { getSpeedUHCStar, getSpeedUHCTitle } from "@/lib/hypixel/speeduhc/general" import { getSpeedUHCStar, getSpeedUHCTitle } from "@/lib/hypixel/speeduhc/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function SpeedUHCGeneralStats({ stats, uhcCoins }: { stats: NonNullable<NonNullStats["SpeedUHC"]>, uhcCoins: number | undefined }) { export default function SpeedUHCGeneralStats({ stats, uhcCoins }: { stats: NonNullable<NonNullStats["SpeedUHC"]>, uhcCoins: number | undefined }) {
const star = getSpeedUHCStar(stats.score) const star = getSpeedUHCStar(stats.score)

View File

@@ -3,7 +3,7 @@ import { Card, CardContent } from "@/components/ui/card"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { CircleSlash } from "lucide-react" import { CircleSlash } from "lucide-react"
import { ReactNode } from "react" import { ReactNode } from "react"
import CollapsedStats from "../_components/CollapsedStats" import CollapsedStats from "../_components/collapsed-stats"
export function GeneralStats( export function GeneralStats(
{ id, title, children, collapsedStats, className }: { { id, title, children, collapsedStats, className }: {

View File

@@ -1,7 +1,7 @@
import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { formatNumber, formatSecondsToTime } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function TNTGamesGeneralStats({ stats }: { stats: NonNullable<NonNullStats["TNTGames"]> }) { export default function TNTGamesGeneralStats({ stats }: { stats: NonNullable<NonNullStats["TNTGames"]> }) {
return ( return (

View File

@@ -3,8 +3,8 @@ import { formatNumber } from "@/lib/formatters"
import { devide, romanize } from "@/lib/hypixel/general" import { devide, romanize } from "@/lib/hypixel/general"
import { getTNTGameMode, getTNTModeStats } from "@/lib/hypixel/tnt-games/general" import { getTNTGameMode, getTNTModeStats } from "@/lib/hypixel/tnt-games/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { GenericProgressNoTooltip } from "../../_components/GenericProgress" import { GenericProgressNoTooltip } from "../../_components/generic-progress"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function TNTGamesWizardsStats({ stats }: { stats: NonNullable<NonNullStats["TNTGames"]> }) { export default function TNTGamesWizardsStats({ stats }: { stats: NonNullable<NonNullStats["TNTGames"]> }) {
return ( return (

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getProgress } from "@/lib/hypixel/general" import { getProgress } from "@/lib/hypixel/general"
import { getUhcStar, getUhcStarNext } from "@/lib/hypixel/uhc/level" 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 }) { export default function UHCProgress({ score }: { score: number }) {
const current = getUhcStar(score) const current = getUhcStar(score)

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { getUhcStar } from "@/lib/hypixel/uhc/level" import { getUhcStar } from "@/lib/hypixel/uhc/level"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function UHCGeneralStats( export default function UHCGeneralStats(
{ stats, kills, deaths, wins, heads }: { stats: NonNullable<NonNullStats["UHC"]>, kills: number, deaths: number, wins: number, heads: number } { stats, kills, deaths, wins, heads }: { stats: NonNullable<NonNullStats["UHC"]>, kills: number, deaths: number, wins: number, heads: number }

View File

@@ -2,7 +2,7 @@ import { formatNumber } from "@/lib/formatters"
import { devide } from "@/lib/hypixel/general" import { devide } from "@/lib/hypixel/general"
import { getWarlordsLosses } from "@/lib/hypixel/warlords/general" import { getWarlordsLosses } from "@/lib/hypixel/warlords/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export default function WarlordsGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Warlords"]> }) { export default function WarlordsGeneralStats({ stats }: { stats: NonNullable<NonNullStats["Warlords"]> }) {
const losses = getWarlordsLosses(stats) const losses = getWarlordsLosses(stats)

View File

@@ -3,7 +3,7 @@ import { devide } from "@/lib/hypixel/general"
import { getWoolGamesWoolWarsClass, getWoolGamesWoolWarsClassColor } from "@/lib/hypixel/woolgames/general" import { getWoolGamesWoolWarsClass, getWoolGamesWoolWarsClassColor } from "@/lib/hypixel/woolgames/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { BasicStat } from "../../_components/Stats" import { BasicStat } from "../../_components/stats"
export function WoolGamesCaptureTheWool({ ctw }: { ctw: NonNullable<NonNullStats["WoolGames"]>["capture_the_wool"] }) { export function WoolGamesCaptureTheWool({ ctw }: { ctw: NonNullable<NonNullStats["WoolGames"]>["capture_the_wool"] }) {
if (!ctw) { if (!ctw) {

View File

@@ -1,7 +1,7 @@
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getWoolGamesPrestige, getWoolGamesXPForLevel } from "@/lib/hypixel/woolgames/general" import { getWoolGamesPrestige, getWoolGamesXPForLevel } from "@/lib/hypixel/woolgames/general"
import { cn } from "@/lib/utils" 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 }) { export default function WoolGamesProgress({ xp, level }: { xp: number, level: number }) {
const pres = getWoolGamesPrestige(Math.floor(level)) const pres = getWoolGamesPrestige(Math.floor(level))

View File

@@ -1,7 +1,7 @@
import { formatNumber, formatSecondsToTime } from "@/lib/formatters" import { formatNumber, formatSecondsToTime } from "@/lib/formatters"
import { getWoolGamesPrestige } from "@/lib/hypixel/woolgames/general" import { getWoolGamesPrestige } from "@/lib/hypixel/woolgames/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import { BasicStat, Stat } from "../../_components/Stats" import { BasicStat, Stat } from "../../_components/stats"
export default function WoolGamesGeneralStats( export default function WoolGamesGeneralStats(
{ stats, level, kills, wins }: { stats: NonNullable<NonNullStats["WoolGames"]>, level: number, kills: number, wins: number } { stats, level, kills, wins }: { stats: NonNullable<NonNullStats["WoolGames"]>, level: number, kills: number, wins: number }

View File

@@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
import { formatNumber } from "@/lib/formatters" import { formatNumber } from "@/lib/formatters"
import { getWoolGamesLevel, getWoolGamesPrestige, getWoolGamesPretigeIcon } from "@/lib/hypixel/woolgames/general" import { getWoolGamesLevel, getWoolGamesPrestige, getWoolGamesPretigeIcon } from "@/lib/hypixel/woolgames/general"
import { NonNullStats } from "@/lib/schema/player" import { NonNullStats } from "@/lib/schema/player"
import Multicolored from "../../_components/Multicolored" import Multicolored from "../../_components/multicolored"
import { EmptyStats, GeneralStats } from "../stats-components" import { EmptyStats, GeneralStats } from "../stats-components"
import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes" import { WoolGamesCaptureTheWool, WoolGamesSheepWars, WoolGamesWoolWars } from "./modes"
import WoolGamesProgress from "./progress" import WoolGamesProgress from "./progress"

View File

@@ -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 { Card, CardContent } from "@/components/ui/card"
import { COOKIE_VALUES } from "@/data/general" import { COOKIE_VALUES } from "@/data/general"
import { env } from "@/lib/env/server" import { env } from "@/lib/env/server"
@@ -13,7 +13,7 @@ import { cookies } from "next/headers"
import { Suspense } from "react" import { Suspense } from "react"
import z from "zod" import z from "zod"
import { PlayerPageLoadText, PlayerStats } from "./_client" 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<Metadata> { export async function generateMetadata({ params }: { params: Promise<{ ign: string }> }): Promise<Metadata> {
const { ign } = await params const { ign } = await params