Update deployment scripts, add leaderboard feature, and bump version to 2.0.0

This commit is contained in:
2026-01-26 20:06:38 +08:00
parent 8d58bf683f
commit f3ce687ab8
13 changed files with 2777 additions and 1672 deletions

View File

@@ -80,3 +80,28 @@ scores_save = {
}
}
}
# Leaderboard schemas
leaderboard_check = {
'$schema': 'http://json-schema.org/schema#',
'type': 'object',
'properties': {
'song_id': {'type': 'string'},
'difficulty': {'type': 'string'},
'score': {'type': 'integer'}
},
'required': ['song_id', 'difficulty', 'score']
}
leaderboard_save = {
'$schema': 'http://json-schema.org/schema#',
'type': 'object',
'properties': {
'song_id': {'type': 'string'},
'difficulty': {'type': 'string'},
'username': {'type': 'string', 'minLength': 1, 'maxLength': 10},
'score': {'type': 'integer'}
},
'required': ['song_id', 'difficulty', 'username', 'score']
}