Compare commits

...

6 commits

Author SHA1 Message Date
32aa753452 Merge pull request 'feat(home): add router to clear query parameters' (#88) from task/remove_success_url_parameter into main
All checks were successful
Release / Release (push) Successful in 50s
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 / test-build (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Reviewed-on: #88
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-03-26 10:04:23 +00:00
ce17741e72
style(home): format constructor for better readability
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 31s
CI / eslint (pull_request) Successful in 36s
2025-03-26 11:03:28 +01:00
af90108b3b
refactor(home): remove unnecessary comment from code
Some checks failed
CI / Get Changed Files (pull_request) Successful in 17s
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Failing after 39s
CI / eslint (pull_request) Successful in 42s
CI / test-build (pull_request) Successful in 38s
2025-03-26 11:00:43 +01:00
cf42e725cc
feat(home): add router to clear query parameters
Some checks failed
CI / Get Changed Files (pull_request) Successful in 41s
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Failing after 42s
CI / eslint (pull_request) Successful in 56s
CI / test-build (pull_request) Successful in 1m13s
2025-03-26 10:58:25 +01:00
c42c5577cf Merge pull request 'docs: Add docs for local stripe development' (#87) from docs/stripe-dev into main
Reviewed-on: #87
Reviewed-by: jleibl <jleibl@proton.me>
2025-03-26 09:14:13 +00:00
Phan Huy Tran
75d9a4e2fb docs: Add docs for local stripe development
All checks were successful
CI / Get Changed Files (pull_request) Successful in 6s
CI / Checkstyle Main (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
2025-03-26 09:40:57 +01:00
2 changed files with 22 additions and 2 deletions

View file

@ -90,6 +90,20 @@ npm run dev
The frontend will be available at http://localhost:4200
### Local Stripe integration
1. Install the Stripe CLI
https://stripe.com/docs/stripe-cli
2. Login to the casino stripe account
```
stripe login --api-key <casino-stripe-secret-key>
```
3. Start webhook forwarding
```
stripe listen --forward-to localhost:8080/webhook
```
## Database Management
### Postgres Management

View file

@ -5,7 +5,7 @@ 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 } from '@angular/router';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
selector: 'app-homepage',
@ -18,10 +18,16 @@ export default class HomeComponent implements OnInit {
isDepositModalOpen = false;
isDepositSuccessful = false;
constructor(public route: ActivatedRoute) {}
constructor(
public route: ActivatedRoute,
public router: Router
) {}
ngOnInit() {
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
this.router.navigate([], { queryParams: {} });
if (this.isDepositSuccessful) {
this.openDepositConfirmationModal();
}