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 { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; | ||||
| 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 = { | ||||
|   providers: [ | ||||
|  |  | |||
|  | @ -1,18 +1,18 @@ | |||
| import { | ||||
|   AfterViewInit, | ||||
|   ChangeDetectionStrategy, | ||||
|   ChangeDetectorRef, | ||||
|   Component, | ||||
|   ElementRef, | ||||
|   EventEmitter, | ||||
|   inject, | ||||
|   Input, | ||||
|   OnChanges, | ||||
|   OnDestroy, | ||||
|   OnInit, | ||||
|   Output, | ||||
|   ViewChild, | ||||
|   AfterViewInit, | ||||
|   OnDestroy, | ||||
|   OnChanges, | ||||
|   SimpleChanges, | ||||
|   ChangeDetectorRef, | ||||
|   ViewChild, | ||||
| } from '@angular/core'; | ||||
| import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; | ||||
| 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 { Router } from '@angular/router'; | ||||
| 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 { GameControlsComponent } from './components/game-controls/game-controls.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 { HttpErrorResponse } from '@angular/common/http'; | ||||
| import { GameResultComponent } from '@blackjack/components/game-result/game-result.component'; | ||||
|  |  | |||
|  | @ -1,12 +1,12 @@ | |||
| import { | ||||
|   AfterViewInit, | ||||
|   ChangeDetectionStrategy, | ||||
|   Component, | ||||
|   ElementRef, | ||||
|   Input, | ||||
|   OnChanges, | ||||
|   SimpleChanges, | ||||
|   ElementRef, | ||||
|   ViewChild, | ||||
|   AfterViewInit, | ||||
| } from '@angular/core'; | ||||
| import { CommonModule, CurrencyPipe } from '@angular/common'; | ||||
| import { CountUp } from 'countup.js'; | ||||
|  |  | |||
|  | @ -5,8 +5,8 @@ import { | |||
|   Input, | ||||
|   OnChanges, | ||||
|   Output, | ||||
|   SimpleChanges, | ||||
|   signal, | ||||
|   SimpleChanges, | ||||
| } from '@angular/core'; | ||||
| import { CommonModule, CurrencyPipe } from '@angular/common'; | ||||
| 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 { animate, style, transition, trigger } from '@angular/animations'; | ||||
| import { GameState } from '../../enum/gameState'; | ||||
|  |  | |||
|  | @ -1,9 +1,9 @@ | |||
| import { | ||||
|   AfterViewInit, | ||||
|   ChangeDetectionStrategy, | ||||
|   Component, | ||||
|   Input, | ||||
|   AfterViewInit, | ||||
|   ElementRef, | ||||
|   Input, | ||||
|   OnChanges, | ||||
|   SimpleChanges, | ||||
| } 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 { Observable, catchError } from 'rxjs'; | ||||
| import { catchError, Observable } from 'rxjs'; | ||||
| import { BlackjackGame } from '@blackjack/models/blackjack.model'; | ||||
| 
 | ||||
| @Injectable({ | ||||
|  |  | |||
|  | @ -91,9 +91,6 @@ | |||
|             [isOpen]="isTransactionModalOpen" | ||||
|             (closeEventEmitter)="closeTransactionModal()" | ||||
|           /> | ||||
|           <button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded"> | ||||
|             Kontoeinstellungen | ||||
|           </button> | ||||
|         </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 { NavbarComponent } from '@shared/components/navbar/navbar.component'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,11 +1,4 @@ | |||
| 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, NgForOf, NgIf } from '@angular/common'; | ||||
|  |  | |||
|  | @ -1,5 +1,4 @@ | |||
| export interface Transaction { | ||||
|   id: string; | ||||
|   status: string; | ||||
|   amount: number; | ||||
|   createdAt: string; | ||||
|  |  | |||
|  | @ -1,12 +1,12 @@ | |||
| import { | ||||
|   AfterViewInit, | ||||
|   Component, | ||||
|   ElementRef, | ||||
|   EventEmitter, | ||||
|   Input, | ||||
|   OnDestroy, | ||||
|   Output, | ||||
|   ViewChild, | ||||
|   AfterViewInit, | ||||
|   OnDestroy, | ||||
| } from '@angular/core'; | ||||
| import { ModalAnimationService } from '@shared/services/modal-animation.service'; | ||||
| import gsap from 'gsap'; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||||
| import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; | ||||
| import { faMoneyBillTransfer, faCreditCard, faWallet } from '@fortawesome/free-solid-svg-icons'; | ||||
| import { faPaypal, faGooglePay, faApplePay } from '@fortawesome/free-brands-svg-icons'; | ||||
| import { faCreditCard, faMoneyBillTransfer, faWallet } from '@fortawesome/free-solid-svg-icons'; | ||||
| import { faApplePay, faGooglePay, faPaypal } from '@fortawesome/free-brands-svg-icons'; | ||||
| 
 | ||||
| @Component({ | ||||
|   selector: 'app-footer', | ||||
|  |  | |||
|  | @ -1,11 +1,4 @@ | |||
| import { | ||||
|   ChangeDetectionStrategy, | ||||
|   Component, | ||||
|   inject, | ||||
|   OnInit, | ||||
|   OnDestroy, | ||||
|   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 { CurrencyPipe } from '@angular/common'; | ||||
|  |  | |||
		Reference in a new issue