From fa723fb81bb8af91b38a055b1e21c3afc019c5a1 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:28:56 +0400 Subject: feat/frontend: add dates to recent scores in homepage (#296) --- frontend/src/api/Stats.ts | 49 ++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'frontend/src/api/Stats.ts') diff --git a/frontend/src/api/Stats.ts b/frontend/src/api/Stats.ts index 21654b5..a334918 100644 --- a/frontend/src/api/Stats.ts +++ b/frontend/src/api/Stats.ts @@ -2,36 +2,37 @@ import axios from "axios"; import { url } from "./Api"; export interface PortalCountData { - date: string; - count: number; + date: string; + count: number; } export interface RecordsTimelineResponse { - timeline_singleplayer: PortalCountData[]; - timeline_multiplayer: PortalCountData[]; + timeline_singleplayer: PortalCountData[]; + timeline_multiplayer: PortalCountData[]; } export interface ScoreLog { - game: { - id: number; - name: string; - image: string; - is_coop: boolean; - category_portals: null; - }; - user: { - steam_id: string; - user_name: string; - }; - map: { - id: number; - name: string; - image: string; - is_disabled: boolean; - portal_count: number; - difficulty: number; - }; - score_count: number; + game: { + id: number; + name: string; + image: string; + is_coop: boolean; + category_portals: null; + }; + user: { + steam_id: string; + user_name: string; + }; + map: { + id: number; + name: string; + image: string; + is_disabled: boolean; + portal_count: number; + difficulty: number; + }; + score_count: number; + date: string; } export async function get_portal_count_history(): Promise { -- cgit v1.2.3