diff --git a/nise-frontend/src/app/home/home.component.html b/nise-frontend/src/app/home/home.component.html index 5aaeb39..04cd255 100644 --- a/nise-frontend/src/app/home/home.component.html +++ b/nise-frontend/src/app/home/home.component.html @@ -44,8 +44,8 @@ -
-
+
+

new scores [live] @@ -62,11 +62,11 @@ new scores will appear here.

-
+
-
+
  • User: {{ replay.username }}
  • Date: {{ replay.date }}
  • diff --git a/nise-frontend/src/app/home/home.component.ts b/nise-frontend/src/app/home/home.component.ts index e12be61..803cc3f 100644 --- a/nise-frontend/src/app/home/home.component.ts +++ b/nise-frontend/src/app/home/home.component.ts @@ -4,7 +4,7 @@ import {environment} from "../../environments/environment"; import {LocalCacheService} from "../../corelib/service/local-cache.service"; import {RxStompService} from "../../corelib/stomp/stomp.service"; import {Message} from "@stomp/stompjs/esm6"; -import {ReplayData} from "../replays"; +import {ErrorDistribution, ReplayData, ReplayDataChart, ReplayDataSimilarScore} from "../replays"; import {DecimalPipe, NgForOf, NgIf} from "@angular/common"; import {Router, RouterLink} from "@angular/router"; import {HttpClient} from "@angular/common/http"; diff --git a/nise-frontend/src/app/replays.ts b/nise-frontend/src/app/replays.ts index a8fa771..1c88de4 100644 --- a/nise-frontend/src/app/replays.ts +++ b/nise-frontend/src/app/replays.ts @@ -66,6 +66,50 @@ export interface UserReplayData { charts: ReplayDataChart[]; } +export function getMockReplayData(): ReplayData { + return { + 'replay_id': 123, + 'user_id': 123, + 'username': 'username', + 'date': 'date', + 'beatmap_id': 123, + 'beatmap_beatmapset_id': 123, + 'beatmap_artist': 'beatmap_artist', + 'beatmap_title': 'beatmap_title', + 'beatmap_star_rating': 123, + 'beatmap_creator': 'beatmap_creator', + 'beatmap_version': 'beatmap_version', + 'score': 123, + 'mods': ['mods'], + 'rank': 'rank', + 'ur': 123, + 'average_ur': 123, + 'adjusted_ur': 123, + 'frametime': 123, + 'snaps': 123, + 'hits': 123, + 'pp': 123, + 'perfect': true, + 'max_combo': 123, + 'mean_error': 123, + 'error_variance': 123, + 'error_standard_deviation': 123, + 'minimum_error': 123, + 'maximum_error': 123, + 'error_range': 123, + 'error_coefficient_of_variation': 123, + 'error_kurtosis': 123, + 'error_skewness': 123, + 'count_300': 123, + 'count_100': 123, + 'count_50': 123, + 'count_miss': 123, + 'similar_scores': [], + 'error_distribution': {}, + 'charts': [] + }; +} + export interface ReplayData { replay_id: number | null; user_id: number;