diff --git a/projects/common/src/leaderboard/impl/scoresaber-leaderboard.ts b/projects/common/src/leaderboard/impl/scoresaber-leaderboard.ts index 78cfdbf..18400bf 100644 --- a/projects/common/src/leaderboard/impl/scoresaber-leaderboard.ts +++ b/projects/common/src/leaderboard/impl/scoresaber-leaderboard.ts @@ -1,10 +1,5 @@ import Leaderboard from "../leaderboard"; -import LeaderboardDifficulty from "../leaderboard-difficulty"; -import ScoreSaberLeaderboardToken from "../../types/token/scoresaber/score-saber-leaderboard-token"; -import { getDifficultyFromScoreSaberDifficulty } from "../../utils/scoresaber-utils"; -import { parseDate } from "../../utils/time-utils"; import { LeaderboardStatus } from "../leaderboard-status"; -import { MapCharacteristic } from "../../types/map-characteristic"; export default interface ScoreSaberLeaderboard extends Leaderboard { /** diff --git a/projects/common/src/model/score/impl/scoresaber-score.ts b/projects/common/src/model/score/impl/scoresaber-score.ts index 4280dc9..d3df69e 100644 --- a/projects/common/src/model/score/impl/scoresaber-score.ts +++ b/projects/common/src/model/score/impl/scoresaber-score.ts @@ -1,8 +1,5 @@ import { getModelForClass, modelOptions, plugin, Prop, ReturnModelType, Severity } from "@typegoose/typegoose"; import Score from "../score"; -import { Modifier } from "../../../score/modifier"; -import ScoreSaberScoreToken from "../../../types/token/scoresaber/score-saber-score-token"; -import ScoreSaberLeaderboard from "../../../leaderboard/impl/scoresaber-leaderboard"; import { type ScoreSaberLeaderboardPlayerInfoToken } from "../../../types/token/scoresaber/score-saber-leaderboard-player-info-token"; import { Document } from "mongoose"; import { AutoIncrementID } from "@typegoose/auto-increment"; diff --git a/projects/common/src/player/impl/scoresaber-player.ts b/projects/common/src/player/impl/scoresaber-player.ts index 14b58e2..88fb59b 100644 --- a/projects/common/src/player/impl/scoresaber-player.ts +++ b/projects/common/src/player/impl/scoresaber-player.ts @@ -1,11 +1,5 @@ import Player, { StatisticChange } from "../player"; -import ky from "ky"; import { PlayerHistory } from "../player-history"; -import ScoreSaberPlayerToken from "../../types/token/scoresaber/score-saber-player-token"; -import { formatDateMinimal, getDaysAgoDate, getMidnightAlignedDate } from "../../utils/time-utils"; -import { getPageFromRank } from "../../utils/utils"; -import { Config } from "../../config"; -import { getValueFromHistory } from "../../utils/player-utils"; /** * A ScoreSaber player. diff --git a/projects/common/src/service/impl/beatleader.ts b/projects/common/src/service/impl/beatleader.ts index 3f26fe2..1a1ad83 100644 --- a/projects/common/src/service/impl/beatleader.ts +++ b/projects/common/src/service/impl/beatleader.ts @@ -1,5 +1,4 @@ import Service from "../service"; -import { BeatSaverMapToken } from "../../types/token/beatsaver/map"; import { ScoreStatsToken } from "../../types/token/beatleader/score-stats/score-stats"; const LOOKUP_MAP_STATS_BY_SCORE_ID_ENDPOINT = `https://cdn.scorestats.beatleader.xyz/:scoreId.json`; diff --git a/projects/website/src/components/score/score-buttons.tsx b/projects/website/src/components/score/score-buttons.tsx index 51d1b42..fbdb420 100644 --- a/projects/website/src/components/score/score-buttons.tsx +++ b/projects/website/src/components/score/score-buttons.tsx @@ -4,6 +4,7 @@ import { songNameToYouTubeLink } from "@/common/youtube-utils"; import BeatSaverLogo from "@/components/logos/beatsaver-logo"; import YouTubeLogo from "@/components/logos/youtube-logo"; import { useToast } from "@/hooks/use-toast"; +import * as React from "react"; import { useState } from "react"; import ScoreButton from "./score-button"; import { copyToClipboard } from "@/common/browser-utils"; @@ -14,7 +15,6 @@ import { ScoreSaberScore } from "@ssr/common/model/score/impl/scoresaber-score"; import ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard"; import { BeatSaverMap } from "@ssr/common/model/beatsaver/map"; import BeatSaberPepeLogo from "@/components/logos/beatsaber-pepe-logo"; -import * as React from "react"; type Props = { score?: ScoreSaberScore; diff --git a/projects/website/src/components/tooltip.tsx b/projects/website/src/components/tooltip.tsx index 88693af..2be4e64 100644 --- a/projects/website/src/components/tooltip.tsx +++ b/projects/website/src/components/tooltip.tsx @@ -3,7 +3,6 @@ import { Tooltip as ShadCnTooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip"; import { useState } from "react"; import { cn } from "@/common/utils"; -import { useDebounce } from "@uidotdev/usehooks"; type Props = { /**