make mapper name clickable on the leaderboard
Some checks are pending
Deploy Website / docker (ubuntu-latest) (push) Waiting to run
Deploy Backend / docker (ubuntu-latest) (push) Successful in 1m11s

This commit is contained in:
Lee
2024-10-20 13:43:25 +01:00
parent 4d8debe333
commit 57a9780fe8
5 changed files with 29 additions and 10 deletions

View File

@ -0,0 +1,11 @@
import { BeatSaverMap } from "../model/beatsaver/beatsaver-map";
/**
* Gets the beatSaver mapper profile url.
*
* @param map the beatsaver map
* @returns the beatsaver mapper profile url
*/
export function getBeatSaverMapperProfileUrl(map?: BeatSaverMap) {
return map != undefined ? `https://beatsaver.com/profile/${map?.author.id}` : undefined;
}

View File

@ -1,6 +1,6 @@
import ScoreSaberPlayerToken from "./types/token/scoresaber/score-saber-player-token";
import ScoreSaberLeaderboardPlayerInfoToken from "./types/token/scoresaber/score-saber-leaderboard-player-info-token";
import ScoreSaberPlayer from "./player/impl/scoresaber-player";
import ScoreSaberPlayerToken from "../types/token/scoresaber/score-saber-player-token";
import ScoreSaberLeaderboardPlayerInfoToken from "../types/token/scoresaber/score-saber-leaderboard-player-info-token";
import ScoreSaberPlayer from "../player/impl/scoresaber-player";
type ScoreSaberRole = {
/**