make mapper name clickable on the leaderboard
This commit is contained in:
11
projects/common/src/utils/beatsaver.util.ts
Normal file
11
projects/common/src/utils/beatsaver.util.ts
Normal 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;
|
||||
}
|
@ -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 = {
|
||||
/**
|
Reference in New Issue
Block a user