chore: prettier
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
CI / Docker backend validation (pull_request) Successful in 13s
CI / eslint (pull_request) Successful in 36s
CI / Docker frontend validation (pull_request) Successful in 53s
CI / Checkstyle Main (pull_request) Successful in 52s
CI / oxlint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 26s
CI / test-build (pull_request) Successful in 43s

This commit is contained in:
Constantin Simonis 2025-05-07 16:26:21 +02:00
commit 5a0d7b2313
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
7 changed files with 35 additions and 10 deletions

View file

@ -12,5 +12,4 @@ import { FooterComponent } from '@shared/components/footer/footer.component';
styleUrl: './app.component.css',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AppComponent {
}
export class AppComponent {}

View file

@ -65,7 +65,10 @@
<div class="mt-6 text-center">
<p class="text-sm text-text-secondary">
Noch kein Konto?
<a routerLink="/register" class="font-medium text-emerald hover:text-emerald-light transition-all duration-200">
<a
routerLink="/register"
class="font-medium text-emerald hover:text-emerald-light transition-all duration-200"
>
Registrieren
</a>
</p>

View file

@ -31,7 +31,9 @@
</div>
<div>
<label for="username" class="text-text-secondary text-sm font-medium mb-1 block">Benutzername</label>
<label for="username" class="text-text-secondary text-sm font-medium mb-1 block"
>Benutzername</label
>
<input
id="username"
type="text"
@ -52,7 +54,9 @@
</div>
<div>
<label for="password" class="text-text-secondary text-sm font-medium mb-1 block">Passwort</label>
<label for="password" class="text-text-secondary text-sm font-medium mb-1 block"
>Passwort</label
>
<input
id="password"
type="password"
@ -86,7 +90,10 @@
<div class="mt-6 text-center">
<p class="text-sm text-text-secondary">
Bereits ein Konto?
<a routerLink="/login" class="font-medium text-emerald hover:text-emerald-light transition-all duration-200">
<a
routerLink="/login"
class="font-medium text-emerald hover:text-emerald-light transition-all duration-200"
>
Anmelden
</a>
</p>

View file

@ -12,7 +12,10 @@
<div class="flex justify-center space-x-4 mt-6">
@if (authService.isLoggedIn()) {
<a routerLink="/home" class="w-full sm:w-auto button-primary px-6 sm:px-8 py-3 shadow-lg">
<a
routerLink="/home"
class="w-full sm:w-auto button-primary px-6 sm:px-8 py-3 shadow-lg"
>
Spiele
</a>
} @else {

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
EventEmitter,
inject,
Input,
Output,
} from '@angular/core';
import { TransactionService } from '@service/transaction.service';
import { Observable } from 'rxjs';
import { AsyncPipe, CurrencyPipe, DatePipe, NgIf } from '@angular/common';

View file

@ -13,7 +13,6 @@ export class UserService {
private http: HttpClient = inject(HttpClient);
private authService = inject(AuthService);
public getCurrentUser(): Observable<User | null> {
return this.http.get<User | null>('/backend/users/me').pipe(
catchError(() => EMPTY),

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, inject, OnDestroy, OnInit, signal } from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
inject,
OnDestroy,
OnInit,
signal,
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthService } from '@service/auth.service';
import { Subscription } from 'rxjs';