refactor: update import paths for better readability #109
13 changed files with 26 additions and 19 deletions
|
@ -16,12 +16,12 @@ import {
|
|||
} from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||
import { loadStripe, Stripe } from '@stripe/stripe-js';
|
||||
import { DepositService } from '../../service/deposit.service';
|
||||
import { debounceTime } from 'rxjs';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { NgIf } from '@angular/common';
|
||||
import { ModalAnimationService } from '../../shared/services/modal-animation.service';
|
||||
import gsap from 'gsap';
|
||||
import { DepositService } from '@service/deposit.service';
|
||||
import { environment } from '@environments/environment';
|
||||
import { ModalAnimationService } from '@shared/services/modal-animation.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-deposit',
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NavbarComponent } from '../../../shared/components/navbar/navbar.component';
|
||||
import { Router } from '@angular/router';
|
||||
import { UserService } from '../../../service/user.service';
|
||||
import { PlayingCardComponent } from './components/playing-card/playing-card.component';
|
||||
import { DealerHandComponent } from './components/dealer-hand/dealer-hand.component';
|
||||
import { PlayerHandComponent } from './components/player-hand/player-hand.component';
|
||||
|
@ -13,6 +11,8 @@ import { BlackjackService } from './services/blackjack.service';
|
|||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { GameResultComponent } from './components/game-result/game-result.component';
|
||||
import { GameState } from './enum/gameState';
|
||||
import { NavbarComponent } from '@shared/components/navbar/navbar.component';
|
||||
import { UserService } from '@service/user.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-blackjack',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Card } from '@blackjack/models/blackjack.model';
|
||||
import { PlayingCardComponent } from '../playing-card/playing-card.component';
|
||||
import { Card } from '../../models/blackjack.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dealer-hand',
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Card } from '../../models/blackjack.model';
|
||||
import { GameState } from '../../enum/gameState';
|
||||
import { GameControlsService } from '../../services/game-controls.service';
|
||||
import { Card } from '@blackjack/models/blackjack.model';
|
||||
import { GameControlsService } from '@blackjack/services/game-controls.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-game-controls',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { PlayingCardComponent } from '../playing-card/playing-card.component';
|
||||
import { Card } from '../../models/blackjack.model';
|
||||
import { Card } from '@blackjack/models/blackjack.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-player-hand',
|
||||
|
|
|
@ -8,8 +8,8 @@ import {
|
|||
SimpleChanges,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { suitSymbols, Suit } from '../../models/blackjack.model';
|
||||
import { gsap } from 'gsap';
|
||||
import { Suit, suitSymbols } from '@blackjack/models/blackjack.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-playing-card',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Injectable, inject } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Observable, catchError } from 'rxjs';
|
||||
import { BlackjackGame } from '../models/blackjack.model';
|
||||
import { BlackjackGame } from '@blackjack/models/blackjack.model';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { ChangeDetectionStrategy, Component, OnInit, OnDestroy } from '@angular/core';
|
||||
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
|
||||
import { NgFor } from '@angular/common';
|
||||
import { NavbarComponent } from '@shared/components/navbar/navbar.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-landing-page',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -3,6 +3,13 @@
|
|||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"paths": {
|
||||
"@service/*": ["app/service/*"],
|
||||
"@environments/*": ["environments/*"],
|
||||
"@shared/*": ["app/shared/*"],
|
||||
"@blackjack/*": ["app/feature/game/blackjack/*"]
|
||||
},
|
||||
"outDir": "./dist/out-tsc",
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
|
|
Loading…
Add table
Reference in a new issue