From 16e477b874d82e9d3a96d46ef7aad64a4668f6ce Mon Sep 17 00:00:00 2001 From: Me Date: Wed, 23 Nov 2022 03:31:13 +0000 Subject: [PATCH] Eveything still works, cool, adding fetch user to the ProfileDisplay, good stuff, so far so good --- .../api_front/src/ProfileDisplay.svelte | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/srcs/requirements/svelte/api_front/src/ProfileDisplay.svelte b/srcs/requirements/svelte/api_front/src/ProfileDisplay.svelte index b2f818c9..4ee9fa66 100644 --- a/srcs/requirements/svelte/api_front/src/ProfileDisplay.svelte +++ b/srcs/requirements/svelte/api_front/src/ProfileDisplay.svelte @@ -1,5 +1,7 @@ + + +{#if user !== undefined}
- default user icon -
{username}
+ +
{user.image_url}
+ default user icon +
{user.username}
Rank: {rank}

Match Statistics

-

Total: {games.total}

-

Victories: {games.won}

-

Losses: {games.lost}

+

Total: {user.stats.totalGame}

+

Victories: {user.stats.winGame}

+

Losses: {user.stats.loseGame}

+

Draws: {user.stats.drawGame}

- +{/if}