From b5a65829057345648fab6a99148dcde48bd7c8e4 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Thu, 3 Apr 2025 10:05:31 +0200 Subject: [PATCH] style(blackjack): format code and adjust whitespace --- .../animated-number.component.ts | 19 +++++++++++++------ .../game-result/game-result.component.ts | 3 ++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/feature/game/blackjack/components/animated-number/animated-number.component.ts b/frontend/src/app/feature/game/blackjack/components/animated-number/animated-number.component.ts index b9fc011..25ea0e4 100644 --- a/frontend/src/app/feature/game/blackjack/components/animated-number/animated-number.component.ts +++ b/frontend/src/app/feature/game/blackjack/components/animated-number/animated-number.component.ts @@ -1,4 +1,13 @@ -import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges, ElementRef, ViewChild, AfterViewInit } from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + Input, + OnChanges, + SimpleChanges, + ElementRef, + ViewChild, + AfterViewInit, +} from '@angular/core'; import { CommonModule, CurrencyPipe } from '@angular/common'; import { CountUp } from 'countup.js'; @@ -6,9 +15,7 @@ import { CountUp } from 'countup.js'; selector: 'app-animated-number', standalone: true, imports: [CommonModule, CurrencyPipe], - template: ` - {{ formattedValue }} - `, + template: ` {{ formattedValue }} `, changeDetection: ChangeDetectionStrategy.OnPush, }) export class AnimatedNumberComponent implements OnChanges, AfterViewInit { @@ -35,7 +42,7 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit { if (changes['value']) { if (this.countUp) { const endVal = this.value; - + this.countUp.update(endVal); this.previousValue = endVal; } else { @@ -73,4 +80,4 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit { }); } } -} \ No newline at end of file +} 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 5547e27..b841ee8 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 @@ -40,7 +40,8 @@ import { AnimatedNumberComponent } from '../animated-number/animated-number.comp [duration]="0.5" >
- (Einsatz × 2) + (Einsatz + × 2)