aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/types/constants.ts
blob: d51869ef396be05ce35bf5c9cee839c56061ed6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export const globalSkipKeys = [
  "id",
  "internalname",
  "internalName",
  "gameInternalName",
  "userId",
  "chartId"
];

export function getFilterOptions(game: string): { value: string; label: string }[] {
  switch (game) {
    case "dancerush":
      return [
        { value: "timestamp", label: "Recently Played" },
        { 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