refactor: reorganize import statements and clean up code
This commit is contained in:
		
					parent
					
						
							
								a677b1fbdb
							
						
					
				
			
			
				commit
				
					
						66e5d730dd
					
				
			
		
					 15 changed files with 23 additions and 41 deletions
				
			
		|  | @ -6,7 +6,7 @@ import { routes } from './app.routes'; | ||||||
| import { provideHttpClient, withInterceptors } from '@angular/common/http'; | import { provideHttpClient, withInterceptors } from '@angular/common/http'; | ||||||
| import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; | import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; | ||||||
| import { OAuthStorage, provideOAuthClient } from 'angular-oauth2-oidc'; | import { OAuthStorage, provideOAuthClient } from 'angular-oauth2-oidc'; | ||||||
| import { httpInterceptor } from './shared/interceptor/http.interceptor'; | import { httpInterceptor } from '@shared/interceptor/http.interceptor'; | ||||||
| 
 | 
 | ||||||
| export const appConfig: ApplicationConfig = { | export const appConfig: ApplicationConfig = { | ||||||
|   providers: [ |   providers: [ | ||||||
|  |  | ||||||
|  | @ -1,18 +1,18 @@ | ||||||
| import { | import { | ||||||
|  |   AfterViewInit, | ||||||
|   ChangeDetectionStrategy, |   ChangeDetectionStrategy, | ||||||
|  |   ChangeDetectorRef, | ||||||
|   Component, |   Component, | ||||||
|   ElementRef, |   ElementRef, | ||||||
|   EventEmitter, |   EventEmitter, | ||||||
|   inject, |   inject, | ||||||
|   Input, |   Input, | ||||||
|  |   OnChanges, | ||||||
|  |   OnDestroy, | ||||||
|   OnInit, |   OnInit, | ||||||
|   Output, |   Output, | ||||||
|   ViewChild, |  | ||||||
|   AfterViewInit, |  | ||||||
|   OnDestroy, |  | ||||||
|   OnChanges, |  | ||||||
|   SimpleChanges, |   SimpleChanges, | ||||||
|   ChangeDetectorRef, |   ViewChild, | ||||||
| } from '@angular/core'; | } from '@angular/core'; | ||||||
| import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; | import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; | ||||||
| import { loadStripe, Stripe } from '@stripe/stripe-js'; | import { loadStripe, Stripe } from '@stripe/stripe-js'; | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| import { ChangeDetectionStrategy, Component, inject, signal, OnInit } from '@angular/core'; | import { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core'; | ||||||
| import { CommonModule } from '@angular/common'; | import { CommonModule } from '@angular/common'; | ||||||
| import { Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||||
| import { PlayingCardComponent } from './components/playing-card/playing-card.component'; | import { PlayingCardComponent } from './components/playing-card/playing-card.component'; | ||||||
|  | @ -6,7 +6,7 @@ import { DealerHandComponent } from './components/dealer-hand/dealer-hand.compon | ||||||
| import { PlayerHandComponent } from './components/player-hand/player-hand.component'; | import { PlayerHandComponent } from './components/player-hand/player-hand.component'; | ||||||
| import { GameControlsComponent } from './components/game-controls/game-controls.component'; | import { GameControlsComponent } from './components/game-controls/game-controls.component'; | ||||||
| import { GameInfoComponent } from './components/game-info/game-info.component'; | import { GameInfoComponent } from './components/game-info/game-info.component'; | ||||||
| import { Card, BlackjackGame } from '@blackjack/models/blackjack.model'; | import { BlackjackGame, Card } from '@blackjack/models/blackjack.model'; | ||||||
| import { BlackjackService } from '@blackjack/services/blackjack.service'; | import { BlackjackService } from '@blackjack/services/blackjack.service'; | ||||||
| import { HttpErrorResponse } from '@angular/common/http'; | import { HttpErrorResponse } from '@angular/common/http'; | ||||||
| import { GameResultComponent } from '@blackjack/components/game-result/game-result.component'; | import { GameResultComponent } from '@blackjack/components/game-result/game-result.component'; | ||||||
|  |  | ||||||
|  | @ -1,12 +1,12 @@ | ||||||
| import { | import { | ||||||
|  |   AfterViewInit, | ||||||
|   ChangeDetectionStrategy, |   ChangeDetectionStrategy, | ||||||
|   Component, |   Component, | ||||||
|  |   ElementRef, | ||||||
|   Input, |   Input, | ||||||
|   OnChanges, |   OnChanges, | ||||||
|   SimpleChanges, |   SimpleChanges, | ||||||
|   ElementRef, |  | ||||||
|   ViewChild, |   ViewChild, | ||||||
|   AfterViewInit, |  | ||||||
| } from '@angular/core'; | } from '@angular/core'; | ||||||
| import { CommonModule, CurrencyPipe } from '@angular/common'; | import { CommonModule, CurrencyPipe } from '@angular/common'; | ||||||
| import { CountUp } from 'countup.js'; | import { CountUp } from 'countup.js'; | ||||||
|  |  | ||||||
|  | @ -5,8 +5,8 @@ import { | ||||||
|   Input, |   Input, | ||||||
|   OnChanges, |   OnChanges, | ||||||
|   Output, |   Output, | ||||||
|   SimpleChanges, |  | ||||||
|   signal, |   signal, | ||||||
|  |   SimpleChanges, | ||||||
| } from '@angular/core'; | } from '@angular/core'; | ||||||
| import { CommonModule, CurrencyPipe } from '@angular/common'; | import { CommonModule, CurrencyPipe } from '@angular/common'; | ||||||
| import { FormGroup, ReactiveFormsModule } from '@angular/forms'; | import { FormGroup, ReactiveFormsModule } from '@angular/forms'; | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| import { ChangeDetectionStrategy, Component, Input, Output, EventEmitter } from '@angular/core'; | import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'; | ||||||
| import { CommonModule, CurrencyPipe } from '@angular/common'; | import { CommonModule, CurrencyPipe } from '@angular/common'; | ||||||
| import { animate, style, transition, trigger } from '@angular/animations'; | import { animate, style, transition, trigger } from '@angular/animations'; | ||||||
| import { GameState } from '../../enum/gameState'; | import { GameState } from '../../enum/gameState'; | ||||||
|  |  | ||||||
|  | @ -1,9 +1,9 @@ | ||||||
| import { | import { | ||||||
|  |   AfterViewInit, | ||||||
|   ChangeDetectionStrategy, |   ChangeDetectionStrategy, | ||||||
|   Component, |   Component, | ||||||
|   Input, |  | ||||||
|   AfterViewInit, |  | ||||||
|   ElementRef, |   ElementRef, | ||||||
|  |   Input, | ||||||
|   OnChanges, |   OnChanges, | ||||||
|   SimpleChanges, |   SimpleChanges, | ||||||
| } from '@angular/core'; | } from '@angular/core'; | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| import { Injectable, inject } from '@angular/core'; | import { inject, Injectable } from '@angular/core'; | ||||||
| import { HttpClient } from '@angular/common/http'; | import { HttpClient } from '@angular/common/http'; | ||||||
| import { Observable, catchError } from 'rxjs'; | import { catchError, Observable } from 'rxjs'; | ||||||
| import { BlackjackGame } from '@blackjack/models/blackjack.model'; | import { BlackjackGame } from '@blackjack/models/blackjack.model'; | ||||||
| 
 | 
 | ||||||
| @Injectable({ | @Injectable({ | ||||||
|  |  | ||||||
|  | @ -91,9 +91,6 @@ | ||||||
|             [isOpen]="isTransactionModalOpen" |             [isOpen]="isTransactionModalOpen" | ||||||
|             (closeEventEmitter)="closeTransactionModal()" |             (closeEventEmitter)="closeTransactionModal()" | ||||||
|           /> |           /> | ||||||
|           <button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded"> |  | ||||||
|             Kontoeinstellungen |  | ||||||
|           </button> |  | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| import { ChangeDetectionStrategy, Component, OnInit, OnDestroy } from '@angular/core'; | import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from '@angular/core'; | ||||||
| import { NgFor } from '@angular/common'; | import { NgFor } from '@angular/common'; | ||||||
| import { NavbarComponent } from '@shared/components/navbar/navbar.component'; | import { NavbarComponent } from '@shared/components/navbar/navbar.component'; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,11 +1,4 @@ | ||||||
| import { | import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core'; | ||||||
|   ChangeDetectionStrategy, |  | ||||||
|   Component, |  | ||||||
|   EventEmitter, |  | ||||||
|   inject, |  | ||||||
|   Input, |  | ||||||
|   Output, |  | ||||||
| } from '@angular/core'; |  | ||||||
| import { TransactionService } from '@service/transaction.service'; | import { TransactionService } from '@service/transaction.service'; | ||||||
| import { Observable } from 'rxjs'; | import { Observable } from 'rxjs'; | ||||||
| import { AsyncPipe, CurrencyPipe, DatePipe, NgForOf, NgIf } from '@angular/common'; | import { AsyncPipe, CurrencyPipe, DatePipe, NgForOf, NgIf } from '@angular/common'; | ||||||
|  |  | ||||||
|  | @ -1,5 +1,4 @@ | ||||||
| export interface Transaction { | export interface Transaction { | ||||||
|   id: string; |  | ||||||
|   status: string; |   status: string; | ||||||
|   amount: number; |   amount: number; | ||||||
|   createdAt: string; |   createdAt: string; | ||||||
|  |  | ||||||
|  | @ -1,12 +1,12 @@ | ||||||
| import { | import { | ||||||
|  |   AfterViewInit, | ||||||
|   Component, |   Component, | ||||||
|   ElementRef, |   ElementRef, | ||||||
|   EventEmitter, |   EventEmitter, | ||||||
|   Input, |   Input, | ||||||
|  |   OnDestroy, | ||||||
|   Output, |   Output, | ||||||
|   ViewChild, |   ViewChild, | ||||||
|   AfterViewInit, |  | ||||||
|   OnDestroy, |  | ||||||
| } from '@angular/core'; | } from '@angular/core'; | ||||||
| import { ModalAnimationService } from '@shared/services/modal-animation.service'; | import { ModalAnimationService } from '@shared/services/modal-animation.service'; | ||||||
| import gsap from 'gsap'; | import gsap from 'gsap'; | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { ChangeDetectionStrategy, Component } from '@angular/core'; | import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||||||
| import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; | import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; | ||||||
| import { faMoneyBillTransfer, faCreditCard, faWallet } from '@fortawesome/free-solid-svg-icons'; | import { faCreditCard, faMoneyBillTransfer, faWallet } from '@fortawesome/free-solid-svg-icons'; | ||||||
| import { faPaypal, faGooglePay, faApplePay } from '@fortawesome/free-brands-svg-icons'; | import { faApplePay, faGooglePay, faPaypal } from '@fortawesome/free-brands-svg-icons'; | ||||||
| 
 | 
 | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-footer', |   selector: 'app-footer', | ||||||
|  |  | ||||||
|  | @ -1,11 +1,4 @@ | ||||||
| import { | import { ChangeDetectionStrategy, Component, inject, OnDestroy, OnInit, signal } from '@angular/core'; | ||||||
|   ChangeDetectionStrategy, |  | ||||||
|   Component, |  | ||||||
|   inject, |  | ||||||
|   OnInit, |  | ||||||
|   OnDestroy, |  | ||||||
|   signal, |  | ||||||
| } from '@angular/core'; |  | ||||||
| import { RouterModule } from '@angular/router'; | import { RouterModule } from '@angular/router'; | ||||||
| import { AuthService } from '../../../service/auth.service'; | import { AuthService } from '../../../service/auth.service'; | ||||||
| import { CurrencyPipe } from '@angular/common'; | import { CurrencyPipe } from '@angular/common'; | ||||||
|  |  | ||||||
		Reference in a new issue