From 609cab37a8bea1bd78b678581d9ed2f9c4baea1b Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 17 Apr 2025 12:53:24 -0700 Subject: add extended eamuse feed bemani titles to frontend --- site/src/components/TitleBar.tsx | 6 +++++- site/src/utils.ts | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'site/src') diff --git a/site/src/components/TitleBar.tsx b/site/src/components/TitleBar.tsx index 2f7e3c1..8894ced 100644 --- a/site/src/components/TitleBar.tsx +++ b/site/src/components/TitleBar.tsx @@ -16,7 +16,11 @@ const TitleBar: React.FC = () => { games: [ { id: "iidx", title: "beatmania IIDX" }, { id: "sdvx", title: "SOUND VOLTEX" }, - { id: "ddr", title: "DanceDanceRevolution"} + { id: "ddr", title: "DanceDanceRevolution"}, + { id: "jubeat", title: "jubeat"}, + { id: "popn_music", title: "pop'n music"}, + { id: "nostalgia", title: "NOSTALGIA"}, + { id: "gitadora", title: "GITADORA"} ], }, { diff --git a/site/src/utils.ts b/site/src/utils.ts index 7bf4648..34d4049 100644 --- a/site/src/utils.ts +++ b/site/src/utils.ts @@ -10,7 +10,12 @@ export const getGameTitle = (gameId: string) => { if (lowerCaseGameId.startsWith("maimaidx_intl")) return "maimai DX (INTERNATIONAL)"; if (lowerCaseGameId.startsWith("ongeki_jp")) return "O.N.G.E.K.I" if (lowerCaseGameId.startsWith("chunithm_intl")) return "CHUNITHM (INTERNATIONAL)" - if (lowerCaseGameId.startsWith("ddr")) return "DanceDanceRevolution" + if (lowerCaseGameId.startsWith("ddr")) return "DanceDanceRevolution"; + if (lowerCaseGameId.startsWith("jubeat")) return "jubeat"; + if (lowerCaseGameId.startsWith("gitadora")) return "GITADORA"; + if (lowerCaseGameId.startsWith("nostalgia")) return "NOSTALGIA"; + if (lowerCaseGameId.startsWith("popn_music")) return "pop'n music"; + return gameId.toUpperCase(); }; -- cgit v1.2.3