From 428c33b0008d7b57e01fba763b192b7669788d51 Mon Sep 17 00:00:00 2001 From: Lea Date: Wed, 19 Feb 2025 13:00:27 +0100 Subject: [PATCH] formatted --- .../src/app/feature/home/home.component.html | 40 +++++++++++-------- .../src/app/feature/home/home.component.ts | 20 +++++----- 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/frontend/src/app/feature/home/home.component.html b/frontend/src/app/feature/home/home.component.html index d2c46a4..56a49cf 100644 --- a/frontend/src/app/feature/home/home.component.html +++ b/frontend/src/app/feature/home/home.component.html @@ -1,10 +1,7 @@
-
- -
- +
@@ -25,10 +22,12 @@
- -
+ +
-

{{game.name}}

+

{{ game.name }}

@@ -42,10 +41,12 @@
- -
+ +
-

{{game.name}}

+

{{ game.name }}

@@ -59,21 +60,28 @@

Konto

- - + +

Letzte Transaktionen

-
+
-

{{transaction.type}}

-

{{transaction.date}}

+

{{ transaction.type }}

+

{{ transaction.date }}

- {{transaction.amount | currency:'EUR'}} + {{ transaction.amount | currency: 'EUR' }}
diff --git a/frontend/src/app/feature/home/home.component.ts b/frontend/src/app/feature/home/home.component.ts index fc53cf5..ebb2f02 100644 --- a/frontend/src/app/feature/home/home.component.ts +++ b/frontend/src/app/feature/home/home.component.ts @@ -3,7 +3,7 @@ import { KeycloakService } from 'keycloak-angular'; import { MatDialog } from '@angular/material/dialog'; import { DepositComponent } from '../deposit/deposit.component'; import { NavbarComponent } from '../../shared/components/navbar/navbar.component'; -import {CurrencyPipe, NgFor} from "@angular/common"; +import { CurrencyPipe, NgFor } from '@angular/common'; interface Game { id: string; @@ -31,7 +31,7 @@ export default class HomeComponent { userAvatar = '/assets/images/default-avatar.png'; username = this.keycloakService.getUsername(); vipLevel = 1; - balance = 1000.00; + balance = 1000.0; featuredGames: Game[] = [ { @@ -63,7 +63,7 @@ export default class HomeComponent { id: '6', name: 'Lootboxen', image: '/lootbox.webp', - } + }, ]; allGames: Game[] = [...this.featuredGames]; @@ -72,21 +72,21 @@ export default class HomeComponent { { id: '1', type: 'Deposit', - amount: 100.00, - date: '2024-03-20' + amount: 100.0, + date: '2024-03-20', }, { id: '2', type: 'Withdrawal', - amount: -50.00, - date: '2024-03-19' + amount: -50.0, + date: '2024-03-19', }, { id: '3', type: 'Bonus', - amount: 25.00, - date: '2024-03-18' - } + amount: 25.0, + date: '2024-03-18', + }, ]; public logout() {