format plays number in leaderboard embed
Some checks failed
deploy / deploy (push) Has been cancelled
Some checks failed
deploy / deploy (push) Has been cancelled
This commit is contained in:
parent
842b222856
commit
42edd95eeb
@ -1,4 +1,5 @@
|
|||||||
import Leaderboard from "@/components/leaderboard/Leaderboard";
|
import Leaderboard from "@/components/leaderboard/Leaderboard";
|
||||||
|
import { formatNumber } from "@/utils/number";
|
||||||
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
|
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
|
||||||
import { formatTime } from "@/utils/timeUtils";
|
import { formatTime } from "@/utils/timeUtils";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
@ -24,10 +25,10 @@ export async function generateMetadata({
|
|||||||
siteName: "ScoreSaber",
|
siteName: "ScoreSaber",
|
||||||
title: `${leaderboard.songName}`,
|
title: `${leaderboard.songName}`,
|
||||||
description: `View the leaderboard for ${leaderboard.songName}.
|
description: `View the leaderboard for ${leaderboard.songName}.
|
||||||
|
|
||||||
Song: ${leaderboard.songName} (${leaderboard.songSubName})
|
Song: ${leaderboard.songName} (${leaderboard.songSubName})
|
||||||
Mapper: ${leaderboard.levelAuthorName}
|
Mapper: ${leaderboard.levelAuthorName}
|
||||||
Total plays: ${leaderboard.plays}
|
Total plays: ${formatNumber(leaderboard.plays)}
|
||||||
Created: ${formatTime(new Date(leaderboard.createdDate))}
|
Created: ${formatTime(new Date(leaderboard.createdDate))}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user