Feat: Favorites (for all supported games) (#174)

This commit is contained in:
Raymond
2025-09-30 01:56:26 -04:00
committed by GitHub
parent 4971f2be78
commit 2ab2666ad0
9 changed files with 87 additions and 8 deletions

View File

@@ -107,7 +107,8 @@ export interface GenericGameSummary {
lastVersion: string
ratingComposition: { [key: string]: any }
recent: GenericGamePlaylog[]
rival?: boolean
rival?: boolean,
favorites?: number[]
}
export interface MusicMeta {

View File

@@ -28,6 +28,7 @@ export const EN_REF_USER = {
'UserHome.RemoveRival': "Remove from Rival",
'UserHome.InvalidGame': "Game ${game} is not supported on the web UI yet. We only support maimai, chunithm, wacca, and ongeki for now.",
'UserHome.ShowMoreRecent': 'Show more',
'UserHome.FavoriteSongs': 'Favorite Songs'
}
export const EN_REF_Welcome = {

View File

@@ -40,6 +40,7 @@ const zhUser: typeof EN_REF_USER = {
'UserHome.RemoveRival': "移除劲敌",
'UserHome.InvalidGame': "游戏 ${game} 还不支持网页端查看。我们目前只支持舞萌、中二、华卡和音击。",
'UserHome.ShowMoreRecent': "显示更多",
'UserHome.FavoriteSongs': "收藏歌曲"
}
const zhWelcome: typeof EN_REF_Welcome = {