Commit Graph

4175 Commits

Author SHA1 Message Date
Zurdi
d2d31b8a6d Merge pull request #1073 from rommapp/fix/fab-overlay
fix: fab overlay fixed
2024-08-08 17:59:02 +02:00
Zurdi
9405723716 fixed new version overlay 2024-08-08 16:36:16 +02:00
zurdi
fc5115923d fixed fab overlay 2024-08-08 13:54:26 +02:00
Georges-Antoine Assi
3df87d1f6b Merge pull request #1065 from rommapp/romm-1063
[ROMM-1063] Add Amiga CD32 to emulatorjs game list
2024-08-07 23:54:37 -04:00
Georges-Antoine Assi
46b85ecd96 [ROMM-1063] Add Amiga CD32 to emulatorjs game list 2024-08-07 22:38:28 -04:00
Michael Manganiello
eccd220f73 Merge pull request #1064 from rommapp/misc/improve-feed-schemas
misc: Improve typing for feed schemas
2024-08-07 23:38:15 -03:00
Michael Manganiello
95a66a182e misc: Improve typing for feed schemas
* Add typing for nested objects in Tinfoil and Webrcade feed schemas.
* Do not send Rom background and thumbnail, if not available.
* Correctly build URLs using `starlette` utils.
* Deprecate the `ROMM_HOST` setting, no longer needed.
* Fix FastAPI custom router to prefer routes without trailing slash.
* Fix Webrcade background URL pointing to gallery screenshot.
2024-08-07 22:56:16 -03:00
Georges-Antoine Assi
51ee99e29a Merge pull request #1060 from rommapp/drop-auth-user-pass
Drop ROMM_AUTH_USERNAME and ROMM_AUTH_PASSWORD env variables
2024-08-07 14:46:02 -04:00
Georges-Antoine Assi
cbeac18fea Drop ROMM_AUTH_USERNAME and ROMM_AUTH_PASSWORD env variables 2024-08-07 12:27:58 -04:00
Michael Manganiello
5e17efcb27 Merge pull request #1059 from rommapp/misc/backend-handle-trailing-slash
misc: Make backend handle URLs with trailing slash
2024-08-07 07:21:52 -03:00
Michael Manganiello
8abbae4c02 misc: Make backend handle URLs with trailing slash
According to multiple FastAPI discussions [1], FastAPI only includes a
built-in mechanism to redirect requests including a trailing slash, to
its variation without slash, using a `307` status code.

This can be an issue when certain clients do not send the same headers
on the redirected request.

This change adds a custom FastAPI `APIRouter`, that registers both route
path variations (with and without trailing slash), while only marking
the path without slash for being included in the OpenAPI schema.

[1] https://github.com/fastapi/fastapi/discussions/7298
2024-08-07 00:22:21 -03:00
Georges-Antoine Assi
76d679831e Merge pull request #1057 from rommapp/fix/csrf-token
Fix CSRF token issues
2024-08-06 19:18:21 -04:00
Zurdi
ada7f5f837 Merge branch 'master' into fix/csrf-token 2024-08-05 20:16:52 +02:00
Michael Manganiello
cbab9f681b Merge pull request #1058 from rommapp/fix/fastapi-redirections
fix: Backend URL redirection logic
2024-08-05 14:27:41 -03:00
Georges-Antoine Assi
d17cdd6875 hopefully actually fix csrf tokens 2024-08-05 13:13:25 -04:00
Georges-Antoine Assi
a53c0911d7 fix endpoint tests 2024-08-05 11:35:08 -04:00
Georges-Antoine Assi
805a688366 update vite config 2024-08-05 11:18:55 -04:00
Michael Manganiello
45aeaf3265 fix: Backend URL redirection logic
Fix FastAPI and nginx configuration, to make the application correctly
redirect URLs. This is specially useful when URLs ended with forward
slash are redirected to their stripped version.

Included changes:
* Stop removing the `/api` prefix in nginx rewrite rules, so FastAPI
  knows what's the original URL path being requested.
* Use `$http_host` in nginx, so FastAPI receives both the original host
  and port, to build the redirect URL (as `$host` does not include the
  port, if present).
* Make all FastAPI included routers know their prefix, to correctly
  route incoming requests.

This fix was found based on a report that redirects from URLs ended with
forward slash were not working [1].

[1] https://github.com/rommapp/romm/issues/1051#issuecomment-2269049762
2024-08-05 11:15:52 -03:00
zurdi
02cf0fd283 added autocompletion to login 2024-08-05 09:48:52 +02:00
zurdi
b9a68ad304 fix re-generate csrftoken when expired 2024-08-05 09:40:26 +02:00
Georges-Antoine Assi
9b4206a7b2 Merge pull request #1055 from rommapp/type-fix-additional-content
Add workflow that runs typecheck on PRs
2024-08-04 22:35:01 -04:00
Georges-Antoine Assi
ebe570d92d Fix to AdditionalContent types 2024-08-04 22:23:48 -04:00
Georges-Antoine Assi
7e52b50801 Merge pull request #1054 from rommapp/romm-1052
Added link to home button
2024-08-04 19:13:53 -04:00
Zurdi
32823af3e3 added right click to open in a new tab in home btn 2024-08-05 00:24:44 +02:00
Georges-Antoine Assi
b06b0f4f86 Merge pull request #1043 from rommapp/romm-1022
[ROMM-1022] Add button to show duplicates
2024-08-04 16:15:19 -04:00
Georges-Antoine Assi
ed96603ea0 Merge pull request #1040 from rommapp/romm-1019
[ROMM-1019] Clickable filter buttons on details view
2024-08-04 16:15:04 -04:00
Georges-Antoine Assi
6d6b96b8d6 Merge branch 'master' into romm-1019 2024-08-04 16:12:37 -04:00
Georges-Antoine Assi
6d366aabb4 Update frontend/src/components/Details/Info/GameInfo.vue
Co-authored-by: Zurdi <34356590+zurdi15@users.noreply.github.com>
2024-08-04 20:12:24 +00:00
Georges-Antoine Assi
f437bacad3 Merge pull request #1036 from rommapp/romm-1031
[ROMM-1031] Remove persistent overlay prevents back navigation
2024-08-04 16:11:14 -04:00
Zurdi
eba529bce2 Merge branch 'master' into romm-1019 2024-08-04 19:58:23 +02:00
Georges-Antoine Assi
ebd0c072d2 Merge pull request #1044 from rommapp/romm-1012
[ROMM-1012] Fix multi-file download in gakllery view
2024-08-03 19:52:22 -04:00
Georges-Antoine Assi
c77ca88436 try fix ignore generated 2024-08-02 17:10:45 -04:00
Georges-Antoine Assi
8cd4cf1fe6 pull sibling roms from backend 2024-08-02 16:37:04 -04:00
Georges-Antoine Assi
9f7058d95d Merge pull request #1048 from HellLord77/fix-typo
Fix tyo in feontend
2024-08-02 13:41:42 +00:00
HellLord
697723a7f3 Add missing space 2024-08-02 19:33:17 +06:00
Georges-Antoine Assi
072fc9e1ad Merge pull request #1046 from Casuallynoted/master
Fix incorrectly converted platform icons
2024-07-30 14:13:58 +00:00
Casuallynoted
1e58417dd4 Fix incorrectly converted platform icons
Hotfix for the previously submitted additional icons. Corrects low res/white background issue.
2024-07-30 05:15:30 +00:00
Georges-Antoine Assi
535cb5ad9d Merge pull request #1045 from rommapp/hotfix-related-games
Hotfix and link from related games
2024-07-29 15:34:41 +00:00
Georges-Antoine Assi
48bdfb965c Hotfix and link from related games 2024-07-28 23:30:50 -04:00
Georges-Antoine Assi
fce451a1be [ROMM-1012] Fix multi-file download in gakllery view 2024-07-28 20:57:54 -04:00
Georges-Antoine Assi
6941514ea9 Add button to show duplicates 2024-07-28 20:30:42 -04:00
Georges-Antoine Assi
05de165cd1 Merge pull request #1041 from rommapp/romm-1020
[ROMM-1020] Fix firmware pagination on mount
2024-07-29 00:25:08 +00:00
Georges-Antoine Assi
1e1d856486 Merge pull request #1042 from rommapp/romm-1018
[ROMM-1018] Fix scanning selected roms
2024-07-29 00:24:58 +00:00
Georges-Antoine Assi
29bb08e43c [ROMM-1018] Fix scanning selected roms 2024-07-28 20:13:44 -04:00
Georges-Antoine Assi
77ba874dd4 [ROMM-1020] Fix firmware pagination on mount 2024-07-28 19:46:30 -04:00
Georges-Antoine Assi
49296aab12 [ROMM-1019] Clickable filter btns on details view 2024-07-28 17:44:48 -04:00
Georges-Antoine Assi
352fd9529e Merge pull request #1038 from Casuallynoted/master
Additional platform icons again!
2024-07-28 15:20:03 +00:00
Casuallynoted
ebfd9dd94d Add files via upload 2024-07-28 05:33:17 +00:00
Casuallynoted
d13680744c Delete frontend/assets/platforms/palm-os.ico
I have better ideas of what to do with this one. Since with previous mobile platforms, I've had an example phone with the logo on the screen, I want to do that for Palm as well. May also come back at some point and do that for J2ME if I have time but I think with that one, the java logo works as a platform icon for now. Here, I'm less certain.
2024-07-28 05:31:40 +00:00
Casuallynoted
c34f147318 Additional icons, for software platfoms 2024-07-28 05:09:55 +00:00