Compare commits

...

4 commits

Author SHA1 Message Date
5c64b86bc4
Merge pull request 'fix: Fix bug where the password reset form doesnt show up when using (CAS-81)' (!201) from bugfix/password-reset-in-modal into main
All checks were successful
Release / Release (push) Successful in 59s
Release / Build Frontend Image (push) Successful in 28s
Release / Build Backend Image (push) Successful in 1m45s
Reviewed-on: #201
2025-05-21 06:50:47 +00:00
ee3a57f5b3 fix: Fix bug where the password reset form doesnt show up when using
All checks were successful
CI / Get Changed Files (pull_request) Successful in 38s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 48s
CI / prettier (pull_request) Successful in 46s
CI / eslint (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
CI / Docker frontend validation (pull_request) Successful in 1m38s
center buttons
2025-05-21 08:46:23 +02:00
46c9d2b7c1
Merge pull request 'feat: Add justfile' (!200) from add-justfile into main
Reviewed-on: #200
2025-05-19 12:48:24 +00:00
9aab757cdf feat: Add justfile
All checks were successful
CI / Get Changed Files (pull_request) Successful in 6s
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
2025-05-16 08:53:28 +02:00
3 changed files with 48 additions and 3 deletions

View file

@ -182,7 +182,7 @@
</div>
</div>
@if (showLogin() || showRegister()) {
@if (showLogin() || showRegister() || showRecoverPassword()) {
<div
class="fixed inset-0 bg-black/50 z-40"
(click)="hideAuthForms()"
@ -194,7 +194,11 @@
<div class="fixed inset-0 flex items-center justify-center z-50 p-4" role="presentation">
<div class="relative" role="dialog" aria-modal="true">
@if (showLogin()) {
<app-login (switchForm)="showRegisterForm()" (closeDialog)="hideAuthForms()"></app-login>
<app-login
(forgotPassword)="showRecoverPasswordForm()"
(switchForm)="showRegisterForm()"
(closeDialog)="hideAuthForms()"
></app-login>
}
@if (showRegister()) {
<app-register
@ -202,6 +206,12 @@
(closeDialog)="hideAuthForms()"
></app-register>
}
@if (showRecoverPassword()) {
<app-recover-password
(closeDialog)="hideAuthForms()"
(switchToLogin)="showLoginForm()"
></app-recover-password>
}
</div>
</div>
}

View file

@ -11,11 +11,12 @@ import { ActivatedRoute, RouterLink } from '@angular/router';
import { AuthService } from '@service/auth.service';
import { LoginComponent } from '../auth/login/login.component';
import { RegisterComponent } from '../auth/register/register.component';
import { RecoverPasswordComponent } from '../auth/recover-password/recover-password.component';
@Component({
selector: 'app-landing-page',
standalone: true,
imports: [NgFor, RouterLink, LoginComponent, RegisterComponent],
imports: [NgFor, RouterLink, LoginComponent, RegisterComponent, RecoverPasswordComponent],
templateUrl: './landing.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
@ -26,6 +27,7 @@ export class LandingComponent implements OnInit, OnDestroy {
route: ActivatedRoute = inject(ActivatedRoute);
showLogin = signal(false);
showRegister = signal(false);
showRecoverPassword = signal(false);
ngOnInit() {
this.startAutoplay();
@ -43,18 +45,28 @@ export class LandingComponent implements OnInit, OnDestroy {
showLoginForm() {
this.showLogin.set(true);
this.showRegister.set(false);
this.showRecoverPassword.set(false);
document.body.style.overflow = 'hidden';
}
showRegisterForm() {
this.showRegister.set(true);
this.showLogin.set(false);
this.showRecoverPassword.set(false);
document.body.style.overflow = 'hidden';
}
showRecoverPasswordForm() {
this.showRecoverPassword.set(true);
this.showLogin.set(false);
this.showRegister.set(false);
document.body.style.overflow = 'hidden';
}
hideAuthForms() {
this.showLogin.set(false);
this.showRegister.set(false);
this.showRecoverPassword.set(false);
document.body.style.overflow = 'auto';
}

23
justfile Normal file
View file

@ -0,0 +1,23 @@
# Info
info:
just --list
# Starts the project in development mode
start:
command -v concurrently &> /dev/null || bun add -g concurrently
command -v watchexec &> /dev/null || brew install watchexec
docker compose up -d
conc -n "frontend,backend" "cd frontend && bun run start" "cd backend/ && watchexec -r -e java ./gradlew :bootRun"
# Builds both the backend and frontend docker images (obv)
build:
just build-fe
just build-be
# Builds the backend docker image
build-be:
docker buildx build -f backend/.docker/Dockerfile -t git.kjan.de/szut/casino-backend:latest backend
# Builds the frontend docker image
build-fe:
docker buildx build -f frontend/.docker/Dockerfile -t git.kjan.de/szut/casino-frontend:latest frontend