Compare commits

...

78 Commits
v1.5.0 ... main

Author SHA1 Message Date
cc8f553d66 Merge pull request 'feat: add homepage ui and images' (!38) from feature/homepage-games-preview into main
All checks were successful
Release / Release (push) Successful in 34s
Reviewed-on: #38
Reviewed-by: We ball <jan@kjan.email>
Reviewed-by: Huy <ptran@noreply@simonis.lol>
2025-02-19 12:06:35 +00:00
Lea
428c33b000 formatted
All checks were successful
CI / eslint (pull_request) Successful in 1m26s
CI / prettier (pull_request) Successful in 1m12s
CI / test-build (pull_request) Successful in 1m57s
CI / Checkstyle Main (pull_request) Successful in 3m39s
2025-02-19 13:02:13 +01:00
Lea
09ccad479e added images for the games 2025-02-19 13:02:13 +01:00
Lea
a933f0b397 implemented better ui and pseudo data 2025-02-19 13:02:13 +01:00
b9ce80a28a Merge pull request 'feat: add user managment' (!32) from feat/user-managment into main
All checks were successful
Release / Release (push) Successful in 23s
Reviewed-on: #32
Reviewed-by: Huy <ptran@noreply@simonis.lol>
Reviewed-by: Hop In, I Have Puppies AND WiFi <jleibl@noreply@simonis.lol>
2025-02-19 11:57:30 +00:00
8303c906aa Merge pull request 'Add cache to other pipelines' (!36) from feature/custom-pipeline-images into main
All checks were successful
Release / Release (push) Successful in 1m34s
Reviewed-on: #36
Reviewed-by: Huy <ptran@noreply@simonis.lol>
2025-02-19 11:55:50 +00:00
219cbfca0e Merge pull request 'refactor(routes): change home route to lazy loading' (!37) from task/lazy-load-homepage into main
Some checks failed
Release / Release (push) Has been cancelled
Reviewed-on: #37
Reviewed-by: We ball <jan@kjan.email>
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
2025-02-19 11:55:12 +00:00
11c6634d6c
fix: build
All checks were successful
CI / eslint (pull_request) Successful in 1m38s
CI / prettier (pull_request) Successful in 1m29s
CI / Checkstyle Main (pull_request) Successful in 4m22s
CI / test-build (pull_request) Successful in 2m36s
2025-02-19 12:50:13 +01:00
356a599dd5
chore: remove unused Dockerfile from bunPipeline
All checks were successful
CI / eslint (pull_request) Successful in 1m26s
CI / prettier (pull_request) Successful in 1m34s
CI / Checkstyle Main (pull_request) Successful in 5m21s
CI / test-build (pull_request) Successful in 3m14s
2025-02-19 12:48:40 +01:00
0c7c2ae9fa
chore: remove obsolete Docker build workflow file
All checks were successful
CI / prettier (pull_request) Successful in 1m6s
CI / eslint (pull_request) Successful in 1m19s
CI / test-build (pull_request) Successful in 3m36s
CI / Checkstyle Main (pull_request) Successful in 4m56s
2025-02-19 12:48:03 +01:00
c75c62b396 Merge pull request 'Fix caching of pipeline' (!34) from fix/improve-checkstyle-pipeline into main
All checks were successful
Release / Release (push) Successful in 1m39s
Reviewed-on: #34
Reviewed-by: Hop In, I Have Puppies AND WiFi <jleibl@noreply@simonis.lol>
Reviewed-by: Huy <ptran@noreply@simonis.lol>
2025-02-19 11:47:50 +00:00
8547bd1fa3
ci: remove lint job from CI configuration
All checks were successful
CI / eslint (pull_request) Successful in 1m39s
CI / prettier (pull_request) Successful in 1m14s
CI / Checkstyle Main (pull_request) Successful in 3m55s
CI / test-build (pull_request) Successful in 2m3s
2025-02-19 12:36:22 +01:00
da047eef70
style: prettier
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 54s
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Failing after 41s
2025-02-19 12:31:07 +01:00
da50d19f9d
ci: update CI workflow to use Super-linter for linting
Some checks failed
CI / Lint (pull_request) Failing after 2m34s
CI / Checkstyle Main (pull_request) Successful in 58s
CI / eslint (pull_request) Successful in 22s
CI / prettier (pull_request) Successful in 18s
CI / test-build (pull_request) Successful in 42s
2025-02-19 12:30:07 +01:00
5cb08ca5f8
ci: update build command in CI workflow
Some checks failed
CI / Check if all files end in newline (pull_request) Failing after 1s
CI / Checkstyle Main (pull_request) Successful in 58s
CI / eslint (pull_request) Successful in 20s
CI / prettier (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 42s
2025-02-19 12:27:29 +01:00
8da1ff8acd
ci: update CI runner to vps-4 from ubuntu-latest
Some checks failed
CI / Check if all files end in newline (pull_request) Failing after 10s
CI / Checkstyle Main (pull_request) Successful in 57s
CI / eslint (pull_request) Successful in 20s
CI / prettier (pull_request) Successful in 16s
CI / test-build (pull_request) Failing after 20s
2025-02-19 12:24:55 +01:00
7bd06dee62
refactor(user): reorganize imports and code structure
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 55s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Failing after 20s
CI / test-build (pull_request) Failing after 42s
2025-02-19 12:23:45 +01:00
72f56928d4
ci: add linelint job to CI workflow
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 20s
CI / prettier (pull_request) Successful in 17s
CI / test-build (pull_request) Failing after 19s
CI / Check if all files end in newline (pull_request) Has been cancelled
2025-02-19 12:23:32 +01:00
6c025cc8d2
fix: lazy load login success component
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 59s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 43s
2025-02-19 12:18:12 +01:00
642f5727e5
ci: update build output directory in CI workflow
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 55s
CI / eslint (pull_request) Successful in 21s
CI / prettier (pull_request) Successful in 16s
CI / test-build (pull_request) Successful in 40s
2025-02-19 12:16:50 +01:00
8d4901601f
chore: adjust login success view
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 43s
2025-02-19 12:09:53 +01:00
355d1b0c06
ci: update frontend build process in CI workflow
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 56s
CI / prettier (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 44s
2025-02-19 12:09:22 +01:00
877b6f77b2
chore: move classes add balance fix routes
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 44s
2025-02-19 12:06:49 +01:00
0590a2f9ee
build(ci): add caching for frontend dependencies and dist
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 20s
CI / prettier (pull_request) Successful in 17s
CI / test-build (pull_request) Successful in 45s
2025-02-19 12:05:59 +01:00
ef8111cc7e
ci: update node_modules path in CI workflow config
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 39s
2025-02-19 12:01:14 +01:00
a091387c1c
fix: 500 when loggin in
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 1m0s
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 44s
2025-02-19 11:59:36 +01:00
2392dac519
ci: update path in CI workflow configuration
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 46s
2025-02-19 11:58:56 +01:00
fadedb0bcd
ci: Fix node_modules path in CI workflow configuration
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 44s
2025-02-19 11:57:08 +01:00
59263dca71
ci: update path for node_modules in CI workflow
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 49s
2025-02-19 11:54:35 +01:00
a19ddeed47
ci: update cache paths in CI configuration
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 47s
2025-02-19 11:50:07 +01:00
bd26ded681
ci: update CI workflow for bun installation and caching
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 45s
2025-02-19 11:45:20 +01:00
5afdbad461
refactor
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 59s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 44s
2025-02-19 11:43:53 +01:00
2326d41a96
satisfy quality tools 2025-02-19 11:43:53 +01:00
df9fa9f275
fix: fix some stuff 2025-02-19 11:43:53 +01:00
793f3f6834
feat: add user creation on login (wip) 2025-02-19 11:43:49 +01:00
c55fcd9ea0
ci: update CI workflow to install dependencies correctly
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 21s
CI / prettier (pull_request) Successful in 14s
CI / test-build (pull_request) Successful in 38s
2025-02-19 11:40:53 +01:00
7533f1139c
ci: update workflow trigger for bun.yml file
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 19s
CI / test-build (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
2025-02-19 11:38:18 +01:00
6fb3f2bef2
ci: remove time command from CI workflow script
All checks were successful
Build Docker Image / build (pull_request) Successful in 29s
CI / Checkstyle Main (pull_request) Successful in 1m1s
CI / eslint (pull_request) Successful in 22s
CI / prettier (pull_request) Successful in 15s
CI / test-build (pull_request) Successful in 37s
2025-02-19 11:36:51 +01:00
bb24af241c
ci: add timing to node_modules symlink creation step
Some checks failed
Build Docker Image / build (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Failing after 4s
2025-02-19 11:35:44 +01:00
c258f1014d
ci: update dependency installation to use symlink
Some checks failed
Build Docker Image / build (pull_request) Successful in 26s
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / eslint (pull_request) Successful in 17s
2025-02-19 11:30:20 +01:00
0b61ce11e1
build(ci): update container image for CI jobs
All checks were successful
Build Docker Image / build (pull_request) Successful in 27s
CI / Checkstyle Main (pull_request) Successful in 1m0s
CI / eslint (pull_request) Successful in 21s
CI / prettier (pull_request) Successful in 15s
CI / test-build (pull_request) Successful in 44s
2025-02-19 11:27:01 +01:00
876d174f8f
ci: update CI workflow to remove bun installation step
Some checks failed
Build Docker Image / build (pull_request) Successful in 27s
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Failing after 5s
CI / prettier (pull_request) Failing after 4s
CI / test-build (pull_request) Successful in 49s
2025-02-19 11:24:45 +01:00
c0e7f5f7f8
ci: add bun install to CI workflow for frontend setup
Some checks failed
Build Docker Image / build (pull_request) Successful in 27s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 45s
2025-02-19 11:21:29 +01:00
c7acd8271a
ci: update CI workflow to copy node_modules instead of bun
Some checks failed
Build Docker Image / build (pull_request) Successful in 27s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 44s
2025-02-19 11:19:48 +01:00
aaff4a543b
ci: update path in CI workflow for proper execution
Some checks failed
Build Docker Image / build (pull_request) Successful in 26s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 48s
2025-02-19 11:18:14 +01:00
82a3f4d195
ci: update CI workflow command to change directory first
Some checks failed
Build Docker Image / build (pull_request) Successful in 28s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 51s
2025-02-19 11:09:08 +01:00
483446cdd9
build: update Dockerfile to include CMD instruction 2025-02-19 11:08:43 +01:00
562a93bbf1
refactor(home): change HomeComponent to default export
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 54s
CI / eslint (pull_request) Successful in 22s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 42s
2025-02-19 11:07:46 +01:00
840d6b5bfd
refactor(routes): change home route to lazy loading
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 53s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Failing after 41s
2025-02-19 11:06:57 +01:00
36be142de1
ci: simplify command in CI workflow configuration
Some checks failed
Build Docker Image / build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Successful in 58s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 51s
2025-02-19 11:04:31 +01:00
50d0782e02
ci: update CI workflow for frontend directory listing
Some checks failed
Build Docker Image / build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Failing after 2s
2025-02-19 10:45:29 +01:00
4ce4f86419
ci: update checkout step in CI workflow to change dir
Some checks failed
CI / Checkstyle Main (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
Build Docker Image / build (pull_request) Successful in 26s
CI / test-build (pull_request) Successful in 52s
2025-02-19 10:44:04 +01:00
313950e998
ci: add command to list files in CI workflow
Some checks failed
Build Docker Image / build (pull_request) Successful in 28s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 52s
2025-02-19 10:42:43 +01:00
aa2bb187ce
ci: update CI container image for test-build job
Some checks failed
Build Docker Image / build (pull_request) Successful in 27s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Successful in 2m55s
2025-02-19 10:37:19 +01:00
c0ad17490e
build(Dockerfile): update Dockerfile for bun installation
Some checks failed
Build Docker Image / build (pull_request) Successful in 1m26s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
2025-02-19 10:34:55 +01:00
4c376f8375
build: update Dockerfile and workflow context path
Some checks failed
Build Docker Image / build (pull_request) Successful in 51s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
2025-02-19 10:33:12 +01:00
3433641025
ci: update paths in bun.yml for build triggers 2025-02-19 10:30:05 +01:00
9d8509731f
ci: update Docker password variable in workflow file
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m6s
CI / Checkstyle Main (pull_request) Successful in 55s
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 41s
2025-02-19 10:27:06 +01:00
ba776f0ec1
ci: update Docker login action to version 3
Some checks failed
Build Docker Image / build (pull_request) Failing after 48s
CI / Checkstyle Main (pull_request) Successful in 54s
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / eslint (pull_request) Has been cancelled
2025-02-19 10:25:16 +01:00
f8db9221a6
ci: update login-action reference in workflow file
Some checks failed
Build Docker Image / build (pull_request) Failing after 3s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
2025-02-19 10:24:36 +01:00
0d67c0e305
ci: add Docker.io login step to workflow configuration
Some checks failed
Build Docker Image / build (pull_request) Failing after 48s
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
2025-02-19 10:22:40 +01:00
586044a23d
chore: clean up Dockerfile by removing unused jobs section
Some checks failed
Build Docker Image / build (pull_request) Failing after 22s
CI / Checkstyle Main (pull_request) Successful in 54s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 40s
2025-02-19 10:18:38 +01:00
a50b9be463
ci: update runner to vps-4 in workflow configuration
Some checks failed
Build Docker Image / build (pull_request) Failing after 1m4s
CI / Checkstyle Main (pull_request) Successful in 54s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 41s
2025-02-19 10:16:43 +01:00
0d45d9659a
chore: rename bun-image.yml to bun.yml
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 18s
CI / test-build (pull_request) Successful in 41s
Build Docker Image / build (pull_request) Has been cancelled
2025-02-19 10:12:45 +01:00
ecdcea4994
ci: remove main branch restriction from workflow
Some checks failed
CI / eslint (pull_request) Has been cancelled
CI / prettier (pull_request) Has been cancelled
CI / test-build (pull_request) Has been cancelled
CI / Checkstyle Main (pull_request) Has been cancelled
2025-02-19 10:12:16 +01:00
a8a7d4296a
feat: add Dockerfile and CI workflow for image build
Some checks failed
CI / Checkstyle Main (pull_request) Successful in 52s
CI / eslint (pull_request) Successful in 22s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Has been cancelled
2025-02-19 10:11:18 +01:00
13245cdab6
ci: update CI workflow by removing unnecessary caching steps
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 43s
2025-02-19 09:54:41 +01:00
9d4fb96daf
ci: update tree command in CI workflow
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 1m1s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 43s
2025-02-19 09:52:09 +01:00
1bc2ca5f9a
ci: add tree command to CI workflow
Some checks failed
CI / Checkstyle Main (pull_request) Failing after 53s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 46s
2025-02-19 09:47:55 +01:00
44c7d8be57 Merge pull request 'navbar: update navbar text to German language' (!35) from task/translate-navbar into main
All checks were successful
Release / Release (push) Successful in 36s
Reviewed-on: #35
Reviewed-by: We ball <jan@kjan.email>
2025-02-19 08:44:56 +00:00
aa39a42df6
docs(navbar): update navbar text to German language
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 56s
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 42s
2025-02-19 09:40:14 +01:00
455ebdbe91
ci: add caching for Gradle build outputs
All checks were successful
CI / eslint (pull_request) Successful in 23s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 43s
CI / Checkstyle Main (pull_request) Successful in 1m1s
2025-02-19 09:36:57 +01:00
204b205b44
ci: add caching for Gradle dependencies in CI workflow
All checks were successful
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 21s
CI / test-build (pull_request) Successful in 42s
CI / Checkstyle Main (pull_request) Successful in 55s
2025-02-19 09:26:38 +01:00
3cd1f63dba Merge pull request 'chore(docker): remove version from docker-compose file' (!33) from task/adjust-docker-compose into main
All checks were successful
Release / Release (push) Successful in 41s
Reviewed-on: #33
Reviewed-by: We ball <jan@kjan.email>
2025-02-19 08:22:48 +00:00
1c5f5524fa
ci: remove caching step from CI workflow
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 2m28s
CI / eslint (pull_request) Successful in 24s
CI / prettier (pull_request) Successful in 19s
CI / test-build (pull_request) Successful in 43s
2025-02-19 09:20:43 +01:00
0868ef0776
chore(docker): remove version from docker-compose file
All checks were successful
CI / Checkstyle Main (pull_request) Successful in 7m43s
CI / eslint (pull_request) Successful in 25s
CI / prettier (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 45s
2025-02-19 09:07:08 +01:00
Huy
695a1073a9 Merge pull request 'fix: Remove material css' (!31) from chore/remove-material-styles into main
All checks were successful
Release / Release (push) Successful in 43s
Reviewed-on: #31
2025-02-19 07:25:08 +00:00
Phan Huy Tran
47ca56deb4 fix: Remove material css
All checks were successful
CI / prettier (pull_request) Successful in 17s
CI / eslint (pull_request) Successful in 20s
CI / test-build (pull_request) Successful in 27s
CI / Checkstyle Main (pull_request) Successful in 4m28s
2025-02-13 13:19:12 +01:00
32 changed files with 560 additions and 88 deletions

View File

@ -17,16 +17,15 @@ jobs:
with:
distribution: "temurin"
java-version: "22"
- uses: actions/cache@v3
working-directory: ./backend
- name: "Cache Gradle dependencies"
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
key: gradle-${{ runner.os }}-common
restore-keys: |
${{ runner.os }}-gradle-
gradle-${{ runner.os }}-
- name: "Prepare Gradle"
working-directory: ./backend
run: gradle clean
@ -47,6 +46,14 @@ jobs:
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- uses: actions/cache@v3
working-directory: ./frontend
with:
path: |
frontend/node_modules/
key: ${{ runner.os }}-bun-
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: |
cd frontend
@ -66,6 +73,14 @@ jobs:
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- uses: actions/cache@v3
working-directory: ./frontend
with:
path: |
frontend/node_modules/
key: ${{ runner.os }}-bun-
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: |
cd frontend
@ -85,6 +100,22 @@ jobs:
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- uses: actions/cache@v3
working-directory: ./frontend
with:
path: |
frontend/node_modules/
key: ${{ runner.os }}-bun-
restore-keys: |
${{ runner.os }}-bun-
- uses: actions/cache@v3
working-directory: ./frontend
with:
path: |
frontend/dist/
key: ${{ runner.os }}-dist-
restore-keys: |
${{ runner.os }}-dist-
- name: Install dependencies
run: |
cd frontend

View File

@ -0,0 +1,62 @@
package de.szut.casino.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;
import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@RestController
public class UserController {
@Autowired
private UserService userService;
@GetMapping("/user/{id}")
public ResponseEntity<?> getUser(@PathVariable String id) {
if (id == null || !userService.exists(id)) {
return ResponseEntity.notFound().build();
}
return ResponseEntity.ok(userService.getUser(id));
}
@PostMapping("/user")
public ResponseEntity<?> createUser(@RequestBody @Valid CreateUserDto userData) {
if (userService.exists(userData.getKeycloakId())) {
return this.redirect("/user/" + userData.getKeycloakId());
}
return ResponseEntity.ok(userService.createUser(userData));
}
@GetMapping("/user")
public ResponseEntity<GetUserDto> getCurrentUser(@RequestHeader("Authorization") String token) {
GetUserDto userData = userService.getCurrentUser(token);
if (userData == null) {
return ResponseEntity.notFound().build();
}
return ResponseEntity.ok(userData);
}
private ResponseEntity<Object> redirect(String route) {
HttpHeaders headers = new HttpHeaders();
headers.add("Location", route);
return new ResponseEntity<>(headers, HttpStatus.FOUND);
}
}

View File

@ -0,0 +1,30 @@
package de.szut.casino.user;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Setter
@Getter
@Entity
@NoArgsConstructor
public class UserEntity {
@Id
@GeneratedValue
private Long id;
@Column(unique = true)
private String keycloakId;
private String username;
private float balance;
public UserEntity(String keycloakId, String username, float balance) {
this.keycloakId = keycloakId;
this.username = username;
this.balance = balance;
}
}

View File

@ -0,0 +1,17 @@
package de.szut.casino.user;
import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto;
import org.springframework.stereotype.Service;
@Service
public class UserMappingService {
public GetUserDto mapToGetUserDto(UserEntity user) {
return new GetUserDto(user.getKeycloakId(), user.getUsername(), user.getBalance());
}
public UserEntity mapToUserEntity(CreateUserDto createUserDto) {
return new UserEntity(createUserDto.getKeycloakId(), createUserDto.getUsername(), 0);
}
}

View File

@ -0,0 +1,15 @@
package de.szut.casino.user;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public interface UserRepository extends JpaRepository<UserEntity, Long> {
@Query("SELECT u FROM UserEntity u WHERE u.keycloakId = ?1")
Optional<UserEntity> findOneByKeycloakId(String keycloakId);
boolean existsByKeycloakId(String keycloakId);
}

View File

@ -0,0 +1,64 @@
package de.szut.casino.user;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import de.szut.casino.user.dto.CreateUserDto;
import de.szut.casino.user.dto.GetUserDto;
import de.szut.casino.user.dto.KeycloakUserDto;
@Service
public class UserService {
@Autowired
private UserRepository userRepository;
@Autowired
private RestTemplate http;
@Autowired
private UserMappingService mappingService;
public UserEntity createUser(CreateUserDto createUserDto) {
UserEntity user = mappingService.mapToUserEntity(createUserDto);
userRepository.save(user);
return user;
}
public GetUserDto getUser(String keycloakId) {
Optional<UserEntity> user = this.userRepository.findOneByKeycloakId(keycloakId);
return user.map(userEntity -> mappingService.mapToGetUserDto(userEntity)).orElse(null);
}
public GetUserDto getCurrentUser(String token) {
KeycloakUserDto userData = getKeycloakUserInfo(token);
if (userData == null) {
return null;
}
Optional<UserEntity> user = this.userRepository.findOneByKeycloakId(userData.getSub());
return user.map(userEntity -> mappingService.mapToGetUserDto(userEntity)).orElse(null);
}
private KeycloakUserDto getKeycloakUserInfo(String token) {
HttpHeaders headers = new HttpHeaders();
headers.set("Authorization", token);
ResponseEntity<KeycloakUserDto> response = this.http.exchange("http://localhost:9090/realms/LF12/protocol/openid-connect/userinfo", HttpMethod.GET, new HttpEntity<>(headers), KeycloakUserDto.class);
return response.getBody();
}
public boolean exists(String keycloakId) {
return userRepository.existsByKeycloakId(keycloakId);
}
}

View File

@ -0,0 +1,15 @@
package de.szut.casino.user.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class CreateUserDto {
private String keycloakId;
private String username;
}

View File

@ -0,0 +1,16 @@
package de.szut.casino.user.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class GetUserDto {
private String keycloakId;
private String username;
private float balance;
}

View File

@ -0,0 +1,15 @@
package de.szut.casino.user.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class KeycloakUserDto {
private String sub;
private String preferred_username;
}

View File

@ -1,5 +1,3 @@
version: '3'
volumes:
keycloak_data:
postgres_data_keycloak_db:

View File

@ -24,7 +24,6 @@
}
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css"
],
"scripts": []
@ -79,7 +78,6 @@
}
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"src/styles.css"
],
"scripts": []

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

BIN
frontend/public/plinko.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
frontend/public/poker.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
frontend/public/slots.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

View File

@ -27,7 +27,7 @@ export const initializeKeycloak = (keycloak: KeycloakService) => async () =>
onLoad: 'check-sso',
silentCheckSsoRedirectUri: window.location.origin + '/silent-check-sso.html',
checkLoginIframe: false,
redirectUri: 'http://localhost:4200',
redirectUri: window.location.origin + '/',
},
});

View File

@ -1,6 +1,5 @@
import { Routes } from '@angular/router';
import { LandingComponent } from './feature/landing/landing.component';
import { HomeComponent } from './feature/home/home.component';
import { authGuard } from './auth.guard';
export const routes: Routes = [
@ -8,9 +7,13 @@ export const routes: Routes = [
path: '',
component: LandingComponent,
},
{
path: 'login/success',
loadComponent: () => import('./feature/login-success/login-success.component'),
},
{
path: 'home',
component: HomeComponent,
loadComponent: () => import('./feature/home/home.component'),
canActivate: [authGuard],
},
];

View File

@ -1,23 +1,16 @@
import { ActivatedRouteSnapshot, CanActivateFn, RouterStateSnapshot } from '@angular/router';
import { CanActivateFn, Router } from '@angular/router';
import { inject } from '@angular/core';
import { KeycloakService } from 'keycloak-angular';
export const authGuard: CanActivateFn = async (
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot
) => {
export const authGuard: CanActivateFn = async () => {
const keycloakService = inject(KeycloakService);
const isLoggedIn = keycloakService.isLoggedIn();
const router = inject(Router);
if (isLoggedIn) {
if (keycloakService.isLoggedIn()) {
return true;
}
const baseurl = window.location.origin;
keycloakService.login({
redirectUri: `${baseurl}${state.url}`,
});
router.navigate(['']);
return false;
};

View File

@ -1,19 +1,91 @@
<app-navbar></app-navbar>
<div class="container mx-auto px-4 py-6 space-y-8">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-4"></div>
</div>
<div class="grid grid-cols-3">
<div class="w-1/3 h-1/4">
<p>Spiel Vorschau</p>
<p>Spiel Name</p>
<button type="button" class="btn-primary">Jetzt spielen</button>
</div>
<div class="w-1/3 h-1/4">
<p>Spiel Vorschau</p>
<p>Spiel Name</p>
<button type="button" class="btn-primary">Jetzt spielen</button>
</div>
<div class="w-1/3 h-1/4">
<p>Spiel Vorschau</p>
<p>Spiel Name</p>
<button type="button" class="btn-primary">Jetzt spielen</button>
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<div class="lg:col-span-3">
<div class="flex justify-between items-center mb-6">
<h3 class="section-heading text-2xl">Beliebte Spiele</h3>
<div class="flex space-x-2">
<button class="nav-button left-0">
<span class="material-icons">chevron_left</span>
</button>
<button class="nav-button right-0">
<span class="material-icons">chevron_right</span>
</button>
</div>
</div>
<div class="slider-container">
<div class="slider-grid">
<div class="card group" *ngFor="let game of featuredGames">
<div class="relative">
<img [src]="game.image" [alt]="game.name" class="w-full aspect-[4/3] object-cover" />
<div
class="absolute inset-0 bg-gradient-to-t from-deep-blue/90 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"
>
<div class="absolute bottom-4 left-4 right-4">
<h4 class="game-heading">{{ game.name }}</h4>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mt-8">
<h3 class="section-heading text-2xl mb-6">Alle Spiele</h3>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4">
<div class="card group" *ngFor="let game of allGames">
<div class="relative">
<img [src]="game.image" [alt]="game.name" class="w-full aspect-[4/3] object-cover" />
<div
class="absolute inset-0 bg-gradient-to-t from-deep-blue/90 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"
>
<div class="absolute bottom-4 left-4 right-4">
<h4 class="game-heading">{{ game.name }}</h4>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</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="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded">
Transaktionen
</button>
<button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded">
Kontoeinstellungen
</button>
</div>
</div>
<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 recentTransactions"
>
<div>
<p class="text-sm font-medium">{{ transaction.type }}</p>
<p class="text-xs text-text-secondary">{{ transaction.date }}</p>
</div>
<span [class]="transaction.amount > 0 ? 'text-emerald' : 'text-accent-red'">
{{ transaction.amount | currency: 'EUR' }}
</span>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -2,19 +2,93 @@ import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { KeycloakService } from 'keycloak-angular';
import { MatDialog } from '@angular/material/dialog';
import { DepositComponent } from '../deposit/deposit.component';
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
import { CurrencyPipe, NgFor } from '@angular/common';
interface Game {
id: string;
name: string;
image: string;
}
interface Transaction {
id: string;
type: string;
amount: number;
date: string;
}
@Component({
selector: 'app-homepage',
standalone: true,
imports: [NavbarComponent],
imports: [NavbarComponent, CurrencyPipe, NgFor],
templateUrl: './home.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class HomeComponent {
export default class HomeComponent {
private keycloakService: KeycloakService = inject(KeycloakService);
public dialog: MatDialog = inject(MatDialog);
userAvatar = '/assets/images/default-avatar.png';
username = this.keycloakService.getUsername();
vipLevel = 1;
balance = 1000.0;
featuredGames: Game[] = [
{
id: '1',
name: 'Poker',
image: '/poker.webp',
},
{
id: '2',
name: 'Blackjack',
image: '/blackjack.webp',
},
{
id: '3',
name: 'Slots',
image: '/slots.webp',
},
{
id: '4',
name: 'Plinko',
image: '/plinko.webp',
},
{
id: '5',
name: 'Liars Dice',
image: '/liars-dice.webp',
},
{
id: '6',
name: 'Lootboxen',
image: '/lootbox.webp',
},
];
allGames: Game[] = [...this.featuredGames];
recentTransactions: Transaction[] = [
{
id: '1',
type: 'Deposit',
amount: 100.0,
date: '2024-03-20',
},
{
id: '2',
type: 'Withdrawal',
amount: -50.0,
date: '2024-03-19',
},
{
id: '3',
type: 'Bonus',
amount: 25.0,
date: '2024-03-18',
},
];
public logout() {
const baseUrl = window.location.origin;

View File

@ -1,10 +1,10 @@
<app-navbar></app-navbar>
<div class="min-h-screen bg-deep-blue !text-text-primary">
<div class="min-h-screen bg-deep-blue text-text-primary">
<div class="container mx-auto px-4 py-8 sm:py-12">
<div class="max-w-5xl mx-auto">
<div class="!text-center mb-12 sm:mb-16">
<h1 class="!text-3xl sm:!text-4xl lg:!text-5xl section-heading mb-2 sm:mb-3">
<div class="text-center mb-12 sm:mb-16">
<h1 class="text-3xl sm:text-4xl lg:text-5xl section-heading mb-2 sm:mb-3">
Willkommensbonus
</h1>
<div class="welcome-bonus">200% bis zu 500€</div>
@ -16,7 +16,7 @@
</div>
<div class="relative mb-16">
<h2 class="!text-xl sm:!text-2xl section-heading mb-4 sm:mb-6">Beliebte Spiele</h2>
<h2 class="text-xl sm:text-2xl section-heading mb-4 sm:mb-6">Beliebte Spiele</h2>
<div class="relative group">
<div class="overflow-hidden rounded-lg">
<div
@ -26,21 +26,21 @@
<div class="slider-grid">
<div class="card">
<div class="game-card-content">
<h3 class="game-heading">Slots</h3>
<h3 class="game-heading-sm">Slots</h3>
<p class="game-text">Klassische Spielautomaten</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</div>
<div class="card">
<div class="game-card-content">
<h3 class="game-heading">Plinko</h3>
<h3 class="game-heading-sm">Plinko</h3>
<p class="game-text">Spannendes Geschicklichkeitsspiel</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</div>
<div class="hidden lg:block card">
<div class="game-card-content">
<h3 class="game-heading">Blackjack</h3>
<h3 class="game-heading-sm">Blackjack</h3>
<p class="game-text">Klassisches Kartenspiel</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
@ -50,21 +50,21 @@
<div class="slider-grid">
<div class="card">
<div class="game-card-content">
<h3 class="game-heading">Poker</h3>
<h3 class="game-heading-sm">Poker</h3>
<p class="game-text">Texas Hold'em & mehr</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</div>
<div class="card">
<div class="game-card-content">
<h3 class="game-heading">Liars Dice</h3>
<h3 class="game-heading-sm">Liars Dice</h3>
<p class="game-text">Würfelspiel mit Strategie</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>
</div>
<div class="hidden lg:block card">
<div class="game-card-content">
<h3 class="game-heading">Lootboxen</h3>
<h3 class="game-heading-sm">Lootboxen</h3>
<p class="game-text">Überraschungskisten</p>
<button class="button-base w-full py-2">Jetzt Spielen</button>
</div>

View File

@ -0,0 +1 @@
<p>Logging in...</p>

View File

@ -0,0 +1,26 @@
import { ChangeDetectionStrategy, Component, inject, OnInit } from '@angular/core';
import { UserService } from '../../service/user.service';
import { KeycloakService } from 'keycloak-angular';
import { Router } from '@angular/router';
@Component({
selector: 'app-login-success',
standalone: true,
imports: [],
templateUrl: './login-success.component.html',
styleUrl: './login-success.component.css',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export default class LoginSuccessComponent implements OnInit {
private userService: UserService = inject(UserService);
private keycloakService: KeycloakService = inject(KeycloakService);
private router: Router = inject(Router);
async ngOnInit() {
const userProfile = await this.keycloakService.loadUserProfile();
const user = await this.userService.getOrCreateUser(userProfile);
sessionStorage.setItem('user', JSON.stringify(user));
this.router.navigate(['']);
}
}

View File

@ -0,0 +1,5 @@
export interface User {
keycloakId: string;
username: string;
balance: number;
}

View File

@ -0,0 +1,38 @@
import { inject, Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { KeycloakProfile } from 'keycloak-js';
import { catchError, EMPTY, Observable } from 'rxjs';
import { User } from '../model/User';
@Injectable({
providedIn: 'root',
})
export class UserService {
private http: HttpClient = inject(HttpClient);
public getUser(id: string): Observable<User | null> {
return this.http.get<User | null>(`/backend/user/${id}`).pipe(catchError(() => EMPTY));
}
public createUser(id: string, username: string): Observable<User> {
return this.http.post<User>('/backend/user', {
keycloakId: id,
username: username,
});
}
public async getOrCreateUser(userProfile: KeycloakProfile) {
if (userProfile.id == null) {
return;
}
return await this.getUser(userProfile.id)
.toPromise()
.then(async (user) => {
if (user) {
return user;
}
return await this.createUser(userProfile.id ?? '', userProfile.username ?? '').toPromise();
});
}
}

View File

@ -6,16 +6,16 @@
<span>Trustworthy Casino</span>
</a>
<div class="hidden md:flex items-center space-x-1">
<a routerLink="/games" class="nav-link">Games</a>
<a routerLink="/games" class="nav-link">Spiele</a>
</div>
</div>
<div class="hidden md:flex items-center space-x-4">
@if (!isLoggedIn) {
<button (click)="login()" class="button-base px-4 py-1.5">Login</button>
<button (click)="login()" class="button-base px-4 py-1.5">Anmelden</button>
}
@if (isLoggedIn) {
<button (click)="logout()" class="button-base px-4 py-1.5">Logout</button>
<button (click)="logout()" class="button-base px-4 py-1.5">Abmelden</button>
}
</div>
@ -55,13 +55,13 @@
<div [class]="isMenuOpen ? 'block' : 'hidden'" class="md:hidden">
<div class="nav-mobile-menu">
<a routerLink="/games" class="nav-mobile-link">Games</a>
<a routerLink="/games" class="nav-mobile-link">Spiele</a>
<div class="pt-2 space-y-2">
@if (!isLoggedIn) {
<button (click)="login()" class="button-base w-full py-1.5">Login</button>
<button (click)="login()" class="button-base w-full py-1.5">Anmelden</button>
}
@if (isLoggedIn) {
<button (click)="logout()" class="button-base w-full py-1.5">Logout</button>
<button (click)="logout()" class="button-base w-full py-1.5">Abmelden</button>
}
</div>
</div>

View File

@ -18,7 +18,7 @@ export class NavbarComponent {
login() {
try {
const baseUrl = window.location.origin;
this.keycloakService.login({ redirectUri: `${baseUrl}/home` });
this.keycloakService.login({ redirectUri: `${baseUrl}/login/success` });
} catch (error) {
console.error('Login failed:', error);
}

View File

@ -6,13 +6,8 @@
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
</head>
<body class="mat-typography">
<body>
<app-root></app-root>
</body>
</html>

View File

@ -19,12 +19,12 @@
}
body {
@apply !bg-deep-blue !text-text-primary h-full;
@apply bg-deep-blue text-text-primary h-full;
}
button,
a {
@apply cursor-pointer active:scale-95 !text-text-primary transition-all duration-200;
@apply cursor-pointer active:scale-95 text-text-primary transition-all duration-200;
}
.card {
@ -32,7 +32,7 @@ a {
}
.button-base {
@apply bg-emerald hover:bg-emerald-dark !text-text-primary transition-all duration-300 active:scale-95 rounded;
@apply bg-emerald hover:bg-emerald-dark text-text-primary transition-all duration-300 active:scale-95 rounded;
}
.game-card-content {
@ -40,7 +40,7 @@ a {
}
.nav-button {
@apply hidden lg:block absolute top-1/2 -translate-y-1/2 bg-deep-blue-contrast hover:bg-deep-blue-contrast/90 !text-text-primary p-3 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 shadow-lg hover:scale-110;
@apply hidden lg:block absolute top-1/2 -translate-y-1/2 bg-deep-blue-contrast hover:bg-deep-blue-contrast/90 text-text-primary p-3 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 shadow-lg hover:scale-110;
}
.slider-container {
@ -52,47 +52,51 @@ a {
}
.welcome-bonus {
@apply !text-4xl sm:!text-5xl lg:!text-7xl !font-extrabold !text-emerald-light mb-3 sm:mb-4;
@apply text-4xl sm:text-5xl lg:text-7xl font-extrabold text-emerald-light mb-3 sm:mb-4;
}
.bonus-description {
@apply !text-text-secondary !text-base sm:!text-lg mb-6 sm:mb-8;
@apply text-text-secondary text-base sm:text-lg mb-6 sm:mb-8;
}
.section-heading {
@apply !font-bold !text-text-primary;
@apply font-bold text-text-primary;
}
.game-heading {
@apply !font-bold !text-text-primary !text-sm mb-2;
.game-heading-sm {
@apply font-bold text-text-primary text-sm mb-2;
}
.game-heading-xl {
@apply font-bold text-text-primary text-xl mb-2;
}
.game-text {
@apply !text-text-secondary !text-sm mb-4;
@apply text-text-secondary text-sm mb-4;
}
.stat-container {
@apply bg-deep-blue-contrast rounded-lg shadow-lg p-4 sm:p-6 !text-center;
@apply bg-deep-blue-contrast rounded-lg shadow-lg p-4 sm:p-6 text-center;
}
.stat-number {
@apply !text-xl sm:!text-2xl !font-bold !text-emerald;
@apply text-xl sm:text-2xl font-bold text-emerald;
}
.stat-text {
@apply !text-text-secondary !text-sm;
@apply text-text-secondary text-sm;
}
.nav-brand {
@apply flex items-center !text-text-primary !text-xl !font-semibold;
@apply flex items-center text-text-primary text-xl font-semibold;
}
.nav-link {
@apply px-3 py-2 rounded-md !font-normal !text-sm !text-text-secondary hover:!text-text-primary hover:bg-deep-blue-contrast transition-all duration-200;
@apply px-3 py-2 rounded-md font-normal text-sm text-text-secondary hover:text-text-primary hover:bg-deep-blue-contrast transition-all duration-200;
}
.nav-toggle {
@apply !text-text-secondary hover:!text-text-primary transition-colors duration-200;
@apply text-text-secondary hover:text-text-primary transition-colors duration-200;
}
.nav-mobile-menu {
@ -100,7 +104,7 @@ a {
}
.nav-mobile-link {
@apply block px-3 py-2 rounded-md !text-sm !text-text-secondary hover:!text-text-primary hover:bg-deep-blue-light transition-all duration-200;
@apply block px-3 py-2 rounded-md text-sm text-text-secondary hover:text-text-primary hover:bg-deep-blue-light transition-all duration-200;
}
.footer-section {
@ -108,11 +112,11 @@ a {
}
.footer-heading {
@apply !text-text-primary !text-sm !font-semibold mb-4;
@apply text-text-primary text-sm font-semibold mb-4;
}
.footer-link {
@apply !text-text-secondary hover:!text-text-primary !text-sm transition-all duration-200;
@apply text-text-secondary hover:text-text-primary text-sm transition-all duration-200;
}
.footer-payment-method {
@ -120,19 +124,19 @@ a {
}
.footer-payment-icon {
@apply !text-text-secondary !text-lg;
@apply text-text-secondary text-lg;
}
.footer-payment-text {
@apply !text-text-secondary !text-xs !whitespace-nowrap;
@apply text-text-secondary text-xs whitespace-nowrap;
}
.footer-copyright {
@apply !text-text-secondary !text-sm;
@apply text-text-secondary text-sm;
}
.footer-disclaimer {
@apply !text-xs;
@apply text-xs;
}
.mat-mdc-dialog-container {