aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/types
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-07-06 15:02:14 -0700
committerPinapelz <yukais@pinapelz.com>2025-07-06 15:02:14 -0700
commitdf79d68cb3cbec15e985fed8c0cabc484ef55e35 (patch)
tree62c970857c24ee8f6ddf577ed2a03e82449ce01a /frontend/src/types
parentb5c0c0a991de459a6744d2475c735b0327a10f4d (diff)
move filter option configuration to constants.ts
Diffstat (limited to 'frontend/src/types')
-rw-r--r--frontend/src/types/constants.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/src/types/constants.ts b/frontend/src/types/constants.ts
index 3f2c97b..1e44b21 100644
--- a/frontend/src/types/constants.ts
+++ b/frontend/src/types/constants.ts
@@ -3,3 +3,20 @@ export const EamuseImportInfo: Record<string, { scorePage: string }> = {
scorePage: "https://p.eagate.573.jp/game/dan/1st/playdata/entrance.html#music_data",
},
};
+
+export function getFilterOptions(game: string): { value: string; label: string }[] {
+ switch (game) {
+ case "dancerush":
+ return [
+ { value: "timestamp", label: "Recent" },
+ { value: "score", label: "Score" },
+ { value: "lamp", label: "Rank" },
+ { value: "lamp_diff", label: "Difficulty"}
+ ];
+ default:
+ return [
+ { value: "timestamp", label: "Recent" },
+ { value: "score", label: "Score" },
+ ];
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage