[+] Switching games in leaderboard

This commit is contained in:
Azalea
2024-03-14 22:35:36 -04:00
parent 7bbd90ab91
commit 10d19a5392
6 changed files with 46 additions and 17 deletions

View File

@@ -5,8 +5,7 @@
GenericGameSummary,
MusicMeta,
TrendEntry,
AquaNetUser,
CardSummary
AquaNetUser
} from "../libs/generalTypes";
import { DATA_HOST } from "../libs/config";
import 'cal-heatmap/cal-heatmap.css';
@@ -17,7 +16,7 @@
import { type GameName, getMult } from "../libs/scoring";
import StatusOverlays from "../components/StatusOverlays.svelte";
import Icon from "@iconify/svelte";
import {t} from "../libs/i18n";
import { GAME_TITLE, t } from "../libs/i18n";
const TREND_DAYS = 60
@@ -30,8 +29,6 @@
let me: AquaNetUser
title(`User ${username}`)
const GAME_TITLE: { [key in GameName]: string } =
{chu3: t("UserHome.Game.Chu3"), mai2: t("UserHome.Game.Mai2"), ongeki: t("UserHome.Game.Ongeki")}
const titleText = GAME_TITLE[game]
interface MusicAndPlay extends MusicMeta, GenericGamePlaylog {}