Add plat level score and move classic endpoint

This commit is contained in:
Lncvrt committed 2026-02-20 10:36:34 -07:00
1 parent a270e77236
commit 28024ce6f0
4 files changed
+78 -19

No files matched your search

+10
View File
@@ -21,3 +21,13 @@ export const encodeGJP2 = async (password = '', salt = 'mI29fmAnxgTs') => {
.map(b => b.toString(16).padStart(2, '0'))
.join('')
}
export const generateTimeLength = (ms: number): string => {
const minutes = Math.floor(ms / 60000)
const seconds = Math.floor((ms % 60000) / 1000)
const milliseconds = ms % 1000
const secStr = seconds.toString().padStart(2, '0')
const msStr = milliseconds.toString().padStart(3, '0')
return `${minutes}:${secStr}.${msStr}`
}