cleanup imports
This commit is contained in:
parent
cd1f010698
commit
aaee96ad7b
@ -1,10 +1,5 @@
|
|||||||
import Leaderboard from "../leaderboard";
|
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 { LeaderboardStatus } from "../leaderboard-status";
|
||||||
import { MapCharacteristic } from "../../types/map-characteristic";
|
|
||||||
|
|
||||||
export default interface ScoreSaberLeaderboard extends Leaderboard {
|
export default interface ScoreSaberLeaderboard extends Leaderboard {
|
||||||
/**
|
/**
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { getModelForClass, modelOptions, plugin, Prop, ReturnModelType, Severity } from "@typegoose/typegoose";
|
import { getModelForClass, modelOptions, plugin, Prop, ReturnModelType, Severity } from "@typegoose/typegoose";
|
||||||
import Score from "../score";
|
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 { type ScoreSaberLeaderboardPlayerInfoToken } from "../../../types/token/scoresaber/score-saber-leaderboard-player-info-token";
|
||||||
import { Document } from "mongoose";
|
import { Document } from "mongoose";
|
||||||
import { AutoIncrementID } from "@typegoose/auto-increment";
|
import { AutoIncrementID } from "@typegoose/auto-increment";
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
import Player, { StatisticChange } from "../player";
|
import Player, { StatisticChange } from "../player";
|
||||||
import ky from "ky";
|
|
||||||
import { PlayerHistory } from "../player-history";
|
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.
|
* A ScoreSaber player.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import Service from "../service";
|
import Service from "../service";
|
||||||
import { BeatSaverMapToken } from "../../types/token/beatsaver/map";
|
|
||||||
import { ScoreStatsToken } from "../../types/token/beatleader/score-stats/score-stats";
|
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`;
|
const LOOKUP_MAP_STATS_BY_SCORE_ID_ENDPOINT = `https://cdn.scorestats.beatleader.xyz/:scoreId.json`;
|
||||||
|
@ -4,6 +4,7 @@ import { songNameToYouTubeLink } from "@/common/youtube-utils";
|
|||||||
import BeatSaverLogo from "@/components/logos/beatsaver-logo";
|
import BeatSaverLogo from "@/components/logos/beatsaver-logo";
|
||||||
import YouTubeLogo from "@/components/logos/youtube-logo";
|
import YouTubeLogo from "@/components/logos/youtube-logo";
|
||||||
import { useToast } from "@/hooks/use-toast";
|
import { useToast } from "@/hooks/use-toast";
|
||||||
|
import * as React from "react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import ScoreButton from "./score-button";
|
import ScoreButton from "./score-button";
|
||||||
import { copyToClipboard } from "@/common/browser-utils";
|
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 ScoreSaberLeaderboard from "@ssr/common/leaderboard/impl/scoresaber-leaderboard";
|
||||||
import { BeatSaverMap } from "@ssr/common/model/beatsaver/map";
|
import { BeatSaverMap } from "@ssr/common/model/beatsaver/map";
|
||||||
import BeatSaberPepeLogo from "@/components/logos/beatsaber-pepe-logo";
|
import BeatSaberPepeLogo from "@/components/logos/beatsaber-pepe-logo";
|
||||||
import * as React from "react";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
score?: ScoreSaberScore;
|
score?: ScoreSaberScore;
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
import { Tooltip as ShadCnTooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
|
import { Tooltip as ShadCnTooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { cn } from "@/common/utils";
|
import { cn } from "@/common/utils";
|
||||||
import { useDebounce } from "@uidotdev/usehooks";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user