aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-22 01:36:50 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-22 01:37:28 -0700
commit7b5ae11e469c762ed8145cf74bd1c67d9002c52b (patch)
tree9a279c051996bfaea46b958841cb5539935cd356
parent371ce5aba3ba8be9e00f93d3a4d36abff3e5e180 (diff)
frontend: add wac_plus
-rw-r--r--community/wacca_plus/wacca_plus.py2
-rw-r--r--generate.py5
-rw-r--r--site/src/components/TitleBar.tsx4
-rw-r--r--site/src/utils.ts1
4 files changed, 9 insertions, 3 deletions
diff --git a/community/wacca_plus/wacca_plus.py b/community/wacca_plus/wacca_plus.py
index 023a7ae..cae3cc5 100644
--- a/community/wacca_plus/wacca_plus.py
+++ b/community/wacca_plus/wacca_plus.py
@@ -120,7 +120,7 @@ def parse_announcement_messages(message_json: dict):
news_posts.append({
"date": date,
"identifier": "WACCA_PLUS",
- "type": type,
+ "type": type.upper(),
"timestamp": unix_time,
"content": "NEW INFORMATION FROM WACCA+ / WACCA+ の最新情報",
"headline": None,
diff --git a/generate.py b/generate.py
index fbdbf5c..36ce6f9 100644
--- a/generate.py
+++ b/generate.py
@@ -131,7 +131,7 @@ if __name__ == "__main__":
chunithm_intl_news_data = generate_chunithm_intl_news_file()
music_diver_news_data = generate_music_diver_news_file()
taiko_news_data = generate_taiko_news_file()
- generate_wacca_plus_news_file()
+ wacca_plus_news = generate_wacca_plus_news_file()
news = create_merged_feed(
@@ -148,7 +148,8 @@ if __name__ == "__main__":
maimaidx_intl_news_data,
chunithm_intl_news_data,
music_diver_news_data,
- taiko_news_data
+ taiko_news_data,
+ wacca_plus_news
)
log_output("Creating merged news.json file for all news that are within " + str(constants.DAYS_LIMIT) + " days old")
with open(OUTPUT_DIR+'/news.json', 'w') as json_file:
diff --git a/site/src/components/TitleBar.tsx b/site/src/components/TitleBar.tsx
index b20beae..3018357 100644
--- a/site/src/components/TitleBar.tsx
+++ b/site/src/components/TitleBar.tsx
@@ -84,6 +84,10 @@ const TitleBar: React.FC = () => {
name: "BANDAI NAMCO",
games: [{ id: "taiko", title: "TAIKO" }],
},
+ {
+ name: "COMMUNITY",
+ games: [{ id: "wacca_plus", title: "WACCA+" }],
+ },
];
useEffect(() => {
diff --git a/site/src/utils.ts b/site/src/utils.ts
index 77a1aa1..18ea80c 100644
--- a/site/src/utils.ts
+++ b/site/src/utils.ts
@@ -17,6 +17,7 @@ export const getGameTitle = (gameId: string) => {
if (lowerCaseGameId.startsWith("popn_music")) return "pop'n music";
if (lowerCaseGameId.startsWith("music_diver")) return "MUSIC DIVER";
if (lowerCaseGameId.startsWith("taiko")) return "Taiko no Tatsujin";
+ if (lowerCaseGameId.startsWith("wacca")) return "WACCA+";
return gameId.toUpperCase();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage