Compare commits

...

203 commits

Author SHA1 Message Date
038c6e145a
Merge pull request 'docs/preperation' (!323) from docs/preperation into main
All checks were successful
Build docs / build-docs (push) Successful in 16s
Reviewed-on: #323
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-13 08:09:39 +00:00
cbddfa0552
chore: remove Marktuntersuchung.tex file from documentation
All checks were successful
CI / Get Changed Files (pull_request) Successful in 26s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 34s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 12s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 2m13s
2025-06-12 23:42:39 +02:00
b4df89b7b0
chore: remove MarketingMix documentation file 2025-06-12 23:42:26 +02:00
Phan Huy Tran
6807d51e0c docs: add space
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 18s
Claude PR Review / claude-code (pull_request) Successful in 33s
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 3m34s
2025-06-12 23:41:26 +02:00
bd6dc99f30
Merge branch 'main' into docs/preperation
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / prettier (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 21s
Claude PR Review / claude-code (pull_request) Successful in 41s
Build docs / build-docs (pull_request) Successful in 5m56s
2025-06-12 21:20:02 +00:00
lziemke
ed4753c300 finished my shit
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Backend Tests (pull_request) Has been skipped
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
Label PRs based on size / Check PR size (pull_request) Successful in 16s
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 28s
2025-06-12 23:17:04 +02:00
4748196210
Merge pull request 'docs: update project introduction with new revenue model' (!322) from task/update-introduction into main
All checks were successful
Build docs / build-docs (push) Successful in 5m16s
Reviewed-on: #322
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-12 20:44:09 +00:00
7e861896dc
docs: update project introduction with new revenue model
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 3s
CI / oxlint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 34s
Label PRs based on size / Check PR size (pull_request) Successful in 21s
Build docs / build-docs (pull_request) Successful in 5m59s
2025-06-12 22:43:16 +02:00
18010b28d1
Merge pull request 'docs: update introduction section of project documentation' (!321) from task/update-introduction into main
All checks were successful
Build docs / build-docs (push) Successful in 15s
Reviewed-on: #321
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-12 20:23:47 +00:00
075fd97ae8
docs: update introduction section of project documentation
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 24s
Build docs / build-docs (pull_request) Successful in 23s
2025-06-12 22:22:04 +02:00
5cedbcb004
Merge pull request 'docs: Update project documentation for casino platform' (!313) from task/update-introduction into main
All checks were successful
Build docs / build-docs (push) Successful in 4m48s
Reviewed-on: #313
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-06-12 20:03:05 +00:00
7296cfead8
Merge pull request 'chore: Add back acro's' (!320) from docs/acro into main
Some checks failed
Build docs / build-docs (push) Has been cancelled
Reviewed-on: #320
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-12 20:02:21 +00:00
7714957a62 chore: Add back acro's
All checks were successful
CI / Get Changed Files (pull_request) Successful in 36s
Label PRs based on size / Check PR size (pull_request) Successful in 33s
CI / Backend Tests (pull_request) Has been skipped
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
CI / Playwright (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 14s
Claude PR Review / claude-code (pull_request) Successful in 5m51s
Build docs / build-docs (pull_request) Successful in 6m19s
2025-06-12 22:00:49 +02:00
c3f2fcd431
Merge pull request 'actually use images in auth.tex' (!319) from docs/actually-fucking-use-images into main
All checks were successful
Build docs / build-docs (push) Successful in 15s
Reviewed-on: #319
2025-06-12 18:55:54 +00:00
07bb68d864
do stuff
Some checks failed
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / oxlint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 26s
Claude PR Review / claude-code (pull_request) Failing after 2m16s
Label PRs based on size / Check PR size (pull_request) Successful in 16s
2025-06-12 20:54:17 +02:00
eb04c03208
Merge pull request 'docs: clean up, remove clearpages' (!318) from c4-diagrams into main
All checks were successful
Build docs / build-docs (push) Successful in 15s
Reviewed-on: #318
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-12 18:41:44 +00:00
Phan Huy Tran
01b99c04c6 docs: clean up, remove clearpages
All checks were successful
CI / Get Changed Files (pull_request) Successful in 14s
CI / eslint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 13s
CI / oxlint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 26s
Claude PR Review / claude-code (pull_request) Successful in 4m32s
2025-06-12 20:27:23 +02:00
7221422d3b
Merge pull request 'chore: Remove old Anhang and add some code to the docs' (!317) from docs/code into main
All checks were successful
Build docs / build-docs (push) Successful in 16s
Reviewed-on: #317
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-12 15:33:54 +00:00
d916fe4942 Merge main
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
CI / Backend Tests (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 16s
CI / Playwright (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 26s
Claude PR Review / claude-code (pull_request) Successful in 1m21s
2025-06-12 15:36:04 +02:00
9e7fbd1c1e
Merge pull request 'docs/random-ahh-png' (!316) from docs/random-ahh-png into main
All checks were successful
Build docs / build-docs (push) Successful in 16s
Reviewed-on: #316
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-12 13:31:53 +00:00
0e9e729fdf chore: Remove old Anhang and add some code to the docs
All checks were successful
Build docs / build-docs (pull_request) Successful in 29s
Label PRs based on size / Check PR size (pull_request) Successful in 27s
CI / Get Changed Files (pull_request) Successful in 34s
CI / Backend Tests (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
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
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m41s
2025-06-12 15:29:33 +02:00
dfcf02c1b1
random ahh shit
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / prettier (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 16s
Build docs / build-docs (pull_request) Successful in 26s
Claude PR Review / claude-code (pull_request) Successful in 1m6s
2025-06-12 15:17:47 +02:00
Constantin Simonis
9c856f02cd
add random ahh image 2025-06-12 15:15:28 +02:00
c87a0593b3
Merge pull request 'chore: Fix labels for docs' (!315) from docs/labels into main
All checks were successful
Build docs / build-docs (push) Successful in 20s
Reviewed-on: #315
2025-06-12 07:30:44 +00:00
9ebf0d0036 chore: Fix labels for docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 20s
CI / eslint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 18s
CI / Backend Tests (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
Build docs / build-docs (pull_request) Successful in 25s
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 13s
Claude PR Review / claude-code (pull_request) Successful in 1m10s
2025-06-12 09:27:30 +02:00
ab6265b2cd
Merge pull request 'chore: Remove old docs and fix pipeline' (!314) from docs/ci into main
All checks were successful
Build docs / build-docs (push) Successful in 29s
Reviewed-on: #314
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-12 07:25:26 +00:00
d9309cb735 chore: Remove old docs and fix pipeline
Some checks failed
CI / Get Changed Files (pull_request) Successful in 41s
CI / oxlint (pull_request) Successful in 29s
CI / eslint (pull_request) Successful in 40s
CI / prettier (pull_request) Successful in 40s
CI / test-build (pull_request) Successful in 1m0s
Build docs / build-docs (pull_request) Successful in 1m20s
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
Claude PR Review / claude-code (pull_request) Successful in 2m38s
CI / Checkstyle Main (pull_request) Successful in 59s
CI / Docker frontend validation (pull_request) Successful in 17s
CI / Docker backend validation (pull_request) Successful in 17s
CI / Backend Tests (pull_request) Successful in 2m19s
CI / Playwright (pull_request) Failing after 1m52s
2025-06-12 08:31:42 +02:00
9bd5a15480
Merge pull request 'fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui to v2.8.9' (!300) from renovate/dependencies-(major-and-minor) into main
All checks were successful
Build docs / build-docs (push) Successful in 18s
Release / Release (push) Successful in 1m21s
Release / Build Frontend Image (push) Successful in 2m23s
Release / Build Backend Image (push) Successful in 3m58s
Reviewed-on: #300
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-12 06:27:53 +00:00
ce3af8915d
Merge pull request 'fix(deps): update all non-major dependencies' (!293) from renovate/all-minor-patch into main
Some checks failed
Release / Build Backend Image (push) Blocked by required conditions
Release / Build Frontend Image (push) Blocked by required conditions
Build docs / build-docs (push) Has been cancelled
Release / Release (push) Has been cancelled
Reviewed-on: #293
2025-06-12 06:27:37 +00:00
684cec7d56
Merge pull request 'chore(deps): update devdependencies (non-major)' (!298) from renovate/devdependencies-(non-major) into main
Some checks failed
Release / Build Backend Image (push) Blocked by required conditions
Release / Build Frontend Image (push) Blocked by required conditions
Build docs / build-docs (push) Has been cancelled
Release / Release (push) Has been cancelled
Reviewed-on: #298
2025-06-12 06:27:29 +00:00
ee9dbb7577
docs: Update project documentation for casino platform
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
CI / Backend Tests (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 13s
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 / Playwright (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 23s
Claude PR Review / claude-code (pull_request) Successful in 1m23s
2025-06-12 07:21:28 +02:00
lziemke
3dfe318500 docs: add preperation docs> 2025-06-11 20:45:30 +02:00
a7b5c42558
chore(deps): update devdependencies (non-major)
All checks were successful
CI / Get Changed Files (pull_request) Successful in 14s
Label PRs based on size / Check PR size (pull_request) Successful in 29s
Claude PR Review / claude-code (pull_request) Successful in 36s
Pull Request Labeler / labeler (pull_request_target) Successful in 11s
CI / oxlint (pull_request) Successful in 46s
CI / prettier (pull_request) Successful in 52s
CI / eslint (pull_request) Successful in 1m8s
CI / Backend Tests (pull_request) Has been skipped
CI / test-build (pull_request) Successful in 1m25s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 17s
CI / Playwright (pull_request) Successful in 2m24s
2025-06-11 13:03:20 +00:00
9207c070fd
fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui to v2.8.9
All checks were successful
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Get Changed Files (pull_request) Successful in 16s
CI / eslint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 16s
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 22s
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 20s
CI / Playwright (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 1m47s
CI / Backend Tests (pull_request) Successful in 3m17s
2025-06-11 13:03:03 +00:00
4bcc6b45b4
fix(deps): update all non-major dependencies
All checks were successful
CI / Get Changed Files (pull_request) Successful in 18s
Pull Request Labeler / labeler (pull_request_target) Successful in 12s
Label PRs based on size / Check PR size (pull_request) Successful in 15s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 24s
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 21s
CI / Checkstyle Main (pull_request) Successful in 2m13s
CI / Backend Tests (pull_request) Successful in 3m25s
2025-06-11 13:02:58 +00:00
f754a6fc72
Merge pull request 'chore: Add some more docs idc' (!312) from docs/idc into main
All checks were successful
Build docs / build-docs (push) Successful in 12s
Reviewed-on: #312
2025-06-11 12:54:20 +00:00
96aca3b293 chore: Add some more docs idc
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / Backend Tests (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
CI / Docker frontend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 12s
CI / prettier (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m13s
2025-06-11 14:51:20 +02:00
a411234714
Merge pull request 'docs: add deployment docs' (!311) from docs/deployment into main
All checks were successful
Build docs / build-docs (push) Successful in 12s
Reviewed-on: #311
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-06-11 12:22:27 +00:00
52a3e6aadc
docs: add deployment docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 11s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 15s
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m30s
2025-06-11 14:21:09 +02:00
5ea3ff73a0
Merge pull request 'chore: Add docs for coinflip' (!309) from docs/coinflip into main
All checks were successful
Build docs / build-docs (push) Successful in 12s
Reviewed-on: #309
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-11 12:19:21 +00:00
050c272226 chore: Add docs for coinflip
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / Docker frontend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 10s
Claude PR Review / claude-code (pull_request) Successful in 1m15s
2025-06-11 14:18:28 +02:00
75deee3f9f
Merge pull request 'docs: add slots docs' (!310) from docs-slots into main
All checks were successful
Build docs / build-docs (push) Successful in 12s
Reviewed-on: #310
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-11 12:15:44 +00:00
Phan Huy Tran
4af605ef96 docs: add slots docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / Backend Tests (pull_request) Has been skipped
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
Pull Request Labeler / labeler (pull_request_target) Successful in 11s
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 15s
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m37s
2025-06-11 14:14:33 +02:00
6737eb9e4a
Merge pull request 'docs: Add Auth Docs' (!307) from docs/auth into main
All checks were successful
Build docs / build-docs (push) Successful in 14s
Reviewed-on: #307
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-06-11 12:02:25 +00:00
4619f787f0
add pdf to gitignore
Some checks failed
Claude PR Review / claude-code (pull_request) Successful in 26s
Pull Request Labeler / labeler (pull_request_target) Successful in 22s
CI / Get Changed Files (pull_request) Successful in 34s
Label PRs based on size / Check PR size (pull_request) Successful in 35s
CI / Backend Tests (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
CI / Playwright (pull_request) Has been skipped
CI / eslint (pull_request) Failing after 13m51s
2025-06-11 13:58:26 +02:00
3ca0b5a3c4
docs: Add API and JWT acronyms to documentation 2025-06-11 13:58:25 +02:00
7e30e191b4
Merge pull request 'docs: add dice docs' (!308) from docs-dice into main
All checks were successful
Build docs / build-docs (push) Successful in 12s
Reviewed-on: #308
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-11 11:57:03 +00:00
Phan Huy Tran
140bd44d66 chore: rebase
All checks were successful
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
CI / Get Changed Files (pull_request) Successful in 13s
CI / Backend Tests (pull_request) Has been skipped
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 / test-build (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 15s
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 27s
2025-06-11 13:55:31 +02:00
Phan Huy Tran
1d6ac261e0 docs: add dice docs 2025-06-11 13:54:50 +02:00
9deb92ad13
Merge pull request 'chore: Add Project-Architecture' (!306) from docs/architecture into main
All checks were successful
Build docs / build-docs (push) Successful in 13s
Reviewed-on: #306
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-11 11:53:10 +00:00
0345df3a30 chore: Add Project-Architecture
All checks were successful
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
Label PRs based on size / Check PR size (pull_request) Successful in 16s
Claude PR Review / claude-code (pull_request) Successful in 1m13s
CI / Get Changed Files (pull_request) Successful in 13s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
2025-06-11 13:49:14 +02:00
5bd3f554e2
Merge pull request 'chore: Add CI section to docs' (!305) from docs/CI into main
All checks were successful
Build docs / build-docs (push) Successful in 14s
Reviewed-on: #305
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-06-11 11:25:21 +00:00
59bb910f05 chore: Add CI section to docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / Backend Tests (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / oxlint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 13s
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m29s
2025-06-11 13:22:15 +02:00
e5155c072f
Merge pull request 'docs: replace logos with hitec logo' (!302) from logo into main
All checks were successful
Build docs / build-docs (push) Successful in 13s
Reviewed-on: #302
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-11 10:55:17 +00:00
Phan Huy Tran
922c95c212 docs: add logo to deckblatt
All checks were successful
Pull Request Labeler / labeler (pull_request_target) Successful in 17s
Label PRs based on size / Check PR size (pull_request) Successful in 30s
CI / Get Changed Files (pull_request) Successful in 34s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m47s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
2025-06-11 12:45:21 +02:00
Phan Huy Tran
c5b44f3f29 docs: replace logo 2025-06-11 12:41:05 +02:00
fad280104d
Merge pull request 'docs: add docs' (!301) from docs into main
All checks were successful
Build docs / build-docs (push) Successful in 27s
Reviewed-on: #301
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-11 10:28:04 +00:00
Phan Huy Tran
9cb813bf41 docs: add docs
All checks were successful
CI / Get Changed Files (pull_request) Successful in 30s
Pull Request Labeler / labeler (pull_request_target) Successful in 15s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 29s
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
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m42s
2025-06-11 12:24:18 +02:00
56763952c0
Merge pull request 'chore(deps): update dependency angular-eslint to v20' (!299) from renovate/major-angular-eslint-monorepo into main
All checks were successful
Build docs / build-docs (push) Successful in 26s
Release / Release (push) Successful in 1m29s
Release / Build Frontend Image (push) Successful in 29s
Release / Build Backend Image (push) Successful in 1m41s
Reviewed-on: #299
2025-06-10 11:18:23 +00:00
94eaf98250 fix: Remove constructor injection
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 23s
CI / eslint (pull_request) Successful in 27s
CI / prettier (pull_request) Successful in 26s
CI / Docker frontend validation (pull_request) Successful in 46s
CI / test-build (pull_request) Successful in 52s
Claude PR Review / claude-code (pull_request) Successful in 1m14s
CI / Playwright (pull_request) Successful in 2m10s
2025-06-10 13:15:10 +02:00
45fe90237b
chore(deps): update dependency angular-eslint to v20
Some checks failed
CI / Get Changed Files (pull_request) Successful in 10s
CI / Backend Tests (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / Checkstyle Main (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 22s
CI / oxlint (pull_request) Successful in 30s
CI / eslint (pull_request) Failing after 32s
CI / prettier (pull_request) Successful in 33s
CI / Docker frontend validation (pull_request) Successful in 56s
CI / test-build (pull_request) Successful in 51s
CI / Playwright (pull_request) Failing after 2m55s
2025-06-06 16:02:11 +00:00
739c4f610a
Merge pull request 'chore: Add some tests' (!283) from playwright into main
All checks were successful
Build docs / build-docs (push) Successful in 13s
Release / Release (push) Successful in 44s
Release / Build Frontend Image (push) Successful in 1m35s
Release / Build Backend Image (push) Successful in 2m0s
Reviewed-on: #283
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-06 11:59:11 +00:00
9717e5c43e
Merge pull request 'fix: Fix docs building' (!296) from fix-docs-2 into main
All checks were successful
Build docs / build-docs (push) Successful in 25s
Reviewed-on: #296
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-06 11:58:30 +00:00
cef0ca2a73
Merge pull request 'chore(deps): update actions/checkout action to v4' (!295) from renovate/actions-checkout-4.x into main
Some checks failed
Build docs / build-docs (push) Failing after 22s
Reviewed-on: #295
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-06 11:33:38 +00:00
0429406383 fix: Fix docs building
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
Label PRs based on size / Check PR size (pull_request) Successful in 9s
Claude PR Review / claude-code (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 24s
CI / oxlint (pull_request) Successful in 34s
CI / prettier (pull_request) Successful in 39s
CI / eslint (pull_request) Successful in 43s
CI / Docker backend validation (pull_request) Successful in 24s
CI / test-build (pull_request) Successful in 54s
CI / Checkstyle Main (pull_request) Successful in 1m36s
CI / Backend Tests (pull_request) Successful in 2m20s
2025-06-06 13:32:40 +02:00
332f9d1ce1
chore(deps): update actions/checkout action to v4
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Claude PR Review / claude-code (pull_request) Successful in 23s
CI / oxlint (pull_request) Successful in 36s
CI / eslint (pull_request) Successful in 46s
CI / prettier (pull_request) Successful in 47s
CI / test-build (pull_request) Successful in 1m27s
CI / Docker frontend validation (pull_request) Successful in 19s
CI / Checkstyle Main (pull_request) Successful in 1m36s
CI / Docker backend validation (pull_request) Successful in 15s
CI / Backend Tests (pull_request) Successful in 3m3s
2025-06-06 08:02:55 +00:00
922d48e1c0
Merge pull request 'fix: Fix docs bc v4 doesnt work' (!294) from fix-docs into main
Some checks failed
Build docs / build-docs (push) Failing after 25s
Reviewed-on: #294
2025-06-06 07:36:04 +00:00
b376307272 fix: Fix docs bc v4 doesnt work
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
Label PRs based on size / Check PR size (pull_request) Successful in 15s
Claude PR Review / claude-code (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 30s
CI / eslint (pull_request) Successful in 43s
CI / prettier (pull_request) Successful in 48s
CI / test-build (pull_request) Successful in 1m30s
CI / Docker frontend validation (pull_request) Successful in 1m31s
CI / Checkstyle Main (pull_request) Successful in 2m6s
CI / Docker backend validation (pull_request) Successful in 1m55s
CI / Backend Tests (pull_request) Successful in 2m34s
2025-06-06 07:17:12 +02:00
111c6c2a64 fix: Rename variable back
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
Label PRs based on size / Check PR size (pull_request) Successful in 14s
Pull Request Labeler / labeler (pull_request_target) Successful in 17s
Claude PR Review / claude-code (pull_request) Successful in 28s
CI / Docker frontend validation (pull_request) Successful in 26s
CI / oxlint (pull_request) Successful in 1m29s
CI / eslint (pull_request) Successful in 1m31s
CI / prettier (pull_request) Successful in 1m36s
CI / test-build (pull_request) Successful in 1m44s
CI / Docker backend validation (pull_request) Successful in 1m43s
CI / Backend Tests (pull_request) Successful in 4m37s
CI / Checkstyle Main (pull_request) Successful in 4m37s
CI / Playwright (pull_request) Successful in 4m53s
2025-06-06 07:09:33 +02:00
e828efdfa7 chore: Add some tests
All checks were successful
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / Get Changed Files (pull_request) Successful in 11s
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Claude PR Review / claude-code (pull_request) Successful in 33s
CI / eslint (pull_request) Successful in 40s
CI / oxlint (pull_request) Successful in 46s
CI / prettier (pull_request) Successful in 50s
CI / Docker backend validation (pull_request) Successful in 34s
CI / Docker frontend validation (pull_request) Successful in 1m27s
CI / test-build (pull_request) Successful in 1m32s
CI / Checkstyle Main (pull_request) Successful in 1m43s
CI / Backend Tests (pull_request) Successful in 2m31s
CI / Playwright (pull_request) Successful in 2m18s
2025-06-05 13:16:53 +02:00
971519f99c
Merge pull request 'fix: fix transcation history loading infinitely (CAS-84)' (!291) from bugfix/CAS-84 into main
Some checks failed
Build docs / build-docs (push) Failing after 10s
Release / Release (push) Successful in 1m2s
Release / Build Frontend Image (push) Successful in 28s
Release / Build Backend Image (push) Successful in 37s
Reviewed-on: #291
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
2025-06-04 12:47:30 +00:00
a296ae147b
Merge pull request 'feat: adjust landing page styles' (!290) from restyle-landing-page into main
Some checks failed
Build docs / build-docs (push) Failing after 16s
Release / Release (push) Successful in 1m18s
Release / Build Backend Image (push) Successful in 31s
Release / Build Frontend Image (push) Successful in 35s
Reviewed-on: #290
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 12:41:31 +00:00
Constantin Simonis
e4173e3ade
feat: add transaction handling on user signup process
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Claude PR Review / claude-code (pull_request) Successful in 27s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Docker frontend validation (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 1m29s
CI / Docker backend validation (pull_request) Successful in 1m49s
CI / Backend Tests (pull_request) Successful in 2m59s
2025-06-04 14:38:18 +02:00
Phan Huy Tran
ed83097b6b feat: open login form when accessing restricted links
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
Label PRs based on size / Check PR size (pull_request) Successful in 19s
Claude PR Review / claude-code (pull_request) Successful in 35s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 14s
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 44s
CI / prettier (pull_request) Successful in 52s
CI / eslint (pull_request) Successful in 1m6s
CI / test-build (pull_request) Successful in 1m31s
CI / Docker frontend validation (pull_request) Successful in 1m15s
2025-06-04 14:27:11 +02:00
Phan Huy Tran
68306f3893 feat: adjust register and login buttons 2025-06-04 13:35:43 +02:00
20076d8fe0
Merge pull request 'chore(deps): update https://git.kjan.de/actions/upload-artifact action to v4' (!289) from renovate/major-github-artifact-actions into main
Some checks failed
Build docs / build-docs (push) Failing after 30s
Reviewed-on: #289
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-04 11:08:23 +00:00
0c2a21c218
Merge pull request 'chore(deps): update actions/checkout action to v4' (!288) from renovate/actions-checkout-4.x into main
Some checks failed
Build docs / build-docs (push) Has been cancelled
Reviewed-on: #288
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-04 11:07:40 +00:00
Phan Huy Tran
65471d1666 feat: adjust game grid slider 2025-06-04 13:04:45 +02:00
801c60b793
chore(deps): update https://git.kjan.de/actions/upload-artifact action to v4
All checks were successful
CI / Get Changed Files (pull_request) Successful in 13s
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
Label PRs based on size / Check PR size (pull_request) Successful in 22s
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / oxlint (pull_request) Successful in 35s
CI / eslint (pull_request) Successful in 56s
CI / prettier (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 18s
CI / test-build (pull_request) Successful in 1m24s
CI / Docker backend validation (pull_request) Successful in 20s
CI / Checkstyle Main (pull_request) Successful in 1m55s
CI / Backend Tests (pull_request) Successful in 4m25s
2025-06-04 11:02:47 +00:00
feb40e3f79
chore(deps): update actions/checkout action to v4
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
Claude PR Review / claude-code (pull_request) Successful in 24s
CI / oxlint (pull_request) Successful in 20s
CI / eslint (pull_request) Successful in 43s
CI / prettier (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / Docker backend validation (pull_request) Successful in 36s
CI / test-build (pull_request) Successful in 1m40s
CI / Checkstyle Main (pull_request) Successful in 2m5s
CI / Backend Tests (pull_request) Successful in 4m22s
2025-06-04 11:02:44 +00:00
761a527ef0
Merge pull request 'docs: add project documentation for Casino Gaming Platform' (!285) from add-project-documentation into main
All checks were successful
Build docs / build-docs (push) Successful in 17s
Reviewed-on: #285
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 10:48:00 +00:00
e02f7357f0
Merge pull request 'feat: adjust spacings in the navbar' (!287) from noonereadsthisanywayitodesntreallymatter into main
All checks were successful
Release / Release (push) Successful in 1m22s
Release / Build Backend Image (push) Successful in 26s
Release / Build Frontend Image (push) Successful in 32s
Reviewed-on: #287
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 10:41:54 +00:00
Phan Huy Tran
db93ec790e feat: adjust spacings in the navbar
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Checkstyle Main (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 23s
CI / eslint (pull_request) Successful in 32s
CI / prettier (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 43s
CI / test-build (pull_request) Successful in 45s
2025-06-04 12:39:34 +02:00
4644e5cecc
Merge pull request 'does it even matter?' (!286) from number-omit into main
All checks were successful
Release / Release (push) Successful in 1m2s
Release / Build Backend Image (push) Successful in 38s
Release / Build Frontend Image (push) Successful in 47s
Reviewed-on: #286
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 10:35:09 +00:00
Phan Huy Tran
e35a30a606 refactor: remove unnecessary code
All checks were successful
CI / Get Changed Files (pull_request) Successful in 21s
Label PRs based on size / Check PR size (pull_request) Successful in 22s
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 38s
CI / eslint (pull_request) Successful in 58s
CI / prettier (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
2025-06-04 12:32:44 +02:00
Phan Huy Tran
81ec7122ea fix: display real number 2025-06-04 12:31:05 +02:00
17774fcdb2 chore: Add pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
Label PRs based on size / Check PR size (pull_request) Successful in 13s
Claude PR Review / claude-code (pull_request) Successful in 33s
CI / oxlint (pull_request) Successful in 32s
CI / eslint (pull_request) Successful in 47s
CI / prettier (pull_request) Successful in 48s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / Docker backend validation (pull_request) Successful in 17s
CI / test-build (pull_request) Successful in 1m21s
CI / Checkstyle Main (pull_request) Successful in 1m32s
CI / Backend Tests (pull_request) Successful in 2m18s
2025-06-04 12:28:12 +02:00
43e321c0d6
Merge pull request 'feat: restyle navbar' (!284) from homepage into main
All checks were successful
Release / Release (push) Successful in 1m6s
Release / Build Backend Image (push) Successful in 28s
Release / Build Frontend Image (push) Successful in 34s
Reviewed-on: #284
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 10:23:17 +00:00
Phan Huy Tran
23710a0553 style: fix pipelines
All checks were successful
CI / Get Changed Files (pull_request) Successful in 15s
Label PRs based on size / Check PR size (pull_request) Successful in 13s
Pull Request Labeler / labeler (pull_request_target) Successful in 11s
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 30s
CI / eslint (pull_request) Successful in 37s
CI / prettier (pull_request) Successful in 36s
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Successful in 51s
CI / Docker frontend validation (pull_request) Successful in 42s
2025-06-04 12:15:24 +02:00
Phan Huy Tran
4331484d48 feat: adjust icons
Some checks failed
CI / Get Changed Files (pull_request) Successful in 14s
CI / oxlint (pull_request) Successful in 33s
Claude PR Review / claude-code (pull_request) Successful in 41s
Label PRs based on size / Check PR size (pull_request) Successful in 18s
CI / prettier (pull_request) Failing after 45s
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / eslint (pull_request) Successful in 54s
CI / test-build (pull_request) Successful in 1m11s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 50s
2025-06-04 12:15:07 +02:00
790eeeb145
Merge branch 'main' into add-project-documentation
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / eslint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m30s
2025-06-04 09:58:50 +00:00
0b39eacc33
chore: fix formatting in labeler configuration file
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
CI / prettier (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m22s
2025-06-04 11:55:51 +02:00
04bdb89a93
chore: update labeler configuration for documentation files
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m25s
2025-06-04 11:54:41 +02:00
b583eedd75
docs: add project documentation for Casino Gaming Platform
All checks were successful
CI / Get Changed Files (pull_request) Successful in 16s
Pull Request Labeler / labeler (pull_request_target) Successful in 13s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 18s
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m31s
2025-06-04 11:53:43 +02:00
Phan Huy Tran
1e77beb7b6 style: fix pipelines
All checks were successful
CI / Get Changed Files (pull_request) Successful in 17s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
Label PRs based on size / Check PR size (pull_request) Successful in 19s
CI / oxlint (pull_request) Successful in 26s
CI / eslint (pull_request) Successful in 36s
CI / prettier (pull_request) Successful in 35s
Claude PR Review / claude-code (pull_request) Successful in 1m13s
CI / test-build (pull_request) Successful in 37s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 24s
2025-06-04 11:53:41 +02:00
Phan Huy Tran
d4fd5e068d feat: restyle navbar 2025-06-04 11:53:41 +02:00
Phan Huy Tran
06f2ae5d86 feat: improve game grid 2025-06-04 11:53:41 +02:00
Phan Huy Tran
b2f80dedf2 feat: adjust game grid 2025-06-04 11:53:41 +02:00
551f5bcf2e
Merge pull request 'fix: adjust inconsistencies in the frontend' (!282) from frontend-fixes into main
All checks were successful
Release / Release (push) Successful in 1m1s
Release / Build Backend Image (push) Successful in 25s
Release / Build Frontend Image (push) Successful in 30s
Reviewed-on: #282
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 09:04:17 +00:00
Phan Huy Tran
d388f2a786 style: die of cancer prettier
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
CI / oxlint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 29s
CI / eslint (pull_request) Successful in 34s
CI / Docker frontend validation (pull_request) Successful in 41s
CI / test-build (pull_request) Successful in 46s
Claude PR Review / claude-code (pull_request) Successful in 1m11s
2025-06-04 10:51:56 +02:00
Phan Huy Tran
a4e12272e5 fix: remove apple icon import
Some checks failed
CI / Get Changed Files (pull_request) Successful in 10s
Label PRs based on size / Check PR size (pull_request) Successful in 13s
CI / Backend Tests (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 30s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Failing after 35s
CI / Docker frontend validation (pull_request) Successful in 44s
CI / test-build (pull_request) Successful in 49s
Claude PR Review / claude-code (pull_request) Successful in 1m14s
2025-06-04 10:30:38 +02:00
Phan Huy Tran
bd031e8658 fix: adjust inconsistencies in the frontend
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
CI / oxlint (pull_request) Failing after 26s
CI / prettier (pull_request) Failing after 35s
CI / eslint (pull_request) Failing after 39s
CI / Docker frontend validation (pull_request) Successful in 49s
CI / test-build (pull_request) Successful in 57s
Claude PR Review / claude-code (pull_request) Successful in 1m13s
2025-06-04 10:29:30 +02:00
9a7049d6ab
Merge pull request 'fix: lootbox routing' (!281) from fix-lootbox-routing into main
All checks were successful
Release / Release (push) Successful in 58s
Release / Build Backend Image (push) Successful in 24s
Release / Build Frontend Image (push) Successful in 29s
Reviewed-on: #281
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 08:14:22 +00:00
Phan Huy Tran
75508d9ebb fix: lootbox routing
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 12s
CI / eslint (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 37s
CI / test-build (pull_request) Successful in 46s
CI / Docker frontend validation (pull_request) Successful in 51s
Claude PR Review / claude-code (pull_request) Successful in 1m9s
2025-06-04 10:12:15 +02:00
c6ae4a1056
Merge pull request 'fix(deps): update dependencies (major and minor)' (!219) from renovate/dependencies-(major-and-minor) into main
All checks were successful
Release / Release (push) Successful in 1m0s
Release / Build Frontend Image (push) Successful in 30s
Release / Build Backend Image (push) Successful in 35s
Reviewed-on: #219
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 08:04:01 +00:00
234442dccd fix: Remove missing method
Some checks failed
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / oxlint (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 1m31s
CI / Checkstyle Main (pull_request) Successful in 1m45s
CI / Backend Tests (pull_request) Successful in 2m9s
Claude PR Review / claude-code (pull_request) Has been cancelled
2025-06-04 10:00:10 +02:00
fc60cfb3d5
Merge pull request 'chore: Update some README's' (!280) from update-readmes into main
All checks were successful
Release / Release (push) Successful in 1m3s
Release / Build Backend Image (push) Successful in 25s
Release / Build Frontend Image (push) Successful in 26s
Reviewed-on: #280
2025-06-04 07:57:19 +00:00
5d600a4b21 chore: Update some README's
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
Label PRs based on size / Check PR size (pull_request) Successful in 24s
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / oxlint (pull_request) Successful in 40s
CI / prettier (pull_request) Successful in 46s
CI / eslint (pull_request) Successful in 50s
CI / test-build (pull_request) Successful in 1m17s
Claude PR Review / claude-code (pull_request) Successful in 1m29s
CI / Docker frontend validation (pull_request) Successful in 15s
CI / Docker backend validation (pull_request) Successful in 14s
CI / Backend Tests (pull_request) Successful in 2m21s
CI / Checkstyle Main (pull_request) Successful in 1m49s
2025-06-04 09:53:29 +02:00
feb67c708e
Merge pull request 'fix: invalid pipe argument' (!279) from fix-transaction-date into main
All checks were successful
Release / Release (push) Successful in 59s
Release / Build Backend Image (push) Successful in 25s
Release / Build Frontend Image (push) Successful in 28s
Reviewed-on: #279
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 07:35:42 +00:00
Phan Huy Tran
19cec9d7db fix: invalid pipe argument
All checks were successful
Label PRs based on size / Check PR size (pull_request) Successful in 31s
Pull Request Labeler / labeler (pull_request_target) Successful in 18s
CI / Get Changed Files (pull_request) Successful in 35s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 29s
CI / prettier (pull_request) Successful in 29s
Claude PR Review / claude-code (pull_request) Successful in 1m23s
CI / test-build (pull_request) Successful in 44s
CI / Docker frontend validation (pull_request) Successful in 46s
2025-06-04 09:32:46 +02:00
15e8cf02f7
fix(deps): update dependencies (major and minor)
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
Label PRs based on size / Check PR size (pull_request) Successful in 10s
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 22s
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Failing after 1m8s
CI / Backend Tests (pull_request) Failing after 1m52s
CI / Checkstyle Main (pull_request) Failing after 1m50s
2025-06-04 07:02:33 +00:00
f01554c9c9
Merge pull request 'chore: exterminate plinko' (!277) from remove-plinko into main
All checks were successful
Release / Release (push) Successful in 1m1s
Release / Build Backend Image (push) Successful in 31s
Release / Build Frontend Image (push) Successful in 34s
Reviewed-on: #277
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 07:02:01 +00:00
565420103f
Merge branch 'main' into remove-plinko
All checks were successful
CI / Get Changed Files (pull_request) Successful in 16s
Label PRs based on size / Check PR size (pull_request) Successful in 17s
CI / Backend Tests (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 31s
CI / eslint (pull_request) Successful in 44s
CI / prettier (pull_request) Successful in 49s
CI / test-build (pull_request) Successful in 58s
CI / Docker frontend validation (pull_request) Successful in 1m38s
2025-06-04 06:59:51 +00:00
07c4e00e33
Merge pull request 'fix: Install eslint' (!278) from install-eslint into main
All checks were successful
Release / Release (push) Successful in 1m29s
Release / Build Frontend Image (push) Successful in 34s
Release / Build Backend Image (push) Successful in 37s
Reviewed-on: #278
2025-06-04 06:59:45 +00:00
c89024a277 fix: Install eslint
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 14s
Claude PR Review / claude-code (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 32s
CI / test-build (pull_request) Successful in 42s
CI / Docker frontend validation (pull_request) Successful in 46s
2025-06-04 08:57:07 +02:00
Phan Huy Tran
7b66aac33d chore: exterminate plinko
Some checks failed
CI / Get Changed Files (pull_request) Successful in 9s
Label PRs based on size / Check PR size (pull_request) Successful in 11s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / eslint (pull_request) Failing after 35s
CI / oxlint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 41s
CI / Docker frontend validation (pull_request) Successful in 51s
CI / test-build (pull_request) Successful in 38s
2025-06-04 08:53:01 +02:00
202c5fb93f
Merge pull request 'chore: Renovate angular 20' (!276) from renovate/combine-some into main
All checks were successful
Release / Release (push) Successful in 1m1s
Release / Build Backend Image (push) Successful in 24s
Release / Build Frontend Image (push) Successful in 29s
Reviewed-on: #276
2025-06-04 06:45:05 +00:00
3acd131b20 chore: Update README.md
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 11s
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 23s
CI / oxlint (pull_request) Successful in 18s
CI / Docker frontend validation (pull_request) Successful in 17s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 29s
CI / test-build (pull_request) Successful in 36s
2025-06-04 08:41:24 +02:00
52c61c5b18 fix: Replace zone detection with the new one
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 7s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 13s
Claude PR Review / claude-code (pull_request) Successful in 26s
CI / oxlint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 30s
CI / eslint (pull_request) Successful in 34s
CI / Docker frontend validation (pull_request) Successful in 39s
CI / test-build (pull_request) Successful in 47s
2025-06-04 08:38:19 +02:00
b66d39cbac chore: Recreate lock file and do angular update
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 8s
CI / Docker backend validation (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 15s
Claude PR Review / claude-code (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 23s
CI / eslint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Failing after 41s
CI / test-build (pull_request) Failing after 44s
2025-06-04 08:35:55 +02:00
16b052c0f3 chore: Combine some renovate pr's
Some checks failed
CI / Get Changed Files (pull_request) Successful in 12s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 12s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 17s
Claude PR Review / claude-code (pull_request) Successful in 49s
CI / prettier (pull_request) Successful in 53s
CI / oxlint (pull_request) Successful in 1m7s
CI / eslint (pull_request) Successful in 1m10s
CI / test-build (pull_request) Failing after 1m8s
CI / Docker frontend validation (pull_request) Failing after 1m18s
2025-06-04 08:30:26 +02:00
99d25c0413
Merge pull request 'chore(deps): update dependency angular-eslint to v19.7.1' (!272) from renovate/devdependencies-(non-major) into main
All checks were successful
Release / Release (push) Successful in 1m53s
Release / Build Backend Image (push) Successful in 28s
Release / Build Frontend Image (push) Successful in 31s
Reviewed-on: #272
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-04 06:23:43 +00:00
d68e907061
fix(deps): update dependencies (major and minor)
Some checks failed
CI / Get Changed Files (pull_request) Successful in 19s
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
Label PRs based on size / Check PR size (pull_request) Successful in 19s
Claude PR Review / claude-code (pull_request) Successful in 42s
CI / eslint (pull_request) Successful in 1m1s
CI / oxlint (pull_request) Successful in 42s
CI / prettier (pull_request) Successful in 57s
CI / test-build (pull_request) Failing after 52s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Failing after 23s
2025-06-03 08:47:30 +00:00
fb41de95b8
chore(deps): update dependency @angular/compiler-cli to v20
Some checks failed
CI / Get Changed Files (pull_request) Successful in 17s
Pull Request Labeler / labeler (pull_request_target) Successful in 9s
Label PRs based on size / Check PR size (pull_request) Successful in 18s
Claude PR Review / claude-code (pull_request) Successful in 31s
CI / eslint (pull_request) Successful in 46s
CI / oxlint (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 44s
CI / test-build (pull_request) Failing after 1m1s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Failing after 32s
2025-06-03 08:47:23 +00:00
02f87c177d
chore(deps): update angular-cli monorepo to v20
Some checks failed
CI / Get Changed Files (pull_request) Successful in 11s
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
Label PRs based on size / Check PR size (pull_request) Successful in 16s
Claude PR Review / claude-code (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 41s
CI / eslint (pull_request) Successful in 49s
CI / prettier (pull_request) Successful in 42s
CI / test-build (pull_request) Failing after 46s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Failing after 1m5s
CI / Docker backend validation (pull_request) Has been skipped
2025-06-03 08:47:17 +00:00
13ddb79d88
chore(deps): update dependency angular-eslint to v19.7.1
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 12s
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 22s
CI / Docker frontend validation (pull_request) Successful in 22s
CI / oxlint (pull_request) Successful in 25s
CI / eslint (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 28s
CI / test-build (pull_request) Successful in 32s
2025-06-03 08:46:55 +00:00
4c7bff1b31
Merge pull request 'chore: Add ci label to labeler' (!267) from add-ci-label into main
Some checks failed
CI / Get Changed Files (pull_request) Failing after 20s
Pull Request Labeler / labeler (pull_request_target) Successful in 14s
Label PRs based on size / Check PR size (pull_request) Failing after 18s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Failing after 33s
Reviewed-on: #267
2025-06-03 08:44:45 +00:00
c9a1601962
Merge branch 'main' into add-ci-label
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
CI / Backend Tests (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 13s
CI / Checkstyle Main (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 23s
2025-06-03 08:41:52 +00:00
8e4a694b24
Merge pull request 'chore: Add sizes for prs' (!266) from pr-size into main
Reviewed-on: #266
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-03 08:41:45 +00:00
fa96cf8941 chore: Add sizes for prs
All checks were successful
Claude PR Review / claude-code (pull_request) Successful in 34s
CI / Get Changed Files (pull_request) Successful in 8s
Pull Request Labeler / labeler (pull_request_target) Successful in 4s
Label PRs based on size / Check PR size (pull_request) Successful in 9s
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 32s
CI / Docker frontend validation (pull_request) Successful in 32s
CI / Docker backend validation (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 46s
CI / test-build (pull_request) Successful in 1m12s
CI / Checkstyle Main (pull_request) Successful in 1m21s
CI / Backend Tests (pull_request) Successful in 1m59s
2025-06-03 10:35:29 +02:00
698370fd9b chore: Add ci label to labeler
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 6s
CI / test-build (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 29s
2025-06-03 10:31:50 +02:00
684c25b562
Merge pull request 'chore: Add labeler' (!264) from labeler into main
All checks were successful
CI / Get Changed Files (pull_request) Successful in 14s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 5s
CI / Backend Tests (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 28s
Reviewed-on: #264
Reviewed-by: Jan-Marlon Leibl <jleibl@proton.me>
2025-06-03 07:23:14 +00:00
674ef6e8b0
Merge pull request 'chore(deps): update devdependencies (non-major)' (!252) from renovate/devdependencies-(non-major) into main
All checks were successful
Release / Release (push) Successful in 1m16s
Release / Build Backend Image (push) Successful in 25s
Release / Build Frontend Image (push) Successful in 27s
Reviewed-on: #252
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-03 06:24:53 +00:00
780a360f03
Merge branch 'main' into labeler
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
Claude PR Review / claude-code (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 36s
CI / eslint (pull_request) Successful in 42s
CI / Docker frontend validation (pull_request) Successful in 27s
CI / Docker backend validation (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 47s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / test-build (pull_request) Successful in 55s
CI / Backend Tests (pull_request) Successful in 1m56s
2025-06-03 06:16:45 +00:00
ac6c00245b
Merge pull request 'chore(deps): update https://git.kjan.de/actions/claude-pr-review action to v1.0.4' (!265) from renovate/all-minor-patch into main
Reviewed-on: #265
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-03 06:15:51 +00:00
75735a0c12
chore(deps): update devdependencies (non-major)
All checks were successful
CI / Get Changed Files (pull_request) Successful in 14s
Claude PR Review / claude-code (pull_request) Successful in 34s
CI / oxlint (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 27s
CI / test-build (pull_request) Successful in 38s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 22s
CI / Docker backend validation (pull_request) Has been skipped
2025-06-03 06:08:46 +00:00
ac5c9ea912
chore(deps): update https://git.kjan.de/actions/claude-pr-review action to v1.0.4
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
Claude PR Review / claude-code (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 49s
CI / eslint (pull_request) Successful in 51s
CI / prettier (pull_request) Successful in 56s
CI / test-build (pull_request) Successful in 1m6s
CI / Docker frontend validation (pull_request) Successful in 2m3s
CI / Docker backend validation (pull_request) Successful in 2m0s
CI / Backend Tests (pull_request) Successful in 6m37s
CI / Checkstyle Main (pull_request) Successful in 6m42s
2025-06-03 06:08:37 +00:00
5d75109dcf
Merge pull request 'chore: Use claude action' (!251) from claude-action into main
Reviewed-on: #251
2025-06-03 06:06:52 +00:00
186a865231 chore: Add labeler
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
Claude PR Review / claude-code (pull_request) Failing after 22s
CI / eslint (pull_request) Successful in 32s
CI / Docker frontend validation (pull_request) Successful in 32s
CI / Docker backend validation (pull_request) Successful in 23s
CI / oxlint (pull_request) Successful in 38s
CI / prettier (pull_request) Successful in 42s
CI / test-build (pull_request) Successful in 1m9s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / Backend Tests (pull_request) Successful in 2m1s
2025-06-02 14:56:09 +02:00
39feba7d1d
Merge pull request 'fix: Hourly' (!262) from improve-stale into main
Reviewed-on: #262
2025-06-02 12:38:54 +00:00
9639525ddd fix: Hourly
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / oxlint (pull_request) Successful in 43s
CI / eslint (pull_request) Successful in 49s
CI / prettier (pull_request) Successful in 49s
Claude PR Review / claude-code (pull_request) Successful in 1m5s
CI / Docker frontend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m23s
CI / Docker backend validation (pull_request) Successful in 19s
CI / Checkstyle Main (pull_request) Successful in 1m1s
CI / Backend Tests (pull_request) Successful in 2m26s
2025-06-02 14:33:06 +02:00
b25f76dde8
Merge pull request 'test: dice service' (!237) from refactor-blackjack into main
All checks were successful
Release / Release (push) Successful in 1m1s
Release / Build Frontend Image (push) Successful in 30s
Release / Build Backend Image (push) Successful in 1m1s
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m11s
Reviewed-on: #237
Reviewed-by: Jan K9f <jan@kjan.email>
2025-06-02 12:16:43 +00:00
aa7cf00ebb
Merge pull request 'chore: Add stale pipeline' (!253) from stale into main
Reviewed-on: #253
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-06-02 12:15:30 +00:00
bd1d8f8339 chore: Add stale pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / oxlint (pull_request) Successful in 28s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 41s
Claude PR Review / claude-code (pull_request) Successful in 1m5s
CI / Docker frontend validation (pull_request) Successful in 17s
CI / test-build (pull_request) Successful in 1m17s
CI / Docker backend validation (pull_request) Successful in 16s
CI / Checkstyle Main (pull_request) Successful in 1m19s
CI / Backend Tests (pull_request) Successful in 2m15s
2025-06-02 14:13:37 +02:00
65975fe4f8 chore: Use action
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / oxlint (pull_request) Successful in 33s
CI / eslint (pull_request) Successful in 42s
CI / prettier (pull_request) Successful in 43s
Claude PR Review / claude-code (pull_request) Successful in 1m26s
CI / Docker frontend validation (pull_request) Successful in 18s
CI / Checkstyle Main (pull_request) Successful in 1m27s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m5s
CI / Backend Tests (pull_request) Successful in 2m23s
2025-06-02 09:04:59 +02:00
fa67dd5ebf
Merge pull request 'fix: Update claude to not decline pr's' (!244) from claude/no-reject into main
Reviewed-on: #244
Reviewed-by: Claude <claude@kjan.email>
2025-06-01 11:54:56 +00:00
b09c9c3b4f
Merge branch 'main' into claude/no-reject
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / Docker frontend validation (pull_request) Successful in 32s
CI / eslint (pull_request) Successful in 41s
CI / oxlint (pull_request) Successful in 44s
CI / prettier (pull_request) Successful in 46s
CI / Docker backend validation (pull_request) Successful in 21s
Claude PR Review / claude-code (pull_request) Successful in 1m14s
CI / test-build (pull_request) Successful in 1m13s
CI / Checkstyle Main (pull_request) Successful in 1m22s
CI / Backend Tests (pull_request) Successful in 2m7s
2025-06-01 11:51:58 +00:00
4960b5966f
Merge pull request 'fix: Remove -m' (!250) from claude/no-m into main
Reviewed-on: #250
2025-06-01 11:45:11 +00:00
ffea4c0ec3 fix: Remove -m
All checks were successful
CI / Get Changed Files (pull_request) Successful in 12s
CI / eslint (pull_request) Successful in 24s
CI / oxlint (pull_request) Successful in 27s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / prettier (pull_request) Successful in 42s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m2s
CI / Docker backend validation (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 1m12s
CI / Checkstyle Main (pull_request) Successful in 1m20s
CI / Backend Tests (pull_request) Successful in 2m1s
2025-06-01 13:43:36 +02:00
ed44c8b7fd
Merge pull request 'fix: Force claude to use tea cli' (!249) from claude/force into main
Reviewed-on: #249
Reviewed-by: Claude <claude@kjan.email>
2025-06-01 11:40:04 +00:00
262c814df0 fix: Force claude to use tea cli
All checks were successful
CI / Get Changed Files (pull_request) Successful in 16s
CI / Docker frontend validation (pull_request) Successful in 17s
CI / Docker backend validation (pull_request) Successful in 16s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m25s
CI / Checkstyle Main (pull_request) Successful in 52s
CI / Backend Tests (pull_request) Successful in 1m58s
CI / oxlint (pull_request) Successful in 20s
CI / eslint (pull_request) Successful in 32s
CI / prettier (pull_request) Successful in 23s
CI / test-build (pull_request) Successful in 32s
2025-06-01 13:39:39 +02:00
1de660d0e2
Merge pull request 'fix: Fix claude to always use tea command to review' (!248) from claude/use-tea-cli into main
Reviewed-on: #248
Reviewed-by: Claude <claude@kjan.email>
2025-06-01 10:30:51 +00:00
5d5c27827b fix: Fix claude to always use tea command to review
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Successful in 30s
CI / oxlint (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 32s
CI / prettier (pull_request) Successful in 41s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m6s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / Backend Tests (pull_request) Successful in 1m54s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m18s
2025-06-01 12:24:42 +02:00
2b096695a3
Merge pull request 'fix: Fix claude pipeline' (!247) from claude/fix into main
Reviewed-on: #247
2025-06-01 10:20:54 +00:00
84a4ede026 fix: Fix claude pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 36s
CI / prettier (pull_request) Successful in 40s
CI / Docker backend validation (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 1m9s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m27s
CI / Checkstyle Main (pull_request) Successful in 1m19s
CI / Backend Tests (pull_request) Successful in 1m56s
2025-06-01 12:16:44 +02:00
f6b8400c0b
Merge branch 'main' into claude/no-reject
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Successful in 34s
CI / Docker frontend validation (pull_request) Successful in 30s
CI / oxlint (pull_request) Successful in 42s
CI / prettier (pull_request) Successful in 45s
Claude PR Review / claude-code (pull_request) Successful in 57s
CI / Docker backend validation (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 1m11s
CI / Checkstyle Main (pull_request) Successful in 1m18s
CI / Backend Tests (pull_request) Successful in 1m58s
2025-06-01 10:14:21 +00:00
f991e1d6ed
Merge pull request 'chore: Claude can respond in pr's' (!246) from claude/pr-response into main
Reviewed-on: #246
Reviewed-by: Claude <claude@kjan.email>
2025-06-01 10:14:13 +00:00
c719e43ba0 chore: Claude can respond in pr's
All checks were successful
CI / Get Changed Files (pull_request) Successful in 17s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m27s
CI / eslint (pull_request) Successful in 56s
CI / oxlint (pull_request) Successful in 38s
CI / prettier (pull_request) Successful in 50s
CI / test-build (pull_request) Successful in 1m40s
CI / Docker frontend validation (pull_request) Successful in 20s
CI / Docker backend validation (pull_request) Successful in 17s
CI / Checkstyle Main (pull_request) Successful in 1m26s
CI / Backend Tests (pull_request) Successful in 2m58s
2025-06-01 12:08:02 +02:00
5ca152007e Merge branch 'main' into claude/pr-response 2025-06-01 12:06:50 +02:00
bb1621ba49
Merge pull request 'fix: Fix frontend build bc apparently they changed the node version' (!245) from fix/node-version into main
All checks were successful
Release / Release (push) Successful in 2m6s
Release / Build Backend Image (push) Successful in 59s
Release / Build Frontend Image (push) Successful in 47s
Reviewed-on: #245
2025-06-01 10:03:18 +00:00
602166aa61 fix: Remove sudo
All checks were successful
CI / Get Changed Files (pull_request) Successful in 9s
CI / oxlint (pull_request) Successful in 22s
CI / eslint (pull_request) Successful in 32s
CI / Docker frontend validation (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 35s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m7s
CI / Checkstyle Main (pull_request) Successful in 1m15s
CI / Backend Tests (pull_request) Successful in 1m53s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m17s
2025-06-01 11:09:12 +02:00
749303c3ee fix: Fix frontend build bc apparently they changed the node version 2025-06-01 11:09:07 +02:00
189fb85918 fix: Update pipeline name
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 53s
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Successful in 27s
CI / oxlint (pull_request) Successful in 28s
CI / prettier (pull_request) Successful in 35s
CI / test-build (pull_request) Successful in 51s
CI / Backend Tests (pull_request) Successful in 2m7s
Claude PR Review / claude-code (pull_request) Successful in 52s
CI / Docker backend validation (pull_request) Successful in 11s
CI / Docker frontend validation (pull_request) Failing after 14s
2025-06-01 10:44:47 +02:00
acd098225c fix: Update claude to not decline pr's 2025-06-01 10:44:44 +02:00
Phan Huy Tran
3e1c15e023 test: adjust commments
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m38s
CI / Docker frontend validation (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 18s
CI / Checkstyle Main (pull_request) Successful in 1m14s
CI / Backend Tests (pull_request) Successful in 2m16s
2025-05-28 11:04:57 +00:00
Phan Huy Tran
78b8f4696c test: refactor 2025-05-28 11:04:57 +00:00
Phan Huy Tran
b7a8627bcf test: dice service 2025-05-28 11:04:57 +00:00
349378a13e
Merge pull request 'fix: remove being mean' (!239) from no-mean into main
Reviewed-on: #239
Reviewed-by: Claude <claude@anthropic.ai>
2025-05-28 11:04:35 +00:00
c7e364a188 fix: remove being mean
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / oxlint (pull_request) Successful in 34s
CI / prettier (pull_request) Successful in 38s
CI / eslint (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 17s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m28s
CI / test-build (pull_request) Successful in 55s
CI / Docker backend validation (pull_request) Successful in 19s
CI / Checkstyle Main (pull_request) Successful in 1m16s
CI / Backend Tests (pull_request) Successful in 3m6s
2025-05-28 13:01:43 +02:00
e8f4ca81ba
Merge pull request 'fix: Line numbers' (!238) from line-numbers into main
Reviewed-on: #238
Reviewed-by: Claude <claude@anthropic.ai>
2025-05-28 10:58:13 +00:00
9088adbac5 fix: Line numbers
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / oxlint (pull_request) Successful in 22s
CI / eslint (pull_request) Successful in 29s
CI / prettier (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 26s
CI / Docker backend validation (pull_request) Successful in 15s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m9s
CI / test-build (pull_request) Successful in 57s
CI / Checkstyle Main (pull_request) Successful in 1m6s
CI / Backend Tests (pull_request) Successful in 1m52s
2025-05-28 12:56:39 +02:00
06c4df7602
Merge pull request 'feat: Add test backend pipeline' (!235) from test-pipeline into main
Reviewed-on: #235
Reviewed-by: Phan Huy Tran <ptran@noreply.localhost>
balls
2025-05-28 10:47:10 +00:00
8072500faa
Merge branch 'main' into test-pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 7s
CI / oxlint (pull_request) Successful in 29s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / eslint (pull_request) Successful in 37s
CI / prettier (pull_request) Successful in 38s
CI / Docker backend validation (pull_request) Successful in 19s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m10s
CI / test-build (pull_request) Successful in 1m10s
CI / Checkstyle Main (pull_request) Successful in 1m16s
CI / Backend Tests (pull_request) Successful in 1m56s
2025-05-28 10:44:42 +00:00
e418c296de feat: Add test backend pipeline
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 21s
CI / eslint (pull_request) Successful in 30s
CI / Docker frontend validation (pull_request) Successful in 30s
CI / prettier (pull_request) Successful in 41s
CI / Docker backend validation (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 1m8s
CI / Checkstyle Main (pull_request) Successful in 1m17s
CI / Backend Tests (pull_request) Successful in 1m53s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m26s
2025-05-28 12:40:17 +02:00
db4cf796d6
Merge pull request 'refactor: outsource deck related actions to service' (!236) from refactor-blackjack into main
All checks were successful
Release / Release (push) Successful in 1m13s
Release / Build Frontend Image (push) Successful in 26s
Release / Build Backend Image (push) Successful in 32s
Reviewed-on: #236
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 10:38:15 +00:00
Phan Huy Tran
2a51dce565 refactor: outsource deck related actions to service
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 57s
CI / Docker backend validation (pull_request) Successful in 49s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m32s
2025-05-28 12:31:32 +02:00
b34b12cfc7
Merge pull request 'refactor: refactor blackjack service' (!231) from refactor-blackjack into main
All checks were successful
Release / Release (push) Successful in 1m0s
Release / Build Frontend Image (push) Successful in 27s
Release / Build Backend Image (push) Successful in 32s
Reviewed-on: #231
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 09:54:53 +00:00
Phan Huy Tran
e78fc58aaa refactor: remove dependency
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (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 / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 54s
CI / Docker backend validation (pull_request) Successful in 55s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m20s
2025-05-28 11:50:10 +02:00
Phan Huy Tran
3cbffba14f refactor: use userservice and balance service inside blackjack service
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 51s
CI / Docker backend validation (pull_request) Successful in 54s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m30s
2025-05-28 11:41:32 +02:00
fe0bc9d556
Merge pull request 'chore: Update the claude instructions' (!234) from tea-cli into main
Reviewed-on: #234
Reviewed-by: Claude <claude@anthropic.ai>
2025-05-28 09:39:25 +00:00
903ca20e9d fix: Fix typo
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Successful in 30s
CI / Docker backend validation (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 33s
CI / oxlint (pull_request) Successful in 33s
CI / prettier (pull_request) Successful in 36s
CI / Checkstyle Main (pull_request) Successful in 54s
CI / test-build (pull_request) Successful in 52s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m16s
2025-05-28 11:36:57 +02:00
9553c66f11 chore: Update the claude instructions
All checks were successful
CI / Get Changed Files (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 29s
CI / prettier (pull_request) Successful in 36s
CI / eslint (pull_request) Successful in 41s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m25s
CI / test-build (pull_request) Successful in 53s
CI / Docker backend validation (pull_request) Successful in 1m4s
CI / Docker frontend validation (pull_request) Successful in 1m11s
CI / Checkstyle Main (pull_request) Successful in 1m30s
2025-05-28 11:33:52 +02:00
d5f4bcee05
Merge pull request 'fix: Make claude better' (!233) from claude-mean into main
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Checkstyle Main (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m20s
Reviewed-on: #233
2025-05-28 09:15:26 +00:00
efd744261d fix: Make claude better
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 25s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / Docker backend validation (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 33s
CI / prettier (pull_request) Successful in 33s
CI / Checkstyle Main (pull_request) Successful in 57s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m7s
CI / test-build (pull_request) Successful in 55s
2025-05-28 11:12:06 +02:00
89c6be5345
Merge pull request 'fix: Dont run on renovate' (!230) from no-renovate into main
Reviewed-on: #230
Reviewed-by: Claude <claude@anthropic.ai>
2025-05-28 09:07:30 +00:00
cd43f111c4 fix: Dont run on renovate
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / oxlint (pull_request) Successful in 33s
CI / Docker frontend validation (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 39s
CI / prettier (pull_request) Successful in 39s
CI / Docker backend validation (pull_request) Successful in 18s
CI / Checkstyle Main (pull_request) Successful in 1m5s
CI / test-build (pull_request) Successful in 1m0s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m49s
2025-05-28 11:05:18 +02:00
7be0fc97bc
Merge pull request 'refactor: handle optional user inside userservice, replace @autowire' (!227) from refactor-get-current-user into main
All checks were successful
Release / Release (push) Successful in 1m2s
Release / Build Frontend Image (push) Successful in 25s
Release / Build Backend Image (push) Successful in 32s
CI / Get Changed Files (pull_request) Successful in 11s
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
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m11s
Reviewed-on: #227
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 08:50:55 +00:00
1f67fb3665
Merge pull request 'fix: Fix claude maybe' (!228) from fix-claude into main
Reviewed-on: #228
Reviewed-by: Claude <claude@anthropic.ai>
2025-05-28 08:50:37 +00:00
92af3076b5 fix: Fix claude maybe
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Docker frontend validation (pull_request) Successful in 29s
CI / oxlint (pull_request) Successful in 28s
CI / eslint (pull_request) Successful in 33s
CI / Docker backend validation (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 37s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m3s
CI / Checkstyle Main (pull_request) Successful in 57s
CI / test-build (pull_request) Successful in 53s
2025-05-28 10:47:57 +02:00
20b7c445e0
Merge branch 'main' into refactor-get-current-user
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (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 / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 12s
CI / Checkstyle Main (pull_request) Successful in 30s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m3s
2025-05-28 08:45:03 +00:00
52968e92a0
Merge pull request 'feat: Add claude code review' (!226) from claude into main
Reviewed-on: #226
2025-05-28 08:44:54 +00:00
Phan Huy Tran
1c45ff0058 refactor: handle optional user inside userservice, replace @autowire
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (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 / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 51s
CI / Docker backend validation (pull_request) Successful in 53s
2025-05-28 10:40:42 +02:00
52d9e7b688 feat: Add claude code review
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 1m0s
CI / prettier (pull_request) Successful in 1m9s
CI / eslint (pull_request) Successful in 1m13s
Setup Gitea Tea CLI / setup-and-login (pull_request) Successful in 1m31s
CI / test-build (pull_request) Successful in 1m23s
CI / Docker frontend validation (pull_request) Successful in 1m27s
CI / Docker backend validation (pull_request) Successful in 1m26s
CI / Checkstyle Main (pull_request) Successful in 1m34s
2025-05-28 10:39:38 +02:00
2651e34bf1
Merge pull request 'refactor: remove unused blackjack split funcionality' (!225) from refactor-blackjack-split into main
All checks were successful
Release / Release (push) Successful in 1m2s
Release / Build Frontend Image (push) Successful in 27s
Release / Build Backend Image (push) Successful in 1m0s
Reviewed-on: #225
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 08:26:58 +00:00
Phan Huy Tran
e9e2eba46f refactor: readd transactional attribute
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (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 / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 51s
CI / Docker backend validation (pull_request) Successful in 52s
2025-05-28 10:23:18 +02:00
Phan Huy Tran
c277b89ffc refactor: remove unused blackjack split funcionality
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 54s
CI / Docker backend validation (pull_request) Successful in 1m1s
2025-05-28 10:21:21 +02:00
74d812a012
Merge pull request 'test: coinflip service' (!224) from test-coinflip-service into main
All checks were successful
Release / Release (push) Successful in 1m2s
Release / Build Frontend Image (push) Successful in 27s
Release / Build Backend Image (push) Successful in 33s
Reviewed-on: #224
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 07:36:37 +00:00
Phan Huy Tran
ce444c5e59 test: coinflip service
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 53s
CI / Docker backend validation (pull_request) Successful in 54s
2025-05-28 09:21:03 +02:00
9859e60173
Merge pull request 'test: add tests for balanceservice, delete failing tests' (!223) from test-balanceservice into main
All checks were successful
Release / Release (push) Successful in 1m7s
Release / Build Frontend Image (push) Successful in 28s
Release / Build Backend Image (push) Successful in 33s
Reviewed-on: #223
2025-05-28 07:04:51 +00:00
Phan Huy Tran
e21d031b36 test: tf
All checks were successful
CI / Get Changed Files (pull_request) Successful in 11s
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 14s
CI / Checkstyle Main (pull_request) Successful in 2m47s
2025-05-28 07:01:44 +00:00
Phan Huy Tran
00c512bf3b test: add tests for balanceservice, delete failing tests 2025-05-28 07:01:44 +00:00
4f6ca3c039
Merge pull request 'chore(deps): update devdependencies (non-major)' (!222) from renovate/devdependencies-(non-major) into main
All checks were successful
Release / Release (push) Successful in 2m1s
Release / Build Backend Image (push) Successful in 37s
Release / Build Frontend Image (push) Successful in 37s
Reviewed-on: #222
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-28 06:40:51 +00:00
1d1a917e33
chore(deps): update devdependencies (non-major)
All checks were successful
CI / Get Changed Files (pull_request) Successful in 31s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 31s
CI / test-build (pull_request) Successful in 37s
CI / Docker frontend validation (pull_request) Successful in 1m15s
2025-05-27 18:01:48 +00:00
155 changed files with 7030 additions and 1337 deletions

20
.gitea/labeler.yml Normal file
View file

@ -0,0 +1,20 @@
frontend:
- changed-files:
- any-glob-to-any-file:
- "frontend/**"
backend:
- changed-files:
- any-glob-to-any-file:
- "backend/**"
ci:
- changed-files:
- any-glob-to-any-file:
- ".gitea/**"
docs:
- changed-files:
- any-glob-to-any-file:
- "projektdokumentation/**"

19
.gitea/size.yml Normal file
View file

@ -0,0 +1,19 @@
buckets:
- maxSize: 80
label: size/small
comment: null
- maxSize: 200
label: size/medium
comment: null
- maxSize: 2000
label: size/large
comment: >
👮‍♀️⚠️ This is a friendly reminder that the diff size of this PR is bigger than
200 lines we aim for. Please consider splitting this PR into more digestible pieces!
- maxSize: Infinity
label: size/huge
comment: >
👮‍♀️🛑 This PR's diff size is quite huge.
Hopefully you know what you're doing.
If you did not commit a lot of autogenerated files intentionally,
there are few good reasons for this.

View file

@ -29,6 +29,32 @@ jobs:
workflow: workflow:
- '.gitea/workflows/**' - '.gitea/workflows/**'
test-backend:
runs-on: ubuntu-latest
name: "Backend Tests"
needs: changed_files
if: ${{ needs.changed_files.outputs.backend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
container:
image: "cimg/openjdk:23.0-node"
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Run tests"
working-directory: ./backend
run: |
./gradlew test
- name: "Cache checkstyle results"
uses: actions/upload-artifact@v4
with:
name: checkstyle-results
path: backend/build/reports/checkstyle
- name: "Stop Gradle"
working-directory: ./backend
run: ./gradlew --stop
checkstyle: checkstyle:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Checkstyle Main" name: "Checkstyle Main"
@ -139,6 +165,46 @@ jobs:
cd frontend cd frontend
bun run lint bun run lint
playwright:
runs-on: ubuntu-latest
name: Playwright
needs: changed_files
container:
image: git.kjan.de/actions/runner-casino-playwright:latest
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin" # See 'Supported distributions' for available options
java-version: "23"
- name: Install bun
uses: oven-sh/setup-bun@v2
- uses: actions/cache@v4
working-directory: ./frontend
with:
path: |
frontend/node_modules/
key: ${{ runner.os }}-bun-
restore-keys: |
${{ runner.os }}-bun-
- run: bun add -g concurrently
- name: Install dependencies
run: |
cd frontend
bun install
- uses: actions/setup-node@v4
with:
node-version: 22.12
working-directory: ./frontend
- name: Run Playwright tests
env:
CI: true
SPRING_PROFILES_ACTIVE: inmemory
working-directory: ./frontend
run: bash -c "source $HOME/.cargo/env && bunx playwright test"
oxlint: oxlint:
runs-on: docker runs-on: docker
name: oxlint name: oxlint

View file

@ -0,0 +1,124 @@
name: Claude Gitea PR Interaction via Comment
on:
issue_comment:
types: [created]
jobs:
claude-interact-on-comment:
runs-on: ubuntu-latest
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, '@Claude')
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for git diff against main/master
- name: Set Tea Version
id: tea_version
run: echo "version=0.9.2" >> $GITHUB_OUTPUT # Check for the latest stable version
- name: Download Tea CLI
run: |
TEA_VERSION=$(echo "${{ steps.tea_version.outputs.version }}")
wget "https://gitea.com/gitea/tea/releases/download/v${TEA_VERSION}/tea-${TEA_VERSION}-linux-amd64" -O tea
chmod +x tea
sudo mv tea /usr/local/bin/tea
- name: Verify Tea Installation
run: tea --version
- name: Add Gitea Login
env:
GITEA_URL: ${{ secrets._GITEA_URL }}
GITEA_TOKEN: ${{ secrets._GITEA_TOKEN }}
run: |
if [ -z "$GITEA_URL" ]; then
echo "Error: GITEA_URL secret is not set."
exit 1
fi
if [ -z "$GITEA_TOKEN" ]; then
echo "Error: GITEA_TOKEN secret is not set."
exit 1
fi
INSECURE_FLAG=""
if [[ "${GITEA_URL}" == http://* ]]; then
INSECURE_FLAG="--insecure"
fi
tea login add --name mygitea --url "$GITEA_URL" --token "$GITEA_TOKEN" $INSECURE_FLAG
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install claude-code
run: bun i -g @anthropic-ai/claude-code
- name: Claude Process PR Comment
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
PR_NUMBER: ${{ github.event.issue.number }}
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
GITEA_URL: ${{ secrets._GITEA_URL }}
run: |
claude --allowedTools "Bash(tea:*)" --allowedTools "Bash(git:*)" --allowedTools "Read" --allowedTools "Grep" --allowedTools "WebFetch" --allowedTools "Glob" --allowedTools "LS" -p "You are an AI assistant integrated with Gitea (at ${GITEA_URL}) via the 'tea' CLI.
You have been invoked because user '${COMMENT_AUTHOR}' left the following comment on Pull Request #${PR_NUMBER}:
---
${COMMENT_BODY}
---
Your primary task is to:
1. Carefully understand the user's request within their comment.
2. Use the 'tea' CLI to perform the requested action(s) on Pull Request #${PR_NUMBER}.
3. If the request is to review the PR, fetch the diff against the PR's base branch (e.g., 'git fetch origin main && git diff origin/main...HEAD' or similar; adapt branch name if necessary, or use 'tea pr diff ${PR_NUMBER}') and provide constructive feedback.
4. For other actions, translate the user's intent into the appropriate 'tea' command.
**How to Post Reviews and Other Feedback:**
- When you provide a review, post it as a comment using:
\`tea pr comment ${PR_NUMBER} \"Claude's Review:\n[Your detailed review, mentioning files and line numbers.]\"\`
- For other informational responses or clarifications, also use \`tea pr comment ...\`.
**Critical: Handling Approval, Rejection, or Merge Requests:**
Pull Request approval, rejection, and merging are critical actions and should not be used to 'cheat' the review process. You cannot verify Gitea user permissions.
- If a user comments asking you to directly approve (e.g., '@claude approve this'), merge, or reject a PR:
1. **Do NOT blindly execute these commands.**
2. **Approval/Merge:**
- State in a comment (using \`tea pr comment ...\`) that direct approval/merge requests via you are typically for convenience after a proper human review process has been implicitly completed or if the requester is a designated maintainer explicitly overriding.
- If the PR has not been reviewed by you yet, and the comment implies a review is also needed, perform the review FIRST and post it.
- You should only consider proceeding with a \`tea pr approve ${PR_NUMBER}\` or \`tea pr merge ${PR_NUMBER}\` command if:
a. The comment explicitly states that all necessary human reviews are complete and this is just a formal step by a trusted user.
b. OR, your own comprehensive review found no critical issues and the request seems appropriate in context.
- If in doubt, default to posting your review (if applicable) and stating that a maintainer should perform the final approval/merge. Your goal is to assist, not to bypass established review procedures.
3. **Rejection/Requesting Changes:**
- If asked to reject or request changes, you should typically base this on your own review of the PR's changes.
- First, perform a review if you haven't already.
- Then, you can use \`tea pr reject ${PR_NUMBER} \"Claude's Review Summary: [summary of reasons for rejection/changes based on your review]\"\`. Ensure your detailed review is also available as a comment.
Examples of interpreting comments and generating appropriate \`tea\` commands (keeping the above critical guidelines in mind):
- User: '@claude LGTM, approve this' -> You: First, consider if a review is implied or done. If so, and you agree, you might generate \`tea pr approve ${PR_NUMBER}\`. If not, you might generate \`tea pr comment ${PR_NUMBER} \"Claude: I can approve this if the standard review process is complete. Have maintainers reviewed this?\"\` or perform your own review and then comment.
- User: '@claude please review this PR' -> You: Get diffs, review, then generate \`tea pr comment ${PR_NUMBER} \"Claude's Review: ...\"\`.
- User: '@claude close this PR' -> You: Generate \`tea pr close ${PR_NUMBER}\` and optionally \`tea pr comment ${PR_NUMBER} \"Claude: PR #${PR_NUMBER} has been closed as requested.\"\`.
- User: '@claude add label enhancement' -> You: Generate \`tea pr label ${PR_NUMBER} --add enhancement\` and \`tea pr comment ${PR_NUMBER} \"Claude: Label 'enhancement' added to PR #${PR_NUMBER}.\"\`
- User: '@claude what are the labels on this PR?' -> You: Generate \`tea pr label ${PR_NUMBER} --list\` (this command outputs to stdout, which is fine for your internal use). Then, to inform the user, you generate: \`tea pr comment ${PR_NUMBER} \"Claude: The current labels are: [output from tea pr label --list].\"\` (You'll need to capture the output of the first command to formulate the second if the tool allows such chaining, otherwise, focus on commands that directly achieve the user's goal or report information). *Self-correction: The Bash tool can capture output. So, if you need to run a \`tea\` command to get information for yourself, do so, then use that information to formulate your \`tea pr comment ...\` to the user.*
**IMPORTANT GUIDELINES FOR YOUR OPERATION AND RESPONSE GENERATION:**
- **Your SOLE METHOD of communicating back to the user on Gitea is by generating a \`tea pr comment ${PR_NUMBER} \"...\"\` command.** This is non-negotiable. Do not output plain text messages intended for the user. Your response *is* the command.
- **Use the 'tea' CLI for ALL Gitea interactions.** This includes fetching PR details, diffs, labels, status, and posting comments, reviews, approvals, etc.
- **For PR reviews, ALWAYS analyze the diff.** Use \`tea pr diff ${PR_NUMBER}\` or git commands to get the diff. Make sure to mention specific files and line numbers in your review comment.
- **Be precise with 'tea' commands.** If a user's request is ambiguous, DO NOT GUESS. Instead, generate a \`tea pr comment ${PR_NUMBER} \"Claude Asks: [Your clarifying question]\"\` command to ask for more details.
- **Execute only necessary 'tea' command(s).** If a user asks for a review, your primary output should be the \`tea pr comment ...\` command containing the review. If they ask to add a label, your output should be \`tea pr label ...\` and then a confirmation \`tea pr comment ...\`.
- **Ensure reviews are professional, constructive, and helpful.**
- **If you need to perform an action AND then report on it, generate both \`tea\` commands sequentially.** For example, to add a label and confirm:
\`tea pr label ${PR_NUMBER} --add bug\`
\`tea pr comment ${PR_NUMBER} "Claude: I've added the 'bug' label."\`
The GitHub Actions workflow will execute these commands one after another.
- **If a user's request cannot be fulfilled using the 'tea' CLI or the allowed tools, explain this limitation by generating a \`tea pr comment ...\` command.** For example: \`tea pr comment ${PR_NUMBER} "Claude: I cannot perform that action as it's outside my current capabilities or allowed tools."\`
- **Think step-by-step.** 1. Understand request. 2. Identify necessary `tea` command(s). 3. If it's a review, get the diff. 4. Formulate the `tea` command(s) as your direct output.
**Final Check before outputting:**
"Is my entire response that's intended for the Gitea user wrapped in a \`tea pr comment ${PR_NUMBER} '...' \` command (or another appropriate \`tea\` command if it's an action like \`tea pr label ...\`)? If not, I must fix it."
You are now ready to process the comment. Remember, your output will be executed in a shell. Generate only the \`tea\` command(s) needed.
"

View file

@ -0,0 +1,16 @@
name: Claude PR Review
on:
pull_request:
types: [opened, synchronize] # Runs on new PRs and updates
jobs:
claude-code:
runs-on: ubuntu-latest
steps:
- name: Claude
uses: https://git.kjan.de/actions/claude-pr-review@v1.0.4
with:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GITEA_URL: ${{ secrets._GITEA_URL }}
GITEA_CLAUDE_TOKEN: ${{ secrets._GITEA_TOKEN }}

29
.gitea/workflows/docs.yml Normal file
View file

@ -0,0 +1,29 @@
name: Build docs
on:
pull_request:
push:
branches: [main]
jobs:
build-docs:
runs-on: ubuntu-latest
container:
image: git.kjan.de/actions/runner-latex:latest
env:
# Edit here with the names of your latex file and directory (can use ".")
DIR: projektdokumentation
FILE: Projektdokumentation.tex
steps:
- name: Checkout
uses: actions/checkout@v4
- name: LaTeX compile
working-directory: ${{ env.DIR }}
run: latexmk -pdf ${{ env.FILE }}
- name: Upload artifacts
uses: https://git.kjan.de/actions/upload-artifact@v3 # Do not upgrade
with:
name: Doku
path: projektdokumentation/Projektdokumentation.pdf

View file

@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
pull_request_target:
jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: ".gitea/labeler.yml"

17
.gitea/workflows/size.yml Normal file
View file

@ -0,0 +1,17 @@
name: Label PRs based on size
on: [pull_request]
jobs:
add_pr_size_label:
runs-on: ubuntu-latest
name: Check PR size
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Label and comment PR
uses: boschresearch/pr-size-labeler@v5.0.1
with:
bucketConfigFile: ".gitea/size.yml"

View file

@ -0,0 +1,15 @@
name: "Close stale issues and PRs"
on:
workflow_dispatch:
schedule:
- cron: "@hourly"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-pr-message: "Will be closed in x days bc yo mom is a bitch. im not telling you when it will be closed fuckface"
days-before-pr-stale: 2
days-before-pr-close: 3

View file

@ -15,96 +15,113 @@ Please refer to our [Style Guide](https://git.kjan.de/SZUT/casino/wiki/Frontend#
## Tech Stack ## Tech Stack
### Frontend ### Frontend
- Angular 19
- Angular 20
- TailwindCSS - TailwindCSS
- Keycloak integration - Keycloak integration
- Stripe payment integration - Stripe payment integration
### Backend ### Backend
- Spring Boot (Java) - Spring Boot (Java)
- PostgreSQL database - PostgreSQL database
- Keycloak for authentication/authorization - Keycloak for authentication/authorization
- Stripe API for payment processing - Stripe API for payment processing
### Infrastructure ### Infrastructure
- Docker containerization for all services - Docker containerization for all services
## Getting Started ## Getting Started
### Prerequisites ### Prerequisites
* [Docker](https://docs.docker.com/get-docker/)
* [Docker Compose](https://docs.docker.com/compose/install/) (included with Docker Desktop for Windows and Mac) - [Docker](https://docs.docker.com/get-docker/)
* Java JDK 17+ - [Docker Compose](https://docs.docker.com/compose/install/) (included with Docker Desktop for Windows and Mac)
* Node.js 18+ - Java JDK 17+
- Node.js 18+
### Setting Up the Environment ### Setting Up the Environment
1. Clone the repository 1. Clone the repository
```bash ```bash
git clone <repository-url> git clone <repository-url>
cd casino cd casino
``` ```
2. Start the Docker services 2. Start the Docker services
```bash ```bash
cd docker cd docker
docker-compose up -d docker-compose up -d
``` ```
This will start: This will start:
- PostgreSQL database - PostgreSQL database
- Keycloak authentication server - Keycloak authentication server
### Running the Backend ### Running the Backend
1. Navigate to the backend directory 1. Navigate to the backend directory
```bash ```bash
cd backend cd backend
``` ```
2. Start the Spring Boot application 2. Start the Spring Boot application
```bash ```bash
./gradlew bootRun ./gradlew bootRun
``` ```
You may optionally install [watchexec](https://github.com/watchexec/watchexec?tab=readme-ov-file) and use this command to autorecompile the backend on file changes: You may optionally install [watchexec](https://github.com/watchexec/watchexec?tab=readme-ov-file) and use this command to autorecompile the backend on file changes:
```bash ```bash
watchexec -r -e java ./gradlew :bootRun watchexec -r -e java ./gradlew :bootRun
``` ```
The backend will be available at: The backend will be available at:
- API endpoint: http://localhost:8080
- Swagger documentation: http://localhost:8080/swagger - API endpoint: <http://localhost:8080>
- Swagger documentation: <http://localhost:8080/swagger>
### Running the Frontend ### Running the Frontend
1. Navigate to the frontend directory 1. Navigate to the frontend directory
```bash ```bash
cd frontend cd frontend
``` ```
2. Install dependencies 2. Install dependencies
```bash ```bash
npm install npm install
``` ```
3. Start the development server 3. Start the development server
```bash ```bash
npm run dev npm run dev
``` ```
The frontend will be available at http://localhost:4200 The frontend will be available at <http://localhost:4200>
### Local Stripe integration ### Local Stripe integration
1. Install the Stripe CLI 1. Install the Stripe CLI
https://stripe.com/docs/stripe-cli <https://stripe.com/docs/stripe-cli>
2. Login to the casino stripe account 2. Login to the casino stripe account
``` ```
stripe login --api-key <casino-stripe-secret-key> stripe login --api-key <casino-stripe-secret-key>
``` ```
3. Start webhook forwarding 3. Start webhook forwarding
``` ```
stripe listen --forward-to localhost:8080/webhook stripe listen --forward-to localhost:8080/webhook
``` ```
@ -114,6 +131,7 @@ stripe listen --forward-to localhost:8080/webhook
### Postgres Management ### Postgres Management
#### Database cleanup (if needed) #### Database cleanup (if needed)
```bash ```bash
cd docker cd docker
docker-compose down docker-compose down
@ -122,6 +140,7 @@ docker-compose up -d
``` ```
#### Setting up IntelliJ Database View #### Setting up IntelliJ Database View
1. Run the Docker container with PostgreSQL database 1. Run the Docker container with PostgreSQL database
2. Open `application.properties` in the resources folder and copy the database URL 2. Open `application.properties` in the resources folder and copy the database URL
3. Open the Database tab in IntelliJ 3. Open the Database tab in IntelliJ
@ -148,6 +167,7 @@ We follow semantic commit messages to maintain clear project history.
Format: `<type>(<scope>): <subject>` Format: `<type>(<scope>): <subject>`
Where `<type>` is one of: Where `<type>` is one of:
- `feat`: New feature - `feat`: New feature
- `fix`: Bug fix - `fix`: Bug fix
- `docs`: Documentation changes - `docs`: Documentation changes
@ -157,6 +177,7 @@ Where `<type>` is one of:
- `chore`: Updating build tasks, etc; no production code change - `chore`: Updating build tasks, etc; no production code change
Examples: Examples:
``` ```
feat: add user balance display feat: add user balance display
fix(auth): resolve token expiration issue fix(auth): resolve token expiration issue
@ -164,6 +185,7 @@ docs: update API documentation
``` ```
References: References:
- [Conventional Commits](https://www.conventionalcommits.org/) - [Conventional Commits](https://www.conventionalcommits.org/)
- [Semantic Commit Messages](https://seesparkbox.com/foundry/semantic_commit_messages) - [Semantic Commit Messages](https://seesparkbox.com/foundry/semantic_commit_messages)

View file

@ -1,59 +1,137 @@
# Starter für das LF08 Projekt # Casino Gaming Platform - Backend API
## Requirements A Spring Boot backend application providing REST APIs for a casino gaming platform with multiple games, user management, authentication, and payment processing.
* Docker https://docs.docker.com/get-docker/
* Docker compose (bei Windows und Mac schon in Docker enthalten) https://docs.docker.com/compose/install/
## Endpunkt ## Features
```
http://localhost:8080
```
## Swagger
```
http://localhost:8080/swagger
```
### Games
- **Blackjack** - Classic card game with deck management
- **Coinflip** - Simple heads/tails betting game
- **Dice** - Dice rolling game
- **Slots** - Slot machine with symbols and payouts
- **Lootboxes** - Reward system with configurable prizes
# Postgres ### User Management
### Terminal öffnen - User registration and authentication
für alles gilt, im Terminal im Ordner docker/local sein - OAuth2 integration (Google, GitHub)
- Email verification and password reset
- Balance management and transaction history
### Payment System
- Deposit functionality with webhook support
- Transaction tracking and status management
- Balance updates and fund validation
## Tech Stack
- **Java 17** with Spring Boot
- **Spring Security** with JWT authentication
- **Spring Data JPA** with PostgreSQL
- **OAuth2** for social login
- **Email service** for notifications
- **OpenAPI/Swagger** for API documentation
## Build & Run
### Prerequisites
- Java 17+
- Gradle
- Docker & Docker Compose (for PostgreSQL)
### Build Commands
```bash ```bash
# Build the application
./gradlew build
# Clean build
./gradlew clean build
# Run the application
./gradlew bootRun
# Generate JAR file
./gradlew bootJar
```
### Testing
```bash
# Run all tests
./gradlew test
# Run specific test class
./gradlew test --tests "FullyQualifiedClassName"
# Run checkstyle
./gradlew checkstyleMain checkstyleTest
```
## API Endpoints
The application runs on `http://localhost:8080`
### API Documentation
- **Swagger UI**: `http://localhost:8080/swagger-ui.html`
- **OpenAPI Spec**: `http://localhost:8080/v3/api-docs`
### Main Endpoints
- `/api/auth/**` - Authentication and user management
- `/api/games/blackjack/**` - Blackjack game operations
- `/api/games/coinflip/**` - Coinflip game operations
- `/api/games/dice/**` - Dice game operations
- `/api/games/slots/**` - Slot machine operations
- `/api/lootboxes/**` - Lootbox management
- `/api/deposits/**` - Payment and deposit handling
- `/api/users/**` - User profile management
- `/api/health` - Health check endpoint
## Database Setup
### PostgreSQL with Docker
```bash
# Start PostgreSQL container
cd docker/local cd docker/local
```
### Postgres starten
```bash
docker compose up docker compose up
```
Achtung: Der Docker-Container läuft dauerhaft! Wenn er nicht mehr benötigt wird, sollten Sie ihn stoppen.
### Postgres stoppen # Stop PostgreSQL container
```bash
docker compose down docker compose down
```
### Postgres Datenbank wipen, z.B. bei Problemen # Reset database (if needed)
```bash
docker compose down docker compose down
docker volume rm local_lf8_starter_postgres_data docker volume rm local_lf8_starter_postgres_data
docker compose up docker compose up
``` ```
### Intellij-Ansicht für Postgres Datenbank einrichten ### Database Configuration
```bash Database connection settings are configured in `src/main/resources/application.properties`
1. Lasse den Docker-Container mit der PostgreSQL-Datenbank laufen
2. im Ordner resources die Datei application.properties öffnen und die URL der Datenbank kopieren
3. rechts im Fenster den Reiter Database öffnen
4. In der Database-Symbolleiste auf das Datenbanksymbol mit dem Schlüssel klicken
5. auf das Pluszeichen klicken
6. Datasource from URL auswählen
7. URL der DB einfügen und PostgreSQL-Treiber auswählen, mit OK bestätigen
8. Username lf8_starter und Passwort secret eintragen (siehe application.properties), mit Apply bestätigen
9. im Reiter Schemas alle Häkchen entfernen und lediglich vor lf8_starter_db und public Häkchen setzen
10. mit Apply und ok bestätigen
```
# Keycloak
### Keycloak Token ### IntelliJ Database Setup
1. Auf der Projektebene [GetBearerToken.http](../GetBearerToken.http) öffnen. 1. Start the PostgreSQL Docker container
2. Neben der Request auf den grünen Pfeil drücken 2. Open `application.properties` and copy the database URL
3. Aus dem Reponse das access_token kopieren 3. In IntelliJ, open the Database tab (right panel)
4. Click the database icon with key in the toolbar
5. Click the plus (+) icon
6. Select "Datasource from URL"
7. Paste the database URL and select PostgreSQL driver
8. Enter credentials (username: `lf8_starter`, password: `secret`)
9. In Schemas tab, uncheck all except `lf8_starter_db` and `public`
10. Apply and confirm
## Authentication
The application supports multiple authentication methods:
- JWT-based authentication
- OAuth2 (Google, GitHub)
- Email/password with verification
### Getting Bearer Token
For API testing, use the provided HTTP client file:
1. Open `GetBearerToken.http` at project root
2. Execute the request
3. Copy the `access_token` from the response
4. Use in Authorization header: `Bearer <token>`
## Configuration
Key configuration files:
- `application.properties` - Main application configuration
- `SecurityConfig.java` - Security and CORS settings
- `OpenAPIConfiguration.java` - API documentation setup

View file

@ -39,7 +39,7 @@ repositories {
} }
dependencies { dependencies {
implementation("com.stripe:stripe-java:29.1.0") implementation("com.stripe:stripe-java:29.2.0")
implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-web")
compileOnly("org.projectlombok:lombok") compileOnly("org.projectlombok:lombok")
@ -47,14 +47,15 @@ dependencies {
testImplementation("org.springframework.boot:spring-boot-starter-test") testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher") testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation("org.springframework.boot:spring-boot-starter-security") implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:3.4.5") implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:3.5.0")
implementation("org.springframework.boot:spring-boot-starter-oauth2-client:3.4.5") implementation("org.springframework.boot:spring-boot-starter-oauth2-client:3.5.0")
runtimeOnly("org.postgresql:postgresql") runtimeOnly("org.postgresql:postgresql")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.8") implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.9")
implementation("io.jsonwebtoken:jjwt-api:0.11.5") implementation("io.jsonwebtoken:jjwt-api:0.12.6")
runtimeOnly("io.jsonwebtoken:jjwt-impl:0.11.5") runtimeOnly("io.jsonwebtoken:jjwt-impl:0.12.6")
runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.11.5") runtimeOnly("io.jsonwebtoken:jjwt-jackson:0.12.6")
implementation("org.springframework.boot:spring-boot-starter-mail") implementation("org.springframework.boot:spring-boot-starter-mail")
runtimeOnly("com.h2database:h2")
} }
tasks.withType<Test> { tasks.withType<Test> {

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

View file

@ -74,8 +74,7 @@ public class CasinoApplication {
rewardRepository.saveAll(Arrays.asList( rewardRepository.saveAll(Arrays.asList(
commonReward, rareReward, epicReward, commonReward, rareReward, epicReward,
premiumCommon, premiumRare, legendaryReward premiumCommon, premiumRare, legendaryReward));
));
basicLootBox.getRewards().add(commonReward); basicLootBox.getRewards().add(commonReward);
basicLootBox.getRewards().add(premiumRare); basicLootBox.getRewards().add(premiumRare);

View file

@ -1,10 +1,7 @@
package de.szut.casino.blackjack; package de.szut.casino.blackjack;
import de.szut.casino.exceptionHandling.exceptions.InsufficientFundsException;
import de.szut.casino.exceptionHandling.exceptions.UserBlackJackGameMismatchException; import de.szut.casino.exceptionHandling.exceptions.UserBlackJackGameMismatchException;
import de.szut.casino.exceptionHandling.exceptions.UserNotFoundException;
import de.szut.casino.shared.dto.BetDto; import de.szut.casino.shared.dto.BetDto;
import de.szut.casino.shared.service.BalanceService;
import de.szut.casino.user.UserEntity; import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserService; import de.szut.casino.user.UserService;
import jakarta.validation.Valid; import jakarta.validation.Valid;
@ -13,18 +10,15 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Objects; import java.util.Objects;
import java.util.Optional;
@Slf4j @Slf4j
@RestController @RestController
public class BlackJackGameController { public class BlackJackGameController {
private final BalanceService balanceService;
private final UserService userService; private final UserService userService;
private final BlackJackService blackJackService; private final BlackJackService blackJackService;
public BlackJackGameController(BalanceService balanceService, UserService userService, BlackJackService blackJackService) { public BlackJackGameController(UserService userService, BlackJackService blackJackService) {
this.balanceService = balanceService;
this.blackJackService = blackJackService; this.blackJackService = blackJackService;
this.userService = userService; this.userService = userService;
} }
@ -57,38 +51,13 @@ public class BlackJackGameController {
return ResponseEntity.ok(blackJackService.doubleDown(game)); return ResponseEntity.ok(blackJackService.doubleDown(game));
} }
@PostMapping("/blackjack/{id}/split")
public ResponseEntity<Object> split(@PathVariable Long id) {
BlackJackGameEntity game = getBlackJackGame(id);
return ResponseEntity.ok(blackJackService.split(game));
}
@PostMapping("/blackjack/start") @PostMapping("/blackjack/start")
public ResponseEntity<Object> createBlackJackGame(@RequestBody @Valid BetDto betDto) { public ResponseEntity<Object> createBlackJackGame(@RequestBody @Valid BetDto betDto) {
Optional<UserEntity> optionalUser = userService.getCurrentUser(); return ResponseEntity.ok(blackJackService.createBlackJackGame(betDto));
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
if (!this.balanceService.hasFunds(user, betDto)) {
throw new InsufficientFundsException();
}
return ResponseEntity.ok(blackJackService.createBlackJackGame(user, betDto.getBetAmount()));
} }
private BlackJackGameEntity getBlackJackGame(Long gameId) { private BlackJackGameEntity getBlackJackGame(Long gameId) {
Optional<UserEntity> optionalUser = userService.getCurrentUser(); UserEntity user = userService.getCurrentUser();
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
BlackJackGameEntity game = blackJackService.getBlackJackGame(gameId); BlackJackGameEntity game = blackJackService.getBlackJackGame(gameId);
if (game == null || !Objects.equals(game.getUserId(), user.getId())) { if (game == null || !Objects.equals(game.getUserId(), user.getId())) {
throw new UserBlackJackGameMismatchException(gameId); throw new UserBlackJackGameMismatchException(gameId);

View file

@ -51,15 +51,4 @@ public class BlackJackGameEntity {
@JsonManagedReference @JsonManagedReference
@SQLRestriction("card_type = 'DEALER'") @SQLRestriction("card_type = 'DEALER'")
private List<CardEntity> dealerCards = new ArrayList<>(); private List<CardEntity> dealerCards = new ArrayList<>();
@OneToMany(mappedBy = "game", cascade = CascadeType.ALL, orphanRemoval = true)
@JsonManagedReference
@SQLRestriction("card_type = 'PLAYER_SPLIT'")
private List<CardEntity> playerSplitCards = new ArrayList<>();
@Column(name = "split_bet")
private BigDecimal splitBet;
@Column(name = "is_split")
private boolean isSplit;
} }

View file

@ -1,23 +1,37 @@
package de.szut.casino.blackjack; package de.szut.casino.blackjack;
import de.szut.casino.exceptionHandling.exceptions.InsufficientFundsException;
import de.szut.casino.shared.dto.BetDto;
import de.szut.casino.shared.service.BalanceService;
import de.szut.casino.user.UserEntity; import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository; import de.szut.casino.user.UserRepository;
import de.szut.casino.user.UserService;
import jakarta.transaction.Transactional;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.Random;
@Service @Service
public class BlackJackService { public class BlackJackService {
private final BlackJackGameRepository blackJackGameRepository; private final BlackJackGameRepository blackJackGameRepository;
private final UserRepository userRepository; private final UserRepository userRepository;
private final Random random = new Random(); private final BalanceService balanceService;
private final UserService userService;
private final DeckService deckService;
public BlackJackService(BlackJackGameRepository blackJackGameRepository, UserRepository userRepository) { public BlackJackService(
BlackJackGameRepository blackJackGameRepository,
UserRepository userRepository,
BalanceService balanceService,
UserService userService,
DeckService deckService
) {
this.blackJackGameRepository = blackJackGameRepository; this.blackJackGameRepository = blackJackGameRepository;
this.userRepository = userRepository; this.userRepository = userRepository;
this.balanceService = balanceService;
this.userService = userService;
this.deckService = deckService;
} }
public BlackJackGameEntity getBlackJackGame(Long id) { public BlackJackGameEntity getBlackJackGame(Long id) {
@ -25,16 +39,23 @@ public class BlackJackService {
} }
@Transactional @Transactional
public BlackJackGameEntity createBlackJackGame(UserEntity user, BigDecimal betAmount) { public BlackJackGameEntity createBlackJackGame(BetDto betDto) {
UserEntity user = userService.getCurrentUser();
if (!this.balanceService.hasFunds(user, betDto)) {
throw new InsufficientFundsException();
}
this.balanceService.subtractFunds(user, betDto.getBetAmount());
BlackJackGameEntity game = new BlackJackGameEntity(); BlackJackGameEntity game = new BlackJackGameEntity();
game.setUser(user); game.setUser(user);
game.setBet(betAmount); game.setBet(betDto.getBetAmount());
initializeDeck(game); this.deckService.initializeDeck(game);
dealInitialCards(game); this.deckService.dealInitialCards(game);
game.setState(getState(game)); game.setState(getState(game));
deductBetFromBalance(user, betAmount);
return processGameBasedOnState(game); return processGameBasedOnState(game);
} }
@ -45,7 +66,7 @@ public class BlackJackService {
return game; return game;
} }
dealCardToPlayer(game); this.deckService.dealCardToPlayer(game);
updateGameStateAndBalance(game); updateGameStateAndBalance(game);
return processGameBasedOnState(game); return processGameBasedOnState(game);
@ -69,13 +90,14 @@ public class BlackJackService {
return game; return game;
} }
UserEntity user = getUserWithFreshData(game.getUser()); UserEntity user = game.getUser();
BigDecimal additionalBet = game.getBet(); BigDecimal additionalBet = game.getBet();
deductBetFromBalance(user, additionalBet); this.balanceService.subtractFunds(user, additionalBet);
game.setBet(game.getBet().add(additionalBet)); game.setBet(game.getBet().add(additionalBet));
dealCardToPlayer(game); this.deckService.dealCardToPlayer(game);
updateGameStateAndBalance(game); updateGameStateAndBalance(game);
if (game.getState() == BlackJackState.IN_PROGRESS) { if (game.getState() == BlackJackState.IN_PROGRESS) {
@ -85,36 +107,6 @@ public class BlackJackService {
return game; return game;
} }
@Transactional
public BlackJackGameEntity split(BlackJackGameEntity game) {
if (game.getState() != BlackJackState.IN_PROGRESS ||
game.getPlayerCards().size() != 2 ||
game.isSplit() ||
!game.getPlayerCards().get(0).getRank().equals(game.getPlayerCards().get(1).getRank())) {
return game;
}
UserEntity user = getUserWithFreshData(game.getUser());
BigDecimal splitBet = game.getBet();
if (user.getBalance().compareTo(splitBet) < 0) {
return game;
}
deductBetFromBalance(user, splitBet);
game.setSplitBet(splitBet);
game.setSplit(true);
CardEntity card = game.getPlayerCards().remove(1);
card.setCardType(CardType.PLAYER_SPLIT);
game.getPlayerSplitCards().add(card);
dealCardToPlayer(game);
dealCardToSplitHand(game);
return processGameBasedOnState(game);
}
private BlackJackGameEntity processGameBasedOnState(BlackJackGameEntity game) { private BlackJackGameEntity processGameBasedOnState(BlackJackGameEntity game) {
if (game.getState() != BlackJackState.IN_PROGRESS) { if (game.getState() != BlackJackState.IN_PROGRESS) {
this.blackJackGameRepository.delete(game); this.blackJackGameRepository.delete(game);
@ -124,56 +116,7 @@ public class BlackJackService {
return blackJackGameRepository.save(game); return blackJackGameRepository.save(game);
} }
private UserEntity getUserWithFreshData(UserEntity user) {
return userRepository.findById(user.getId()).orElse(user);
}
private void dealInitialCards(BlackJackGameEntity game) {
for (int i = 0; i < 2; i++) {
dealCardToPlayer(game);
}
dealCardToDealer(game);
}
private void dealCardToPlayer(BlackJackGameEntity game) {
CardEntity card = drawCardFromDeck(game);
card.setCardType(CardType.PLAYER);
game.getPlayerCards().add(card);
}
private void dealCardToDealer(BlackJackGameEntity game) {
CardEntity card = drawCardFromDeck(game);
card.setCardType(CardType.DEALER);
game.getDealerCards().add(card);
}
private void dealCardsToDealerUntilMinimumScore(BlackJackGameEntity game) {
while (calculateHandValue(game.getDealerCards()) < 17) {
dealCardToDealer(game);
}
}
private void dealCardToSplitHand(BlackJackGameEntity game) {
CardEntity card = drawCardFromDeck(game);
card.setCardType(CardType.PLAYER_SPLIT);
game.getPlayerSplitCards().add(card);
}
private void updateGameStateAndBalance(BlackJackGameEntity game) { private void updateGameStateAndBalance(BlackJackGameEntity game) {
if (game.isSplit()) {
int mainHandValue = calculateHandValue(game.getPlayerCards());
int splitHandValue = calculateHandValue(game.getPlayerSplitCards());
if (mainHandValue > 21 && splitHandValue > 21) {
game.setState(BlackJackState.PLAYER_LOST);
updateUserBalance(game, false);
} else if (mainHandValue <= 21 && splitHandValue <= 21) {
game.setState(BlackJackState.IN_PROGRESS);
} else {
game.setState(BlackJackState.IN_PROGRESS);
}
} else {
game.setState(getState(game)); game.setState(getState(game));
if (game.getState() == BlackJackState.PLAYER_WON) { if (game.getState() == BlackJackState.PLAYER_WON) {
@ -182,7 +125,6 @@ public class BlackJackService {
updateUserBalance(game, false); updateUserBalance(game, false);
} }
} }
}
private void determineWinnerAndUpdateBalance(BlackJackGameEntity game) { private void determineWinnerAndUpdateBalance(BlackJackGameEntity game) {
int playerValue = calculateHandValue(game.getPlayerCards()); int playerValue = calculateHandValue(game.getPlayerCards());
@ -200,79 +142,26 @@ public class BlackJackService {
} }
} }
private void deductBetFromBalance(UserEntity user, BigDecimal betAmount) {
user.setBalance(user.getBalance().subtract(betAmount));
userRepository.save(user);
}
@Transactional
protected void updateUserBalance(BlackJackGameEntity game, boolean isWin) { protected void updateUserBalance(BlackJackGameEntity game, boolean isWin) {
UserEntity user = getUserWithFreshData(game.getUser()); UserEntity user = game.getUser();
BigDecimal totalBet = game.getBet(); BigDecimal totalBet = game.getBet();
BigDecimal balance = user.getBalance(); BigDecimal balance = user.getBalance();
if (game.isSplit()) {
totalBet = totalBet.add(game.getSplitBet());
if (isWin) {
int mainHandValue = calculateHandValue(game.getPlayerCards());
int splitHandValue = calculateHandValue(game.getPlayerSplitCards());
int dealerValue = calculateHandValue(game.getDealerCards());
if (mainHandValue <= 21 && (dealerValue > 21 || mainHandValue > dealerValue)) {
balance = balance.add(game.getBet().multiply(BigDecimal.valueOf(2)));
} else if (mainHandValue == dealerValue) {
balance = balance.add(game.getBet());
}
if (splitHandValue <= 21 && (dealerValue > 21 || splitHandValue > dealerValue)) {
balance = balance.add(game.getSplitBet().multiply(BigDecimal.valueOf(2)));
} else if (splitHandValue == dealerValue) {
balance = balance.add(game.getSplitBet());
}
} else if (game.getState() == BlackJackState.DRAW) {
balance = balance.add(totalBet);
}
} else {
if (isWin) { if (isWin) {
balance = balance.add(totalBet.multiply(BigDecimal.valueOf(2))); balance = balance.add(totalBet.multiply(BigDecimal.valueOf(2)));
} else if (game.getState() == BlackJackState.DRAW) { } else if (game.getState() == BlackJackState.DRAW) {
balance = balance.add(totalBet); balance = balance.add(totalBet);
} }
}
user.setBalance(balance); user.setBalance(balance);
userRepository.save(user); userRepository.save(user);
} }
private void initializeDeck(BlackJackGameEntity game) {
for (Suit suit : Suit.values()) {
for (Rank rank : Rank.values()) {
CardEntity card = new CardEntity();
card.setGame(game);
card.setSuit(suit);
card.setRank(rank);
card.setCardType(CardType.DECK);
game.getDeck().add(card);
}
}
java.util.Collections.shuffle(game.getDeck(), random);
}
private CardEntity drawCardFromDeck(BlackJackGameEntity game) {
if (game.getDeck().isEmpty()) {
throw new IllegalStateException("Deck is empty");
}
return game.getDeck().removeFirst();
}
private BlackJackState getState(BlackJackGameEntity game) { private BlackJackState getState(BlackJackGameEntity game) {
int playerHandValue = calculateHandValue(game.getPlayerCards()); int playerHandValue = calculateHandValue(game.getPlayerCards());
if (playerHandValue == 21) { if (playerHandValue == 21) {
CardEntity hole = drawCardFromDeck(game); CardEntity hole = this.deckService.drawCardFromDeck(game);
hole.setCardType(CardType.DEALER); hole.setCardType(CardType.DEALER);
game.getDealerCards().add(hole); game.getDealerCards().add(hole);
@ -282,7 +171,7 @@ public class BlackJackService {
return BlackJackState.DRAW; return BlackJackState.DRAW;
} else { } else {
BigDecimal blackjackWinnings = game.getBet().multiply(new BigDecimal("1.5")); BigDecimal blackjackWinnings = game.getBet().multiply(new BigDecimal("1.5"));
UserEntity user = getUserWithFreshData(game.getUser()); UserEntity user = game.getUser();
user.setBalance(user.getBalance().add(blackjackWinnings)); user.setBalance(user.getBalance().add(blackjackWinnings));
return BlackJackState.PLAYER_BLACKJACK; return BlackJackState.PLAYER_BLACKJACK;
} }
@ -310,4 +199,12 @@ public class BlackJackService {
return sum; return sum;
} }
private void dealCardsToDealerUntilMinimumScore(BlackJackGameEntity game) {
while (calculateHandValue(game.getDealerCards()) < 17) {
this.deckService.dealCardToDealer(game);
} }
}
}

View file

@ -36,5 +36,5 @@ public class CardEntity {
} }
enum CardType { enum CardType {
DECK, PLAYER, DEALER, PLAYER_SPLIT DECK, PLAYER, DEALER
} }

View file

@ -0,0 +1,57 @@
package de.szut.casino.blackjack;
import org.springframework.stereotype.Service;
import java.util.Random;
@Service
public class DeckService {
private final Random random;
public DeckService(Random random) {
this.random = random;
}
public void initializeDeck(BlackJackGameEntity game) {
for (Suit suit : Suit.values()) {
for (Rank rank : Rank.values()) {
CardEntity card = new CardEntity();
card.setGame(game);
card.setSuit(suit);
card.setRank(rank);
card.setCardType(CardType.DECK);
game.getDeck().add(card);
}
}
java.util.Collections.shuffle(game.getDeck(), random);
}
public CardEntity drawCardFromDeck(BlackJackGameEntity game) {
if (game.getDeck().isEmpty()) {
throw new IllegalStateException("Deck is empty");
}
return game.getDeck().removeFirst();
}
public void dealInitialCards(BlackJackGameEntity game) {
for (int i = 0; i < 2; i++) {
dealCardToPlayer(game);
}
dealCardToDealer(game);
}
public void dealCardToPlayer(BlackJackGameEntity game) {
CardEntity card = drawCardFromDeck(game);
card.setCardType(CardType.PLAYER);
game.getPlayerCards().add(card);
}
public void dealCardToDealer(BlackJackGameEntity game) {
CardEntity card = drawCardFromDeck(game);
card.setCardType(CardType.DEALER);
game.getDealerCards().add(card);
}
}

View file

@ -28,13 +28,7 @@ public class CoinflipController {
@PostMapping("/coinflip") @PostMapping("/coinflip")
public ResponseEntity<Object> coinFlip(@RequestBody @Valid CoinflipDto coinflipDto) { public ResponseEntity<Object> coinFlip(@RequestBody @Valid CoinflipDto coinflipDto) {
Optional<UserEntity> optionalUser = userService.getCurrentUser(); UserEntity user = userService.getCurrentUser();
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
if (!this.balanceService.hasFunds(user, coinflipDto)) { if (!this.balanceService.hasFunds(user, coinflipDto)) {
throw new InsufficientFundsException(); throw new InsufficientFundsException();

View file

@ -2,13 +2,16 @@ package de.szut.casino.coinflip;
import de.szut.casino.shared.dto.BetDto; import de.szut.casino.shared.dto.BetDto;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
@Getter @Getter
@Setter @Setter
@NoArgsConstructor
public class CoinflipDto extends BetDto { public class CoinflipDto extends BetDto {
@NotNull(message = "chosen side cannot be null") @NotNull(message = "chosen side cannot be null")
private CoinSide coinSide; private CoinSide coinSide;

View file

@ -9,11 +9,12 @@ import java.util.Random;
@Service @Service
public class CoinflipService { public class CoinflipService {
private final Random random = new Random(); private final Random random;
private final BalanceService balanceService; private final BalanceService balanceService;
public CoinflipService(BalanceService balanceService) { public CoinflipService(BalanceService balanceService, Random random) {
this.balanceService = balanceService; this.balanceService = balanceService;
this.random = random;
} }
public CoinflipResult play(UserEntity user, CoinflipDto coinflipDto) { public CoinflipResult play(UserEntity user, CoinflipDto coinflipDto) {

View file

@ -0,0 +1,15 @@
package de.szut.casino.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Random;
@Configuration
public class AppConfig {
@Bean
public Random random() {
return new Random();
}
}

View file

@ -16,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Optional;
@RestController @RestController
public class DepositController { public class DepositController {
@ -29,7 +27,7 @@ public class DepositController {
private final TransactionService transactionService; private final TransactionService transactionService;
private UserService userService; private final UserService userService;
public DepositController(TransactionService transactionService, UserService userService) { public DepositController(TransactionService transactionService, UserService userService) {
this.transactionService = transactionService; this.transactionService = transactionService;
@ -40,7 +38,7 @@ public class DepositController {
public ResponseEntity<SessionIdDto> checkout(@RequestBody @Valid AmountDto amountDto, @RequestHeader("Authorization") String token) throws StripeException { public ResponseEntity<SessionIdDto> checkout(@RequestBody @Valid AmountDto amountDto, @RequestHeader("Authorization") String token) throws StripeException {
Stripe.apiKey = stripeKey; Stripe.apiKey = stripeKey;
Optional<UserEntity> optionalUserEntity = this.userService.getCurrentUser(); UserEntity user = userService.getCurrentUser();
SessionCreateParams params = SessionCreateParams.builder() SessionCreateParams params = SessionCreateParams.builder()
.addLineItem(SessionCreateParams.LineItem.builder() .addLineItem(SessionCreateParams.LineItem.builder()
@ -60,11 +58,7 @@ public class DepositController {
Session session = Session.create(params); Session session = Session.create(params);
if (optionalUserEntity.isEmpty()) { transactionService.createTransaction(user, session.getId(), amountDto.getAmount());
throw new RuntimeException("User doesnt exist");
}
transactionService.createTransaction(optionalUserEntity.get(), session.getId(), amountDto.getAmount());
return ResponseEntity.ok(new SessionIdDto(session.getId())); return ResponseEntity.ok(new SessionIdDto(session.getId()));
} }

View file

@ -27,13 +27,7 @@ public class DiceController {
@PostMapping("/dice") @PostMapping("/dice")
public ResponseEntity<Object> rollDice(@RequestBody @Valid DiceDto diceDto) { public ResponseEntity<Object> rollDice(@RequestBody @Valid DiceDto diceDto) {
Optional<UserEntity> optionalUser = userService.getCurrentUser(); UserEntity user = userService.getCurrentUser();
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
if (!this.balanceService.hasFunds(user, diceDto)) { if (!this.balanceService.hasFunds(user, diceDto)) {
throw new InsufficientFundsException(); throw new InsufficientFundsException();

View file

@ -5,12 +5,14 @@ import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin; import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
@Getter @Getter
@Setter @Setter
@NoArgsConstructor
public class DiceDto extends BetDto { public class DiceDto extends BetDto {
private boolean rollOver; private boolean rollOver;

View file

@ -11,10 +11,11 @@ import java.util.Random;
@Service @Service
public class DiceService { public class DiceService {
private static final int MAX_DICE_VALUE = 100; private static final int MAX_DICE_VALUE = 100;
private final Random random = new Random(); private final Random random;
private final BalanceService balanceService; private final BalanceService balanceService;
public DiceService(BalanceService balanceService) { public DiceService(Random random, BalanceService balanceService) {
this.random = random;
this.balanceService = balanceService; this.balanceService = balanceService;
} }

View file

@ -38,13 +38,7 @@ public class LootBoxController {
} }
LootBoxEntity lootBox = optionalLootBox.get(); LootBoxEntity lootBox = optionalLootBox.get();
UserEntity user = userService.getCurrentUser();
Optional<UserEntity> optionalUser = userService.getCurrentUser();
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
if (lootBoxService.hasSufficientBalance(user, lootBox.getPrice())) { if (lootBoxService.hasSufficientBalance(user, lootBox.getPrice())) {
throw new InsufficientFundsException(); throw new InsufficientFundsException();

View file

@ -25,7 +25,7 @@ public class RewardEntity {
@GeneratedValue @GeneratedValue
private Long id; private Long id;
@Column(precision = 19, scale = 2) @Column(precision = 19, scale = 2, name = "rewardValue")
private BigDecimal value; private BigDecimal value;
@Column(precision = 5, scale = 2) @Column(precision = 5, scale = 2)

View file

@ -9,7 +9,6 @@ import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto; import de.szut.casino.user.dto.GetUserDto;
import jakarta.mail.MessagingException; import jakarta.mail.MessagingException;
import jakarta.validation.Valid; import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -20,8 +19,11 @@ import java.io.IOException;
public class AuthController { public class AuthController {
@Autowired private final AuthService authService;
private AuthService authService;
public AuthController(AuthService authService) {
this.authService = authService;
}
@PostMapping("/login") @PostMapping("/login")
public ResponseEntity<AuthResponseDto> authenticateUser(@Valid @RequestBody LoginRequestDto loginRequest) throws EmailNotVerifiedException { public ResponseEntity<AuthResponseDto> authenticateUser(@Valid @RequestBody LoginRequestDto loginRequest) throws EmailNotVerifiedException {

View file

@ -1,7 +1,6 @@
package de.szut.casino.security; package de.szut.casino.security;
import de.szut.casino.security.jwt.JwtAuthenticationFilter; import de.szut.casino.security.jwt.JwtAuthenticationFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -32,11 +31,13 @@ public class SecurityConfig {
@Value("${app.frontend-host}") @Value("${app.frontend-host}")
private String frontendHost; private String frontendHost;
@Autowired private final UserDetailsService userDetailsService;
private UserDetailsService userDetailsService; private final JwtAuthenticationFilter jwtAuthenticationFilter;
@Autowired public SecurityConfig(UserDetailsService userDetailsService, JwtAuthenticationFilter jwtAuthenticationFilter) {
private JwtAuthenticationFilter jwtAuthenticationFilter; this.userDetailsService = userDetailsService;
this.jwtAuthenticationFilter = jwtAuthenticationFilter;
}
@Bean @Bean

View file

@ -4,7 +4,6 @@ import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException; import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
@ -19,11 +18,13 @@ import java.io.IOException;
@Component @Component
public class JwtAuthenticationFilter extends OncePerRequestFilter { public class JwtAuthenticationFilter extends OncePerRequestFilter {
@Autowired private final JwtUtils jwtUtils;
private JwtUtils jwtUtils; private final UserDetailsService userDetailsService;
@Autowired public JwtAuthenticationFilter(JwtUtils jwtUtils, UserDetailsService userDetailsService) {
private UserDetailsService userDetailsService; this.jwtUtils = jwtUtils;
this.userDetailsService = userDetailsService;
}
@Override @Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)

View file

@ -91,7 +91,7 @@ public class JwtUtils {
} }
private Claims extractAllClaims(String token) { private Claims extractAllClaims(String token) {
return Jwts.parserBuilder() return Jwts.parser()
.setSigningKey(getSigningKey()) .setSigningKey(getSigningKey())
.build() .build()
.parseClaimsJws(token) .parseClaimsJws(token)

View file

@ -4,7 +4,6 @@ import de.szut.casino.exceptionHandling.exceptions.OAuth2AuthenticationProcessin
import de.szut.casino.user.AuthProvider; import de.szut.casino.user.AuthProvider;
import de.szut.casino.user.UserEntity; import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository; import de.szut.casino.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.InternalAuthenticationServiceException; import org.springframework.security.authentication.InternalAuthenticationServiceException;
import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.AuthenticationException;
import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder;
@ -22,11 +21,13 @@ import java.util.UUID;
@Service @Service
public class CustomOAuth2UserService extends DefaultOAuth2UserService { public class CustomOAuth2UserService extends DefaultOAuth2UserService {
@Autowired private final UserRepository userRepository;
private UserRepository userRepository; private final PasswordEncoder oauth2PasswordEncoder;
@Autowired public CustomOAuth2UserService(UserRepository userRepository, PasswordEncoder oauth2PasswordEncoder) {
private PasswordEncoder oauth2PasswordEncoder; this.userRepository = userRepository;
this.oauth2PasswordEncoder = oauth2PasswordEncoder;
}
@Override @Override
public OAuth2User loadUser(OAuth2UserRequest oAuth2UserRequest) throws OAuth2AuthenticationException { public OAuth2User loadUser(OAuth2UserRequest oAuth2UserRequest) throws OAuth2AuthenticationException {

View file

@ -5,7 +5,6 @@ import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler; import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
@ -21,8 +20,11 @@ public class OAuth2AuthenticationSuccessHandler extends SimpleUrlAuthenticationS
@Value("${app.oauth2.authorizedRedirectUris}") @Value("${app.oauth2.authorizedRedirectUris}")
private String redirectUri; private String redirectUri;
@Autowired private final JwtUtils jwtUtils;
private JwtUtils jwtUtils;
public OAuth2AuthenticationSuccessHandler(JwtUtils jwtUtils) {
this.jwtUtils = jwtUtils;
}
@Override @Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)

View file

@ -3,7 +3,6 @@ package de.szut.casino.security.oauth2.github;
import de.szut.casino.security.dto.AuthResponseDto; import de.szut.casino.security.dto.AuthResponseDto;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -23,8 +22,11 @@ public class GitHubController {
@Value("${spring.security.oauth2.client.registration.github.redirect-uri}") @Value("${spring.security.oauth2.client.registration.github.redirect-uri}")
private String redirectUri; private String redirectUri;
@Autowired private final GitHubService githubService;
private GitHubService githubService;
public GitHubController(GitHubService githubService) {
this.githubService = githubService;
}
@GetMapping("/authorize") @GetMapping("/authorize")
public RedirectView authorizeGithub() { public RedirectView authorizeGithub() {

View file

@ -1,11 +1,13 @@
package de.szut.casino.security.oauth2.github; package de.szut.casino.security.oauth2.github;
import de.szut.casino.deposit.TransactionEntity;
import de.szut.casino.deposit.TransactionRepository;
import de.szut.casino.deposit.TransactionStatus;
import de.szut.casino.security.dto.AuthResponseDto; import de.szut.casino.security.dto.AuthResponseDto;
import de.szut.casino.security.jwt.JwtUtils; import de.szut.casino.security.jwt.JwtUtils;
import de.szut.casino.user.AuthProvider; import de.szut.casino.user.AuthProvider;
import de.szut.casino.user.UserEntity; import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository; import de.szut.casino.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity; import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
@ -29,17 +31,19 @@ public class GitHubService {
@Value("${spring.security.oauth2.client.registration.github.client-secret}") @Value("${spring.security.oauth2.client.registration.github.client-secret}")
private String clientSecret; private String clientSecret;
@Autowired private final AuthenticationManager authenticationManager;
private AuthenticationManager authenticationManager; private final UserRepository userRepository;
private final TransactionRepository transactionRepository;
private final JwtUtils jwtUtils;
private final PasswordEncoder oauth2PasswordEncoder;
@Autowired public GitHubService(AuthenticationManager authenticationManager, UserRepository userRepository, TransactionRepository transactionRepository, JwtUtils jwtUtils, PasswordEncoder oauth2PasswordEncoder) {
private UserRepository userRepository; this.authenticationManager = authenticationManager;
this.userRepository = userRepository;
@Autowired this.transactionRepository = transactionRepository;
private JwtUtils jwtUtils; this.jwtUtils = jwtUtils;
this.oauth2PasswordEncoder = oauth2PasswordEncoder;
@Autowired }
private PasswordEncoder oauth2PasswordEncoder;
public AuthResponseDto processGithubCode(String code) { public AuthResponseDto processGithubCode(String code) {
try { try {
@ -140,15 +144,20 @@ public class GitHubService {
user.setProvider(AuthProvider.GITHUB); user.setProvider(AuthProvider.GITHUB);
user.setProviderId(githubId); user.setProviderId(githubId);
user.setEmailVerified(true); user.setEmailVerified(true);
user.setBalance(new BigDecimal("100.00"));
user.setBalance(new BigDecimal("1000.00"));
} }
} }
String randomPassword = UUID.randomUUID().toString(); String randomPassword = UUID.randomUUID().toString();
user.setPassword(oauth2PasswordEncoder.encode(randomPassword)); user.setPassword(oauth2PasswordEncoder.encode(randomPassword));
TransactionEntity transaction = new TransactionEntity();
transaction.setAmount(100L);
transaction.setUser(user);
transaction.setSessionId("signup_bonus");
transaction.setStatus(TransactionStatus.SUCCEEDED);
userRepository.save(user); userRepository.save(user);
transactionRepository.save(transaction);
Authentication authentication = this.authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(user.getEmail(), randomPassword)); Authentication authentication = this.authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(user.getEmail(), randomPassword));

View file

@ -4,7 +4,6 @@ import de.szut.casino.security.dto.AuthResponseDto;
import de.szut.casino.security.oauth2.github.GithubCallbackDto; import de.szut.casino.security.oauth2.github.GithubCallbackDto;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -24,8 +23,11 @@ public class GoogleController {
@Value("${spring.security.oauth2.client.registration.google.redirect-uri}") @Value("${spring.security.oauth2.client.registration.google.redirect-uri}")
private String redirectUri; private String redirectUri;
@Autowired private final GoogleService googleService;
private GoogleService googleService;
public GoogleController(GoogleService googleService) {
this.googleService = googleService;
}
@GetMapping("/authorize") @GetMapping("/authorize")
public RedirectView authorizeGoogle() { public RedirectView authorizeGoogle() {

View file

@ -1,5 +1,8 @@
package de.szut.casino.security.oauth2.google; package de.szut.casino.security.oauth2.google;
import de.szut.casino.deposit.TransactionEntity;
import de.szut.casino.deposit.TransactionRepository;
import de.szut.casino.deposit.TransactionStatus;
import de.szut.casino.security.dto.AuthResponseDto; import de.szut.casino.security.dto.AuthResponseDto;
import de.szut.casino.security.jwt.JwtUtils; import de.szut.casino.security.jwt.JwtUtils;
import de.szut.casino.user.AuthProvider; import de.szut.casino.user.AuthProvider;
@ -7,7 +10,6 @@ import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository; import de.szut.casino.user.UserRepository;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEntity; import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders; import org.springframework.http.HttpHeaders;
@ -23,7 +25,9 @@ import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.Map;
import java.util.Optional;
import java.util.UUID;
@Service @Service
public class GoogleService { public class GoogleService {
@ -44,17 +48,19 @@ public class GoogleService {
@Value("${spring.security.oauth2.client.provider.google.user-info-uri}") @Value("${spring.security.oauth2.client.provider.google.user-info-uri}")
private String userInfoUri; private String userInfoUri;
@Autowired private final AuthenticationManager authenticationManager;
private AuthenticationManager authenticationManager; private final UserRepository userRepository;
private final TransactionRepository transactionRepository;
private final JwtUtils jwtUtils;
private final PasswordEncoder oauth2PasswordEncoder;
@Autowired public GoogleService(AuthenticationManager authenticationManager, UserRepository userRepository, TransactionRepository transactionRepository, JwtUtils jwtUtils, PasswordEncoder oauth2PasswordEncoder) {
private UserRepository userRepository; this.authenticationManager = authenticationManager;
this.userRepository = userRepository;
@Autowired this.transactionRepository = transactionRepository;
private JwtUtils jwtUtils; this.jwtUtils = jwtUtils;
this.oauth2PasswordEncoder = oauth2PasswordEncoder;
@Autowired }
private PasswordEncoder oauth2PasswordEncoder;
public AuthResponseDto processGoogleCode(String code) { public AuthResponseDto processGoogleCode(String code) {
try { try {
@ -145,8 +151,14 @@ public class GoogleService {
String randomPassword = UUID.randomUUID().toString(); String randomPassword = UUID.randomUUID().toString();
user.setPassword(oauth2PasswordEncoder.encode(randomPassword)); user.setPassword(oauth2PasswordEncoder.encode(randomPassword));
TransactionEntity transaction = new TransactionEntity();
transaction.setAmount(100L);
transaction.setUser(user);
transaction.setSessionId("signup_bonus");
transaction.setStatus(TransactionStatus.SUCCEEDED);
userRepository.save(user); userRepository.save(user);
transactionRepository.save(transaction);
Authentication authentication = authenticationManager.authenticate( Authentication authentication = authenticationManager.authenticate(
new UsernamePasswordAuthenticationToken(user.getEmail(), randomPassword) new UsernamePasswordAuthenticationToken(user.getEmail(), randomPassword)

View file

@ -11,7 +11,6 @@ import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto; import de.szut.casino.user.dto.GetUserDto;
import jakarta.mail.MessagingException; import jakarta.mail.MessagingException;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
@ -25,20 +24,19 @@ import java.util.Optional;
@Service @Service
public class AuthService { public class AuthService {
@Autowired private final AuthenticationManager authenticationManager;
private AuthenticationManager authenticationManager; private final JwtUtils jwtUtils;
private final UserService userService;
private final EmailService emailService;
private final PasswordEncoder passwordEncoder;
@Autowired public AuthService(AuthenticationManager authenticationManager, JwtUtils jwtUtils, UserService userService, EmailService emailService, PasswordEncoder passwordEncoder) {
private JwtUtils jwtUtils; this.authenticationManager = authenticationManager;
this.jwtUtils = jwtUtils;
@Autowired this.userService = userService;
private UserService userService; this.emailService = emailService;
this.passwordEncoder = passwordEncoder;
@Autowired }
private EmailService emailService;
@Autowired
private PasswordEncoder passwordEncoder;
public AuthResponseDto login(LoginRequestDto loginRequest) throws EmailNotVerifiedException { public AuthResponseDto login(LoginRequestDto loginRequest) throws EmailNotVerifiedException {
if (!userService.isVerified(loginRequest.getUsernameOrEmail())) { if (!userService.isVerified(loginRequest.getUsernameOrEmail())) {

View file

@ -2,7 +2,6 @@ package de.szut.casino.security.service;
import de.szut.casino.user.UserEntity; import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository; import de.szut.casino.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException; import org.springframework.security.core.userdetails.UsernameNotFoundException;
@ -14,8 +13,11 @@ import java.util.Optional;
@Service @Service
public class UserDetailsServiceImpl implements UserDetailsService { public class UserDetailsServiceImpl implements UserDetailsService {
@Autowired private final UserRepository userRepository;
private UserRepository userRepository;
public UserDetailsServiceImpl(UserRepository userRepository) {
this.userRepository = userRepository;
}
@Override @Override
public UserDetails loadUserByUsername(String usernameOrEmail) throws UsernameNotFoundException { public UserDetails loadUserByUsername(String usernameOrEmail) throws UsernameNotFoundException {

View file

@ -4,6 +4,7 @@ import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive; import jakarta.validation.constraints.Positive;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter; import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -11,6 +12,7 @@ import java.math.BigDecimal;
@Getter @Getter
@Setter @Setter
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor
public class BetDto { public class BetDto {
@NotNull(message = "Bet amount cannot be null") @NotNull(message = "Bet amount cannot be null")
@Positive(message = "Bet amount must be positive") @Positive(message = "Bet amount must be positive")

View file

@ -32,13 +32,7 @@ public class SlotController {
@PostMapping("/slots/spin") @PostMapping("/slots/spin")
public ResponseEntity<Object> spinSlots(@RequestBody @Valid BetDto betDto) { public ResponseEntity<Object> spinSlots(@RequestBody @Valid BetDto betDto) {
Optional<UserEntity> optionalUser = userService.getCurrentUser(); UserEntity user = userService.getCurrentUser();
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
UserEntity user = optionalUser.get();
if (!this.balanceService.hasFunds(user, betDto)) { if (!this.balanceService.hasFunds(user, betDto)) {
throw new InsufficientFundsException(); throw new InsufficientFundsException();

View file

@ -2,7 +2,6 @@ package de.szut.casino.user;
import de.szut.casino.user.dto.GetUserDto; import de.szut.casino.user.dto.GetUserDto;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -15,14 +14,17 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/users") @RequestMapping("/users")
public class UserController { public class UserController {
@Autowired private final UserService userService;
private UserService userService;
@Autowired private final UserMappingService userMappingService;
private UserMappingService userMappingService;
public UserController(UserService userService, UserMappingService userMappingService) {
this.userService = userService;
this.userMappingService = userMappingService;
}
@GetMapping("/me") @GetMapping("/me")
public ResponseEntity<GetUserDto> getCurrentUser() { public ResponseEntity<GetUserDto> getCurrentUser() {
return ResponseEntity.ok(userMappingService.mapToGetUserDto(userService.getCurrentUser().orElseThrow())); return ResponseEntity.ok(userMappingService.mapToGetUserDto(userService.getCurrentUser()));
} }
} }

View file

@ -16,6 +16,9 @@ public class UserEntity {
@GeneratedValue @GeneratedValue
private Long id; private Long id;
@Version
private Long version;
@Column(unique = true) @Column(unique = true)
private String email; private String email;
@ -44,7 +47,6 @@ public class UserEntity {
this.password = password; this.password = password;
this.balance = balance; this.balance = balance;
this.verificationToken = verificationToken; this.verificationToken = verificationToken;
this.provider = AuthProvider.LOCAL;
} }
public UserEntity(String email, String username, AuthProvider provider, String providerId, BigDecimal balance) { public UserEntity(String email, String username, AuthProvider provider, String providerId, BigDecimal balance) {

View file

@ -1,9 +1,11 @@
package de.szut.casino.user; package de.szut.casino.user;
import de.szut.casino.deposit.TransactionEntity;
import de.szut.casino.deposit.TransactionStatus;
import de.szut.casino.exceptionHandling.exceptions.UserNotFoundException;
import de.szut.casino.user.dto.CreateUserDto; import de.szut.casino.user.dto.CreateUserDto;
import jakarta.persistence.EntityExistsException; import jakarta.persistence.EntityExistsException;
import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -13,11 +15,13 @@ import java.util.Optional;
@Service @Service
public class UserService { public class UserService {
@Autowired private final UserRepository userRepository;
private UserRepository userRepository; private final PasswordEncoder passwordEncoder;
@Autowired public UserService(UserRepository userRepository, PasswordEncoder passwordEncoder) {
private PasswordEncoder passwordEncoder; this.userRepository = userRepository;
this.passwordEncoder = passwordEncoder;
}
public UserEntity createUser(CreateUserDto createUserDto) { public UserEntity createUser(CreateUserDto createUserDto) {
if (userRepository.existsByUsername(createUserDto.getUsername())) { if (userRepository.existsByUsername(createUserDto.getUsername())) {
@ -36,13 +40,24 @@ public class UserService {
RandomStringUtils.randomAlphanumeric(64) RandomStringUtils.randomAlphanumeric(64)
); );
TransactionEntity transaction = new TransactionEntity();
transaction.setAmount(100L);
transaction.setUser(user);
transaction.setSessionId("signup_bonus");
transaction.setStatus(TransactionStatus.SUCCEEDED);
return userRepository.save(user); return userRepository.save(user);
} }
public Optional<UserEntity> getCurrentUser() { public UserEntity getCurrentUser() {
String username = SecurityContextHolder.getContext().getAuthentication().getName(); String username = SecurityContextHolder.getContext().getAuthentication().getName();
return userRepository.findByUsername(username); Optional<UserEntity> optionalUser = userRepository.findByUsername(username);
if (optionalUser.isEmpty()) {
throw new UserNotFoundException();
}
return optionalUser.get();
} }
public Optional<UserEntity> getUserByVerificationToken(String token) { public Optional<UserEntity> getUserByVerificationToken(String token) {

View file

@ -6,31 +6,29 @@ import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserService; import de.szut.casino.user.UserService;
import de.szut.casino.user.transaction.dto.GetTransactionDto; import de.szut.casino.user.transaction.dto.GetTransactionDto;
import de.szut.casino.user.transaction.dto.UserTransactionsDto; import de.szut.casino.user.transaction.dto.UserTransactionsDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
import java.util.Optional;
@Service @Service
public class GetTransactionService { public class GetTransactionService {
@Autowired private final UserService userService;
private UserService userService;
@Autowired private final TransactionRepository transactionRepository;
private TransactionRepository transactionRepository;
public UserTransactionsDto getUserTransactionsDto(String authToken, Integer limit, Integer offset) { public GetTransactionService(UserService userService, TransactionRepository transactionRepository) {
Optional<UserEntity> user = this.userService.getCurrentUser(); this.userService = userService;
if (user.isPresent()) { this.transactionRepository = transactionRepository;
List<TransactionEntity> transactionEntities = this.transactionRepository.findByUserIdWithLimit(user.get(), limit, offset);
Boolean hasMore = this.transactionRepository.hasMore(user.get(), limit, offset);
return new UserTransactionsDto(mapTransactionsToDtos(transactionEntities), hasMore);
} }
return new UserTransactionsDto(List.of(), false); public UserTransactionsDto getUserTransactionsDto(Integer limit, Integer offset) {
UserEntity user = userService.getCurrentUser();
List<TransactionEntity> transactionEntities = this.transactionRepository.findByUserIdWithLimit(user, limit, offset);
Boolean hasMore = this.transactionRepository.hasMore(user, limit, offset);
return new UserTransactionsDto(mapTransactionsToDtos(transactionEntities), hasMore);
} }
public List<GetTransactionDto> mapTransactionsToDtos(List<TransactionEntity> transactions) { public List<GetTransactionDto> mapTransactionsToDtos(List<TransactionEntity> transactions) {

View file

@ -1,26 +1,26 @@
package de.szut.casino.user.transaction; package de.szut.casino.user.transaction;
import de.szut.casino.user.transaction.dto.UserTransactionsDto; import de.szut.casino.user.transaction.dto.UserTransactionsDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class TransactionController { public class TransactionController {
@Autowired private final GetTransactionService transactionService;
private GetTransactionService transactionService;
public TransactionController(GetTransactionService transactionService) {
this.transactionService = transactionService;
}
@GetMapping("/user/transactions") @GetMapping("/user/transactions")
public ResponseEntity<UserTransactionsDto> getUserTransactions( public ResponseEntity<UserTransactionsDto> getUserTransactions(
@RequestHeader("Authorization") String authToken,
@RequestParam(value = "limit", required = false) Integer limit, @RequestParam(value = "limit", required = false) Integer limit,
@RequestParam(value = "offset", required = false) Integer offset @RequestParam(value = "offset", required = false) Integer offset
) { ) {
UserTransactionsDto transactionEntities = this.transactionService.getUserTransactionsDto(authToken, limit, offset); UserTransactionsDto transactionEntities = this.transactionService.getUserTransactionsDto(limit, offset);
return ResponseEntity.ok(transactionEntities); return ResponseEntity.ok(transactionEntities);
} }

View file

@ -0,0 +1,58 @@
spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=create-drop
server.port=${HTTP_PORT:8080}
stripe.secret.key=${STRIPE_SECRET_KEY:sk_test_51QrePYIvCfqz7ANgqam8rEwWcMeKiLOof3j6SCMgu2sl4sESP45DJxca16mWcYo1sQaiBv32CMR6Z4AAAGQPCJo300ubuZKO8I}
stripe.webhook.secret=${STRIPE_WEBHOOK_SECRET:whsec_746b6a488665f6057118bdb4a2b32f4916f16c277109eeaed5e8f8e8b81b8c15}
app.frontend-host=${FE_URL:http://localhost:4200}
app.mail.authentication=${MAIL_AUTHENTICATION:false}
app.mail.host=${MAIL_HOST:localhost}
app.mail.port=${MAIL_PORT:1025}
app.mail.username=${MAIL_USER:null}
app.mail.password=${MAIL_PASS:null}
app.mail.from-address=${MAIL_FROM:casino@localhost}
app.mail.protocol=${MAIL_PROTOCOL:smtp}
spring.application.name=casino
# JWT Configuration
jwt.secret=${JWT_SECRET:5367566B59703373367639792F423F4528482B4D6251655468576D5A71347437}
jwt.expiration.ms=${JWT_EXPIRATION_MS:86400000}
# Logging
logging.level.org.springframework.security=DEBUG
# Swagger
springdoc.swagger-ui.path=swagger
springdoc.swagger-ui.try-it-out-enabled=true
# GitHub OAuth2 Configuration
spring.security.oauth2.client.registration.github.client-id=${GITHUB_CLIENT_ID:Ov23lingzZsPn1wwACoK}
spring.security.oauth2.client.registration.github.client-secret=${GITHUB_CLIENT_SECRET:4b327fb3b1ab67584a03bcb9d53fa6439fbccad7}
spring.security.oauth2.client.registration.github.redirect-uri=${app.frontend-host}/oauth2/callback/github
spring.security.oauth2.client.registration.github.scope=user:email,read:user
spring.security.oauth2.client.provider.github.authorization-uri=https://github.com/login/oauth/authorize
spring.security.oauth2.client.provider.github.token-uri=https://github.com/login/oauth/access_token
spring.security.oauth2.client.provider.github.user-info-uri=https://api.github.com/user
spring.security.oauth2.client.provider.github.user-name-attribute=login
# OAuth Success and Failure URLs
app.oauth2.authorizedRedirectUris=${app.frontend-host}/auth/oauth2/callback
# Google OAuth2 Configuration
spring.security.oauth2.client.registration.google.client-id=${GOOGLE_CLIENT_ID:350791038883-c1r7v4o793itq8a0rh7dut7itm7uneam.apps.googleusercontent.com}
spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_SECRET: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}
spring.security.oauth2.client.registration.google.redirect-uri=${app.frontend-host}/oauth2/callback/google
spring.security.oauth2.client.registration.google.scope=email,profile
spring.security.oauth2.client.provider.google.authorization-uri=https://accounts.google.com/o/oauth2/v2/auth
spring.security.oauth2.client.provider.google.token-uri=https://oauth2.googleapis.com/token
spring.security.oauth2.client.provider.google.user-info-uri=https://www.googleapis.com/oauth2/v3/userinfo
spring.security.oauth2.client.provider.google.user-name-attribute=sub

View file

@ -1,13 +0,0 @@
package de.szut.casino;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class Lf8StarterApplicationTests {
@Test
void contextLoads() {
}
}

View file

@ -0,0 +1,64 @@
package de.szut.casino.coinflip;
import de.szut.casino.shared.service.BalanceService;
import de.szut.casino.user.UserEntity;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import java.math.BigDecimal;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
class CoinflipServiceTest {
@Mock
private BalanceService balanceService;
@Mock
private Random random;
@InjectMocks
private CoinflipService coinflipService;
private UserEntity user;
private CoinflipDto coinflipDto;
@BeforeEach
void setUp() {
MockitoAnnotations.openMocks(this);
user = new UserEntity();
user.setBalance(BigDecimal.valueOf(100));
coinflipDto = new CoinflipDto(BigDecimal.valueOf(10), CoinSide.HEAD);
}
@Test
void testPlay_userWins() {
when(random.nextBoolean()).thenReturn(true);
CoinflipResult result = coinflipService.play(user, coinflipDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(20), result.getPayout());
assertEquals(CoinSide.HEAD, result.getCoinSide());
verify(balanceService, times(1)).subtractFunds(user, BigDecimal.valueOf(10));
verify(balanceService, times(1)).addFunds(user, BigDecimal.valueOf(20));
}
@Test
void testPlay_userLoses() {
when(random.nextBoolean()).thenReturn(false);
CoinflipResult result = coinflipService.play(user, coinflipDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.ZERO, result.getPayout());
assertEquals(CoinSide.TAILS, result.getCoinSide());
verify(balanceService, times(1)).subtractFunds(user, BigDecimal.valueOf(10));
verify(balanceService, never()).addFunds(any(), any());
}
}

View file

@ -0,0 +1,251 @@
package de.szut.casino.dice;
import de.szut.casino.shared.service.BalanceService;
import de.szut.casino.user.UserEntity;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
@ExtendWith(MockitoExtension.class)
class DiceServiceTest {
@Mock
private BalanceService balanceService;
@Mock
private Random random;
@InjectMocks
private DiceService diceService;
private UserEntity user;
private DiceDto diceDto;
@BeforeEach
void setUp() {
user = new UserEntity();
user.setId(1L);
user.setBalance(BigDecimal.valueOf(1000));
diceDto = new DiceDto();
diceDto.setBetAmount(BigDecimal.valueOf(10));
diceDto.setTargetValue(BigDecimal.valueOf(50));
diceDto.setRollOver(true);
}
@Test
void play_rollOver_win() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(50));
when(random.nextInt(anyInt())).thenReturn(55);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(56), result.getRolledValue());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollOver_lose() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(50));
when(random.nextInt(anyInt())).thenReturn(49);
DiceResult result = diceService.play(user, diceDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.valueOf(50), result.getRolledValue());
assertEquals(BigDecimal.ZERO, result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, never()).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollUnder_win() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(50));
when(random.nextInt(anyInt())).thenReturn(48);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(49), result.getRolledValue());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollUnder_lose() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(50));
when(random.nextInt(anyInt())).thenReturn(50);
DiceResult result = diceService.play(user, diceDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.valueOf(51), result.getRolledValue());
assertEquals(BigDecimal.ZERO, result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, never()).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollOver_targetValueOne_rolledOne_lose() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(1));
when(random.nextInt(anyInt())).thenReturn(0);
DiceResult result = diceService.play(user, diceDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.valueOf(1), result.getRolledValue());
assertEquals(BigDecimal.ZERO, result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, never()).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollOver_targetValueOne_rolledTwo_win() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(1));
when(random.nextInt(anyInt())).thenReturn(1);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(2), result.getRolledValue());
// Win chance for target 1 (roll over) is 99. Multiplier = (100-1)/99 = 1
assertEquals(diceDto.getBetAmount().stripTrailingZeros(), result.getPayout().stripTrailingZeros());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollUnder_targetValueOne_alwaysLose_winChanceZero() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(1));
when(random.nextInt(anyInt())).thenReturn(0);
DiceResult result = diceService.play(user, diceDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.valueOf(1), result.getRolledValue());
assertEquals(BigDecimal.ZERO, result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, never()).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollOver_targetValueNinetyNine_rolledHundred_win() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(99));
when(random.nextInt(anyInt())).thenReturn(99);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(100), result.getRolledValue());
// Win chance for target 99 (roll over) is 1. Multiplier = (100-1)/1 = 99
assertEquals(diceDto.getBetAmount().multiply(BigDecimal.valueOf(99)).stripTrailingZeros(), result.getPayout().stripTrailingZeros());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollUnder_targetValueNinetyNine_rolledNinetyEight_win() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(99));
when(random.nextInt(anyInt())).thenReturn(97);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(98), result.getRolledValue());
// Win chance for target 99 (roll under) is 98. Multiplier = (100-1)/98 = 99/98
assertEquals(diceDto.getBetAmount().multiply(BigDecimal.valueOf(99).divide(BigDecimal.valueOf(98), 4, RoundingMode.HALF_UP)), result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollOver_targetValueOneHundred_alwaysLose_winChanceZero() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(100));
when(random.nextInt(anyInt())).thenReturn(99);
DiceResult result = diceService.play(user, diceDto);
assertFalse(result.isWin());
assertEquals(BigDecimal.valueOf(100), result.getRolledValue());
assertEquals(BigDecimal.ZERO, result.getPayout());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, never()).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_rollUnder_targetValueOneHundred_rolledNinetyNine_win() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(100));
when(random.nextInt(anyInt())).thenReturn(98);
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(99), result.getRolledValue());
// Win chance for target 100 (roll under) is 99. Multiplier = (100-1)/99 = 1
assertEquals(diceDto.getBetAmount().stripTrailingZeros(), result.getPayout().stripTrailingZeros());
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
verify(balanceService, times(1)).addFunds(eq(user), any(BigDecimal.class));
}
@Test
void play_payoutCalculationCorrect() {
diceDto.setRollOver(true);
diceDto.setTargetValue(BigDecimal.valueOf(75));
when(random.nextInt(anyInt())).thenReturn(75);
// Multiplier for win chance 25: (100-1)/25 = 99/25 = 3.96
// Payout: 10 * 3.96 = 39.6
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(39.6).stripTrailingZeros(), result.getPayout().stripTrailingZeros());
}
@Test
void play_payoutCalculationCorrect_rollUnder() {
diceDto.setRollOver(false);
diceDto.setTargetValue(BigDecimal.valueOf(25));
when(random.nextInt(anyInt())).thenReturn(0);
// Multiplier for win chance 24: (100-1)/24 = 99/24 = 4.125
// Payout: 10 * 4.125 = 41.25
DiceResult result = diceService.play(user, diceDto);
assertTrue(result.isWin());
assertEquals(BigDecimal.valueOf(41.25).stripTrailingZeros(), result.getPayout().stripTrailingZeros());
}
@Test
void play_betAmountSubtracted() {
when(random.nextInt(anyInt())).thenReturn(50);
diceService.play(user, diceDto);
verify(balanceService, times(1)).subtractFunds(user, diceDto.getBetAmount());
}
}

View file

@ -1,26 +0,0 @@
package de.szut.casino.health;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.test.web.servlet.MockMvc;
@WebMvcTest(HealthController.class)
@AutoConfigureMockMvc(addFilters = false)
public class HealthControllerTest {
@Autowired
private MockMvc mockMvc;
@Test
void healthCheckReturnsUpStatus() throws Exception {
mockMvc.perform(get("/health"))
.andExpect(status().isOk())
.andExpect(jsonPath("$.status").value("UP"));
}
}

View file

@ -0,0 +1,76 @@
package de.szut.casino.shared.service;
import de.szut.casino.shared.dto.BetDto;
import de.szut.casino.user.UserEntity;
import de.szut.casino.user.UserRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import java.math.BigDecimal;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.*;
class BalanceServiceTest {
@Mock
private UserRepository userRepository;
@InjectMocks
private BalanceService balanceService;
private UserEntity user;
private BetDto betDto;
@BeforeEach
void setUp() {
MockitoAnnotations.openMocks(this);
user = new UserEntity();
user.setBalance(BigDecimal.valueOf(100));
betDto = new BetDto();
}
@Test
void testHasFunds_sufficientFunds() {
betDto.setBetAmount(BigDecimal.valueOf(50));
assertTrue(balanceService.hasFunds(user, betDto));
}
@Test
void testHasFunds_insufficientFunds() {
betDto.setBetAmount(BigDecimal.valueOf(150));
assertFalse(balanceService.hasFunds(user, betDto));
}
@Test
void testHasFunds_exactFunds() {
betDto.setBetAmount(BigDecimal.valueOf(100));
assertTrue(balanceService.hasFunds(user, betDto));
}
@Test
void testAddFunds() {
BigDecimal amountToAdd = BigDecimal.valueOf(50);
balanceService.addFunds(user, amountToAdd);
assertEquals(BigDecimal.valueOf(150), user.getBalance());
verify(userRepository, times(1)).save(user);
}
@Test
void testSubtractFunds_sufficientFunds() {
BigDecimal amountToSubtract = BigDecimal.valueOf(50);
balanceService.subtractFunds(user, amountToSubtract);
assertEquals(BigDecimal.valueOf(50), user.getBalance());
verify(userRepository, times(1)).save(user);
}
@Test
void testSubtractFunds_insufficientFunds() {
BigDecimal amountToSubtract = BigDecimal.valueOf(150);
assertThrows(IllegalStateException.class, () -> balanceService.subtractFunds(user, amountToSubtract));
verify(userRepository, never()).save(user);
}
}

View file

@ -1,122 +0,0 @@
package de.szut.casino.user;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto;
@WebMvcTest(UserController.class)
@AutoConfigureMockMvc(addFilters = false)
public class UserControllerTest {
@Autowired
private MockMvc mockMvc;
@Autowired
private ObjectMapper objectMapper;
@MockBean
private UserService userService;
private GetUserDto getUserDto;
private CreateUserDto createUserDto;
private UserEntity testUser;
private final String TEST_ID = "test-id-123";
private final String AUTH_TOKEN = "Bearer test-token";
@BeforeEach
void setUp() {
getUserDto = new GetUserDto();
getUserDto.setAuthentikId(TEST_ID);
getUserDto.setUsername("testuser");
testUser = new UserEntity();
testUser.setAuthentikId(TEST_ID);
testUser.setUsername("testuser");
createUserDto = new CreateUserDto();
createUserDto.setAuthentikId(TEST_ID);
createUserDto.setUsername("testuser");
}
@Test
void getUserByIdSuccess() throws Exception {
when(userService.exists(TEST_ID)).thenReturn(true);
when(userService.getUser(TEST_ID)).thenReturn(getUserDto);
mockMvc.perform(get("/user/" + TEST_ID))
.andExpect(status().isOk())
.andExpect(jsonPath("$.authentikId").value(TEST_ID))
.andExpect(jsonPath("$.username").value("testuser"));
}
@Test
void getUserByIdNotFound() throws Exception {
when(userService.exists(TEST_ID)).thenReturn(false);
mockMvc.perform(get("/user/" + TEST_ID))
.andExpect(status().isNotFound());
}
@Test
void createUserSuccess() throws Exception {
when(userService.exists(TEST_ID)).thenReturn(false);
when(userService.createUser(any(CreateUserDto.class))).thenReturn(testUser);
mockMvc.perform(post("/user")
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(createUserDto)))
.andExpect(status().isOk())
.andExpect(jsonPath("$.authentikId").value(TEST_ID))
.andExpect(jsonPath("$.username").value("testuser"));
}
@Test
void createUserAlreadyExists() throws Exception {
when(userService.exists(TEST_ID)).thenReturn(true);
mockMvc.perform(post("/user")
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(createUserDto)))
.andExpect(status().isFound())
.andExpect(header().string("Location", "/user/" + TEST_ID));
}
@Test
void getCurrentUserSuccess() throws Exception {
when(userService.getCurrentUser(AUTH_TOKEN)).thenReturn(getUserDto);
mockMvc.perform(get("/user")
.header("Authorization", AUTH_TOKEN))
.andExpect(status().isOk())
.andExpect(jsonPath("$.authentikId").value(TEST_ID))
.andExpect(jsonPath("$.username").value("testuser"));
}
@Test
void getCurrentUserNotFound() throws Exception {
when(userService.getCurrentUser(anyString())).thenReturn(null);
mockMvc.perform(get("/user")
.header("Authorization", AUTH_TOKEN))
.andExpect(status().isNotFound());
}
}

View file

@ -1,7 +1,12 @@
FROM oven/bun:debian AS build FROM oven/bun:debian AS build
WORKDIR /app WORKDIR /app
RUN apt-get update -y && apt-get install nodejs -y RUN apt-get update -y && \
apt-get install -y --no-install-recommends curl ca-certificates gnupg && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV NODE_ENV=production ENV NODE_ENV=production

3
frontend/.gitignore vendored
View file

@ -29,6 +29,9 @@ yarn-error.log
.history/* .history/*
# Miscellaneous # Miscellaneous
/.claude
/test-results
/playwright-report
/.angular/cache /.angular/cache
.sass-cache/ .sass-cache/
/connect.lock /connect.lock

View file

@ -1,18 +1,106 @@
# Casino Gaming Platform - Frontend # Casino Gaming Platform - Frontend
This is the frontend application for the Casino Gaming Platform. It's built with Angular 18 and TailwindCSS, providing a responsive and modern UI for the casino gaming experience. A modern Angular 20 casino gaming platform featuring multiple games including Blackjack, Coinflip, Dice, Slots, and Lootboxes. Built with Angular 20, TailwindCSS 4, and powered by Bun for fast development.
## Development ## 🎮 Features
### Commands - **Multiple Games**: Blackjack, Coinflip, Dice, Slots, Lootboxes
- **User Authentication**: OAuth2, email verification, password recovery
- **Real-time Gaming**: Interactive game mechanics with animations
- **Payment Integration**: Stripe integration for deposits
- **Responsive Design**: Mobile-first design with TailwindCSS
- **Audio Experience**: Game sounds and audio feedback
- **Transaction History**: Complete betting and transaction tracking
- **Build**: `bun run build` or `bunx @angular/cli build` ## 🚀 Getting Started
- **Start Dev Server**: `bun run start` or `bunx @angular/cli serve --proxy-config src/proxy.conf.json`
- **Format Code**: `bun run format` or `prettier --write "src/**/*.{ts,html,css,scss}"` ### Prerequisites
- **Lint**: `bun run lint` or `ng lint`
- **Test**: `bun run test` or `bunx @angular/cli test` - [Bun](https://bun.sh/) (recommended) or Node.js 18+
- Angular CLI 20+
### Installation
```bash
# Install dependencies
bun install
# Start development server
bun run start
```
The app will be available at `http://localhost:4200`
## 📋 Commands
### Development
- **Start Dev Server**: `bun run start` - Starts dev server with proxy configuration
- **Build**: `bun run build` - Production build
- **Watch Build**: `bun run watch` - Development build with file watching
### Code Quality
- **Format**: `bun run format` - Format code with Prettier
- **Format Check**: `bun run format:check` - Check code formatting
- **Lint**: `bun run lint` - Run ESLint
- **OxLint**: `bun run oxlint` - Run OxLint with strict warnings
### Testing
- **Test All**: `bun run test` - Run all tests with Karma/Jasmine
- **Test Single File**: `bunx @angular/cli test --include=path/to/test.spec.ts` - **Test Single File**: `bunx @angular/cli test --include=path/to/test.spec.ts`
## 🛠️ Technology Stack
### Core
- **Angular 20**: Latest Angular framework with standalone components
- **TypeScript 5.8**: Strongly typed JavaScript
- **RxJS 7.8**: Reactive programming for HTTP and state management
### Styling & UI
- **TailwindCSS 4**: Utility-first CSS framework
- **PostCSS**: CSS processing and optimization
- **FontAwesome**: Icon library with Angular integration
### Animation & Interaction
- **GSAP**: High-performance animations
- **CountUp.js**: Number animation effects
- **Custom Audio Service**: Game sound effects and feedback
### Development Tools
- **Bun**: Fast JavaScript runtime and package manager
- **ESLint + Angular ESLint**: Code linting with Angular-specific rules
- **OxLint**: Fast Rust-based linter
- **Prettier**: Code formatting
- **Karma + Jasmine**: Testing framework
### Payment & APIs
- **Stripe**: Payment processing integration
- **Custom HTTP Interceptors**: API communication and error handling
## 🏗️ Architecture
### Project Structure
```
src/
├── app/
│ ├── feature/ # Feature modules
│ │ ├── auth/ # Authentication (login, register, OAuth2)
│ │ ├── game/ # Game modules (blackjack, coinflip, dice, slots)
│ │ ├── lootboxes/ # Lootbox system
│ │ └── deposit/ # Payment and deposits
│ ├── model/ # Data models and interfaces
│ ├── service/ # Core services (auth, user, transaction)
│ └── shared/ # Shared components, directives, services
├── environments/ # Environment configurations
└── public/ # Static assets (images, sounds)
```
### Key Components
- **Game Components**: Modular game implementations with services
- **Shared Components**: Reusable UI components (navbar, footer, modals)
- **Services**: Business logic and API communication
- **Guards**: Route protection and authentication
- **Interceptors**: HTTP request/response handling
## Style Guide ## Style Guide
### Color Palette ### Color Palette

View file

@ -21,7 +21,8 @@
{ {
"glob": "**/*", "glob": "**/*",
"input": "public" "input": "public"
} },
"src/assets"
], ],
"styles": [ "styles": [
"src/styles.css" "src/styles.css"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
import { test, expect } from '@playwright/test';
test('backend works', async ({ page }) => {
await page.goto('http://localhost:8080/health');
const response = await page.textContent('body');
expect(response).toBeTruthy();
expect(page.getByText('{"status":"UP"}')).toBeVisible();
});

View file

@ -0,0 +1,36 @@
import { test, expect } from '@playwright/test';
test('home page loads correctly', async ({ page }) => {
await page.goto('/');
await expect(page).toHaveTitle(/Casino/);
await expect(page.getByRole('heading', { name: 'Willkommensbonus' })).toBeVisible();
await expect(page.getByText('von bis zu €')).toBeVisible();
});
test('registration popup should open and close', async ({ page }) => {
await page.goto('/');
await page.getByRole('navigation').getByRole('button', { name: 'Jetzt registrieren' }).click();
await expect(page.getByText('Konto erstellenE-')).toBeVisible();
await page.getByRole('button', { name: 'Dialog schließen' }).click();
await expect(page.getByText('Konto erstellenE-')).not.toBeVisible();
});
test('registration should work', async ({ page }) => {
await page.goto('/');
await page.getByRole('navigation').getByRole('button', { name: 'Jetzt registrieren' }).click();
await page.getByRole('textbox', { name: 'E-Mail' }).fill('test@kjan.email');
await page.getByRole('textbox', { name: 'Benutzername' }).fill('test-playwright');
await page.getByRole('textbox', { name: 'Passwort' }).fill('BananaMan123');
await page.locator('form').getByRole('button', { name: 'Registrieren' }).click();
await page.getByRole('button', { name: 'Dialog schließen' }).click();
await page.getByRole('navigation').getByRole('button', { name: 'Anmelden' }).click();
await page.getByRole('textbox', { name: 'Benutzername oder E-Mail' }).fill('test@kjan.email');
await page.getByRole('textbox', { name: 'Passwort' }).fill('BananaMan123');
await page.locator('form').getByRole('button', { name: 'Anmelden' }).click();
await expect(page.getByText('Email not verified')).toBeVisible();
});

View file

@ -14,16 +14,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^19.0.0", "@angular/animations": "^20.0.0",
"@angular/cdk": "~19.2.0", "@angular/cdk": "~20.0.0",
"@angular/common": "^19.0.0", "@angular/common": "^20.0.0",
"@angular/compiler": "^19.2.4", "@angular/compiler": "^20.0.0",
"@angular/core": "^19.0.0", "@angular/core": "^20.0.0",
"@angular/forms": "^19.0.0", "@angular/forms": "^20.0.0",
"@angular/platform-browser": "^19.0.0", "@angular/platform-browser": "^20.0.0",
"@angular/platform-browser-dynamic": "^19.0.0", "@angular/platform-browser-dynamic": "^20.0.0",
"@angular/router": "^19.0.0", "@angular/router": "^20.0.0",
"@fortawesome/angular-fontawesome": "^1.0.0", "@fortawesome/angular-fontawesome": "^2.0.0",
"@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-brands-svg-icons": "^6.7.2", "@fortawesome/free-brands-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2", "@fortawesome/free-solid-svg-icons": "^6.7.2",
@ -39,13 +39,14 @@
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^19.0.0", "@angular-devkit/build-angular": "^20.0.0",
"@angular/cli": "^19.2.5", "@angular/cli": "^20.0.0",
"@angular/compiler-cli": "^19.0.0", "@angular/compiler-cli": "^20.0.0",
"@playwright/test": "^1.52.0",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"angular-eslint": "19.5.0", "angular-eslint": "20.0.0",
"eslint": "^9.25.1", "eslint": "^9.28.0",
"jasmine-core": "~5.7.0", "jasmine-core": "~5.8.0",
"karma": "~6.4.0", "karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0", "karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0", "karma-coverage": "~2.2.0",
@ -53,6 +54,6 @@
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine-html-reporter": "~2.1.0",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"typescript": "~5.8.0", "typescript": "~5.8.0",
"typescript-eslint": "8.32.1" "typescript-eslint": "8.34.0"
} }
} }

View file

@ -0,0 +1,49 @@
// playwright.config.ts (or .js)
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
// This baseURL is for your frontend tests.
// Tests hitting the backend directly will use absolute URLs.
baseURL: 'http://localhost:4200',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
],
webServer: {
command:
'cd .. && conc -n "frontend,backend" "cd frontend && bun run start" "cd backend/ && watchexec -r -e java ./gradlew :bootRun"',
// **IMPORTANT CHANGE HERE:**
// Point to your backend's health check endpoint.
// If your Spring Boot app uses Actuator, it might be /actuator/health
// Verify the correct health endpoint for your backend.
url: 'http://localhost:8080/health', // Or "http://localhost:8080/actuator/health"
reuseExistingServer: !process.env.CI,
// **INCREASE TIMEOUT SIGNIFICANTLY**
// Gradle + Spring Boot can take a while, especially on first run or in CI.
// Adjust as needed, e.g., 3-5 minutes.
timeout: 300 * 1000, // 300 seconds = 5 minutes
stdout: 'pipe', // Good for capturing logs in CI reports
stderr: 'pipe',
// Optional: If your server needs specific environment variables
// env: {
// SPRING_PROFILES_ACTIVE: 'test', // Example for Spring Boot
// },
},
});

View file

@ -1,4 +1,4 @@
import { ApplicationConfig, provideExperimentalZonelessChangeDetection } from '@angular/core'; import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router'; import { provideRouter } from '@angular/router';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
@ -12,7 +12,7 @@ export const appConfig: ApplicationConfig = {
provideRouter(routes), provideRouter(routes),
FontAwesomeModule, FontAwesomeModule,
provideHttpClient(withInterceptors([httpInterceptor])), provideHttpClient(withInterceptors([httpInterceptor])),
provideExperimentalZonelessChangeDetection(), provideZonelessChangeDetection(),
provideAnimationsAsync(), provideAnimationsAsync(),
], ],
}; };

View file

@ -62,15 +62,13 @@ export const routes: Routes = [
loadComponent: () => loadComponent: () =>
import('./feature/lootboxes/lootbox-selection/lootbox-selection.component'), import('./feature/lootboxes/lootbox-selection/lootbox-selection.component'),
canActivate: [authGuard], canActivate: [authGuard],
children: [ },
{ {
path: 'open/:id', path: 'lootboxes/open/:id',
loadComponent: () => loadComponent: () =>
import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'), import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'),
canActivate: [authGuard], canActivate: [authGuard],
}, },
],
},
{ {
path: 'dice', path: 'dice',
loadComponent: () => import('./feature/game/dice/dice.component'), loadComponent: () => import('./feature/game/dice/dice.component'),

View file

@ -1,4 +1,4 @@
import { Component, EventEmitter, Output, signal } from '@angular/core'; import { Component, EventEmitter, Output, signal, inject } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { LoginRequest } from '../../../model/auth/LoginRequest'; import { LoginRequest } from '../../../model/auth/LoginRequest';
@ -20,11 +20,11 @@ export class LoginComponent {
@Output() closeDialog = new EventEmitter<void>(); @Output() closeDialog = new EventEmitter<void>();
@Output() forgotPassword = new EventEmitter<void>(); @Output() forgotPassword = new EventEmitter<void>();
constructor( private fb = inject(FormBuilder);
private fb: FormBuilder, private authService = inject(AuthService);
private authService: AuthService, private router = inject(Router);
private router: Router
) { constructor() {
this.loginForm = this.fb.group({ this.loginForm = this.fb.group({
usernameOrEmail: ['', [Validators.required]], usernameOrEmail: ['', [Validators.required]],
password: ['', [Validators.required]], password: ['', [Validators.required]],

View file

@ -1,4 +1,4 @@
import { Component, EventEmitter, Output, signal, OnInit } from '@angular/core'; import { Component, EventEmitter, Output, signal, OnInit, inject } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { ActivatedRoute, Router, RouterModule } from '@angular/router'; import { ActivatedRoute, Router, RouterModule } from '@angular/router';
@ -22,12 +22,12 @@ export default class RecoverPasswordComponent implements OnInit {
@Output() closeDialog = new EventEmitter<void>(); @Output() closeDialog = new EventEmitter<void>();
@Output() switchToLogin = new EventEmitter<void>(); @Output() switchToLogin = new EventEmitter<void>();
constructor( private fb = inject(FormBuilder);
private fb: FormBuilder, private authService = inject(AuthService);
private authService: AuthService, private router = inject(Router);
private router: Router, private route = inject(ActivatedRoute);
private route: ActivatedRoute
) { constructor() {
this.emailForm = this.fb.group({ this.emailForm = this.fb.group({
email: ['', [Validators.required, Validators.email]], email: ['', [Validators.required, Validators.email]],
}); });

View file

@ -1,4 +1,4 @@
import { Component, EventEmitter, Output, signal } from '@angular/core'; import { Component, EventEmitter, Output, signal, inject } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { RegisterRequest } from '../../../model/auth/RegisterRequest'; import { RegisterRequest } from '../../../model/auth/RegisterRequest';
import { AuthService } from '@service/auth.service'; import { AuthService } from '@service/auth.service';
@ -19,10 +19,10 @@ export class RegisterComponent {
@Output() switchForm = new EventEmitter<void>(); @Output() switchForm = new EventEmitter<void>();
@Output() closeDialog = new EventEmitter<void>(); @Output() closeDialog = new EventEmitter<void>();
constructor( private fb = inject(FormBuilder);
private fb: FormBuilder, private authService = inject(AuthService);
private authService: AuthService
) { constructor() {
this.registerForm = this.fb.group({ this.registerForm = this.fb.group({
email: ['', [Validators.required, Validators.email]], email: ['', [Validators.required, Validators.email]],
username: ['', [Validators.required, Validators.minLength(3)]], username: ['', [Validators.required, Validators.minLength(3)]],

View file

@ -61,6 +61,9 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit {
this.countUp = new CountUp(this.numberElement.nativeElement, this.value, { this.countUp = new CountUp(this.numberElement.nativeElement, this.value, {
startVal: this.previousValue, startVal: this.previousValue,
duration: this.duration, duration: this.duration,
decimalPlaces: 2,
useEasing: true,
useGrouping: false,
easingFn: (t, b, c, d) => { easingFn: (t, b, c, d) => {
if (this.ease === 'power1.out') { if (this.ease === 'power1.out') {
return c * (1 - Math.pow(1 - t / d, 1)) + b; return c * (1 - Math.pow(1 - t / d, 1)) + b;

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import {
ChangeDetectionStrategy,
Component,
Input,
OnChanges,
SimpleChanges,
inject,
} from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { Card } from '@blackjack/models/blackjack.model'; import { Card } from '@blackjack/models/blackjack.model';
import { PlayingCardComponent } from '../playing-card/playing-card.component'; import { PlayingCardComponent } from '../playing-card/playing-card.component';
@ -47,7 +54,7 @@ export class DealerHandComponent implements OnChanges {
private lastCardCount = 0; private lastCardCount = 0;
constructor(protected gameControlsService: GameControlsService) {} protected gameControlsService = inject(GameControlsService);
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (changes['cards']) { if (changes['cards']) {

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'; import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
Output,
inject,
} from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { GameState } from '@blackjack/enum/gameState'; import { GameState } from '@blackjack/enum/gameState';
import { Card } from '@blackjack/models/blackjack.model'; import { Card } from '@blackjack/models/blackjack.model';
@ -69,7 +76,7 @@ export class GameControlsComponent {
protected readonly GameState = GameState; protected readonly GameState = GameState;
constructor(protected gameControlsService: GameControlsService) {} protected gameControlsService = inject(GameControlsService);
get canDoubleDown(): boolean { get canDoubleDown(): boolean {
return ( return (

View file

@ -7,6 +7,7 @@ import {
Output, Output,
signal, signal,
SimpleChanges, SimpleChanges,
inject,
} from '@angular/core'; } from '@angular/core';
import { CommonModule, CurrencyPipe } from '@angular/common'; import { CommonModule, CurrencyPipe } from '@angular/common';
import { FormGroup, ReactiveFormsModule } from '@angular/forms'; import { FormGroup, ReactiveFormsModule } from '@angular/forms';
@ -121,7 +122,9 @@ export class GameInfoComponent implements OnChanges {
betForm: FormGroup; betForm: FormGroup;
constructor(private bettingService: BettingService) { private bettingService = inject(BettingService);
constructor() {
this.betForm = this.bettingService.createBetForm(); this.betForm = this.bettingService.createBetForm();
} }

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import {
ChangeDetectionStrategy,
Component,
Input,
OnChanges,
SimpleChanges,
inject,
} from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { PlayingCardComponent } from '../playing-card/playing-card.component'; import { PlayingCardComponent } from '../playing-card/playing-card.component';
import { Card } from '@blackjack/models/blackjack.model'; import { Card } from '@blackjack/models/blackjack.model';
@ -49,7 +56,7 @@ export class PlayerHandComponent implements OnChanges {
private lastCardCount = 0; private lastCardCount = 0;
constructor(protected gameControlsService: GameControlsService) {} protected gameControlsService = inject(GameControlsService);
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (changes['cards']) { if (changes['cards']) {

View file

@ -6,6 +6,7 @@ import {
Input, Input,
OnChanges, OnChanges,
SimpleChanges, SimpleChanges,
inject,
} from '@angular/core'; } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { gsap } from 'gsap'; import { gsap } from 'gsap';
@ -58,7 +59,7 @@ export class PlayingCardComponent implements AfterViewInit, OnChanges {
@Input({ required: true }) hidden!: boolean; @Input({ required: true }) hidden!: boolean;
@Input() isNew = false; @Input() isNew = false;
constructor(private elementRef: ElementRef) {} private elementRef = inject(ElementRef);
get isRedSuit(): boolean { get isRedSuit(): boolean {
return this.suit === 'HEARTS' || this.suit === 'DIAMONDS'; return this.suit === 'HEARTS' || this.suit === 'DIAMONDS';

View file

@ -1,11 +1,11 @@
import { Injectable } from '@angular/core'; import { Injectable, inject } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, Validators } from '@angular/forms';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
}) })
export class BettingService { export class BettingService {
constructor(private fb: FormBuilder) {} private fb = inject(FormBuilder);
createBetForm(): FormGroup { createBetForm(): FormGroup {
return this.fb.group({ return this.fb.group({

View file

@ -1,4 +1,4 @@
import { Injectable } from '@angular/core'; import { Injectable, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { DiceDto, DiceResult } from './dice.model'; import { DiceDto, DiceResult } from './dice.model';
@ -10,7 +10,7 @@ import { environment } from '@environments/environment';
export class DiceService { export class DiceService {
private apiUrl = `${environment.apiUrl}/dice`; private apiUrl = `${environment.apiUrl}/dice`;
constructor(private http: HttpClient) {} private http = inject(HttpClient);
rollDice(diceDto: DiceDto): Observable<DiceResult> { rollDice(diceDto: DiceDto): Observable<DiceResult> {
return this.http.post<DiceResult>(this.apiUrl, diceDto); return this.http.post<DiceResult>(this.apiUrl, diceDto);

View file

@ -4,7 +4,7 @@
</div> </div>
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> <div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<div class="lg:col-span-3"> <div class="lg:col-span-4">
<div class="flex justify-between items-center mb-6"> <div class="flex justify-between items-center mb-6">
<h3 class="section-heading text-2xl">Alle Spiele</h3> <h3 class="section-heading text-2xl">Alle Spiele</h3>
<div class="flex space-x-2"> <div class="flex space-x-2">
@ -18,8 +18,37 @@
</div> </div>
<div class="slider-container"> <div class="slider-container">
<div class="slider-grid"> <div class="min-w-full space-y-4">
<div class="card group" *ngFor="let game of featuredGames"> <!-- Top row with 3 games -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="card group" *ngFor="let game of featuredGames.slice(0, 3)">
<div class="relative overflow-hidden rounded-lg">
<img
[src]="game.image"
[alt]="game.name"
class="w-full aspect-[4/3] object-cover transition-transform duration-300 group-hover:scale-105"
/>
<div
class="absolute inset-0 bg-gradient-to-t from-deep-blue/95 via-deep-blue/50 to-transparent opacity-0 group-hover:opacity-100 transition-all duration-300 ease-in-out"
>
<div
class="absolute bottom-4 left-4 right-4 transform translate-y-4 group-hover:translate-y-0 transition-transform duration-300"
>
<h4 class="game-heading">{{ game.name }}</h4>
<button class="button-primary w-full py-2" (click)="navigateToGame(game.route)">
Jetzt Spielen
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Bottom row with 2 games centered -->
<div
class="grid grid-cols-1 sm:grid-cols-2 gap-4 max-w-2xl mx-auto xl:max-w-3xl xl:gap-6"
>
<div class="card group" *ngFor="let game of featuredGames.slice(3, 5)">
<div class="relative overflow-hidden rounded-lg"> <div class="relative overflow-hidden rounded-lg">
<img <img
[src]="game.image" [src]="game.image"
@ -43,53 +72,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="lg:col-span-1 space-y-6">
<div class="card p-4">
<h3 class="section-heading text-xl mb-4">Konto</h3>
<div class="space-y-4">
<button class="button-primary w-full py-2" (click)="openDepositModal()">Einzahlen</button>
<app-deposit
[isOpen]="isDepositModalOpen"
(closeModalEmitter)="closeDepositModal()"
></app-deposit>
<button
class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded"
(click)="openTransactionModal()"
>
Transaktionen
</button>
<app-transaction-history
[isOpen]="isTransactionModalOpen"
(closeEventEmitter)="closeTransactionModal()"
/>
</div>
</div>
<app-confirmation
[successful]="isDepositSuccessful"
(closeConfirmation)="closeDepositConfirmationModal()"
></app-confirmation>
<div class="card p-4">
<h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3>
<div class="space-y-3">
<div
class="flex justify-between items-center"
*ngFor="let transaction of (recentTransactionData | async)?.transactions"
>
<div>
<p class="text-sm font-medium">{{ transaction.status }}</p>
<p class="text-xs text-text-secondary">
{{ transaction.createdAt | date: 'd.m.Y H:m' }}
</p>
</div>
<span [class]="transaction.amount > 0 ? 'text-emerald' : 'text-accent-red'">
{{ transaction.amount | currency: 'EUR' }}
</span>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,39 +1,21 @@
import { ChangeDetectionStrategy, Component, inject, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';
import { AsyncPipe, CurrencyPipe, DatePipe, NgFor } from '@angular/common'; import { NgFor } from '@angular/common';
import { DepositComponent } from '../deposit/deposit.component';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { ConfirmationComponent } from '@shared/components/confirmation/confirmation.component';
import { Game } from 'app/model/Game'; import { Game } from 'app/model/Game';
import { Observable } from 'rxjs';
import { TransactionService } from '@service/transaction.service';
import format from 'ajv/dist/vocabularies/format'; import format from 'ajv/dist/vocabularies/format';
import { TransactionHistoryComponent } from '../transaction-history/transaction-history.component';
import { TransactionData } from '../../model/TransactionData';
@Component({ @Component({
selector: 'app-homepage', selector: 'app-homepage',
standalone: true, standalone: true,
imports: [ imports: [NgFor],
CurrencyPipe,
NgFor,
DepositComponent,
ConfirmationComponent,
AsyncPipe,
DatePipe,
TransactionHistoryComponent,
],
templateUrl: './home.component.html', templateUrl: './home.component.html',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export default class HomeComponent implements OnInit { export default class HomeComponent implements OnInit {
isDepositModalOpen = false;
isDepositSuccessful = false; isDepositSuccessful = false;
isTransactionModalOpen = false;
constructor( public route = inject(ActivatedRoute);
public route: ActivatedRoute, public router = inject(Router);
public router: Router
) {}
ngOnInit() { ngOnInit() {
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true'; this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
@ -64,12 +46,6 @@ export default class HomeComponent implements OnInit {
image: '/slots.webp', image: '/slots.webp',
route: '/game/slots', route: '/game/slots',
}, },
{
id: '4',
name: 'Plinko',
image: '/plinko.webp',
route: '/game/plinko',
},
{ {
id: '5', id: '5',
name: 'Dice', name: 'Dice',
@ -84,35 +60,10 @@ export default class HomeComponent implements OnInit {
}, },
]; ];
allGames: Game[] = [...this.featuredGames];
recentTransactionData: Observable<TransactionData> =
inject(TransactionService).getUsersTransactions(5);
openDepositModal() {
this.isDepositModalOpen = true;
}
closeDepositModal() {
this.isDepositModalOpen = false;
}
openDepositConfirmationModal() { openDepositConfirmationModal() {
this.isDepositSuccessful = true; this.isDepositSuccessful = true;
} }
openTransactionModal() {
this.isTransactionModalOpen = true;
}
closeDepositConfirmationModal() {
this.isDepositSuccessful = false;
}
closeTransactionModal() {
this.isTransactionModalOpen = false;
}
navigateToGame(route: string) { navigateToGame(route: string) {
this.router.navigate([route]); this.router.navigate([route]);
} }

View file

@ -21,13 +21,7 @@
(click)="showRegisterForm()" (click)="showRegisterForm()"
class="w-full sm:w-auto button-primary px-6 sm:px-8 py-3 shadow-lg" class="w-full sm:w-auto button-primary px-6 sm:px-8 py-3 shadow-lg"
> >
Konto erstellen Jetzt registrieren
</button>
<button
(click)="showLoginForm()"
class="w-full sm:w-auto bg-slate-700 text-white hover:bg-slate-600 px-6 sm:px-8 py-3 shadow-lg rounded"
>
Anmelden
</button> </button>
} }
</div> </div>
@ -46,69 +40,108 @@
<div class="game-card-content"> <div class="game-card-content">
<h3 class="game-heading-sm">Slots</h3> <h3 class="game-heading-sm">Slots</h3>
<p class="game-text">Klassische Spielautomaten</p> <p class="game-text">Klassische Spielautomaten</p>
@if (isLoggedIn()) {
<a <a
routerLink="game/slots" routerLink="game/slots"
class="button-primary w-full py-2 inline-block text-center" class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
> >
</div> Jetzt Spielen
</div> </a>
<div class="card"> } @else {
<div class="game-card-content"> <button
<h3 class="game-heading-sm">Plinko</h3> (click)="showLoginForm()"
<p class="game-text">Spannendes Geschicklichkeitsspiel</p>
<a
routerLink="/game/plinko"
class="button-primary w-full py-2 inline-block text-center" class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
> >
Jetzt Spielen
</button>
}
</div> </div>
</div> </div>
<div class="hidden lg:block card"> <div class="hidden lg:block card">
<div class="game-card-content"> <div class="game-card-content">
<h3 class="game-heading-sm">Blackjack</h3> <h3 class="game-heading-sm">Blackjack</h3>
<p class="game-text">Klassisches Kartenspiel</p> <p class="game-text">Klassisches Kartenspiel</p>
@if (isLoggedIn()) {
<a <a
routerLink="game/blackjack" routerLink="game/blackjack"
class="button-primary w-full py-2 inline-block text-center" class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
> >
Jetzt Spielen
</a>
} @else {
<button
(click)="showLoginForm()"
class="button-primary w-full py-2 inline-block text-center"
>
Jetzt Spielen
</button>
}
</div>
</div>
<div class="hidden lg:block card">
<div class="game-card-content">
<h3 class="game-heading-sm">Coinflip</h3>
<p class="game-text">Münzwurf</p>
@if (isLoggedIn()) {
<a
routerLink="game/coinflip"
class="button-primary w-full py-2 inline-block text-center"
>
Jetzt Spielen
</a>
} @else {
<button
(click)="showLoginForm()"
class="button-primary w-full py-2 inline-block text-center"
>
Jetzt Spielen
</button>
}
</div> </div>
</div> </div>
</div> </div>
<div class="slider-grid"> <div class="slider-grid">
<div class="card">
<div class="game-card-content">
<h3 class="game-heading-sm">Poker</h3>
<p class="game-text">Texas Hold'em & mehr</p>
<a
routerLink="/game/poker"
class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
>
</div>
</div>
<div class="card"> <div class="card">
<div class="game-card-content"> <div class="game-card-content">
<h3 class="game-heading-sm">Dice</h3> <h3 class="game-heading-sm">Dice</h3>
<p class="game-text">Würfelspiel</p> <p class="game-text">Würfelspiel</p>
@if (isLoggedIn()) {
<a <a
routerLink="/game/dice" routerLink="game/dice"
class="button-primary w-full py-2 inline-block text-center" class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
> >
Jetzt Spielen
</a>
} @else {
<button
(click)="showLoginForm()"
class="button-primary w-full py-2 inline-block text-center"
>
Jetzt Spielen
</button>
}
</div> </div>
</div> </div>
<div class="hidden lg:block card"> <div class="hidden lg:block card">
<div class="game-card-content"> <div class="game-card-content">
<h3 class="game-heading-sm">Lootboxen</h3> <h3 class="game-heading-sm">Lootboxen</h3>
<p class="game-text">Überraschungskisten</p> <p class="game-text">Überraschungskisten</p>
@if (isLoggedIn()) {
<a <a
routerLink="game/lootboxes" routerLink="game/lootboxes"
class="button-primary w-full py-2 inline-block text-center" class="button-primary w-full py-2 inline-block text-center"
>Jetzt Spielen</a
> >
Jetzt Spielen
</a>
} @else {
<button
(click)="showLoginForm()"
class="button-primary w-full py-2 inline-block text-center"
>
Jetzt Spielen
</button>
}
</div> </div>
</div> </div>
</div> </div>
@ -176,7 +209,7 @@
<div class="stat-container"> <div class="stat-container">
<div class="stat-number">24/7</div> <div class="stat-number">24/7</div>
<div class="stat-text">Support <span class="text-emerald text-xs">*</span></div> <div class="stat-text">Support</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -23,15 +23,14 @@ import RecoverPasswordComponent from '../auth/recover-password/recover-password.
}) })
export class LandingComponent implements OnInit, OnDestroy { export class LandingComponent implements OnInit, OnDestroy {
currentSlide = 0; currentSlide = 0;
private autoplayInterval: ReturnType<typeof setInterval> | undefined;
authService: AuthService = inject(AuthService); authService: AuthService = inject(AuthService);
route: ActivatedRoute = inject(ActivatedRoute); route: ActivatedRoute = inject(ActivatedRoute);
showLogin = signal(false); showLogin = signal(false);
showRegister = signal(false); showRegister = signal(false);
showRecoverPassword = signal(false); showRecoverPassword = signal(false);
isLoggedIn = signal(this.authService.isLoggedIn());
ngOnInit() { ngOnInit() {
this.startAutoplay();
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
if (this.route.snapshot.queryParamMap.get('login') === 'true') { if (this.route.snapshot.queryParamMap.get('login') === 'true') {
this.showLoginForm(); this.showLoginForm();
@ -39,7 +38,6 @@ export class LandingComponent implements OnInit, OnDestroy {
} }
ngOnDestroy() { ngOnDestroy() {
this.stopAutoplay();
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
} }
@ -73,33 +71,13 @@ export class LandingComponent implements OnInit, OnDestroy {
prevSlide() { prevSlide() {
this.currentSlide = this.currentSlide === 0 ? 1 : 0; this.currentSlide = this.currentSlide === 0 ? 1 : 0;
this.resetAutoplay();
} }
nextSlide() { nextSlide() {
this.currentSlide = this.currentSlide === 1 ? 0 : 1; this.currentSlide = this.currentSlide === 1 ? 0 : 1;
this.resetAutoplay();
} }
goToSlide(index: number) { goToSlide(index: number) {
this.currentSlide = index; this.currentSlide = index;
this.resetAutoplay();
}
private startAutoplay() {
this.autoplayInterval = setInterval(() => {
this.nextSlide();
}, 5000);
}
private stopAutoplay() {
if (this.autoplayInterval) {
clearInterval(this.autoplayInterval);
}
}
private resetAutoplay() {
this.stopAutoplay();
this.startAutoplay();
} }
} }

View file

@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component } from '@angular/core'; import { ChangeDetectorRef, Component, inject } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { LootboxService } from '../services/lootbox.service'; import { LootboxService } from '../services/lootbox.service';
@ -26,14 +26,14 @@ export default class LootboxOpeningComponent {
currentUser: User | null = null; currentUser: User | null = null;
private winSound: HTMLAudioElement; private winSound: HTMLAudioElement;
constructor( private route = inject(ActivatedRoute);
private route: ActivatedRoute, private router = inject(Router);
private router: Router, private lootboxService = inject(LootboxService);
private lootboxService: LootboxService, private userService = inject(UserService);
private userService: UserService, private authService = inject(AuthService);
private authService: AuthService, private cdr = inject(ChangeDetectorRef);
private cdr: ChangeDetectorRef
) { constructor() {
this.winSound = new Audio('/sounds/win.mp3'); this.winSound = new Audio('/sounds/win.mp3');
this.loadLootbox(); this.loadLootbox();
this.authService.userSubject.subscribe((user) => { this.authService.userSubject.subscribe((user) => {

View file

@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { ChangeDetectorRef, Component, OnInit, inject } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { LootboxService } from '../services/lootbox.service'; import { LootboxService } from '../services/lootbox.service';
import { LootBox } from 'app/model/LootBox'; import { LootBox } from 'app/model/LootBox';
@ -86,13 +86,11 @@ export default class LootboxSelectionComponent implements OnInit {
}, },
]; ];
constructor( private lootboxService = inject(LootboxService);
private lootboxService: LootboxService, private router = inject(Router);
private router: Router, private cdr = inject(ChangeDetectorRef);
private cdr: ChangeDetectorRef, private authService = inject(AuthService);
private authService: AuthService, private userService = inject(UserService);
private userService: UserService
) {}
ngOnInit(): void { ngOnInit(): void {
this.loadLootboxes(); this.loadLootboxes();

View file

@ -22,7 +22,7 @@
<div class="flex justify-between items-center mb-4"> <div class="flex justify-between items-center mb-4">
<div> <div>
<p class="text-sm font-medium">{{ transaction.status }}</p> <p class="text-sm font-medium">{{ transaction.status }}</p>
<p class="text-xs text-text-secondary">{{ transaction.createdAt | date: 'd.m.Y H:m' }}</p> <p class="text-xs text-text-secondary">{{ transaction.createdAt | date: 'd.m.y H:m' }}</p>
</div> </div>
<span [class]="transaction.amount > 0 ? 'text-emerald' : 'text-accent-red'"> <span [class]="transaction.amount > 0 ? 'text-emerald' : 'text-accent-red'">
{{ transaction.amount | currency: 'EUR' }} {{ transaction.amount | currency: 'EUR' }}

View file

@ -1,4 +1,4 @@
import { Injectable } from '@angular/core'; import { Injectable, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { BehaviorSubject, Observable, tap } from 'rxjs'; import { BehaviorSubject, Observable, tap } from 'rxjs';
import { Router, ActivatedRoute } from '@angular/router'; import { Router, ActivatedRoute } from '@angular/router';
@ -19,13 +19,13 @@ export class AuthService {
private userUrl = `${environment.apiUrl}/users`; private userUrl = `${environment.apiUrl}/users`;
private oauthUrl = `${environment.apiUrl}/oauth2`; private oauthUrl = `${environment.apiUrl}/oauth2`;
private http = inject(HttpClient);
private router = inject(Router);
private route = inject(ActivatedRoute);
userSubject: BehaviorSubject<User | null>; userSubject: BehaviorSubject<User | null>;
constructor( constructor() {
private http: HttpClient,
private router: Router,
private route: ActivatedRoute
) {
this.userSubject = new BehaviorSubject<User | null>(this.getUserFromStorage()); this.userSubject = new BehaviorSubject<User | null>(this.getUserFromStorage());
// Check for token in URL (OAuth callback) on initialization // Check for token in URL (OAuth callback) on initialization

View file

@ -7,6 +7,7 @@ import {
OnDestroy, OnDestroy,
Output, Output,
ViewChild, ViewChild,
inject,
} from '@angular/core'; } from '@angular/core';
import { ModalAnimationService } from '@shared/services/modal-animation.service'; import { ModalAnimationService } from '@shared/services/modal-animation.service';
import gsap from 'gsap'; import gsap from 'gsap';
@ -23,7 +24,7 @@ export class ConfirmationComponent implements AfterViewInit, OnDestroy {
@ViewChild('modalBg') modalBg!: ElementRef; @ViewChild('modalBg') modalBg!: ElementRef;
@ViewChild('modalCard') modalCard!: ElementRef; @ViewChild('modalCard') modalCard!: ElementRef;
constructor(private modalAnimationService: ModalAnimationService) {} private modalAnimationService = inject(ModalAnimationService);
ngAfterViewInit() { ngAfterViewInit() {
if (this.successful) { if (this.successful) {

View file

@ -5,27 +5,19 @@
<h3 class="footer-heading">Casino Spiele</h3> <h3 class="footer-heading">Casino Spiele</h3>
<ul class="space-y-3"> <ul class="space-y-3">
<li> <li>
<a routerLink="/games" class="footer-link">Slots</a> <a routerLink="/game/slots" class="footer-link">Slots</a>
</li> </li>
<li> <li>
<a routerLink="/games" class="footer-link">Plinko</a> <a routerLink="/game/blackjack" class="footer-link">Blackjack</a>
</li> </li>
<li> <li>
<a routerLink="/games" class="footer-link">Blackjack</a> <a routerLink="/game/dice" class="footer-link">Dice</a>
</li> </li>
<li> <li>
<a routerLink="/games" class="footer-link">Poker</a> <a routerLink="/game/coinflip" class="footer-link">Coinflip</a>
</li> </li>
<li> <li>
<a routerLink="/games" class="footer-link">Liars Dice</a> <a routerLink="/game/lootboxes" class="footer-link">Lootboxen</a>
</li>
</ul>
</div>
<div class="footer-section">
<h3 class="footer-heading">Andere Spiele</h3>
<ul class="space-y-3">
<li>
<a routerLink="/games" class="footer-link">Lootboxen</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -57,10 +49,6 @@
<fa-icon [icon]="faGooglePay" class="footer-payment-icon"></fa-icon> <fa-icon [icon]="faGooglePay" class="footer-payment-icon"></fa-icon>
<span class="footer-payment-text">Google Pay</span> <span class="footer-payment-text">Google Pay</span>
</div> </div>
<div class="footer-payment-method">
<fa-icon [icon]="faApplePay" class="footer-payment-icon"></fa-icon>
<span class="footer-payment-text">Apple Pay</span>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -68,10 +56,6 @@
<div class="mt-12 pt-8 border-t border-deep-blue-light"> <div class="mt-12 pt-8 border-t border-deep-blue-light">
<div class="flex flex-col md:flex-row justify-between items-center"> <div class="flex flex-col md:flex-row justify-between items-center">
<div class="footer-copyright"> <div class="footer-copyright">
<span class="footer-disclaimer">
<span class="text-emerald">*</span> nicht vorhanden.
</span>
<br />
© {{ currentYear }} Trustworthy Casino. Keine Rechte vorbehalten. © {{ currentYear }} Trustworthy Casino. Keine Rechte vorbehalten.
</div> </div>
</div> </div>

View file

@ -1,13 +1,14 @@
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { ChangeDetectionStrategy, Component } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faCreditCard, faMoneyBillTransfer, faWallet } from '@fortawesome/free-solid-svg-icons'; import { faCreditCard, faMoneyBillTransfer, faWallet } from '@fortawesome/free-solid-svg-icons';
import { faApplePay, faGooglePay, faPaypal } from '@fortawesome/free-brands-svg-icons'; import { faGooglePay, faPaypal } from '@fortawesome/free-brands-svg-icons';
import { RouterLink } from '@angular/router';
@Component({ @Component({
selector: 'app-footer', selector: 'app-footer',
standalone: true, standalone: true,
templateUrl: './footer.component.html', templateUrl: './footer.component.html',
imports: [FontAwesomeModule], imports: [FontAwesomeModule, RouterLink],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class FooterComponent { export class FooterComponent {
@ -18,5 +19,4 @@ export class FooterComponent {
faMoneyBillTransfer = faMoneyBillTransfer; faMoneyBillTransfer = faMoneyBillTransfer;
faWallet = faWallet; faWallet = faWallet;
faGooglePay = faGooglePay; faGooglePay = faGooglePay;
faApplePay = faApplePay;
} }

View file

@ -1,40 +1,120 @@
<nav class="bg-deep-blue border-b border-deep-blue-contrast"> <nav class="bg-deep-blue-light border-b border-emerald-500/30 shadow-lg">
<div class="max-w-full mx-auto px-4"> <div class="max-w-full mx-auto px-6">
<div class="flex justify-between items-center h-14"> <div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-6"> <div class="flex items-center space-x-2">
<a routerLink="/" class="nav-brand"> <a routerLink="/" class="flex items-center space-x-3 group">
<span>Trustworthy Casino</span> <div class="flex flex-col">
<span class="text-xl font-bold text-white"> Trustworthy Casino </span>
<span class="text-xs text-emerald-400 font-medium">Trust. Play. Win.</span>
</div>
</a> </a>
<div class="hidden md:flex items-center space-x-1"> <div class="hidden md:flex items-center space-x-1">
<a routerLink="/home" class="nav-link">Spiele</a> @if (isLoggedIn()) {
<a
routerLink="/home"
class="flex items-center px-4 py-2 text-white/90 hover:text-white font-medium rounded-lg hover:bg-white/10 transition-colors duration-200"
>
<img class="mr-2 w-4 h-4" src="assets/games.svg" alt="gamess" />
Spiele
</a>
} @else {
<button
(click)="showLogin.emit()"
class="flex items-center px-4 py-2 text-white/90 hover:text-white font-medium rounded-lg hover:bg-white/10 transition-colors duration-200"
>
<img class="mr-2 w-4 h-4" src="assets/games.svg" alt="gamess" />
Spiele
</button>
}
</div> </div>
</div> </div>
<div class="hidden md:flex items-center space-x-4"> <div class="hidden md:flex items-center space-x-1">
@if (!isLoggedIn()) { @if (!isLoggedIn()) {
<button (click)="showLogin.emit()" class="button-primary px-4 py-1.5">Anmelden</button> <button
(click)="showLogin.emit()"
class="flex items-center px-4 py-2 text-white font-medium border border-emerald-500 rounded-lg hover:bg-emerald-500/10 transition-colors duration-200"
>
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
/>
</svg>
Anmelden
</button>
<button <button
(click)="showRegister.emit()" (click)="showRegister.emit()"
class="bg-emerald-700 text-white hover:bg-emerald-600 px-4 py-1.5 rounded" class="flex items-center px-4 py-2 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
> >
Registrieren Jetzt registrieren
</button> </button>
} }
@if (isLoggedIn()) { @if (isLoggedIn()) {
<div <div
class="text-white font-bold bg-deep-blue-contrast rounded-full px-4 py-2 text-sm hover:bg-deep-blue-contrast/80 hover:cursor-pointer hover:scale-105 transition-all active:scale-95 select-none duration-300" class="flex items-center px-4 py-2 mr-2 bg-slate-700 border border-emerald-500/30 rounded-lg font-medium"
routerLink="/home" >
<span class="text-emerald-400 text-sm mr-2">Guthaben:</span>
<span
[class]="balance() < 0 ? 'text-red-400 font-bold' : 'text-white font-bold'"
class="text-sm"
> >
<span [class]="balance() < 0 ? 'text-accent-red' : ''">
<app-animated-number [value]="balance()" [duration]="0.5"></app-animated-number> <app-animated-number [value]="balance()" [duration]="0.5"></app-animated-number>
</span> </span>
</div> </div>
<button (click)="logout()" class="button-primary px-4 py-1.5">Abmelden</button>
<button
class="flex items-center px-4 py-2 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
(click)="openDepositModal()"
>
<img class="mr-2 w-3 h-3" src="assets/deposit.svg" alt="deposits" />
Einzahlen
</button>
<app-deposit
[isOpen]="isDepositModalOpen"
(closeModalEmitter)="closeDepositModal()"
></app-deposit>
<button
class="flex items-center px-4 py-2 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
(click)="openTransactionModal()"
>
<img class="mr-2 w-4 h-4" src="assets/transaction.svg" alt="transactions" />
Transaktionen
</button>
<app-transaction-history
[isOpen]="isTransactionModalOpen"
(closeEventEmitter)="closeTransactionModal()"
/>
<button
(click)="logout()"
class="flex items-center px-4 py-2 text-red-400 font-medium border border-red-500/50 rounded-lg hover:bg-red-500/10 transition-colors duration-200"
>
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
/>
</svg>
Abmelden
</button>
} }
</div> </div>
<div class="md:hidden"> <div class="md:hidden">
<button (click)="toggleMenu()" class="nav-toggle"> <button
(click)="toggleMenu()"
class="p-2 text-white hover:text-emerald-400 rounded-lg transition-colors duration-200"
>
<svg <svg
class="h-6 w-6" class="h-6 w-6"
[class.hidden]="isMenuOpen" [class.hidden]="isMenuOpen"
@ -68,25 +148,95 @@
</div> </div>
<div [class]="isMenuOpen ? 'block' : 'hidden'" class="md:hidden"> <div [class]="isMenuOpen ? 'block' : 'hidden'" class="md:hidden">
<div class="nav-mobile-menu"> <div class="px-2 pt-2 pb-4 space-y-3 bg-slate-700 rounded-lg mt-2">
<a routerLink="/games" class="nav-mobile-link">Spiele</a> <a
<div class="pt-2 space-y-2"> routerLink="/home"
class="flex items-center px-4 py-3 text-white/90 hover:text-white hover:bg-white/10 rounded-lg transition-colors duration-200"
>
<img class="mr-2 w-4 h-4" src="assets/games.svg" alt="gamess" />
Spiele
</a>
<div class="border-t border-slate-600 pt-3 space-y-3">
@if (!isLoggedIn()) { @if (!isLoggedIn()) {
<button <button
(click)="showLogin.emit()" (click)="showLogin.emit()"
class="button-primary w-full py-1.5 block text-center" class="w-full flex items-center justify-center px-4 py-3 text-white font-medium border border-emerald-500 rounded-lg hover:bg-emerald-500/10 transition-colors duration-200"
> >
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
/>
</svg>
Anmelden Anmelden
</button> </button>
<button <button
(click)="showRegister.emit()" (click)="showRegister.emit()"
class="bg-emerald-700 text-white hover:bg-emerald-600 w-full py-1.5 rounded block text-center" class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
> >
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"
/>
</svg>
Registrieren Registrieren
</button> </button>
} }
@if (isLoggedIn()) { @if (isLoggedIn()) {
<button (click)="logout()" class="button-primary w-full py-1.5">Abmelden</button> <div
class="flex items-center justify-center px-4 py-3 bg-slate-700 border border-emerald-500/30 rounded-lg"
>
<span class="text-emerald-400 text-sm font-medium mr-2">Guthaben:</span>
<span
[class]="balance() < 0 ? 'text-red-400 font-bold' : 'text-white font-bold'"
class="text-sm"
>
<app-animated-number [value]="balance()" [duration]="0.5"></app-animated-number>
</span>
</div>
<button
(click)="openDepositModal()"
class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
>
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 6v6m0 0v6m0-6h6m-6 0H6"
/>
</svg>
Einzahlen
</button>
<button
(click)="openTransactionModal()"
class="w-full flex items-center justify-center px-4 py-3 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
>
Transaktionen
</button>
<button
(click)="logout()"
class="w-full flex items-center justify-center px-4 py-3 text-red-400 font-medium border border-red-500/50 rounded-lg hover:bg-red-500/10 transition-colors duration-200"
>
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"
/>
</svg>
Abmelden
</button>
} }
</div> </div>
</div> </div>

View file

@ -12,16 +12,20 @@ import { RouterModule } from '@angular/router';
import { AuthService } from '@service/auth.service'; import { AuthService } from '@service/auth.service';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component'; import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
import { DepositComponent } from '../../../feature/deposit/deposit.component';
import { TransactionHistoryComponent } from '../../../feature/transaction-history/transaction-history.component';
@Component({ @Component({
selector: 'app-navbar', selector: 'app-navbar',
templateUrl: './navbar.component.html', templateUrl: './navbar.component.html',
standalone: true, standalone: true,
imports: [RouterModule, AnimatedNumberComponent], imports: [RouterModule, AnimatedNumberComponent, DepositComponent, TransactionHistoryComponent],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class NavbarComponent implements OnInit, OnDestroy { export class NavbarComponent implements OnInit, OnDestroy {
isMenuOpen = false; isMenuOpen = false;
isDepositModalOpen = false;
isTransactionModalOpen = false;
private authService: AuthService = inject(AuthService); private authService: AuthService = inject(AuthService);
isLoggedIn = signal(this.authService.isLoggedIn()); isLoggedIn = signal(this.authService.isLoggedIn());
@ -51,4 +55,20 @@ export class NavbarComponent implements OnInit, OnDestroy {
toggleMenu() { toggleMenu() {
this.isMenuOpen = !this.isMenuOpen; this.isMenuOpen = !this.isMenuOpen;
} }
openDepositModal() {
this.isDepositModalOpen = true;
}
closeDepositModal() {
this.isDepositModalOpen = false;
}
openTransactionModal() {
this.isTransactionModalOpen = true;
}
closeTransactionModal() {
this.isTransactionModalOpen = false;
}
} }

View file

@ -1,4 +1,4 @@
import { Injectable, Renderer2, RendererFactory2 } from '@angular/core'; import { Injectable, Renderer2, RendererFactory2, inject } from '@angular/core';
@Injectable({ @Injectable({
providedIn: 'root', providedIn: 'root',
@ -7,8 +7,10 @@ export class SoundInitializerService {
private renderer: Renderer2; private renderer: Renderer2;
private observer: MutationObserver; private observer: MutationObserver;
constructor(rendererFactory: RendererFactory2) { private rendererFactory = inject(RendererFactory2);
this.renderer = rendererFactory.createRenderer(null, null);
constructor() {
this.renderer = this.rendererFactory.createRenderer(null, null);
this.observer = new MutationObserver((mutations) => { this.observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => { mutations.forEach((mutation) => {

View file

@ -0,0 +1,4 @@
<svg style="color: white;" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16">
<path fill="currentColor" d="m8 16l-2-3h1v-2h2v2h1zm7-15v8H1V1zm1-1H0v10h16z"/>
<path fill="currentColor" d="M8 2a3 3 0 1 1 0 6h5V7h1V3h-1V2zM5 5a3 3 0 0 1 3-3H3v1H2v4h1v1h5a3 3 0 0 1-3-3"/>
</svg>

After

Width:  |  Height:  |  Size: 314 B

View file

@ -0,0 +1,6 @@
<svg style="color: white;" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512">
<path fill="currentColor"
d="M495.24 267.592L445.066 41.083A32.04 32.04 0 0 0 406.9 16.76L180.393 66.934a32 32 0 0 0-24.322 38.166l21.021 94.9H48a32.036 32.036 0 0 0-32 32v232a32.036 32.036 0 0 0 32 32h232a32.036 32.036 0 0 0 32-32V340.957l158.917-35.2a32.04 32.04 0 0 0 24.323-38.165M280 464H48V232h136.181l22.063 99.606a32.03 32.03 0 0 0 31.18 25.092a32.3 32.3 0 0 0 6.984-.769l35.6-7.886L280.02 464Zm184-189.487l-226.513 50.173l-50.173-226.51L413.824 48l50.193 226.505Z"/>
<path fill="currentColor"
d="M80 264h40v40H80zm0 128h40v40H80zm128 0h40v40h-40zm-64-64h40v40h-40zm81.456-205.433l39.054-8.644l8.644 39.055l-39.054 8.644zm152.672 97.223l39.054-8.65l8.65 39.054l-39.054 8.65zm-76.324-48.649l39.053-8.65l8.65 39.053l-39.052 8.65z"/>
</svg>

After

Width:  |  Height:  |  Size: 882 B

View file

@ -0,0 +1,12 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 24 24"
style="color: white;"
>
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" color="currentColor">
<path d="M4.58 8.607L2 8.454C3.849 3.704 9.158 1 14.333 2.344c5.513 1.433 8.788 6.918 7.314 12.25c-1.219 4.411-5.304 7.337-9.8 7.406"/>
<path d="M12 22C6.5 22 2 17 2 11m11.604-1.278c-.352-.37-1.213-1.237-2.575-.62c-1.361.615-1.577 2.596.482 2.807c.93.095 1.537-.11 2.093.47c.556.582.659 2.198-.761 2.634s-2.341-.284-2.588-.509m1.653-6.484v.79m0 6.337v.873"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 639 B

View file

@ -71,6 +71,10 @@ a {
@apply font-bold text-text-primary text-sm mb-2; @apply font-bold text-text-primary text-sm mb-2;
} }
.game-heading {
@apply font-bold text-text-primary text-lg mb-2;
}
.game-heading-xl { .game-heading-xl {
@apply font-bold text-text-primary text-xl mb-2; @apply font-bold text-text-primary text-xl mb-2;
} }

View file

@ -6,8 +6,7 @@ info:
start: start:
command -v concurrently &> /dev/null || bun add -g concurrently command -v concurrently &> /dev/null || bun add -g concurrently
command -v watchexec &> /dev/null || brew install watchexec command -v watchexec &> /dev/null || brew install watchexec
docker compose up -d conc -n "frontend,backend,docker" "cd frontend && bun run start" "cd backend/ && watchexec -r -e java ./gradlew :bootRun" "docker compose up"
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) # Builds both the backend and frontend docker images (obv)
build: build:

132
projektdokumentation/.gitignore vendored Normal file
View file

@ -0,0 +1,132 @@
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.pdf
## Intermediate documents:
*.dvi
*-converted-to.*
# these rules might exclude image files for figures etc.
# *.ps
# *.eps
# *.pdf
## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.brf
*.run.xml
## Build tool auxiliary files:
*.fdb_latexmk
*.synctex
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync
## Auxiliary and intermediate files from other packages:
# algorithms
*.alg
*.loa
# achemso
acs-*.bib
# amsthm
*.thm
# beamer
*.nav
*.snm
*.vrb
#(e)ledmac/(e)ledpar
*.end
*.[1-9]
*.[1-9][0-9]
*.[1-9][0-9][0-9]
*.[1-9]R
*.[1-9][0-9]R
*.[1-9][0-9][0-9]R
*.eledsec[1-9]
*.eledsec[1-9]R
*.eledsec[1-9][0-9]
*.eledsec[1-9][0-9]R
*.eledsec[1-9][0-9][0-9]
*.eledsec[1-9][0-9][0-9]R
# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls
# gnuplottex
*-gnuplottex-*
# hyperref
*.brf
# knitr
*-concordance.tex
*.tikz
*-tikzDictionary
# listings
*.lol
# makeidx
*.idx
*.ilg
*.ind
*.ist
# minitoc
*.maf
*.mtc
*.mtc0
# minted
_minted*
*.pyg
# morewrites
*.mw
# nomencl
*.nlo
# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd
# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/
# todonotes
*.tdo
# xindy
*.xdy
# WinEdt
*.bak
*.sav
/tmp/
# idea
.idea/
Projektdokumentation.syntex(busy)

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>VorlageFachinformatiker</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>net.sourceforge.texlipse.builder.TexlipseBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>net.sourceforge.texlipse.builder.TexlipseNature</nature>
</natures>
</projectDescription>

View file

@ -0,0 +1,13 @@
#TeXlipse project settings
#Fri Jan 27 09:15:16 CET 2012
builderNum=2
outputDir=
makeIndSty=
bibrefDir=
outputFormat=pdf
tempDir=tmp
mainTexFile=Projektdokumentation.tex
outputFile=Projektdokumentation.pdf
langSpell=de
markDer=true
srcDir=

View file

@ -0,0 +1,23 @@
% !TEX root = Projektdokumentation.tex
% Es werden nur die Abkürzungen aufgelistet, die mit \ac definiert und auch benutzt wurden.
%
% \acro{VERSIS}{Versicherungsinformationssystem\acroextra{ (Bestandsführungssystem)}}
% Ergibt in der Liste: VERSIS Versicherungsinformationssystem (Bestandsführungssystem)
% Im Text aber: \ac{VERSIS} -> Versicherungsinformationssystem (VERSIS)
% Hinweis: allgemein bekannte Abkürzungen wie z.B. bzw. u.a. müssen nicht ins Abkürzungsverzeichnis aufgenommen werden
% Hinweis: allgemein bekannte IT-Begriffe wie Datenbank oder Programmiersprache müssen nicht erläutert werden,
% aber ggfs. Fachbegriffe aus der Domäne des Prüflings (z.B. Versicherung)
% Die Option (in den eckigen Klammern) enthält das längste Label oder
% einen Platzhalter der die Breite der linken Spalte bestimmt.
\begin{acronym}[WWWWW]
\acro{CI}{Continuous Integration}
\acro{CI/CD}{Continuous Integration/Continuous Deployment}
\acro{E2E}{End-to-End}
\acro{API}{Application Programming Interface}
\acro{JSON}{JavaScript Object Notation}
\acro{HTTP}{Hypertext Transfer Protocol}
\acro{JWT}{JSON Web Token}
\end{acronym}

Some files were not shown because too many files have changed in this diff Show more