From 34ff29c7ac409513414bea4586c768d694710be4 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Wed, 14 May 2025 09:33:38 +0200 Subject: [PATCH] refactor: remove docker folder, refactor frontend files --- docker/docker-compose.yml | 18 -------- frontend/src/app/app.component.html | 1 + frontend/src/app/app.component.ts | 3 +- frontend/src/app/auth.guard.ts | 2 +- .../feature/auth/login/login.component.html | 2 - .../app/feature/auth/login/login.component.ts | 15 +++---- .../auth/register/register.component.html | 2 - .../auth/register/register.component.ts | 15 +++---- .../app/feature/deposit/deposit.component.ts | 14 +++--- .../game/blackjack/blackjack.component.html | 2 - .../game/blackjack/blackjack.component.ts | 34 +++++++-------- .../feature/game/slots/slots.component.html | 2 - .../app/feature/game/slots/slots.component.ts | 25 ++++------- .../src/app/feature/home/home.component.html | 1 - .../src/app/feature/home/home.component.ts | 22 +++++----- .../feature/landing/landing.component.html | 2 - .../app/feature/landing/landing.component.ts | 11 +++-- .../login-success/login-success.component.css | 0 .../login-success.component.html | 1 - .../login-success/login-success.component.ts | 43 ------------------- .../lootbox-opening.component.html | 2 - .../lootbox-opening.component.ts | 19 ++++---- .../lootbox-selection.component.html | 1 - .../lootbox-selection.component.ts | 21 +++++---- .../transaction-history.component.ts | 17 +++----- .../components/navbar/navbar.component.html | 8 ++-- .../components/navbar/navbar.component.ts | 3 +- 27 files changed, 94 insertions(+), 192 deletions(-) delete mode 100644 docker/docker-compose.yml delete mode 100644 frontend/src/app/feature/login-success/login-success.component.css delete mode 100644 frontend/src/app/feature/login-success/login-success.component.html delete mode 100644 frontend/src/app/feature/login-success/login-success.component.ts diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index 5487079..0000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,18 +0,0 @@ -volumes: - casino-db-data: - -services: - db: - image: postgres:17.5 - container_name: casino-db - restart: unless-stopped - volumes: - - casino-db-data:/var/lib/postgresql/data - environment: - POSTGRES_DB: postgresdb - POSTGRES_USER: postgres_user - POSTGRES_PASSWORD: postgres_pass - healthcheck: - test: "exit 0" - ports: - - "5432:5432" \ No newline at end of file diff --git a/frontend/src/app/app.component.html b/frontend/src/app/app.component.html index 41260d2..2e3cd9a 100644 --- a/frontend/src/app/app.component.html +++ b/frontend/src/app/app.component.html @@ -1,5 +1,6 @@
+
diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index 30666e9..07aa848 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -2,11 +2,12 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterOutlet } from '@angular/router'; import { FooterComponent } from '@shared/components/footer/footer.component'; +import {NavbarComponent} from "@shared/components/navbar/navbar.component"; @Component({ selector: 'app-root', standalone: true, - imports: [CommonModule, RouterOutlet, FooterComponent], + imports: [CommonModule, RouterOutlet, FooterComponent, NavbarComponent], providers: [], templateUrl: './app.component.html', styleUrl: './app.component.css', diff --git a/frontend/src/app/auth.guard.ts b/frontend/src/app/auth.guard.ts index d088c30..ffb2526 100644 --- a/frontend/src/app/auth.guard.ts +++ b/frontend/src/app/auth.guard.ts @@ -1,6 +1,6 @@ import { CanActivateFn, Router } from '@angular/router'; import { inject } from '@angular/core'; -import { AuthService } from './service/auth.service'; +import { AuthService } from '@service/auth.service'; export const authGuard: CanActivateFn = async () => { const authService = inject(AuthService); diff --git a/frontend/src/app/feature/auth/login/login.component.html b/frontend/src/app/feature/auth/login/login.component.html index c41002d..c10b232 100644 --- a/frontend/src/app/feature/auth/login/login.component.html +++ b/frontend/src/app/feature/auth/login/login.component.html @@ -1,5 +1,3 @@ - -