From 7bec17dd52a5f9dbea43de0199f88cc20112a477 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Wed, 2 Apr 2025 13:04:22 +0200 Subject: [PATCH] style: Format code for readability and consistency --- .../game-result/game-result.component.ts | 29 +++++---- .../debt-dialog/debt-dialog.component.ts | 60 ++++++++++++++----- .../components/navbar/navbar.component.html | 4 +- 3 files changed, 67 insertions(+), 26 deletions(-) diff --git a/frontend/src/app/feature/game/blackjack/components/game-result/game-result.component.ts b/frontend/src/app/feature/game/blackjack/components/game-result/game-result.component.ts index 59a6d9f..63ca955 100644 --- a/frontend/src/app/feature/game/blackjack/components/game-result/game-result.component.ts +++ b/frontend/src/app/feature/game/blackjack/components/game-result/game-result.component.ts @@ -13,28 +13,35 @@ import { GameState } from '../../enum/gameState';

{{ getResultMessage() }}

-
+
Einsatz:
-
{{ amount | currency:'EUR' }}
+
{{ amount | currency: 'EUR' }}
{{ isDraw ? 'Zurückgegeben:' : isWin ? 'Gewonnen:' : 'Verloren:' }}
-
- {{ isLoss ? '-' : '+' }}{{ isWin ? (amount * 2) : amount | currency:'EUR' }} +
+ {{ isLoss ? '-' : '+' }}{{ isWin ? amount * 2 : (amount | currency: 'EUR') }}
- (Einsatz {{ amount | currency:'EUR' }} × 2) + (Einsatz {{ amount | currency: 'EUR' }} × 2)
-
Kontostand:
+
+ Kontostand: +
- {{ balance | currency:'EUR' }} + {{ balance | currency: 'EUR' }}
diff --git a/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts b/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts index 90f9a9b..a57dfe0 100644 --- a/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts +++ b/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts @@ -1,4 +1,13 @@ -import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnDestroy, OnInit, Output, signal } from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Input, + OnDestroy, + OnInit, + Output, + signal, +} from '@angular/core'; import { CommonModule } from '@angular/common'; import { animate, style, transition, trigger } from '@angular/animations'; import { interval, takeWhile } from 'rxjs'; @@ -12,19 +21,22 @@ import { interval, takeWhile } from 'rxjs';