From f5a16efa67a8c41471ceb096da7a6390d7edf3f2 Mon Sep 17 00:00:00 2001 From: Jan K9f Date: Wed, 2 Apr 2025 09:02:14 +0200 Subject: [PATCH] refactor: update imports to use absolute paths --- frontend/src/app/feature/home/home.component.ts | 10 +++++----- frontend/src/app/feature/landing/landing.component.ts | 1 - .../feature/login-success/login-success.component.ts | 2 +- .../components/confirmation/confirmation.component.ts | 4 ++-- .../app/shared/components/navbar/navbar.component.ts | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/frontend/src/app/feature/home/home.component.ts b/frontend/src/app/feature/home/home.component.ts index b3237ee..3104b53 100644 --- a/frontend/src/app/feature/home/home.component.ts +++ b/frontend/src/app/feature/home/home.component.ts @@ -1,11 +1,11 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; -import { NavbarComponent } from '../../shared/components/navbar/navbar.component'; import { CurrencyPipe, NgFor } from '@angular/common'; -import { Game } from '../../model/Game'; -import { Transaction } from '../../model/Transaction'; import { DepositComponent } from '../deposit/deposit.component'; -import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component'; import { ActivatedRoute, Router } from '@angular/router'; +import { ConfirmationComponent } from '@shared/components/confirmation/confirmation.component'; +import { Transaction } from 'app/model/Transaction'; +import { NavbarComponent } from '@shared/components/navbar/navbar.component'; +import { Game } from 'app/model/Game'; @Component({ selector: 'app-homepage', @@ -21,7 +21,7 @@ export default class HomeComponent implements OnInit { constructor( public route: ActivatedRoute, public router: Router - ) {} + ) { } ngOnInit() { this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true'; diff --git a/frontend/src/app/feature/landing/landing.component.ts b/frontend/src/app/feature/landing/landing.component.ts index 7fa92b6..5e3f747 100644 --- a/frontend/src/app/feature/landing/landing.component.ts +++ b/frontend/src/app/feature/landing/landing.component.ts @@ -1,5 +1,4 @@ import { ChangeDetectionStrategy, Component, OnInit, OnDestroy } from '@angular/core'; -import { NavbarComponent } from '../../shared/components/navbar/navbar.component'; import { NgFor } from '@angular/common'; @Component({ diff --git a/frontend/src/app/feature/login-success/login-success.component.ts b/frontend/src/app/feature/login-success/login-success.component.ts index 067afe6..3b506ca 100644 --- a/frontend/src/app/feature/login-success/login-success.component.ts +++ b/frontend/src/app/feature/login-success/login-success.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, inject, OnInit } from '@angular/core'; -import { UserService } from '../../service/user.service'; import { KeycloakService } from 'keycloak-angular'; import { Router } from '@angular/router'; +import { UserService } from '@service/user.service'; @Component({ selector: 'app-login-success', diff --git a/frontend/src/app/shared/components/confirmation/confirmation.component.ts b/frontend/src/app/shared/components/confirmation/confirmation.component.ts index 9c26f22..ed84f2d 100644 --- a/frontend/src/app/shared/components/confirmation/confirmation.component.ts +++ b/frontend/src/app/shared/components/confirmation/confirmation.component.ts @@ -8,7 +8,7 @@ import { AfterViewInit, OnDestroy, } from '@angular/core'; -import { ModalAnimationService } from '../../services/modal-animation.service'; +import { ModalAnimationService } from '@shared/services/modal-animation.service'; import gsap from 'gsap'; @Component({ @@ -23,7 +23,7 @@ export class ConfirmationComponent implements AfterViewInit, OnDestroy { @ViewChild('modalBg') modalBg!: ElementRef; @ViewChild('modalCard') modalCard!: ElementRef; - constructor(private modalAnimationService: ModalAnimationService) {} + constructor(private modalAnimationService: ModalAnimationService) { } ngAfterViewInit() { if (this.successful) { diff --git a/frontend/src/app/shared/components/navbar/navbar.component.ts b/frontend/src/app/shared/components/navbar/navbar.component.ts index a6bbc15..adf7b78 100644 --- a/frontend/src/app/shared/components/navbar/navbar.component.ts +++ b/frontend/src/app/shared/components/navbar/navbar.component.ts @@ -1,9 +1,9 @@ import { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core'; import { RouterModule } from '@angular/router'; import { KeycloakService } from 'keycloak-angular'; -import { UserService } from '../../../service/user.service'; import { CurrencyPipe } from '@angular/common'; +import { UserService } from '@service/user.service'; @Component({ selector: 'app-navbar', templateUrl: './navbar.component.html',