mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 16:59:36 +08:00
[+] Top 10 out of recent 40
This commit is contained in:
@@ -9,9 +9,12 @@
|
||||
export let comp: string | undefined;
|
||||
export let allMusics: Record<string, MusicMeta>;
|
||||
export let game: GameName;
|
||||
export let top: number | undefined = undefined;
|
||||
|
||||
const split = comp?.split(",")?.filter(it => it.split(":")[0] !== '0')
|
||||
?.map(it => parseComposition(it, allMusics[it.split(":")[0]], game))
|
||||
let split = comp?.split(",")?.filter(it => it.split(":")[0] !== '0')
|
||||
?.map(it => parseComposition(it, allMusics, game))
|
||||
|
||||
if (top) split = split?.toSorted((a, b) => b.score - a.score).slice(0, top)
|
||||
if (split) console.log("Split", split)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user