Commit Graph

7185 Commits

Author SHA1 Message Date
Georges-Antoine Assi
5cc5227f8e define expost isEmulationSupported from playbtn 2025-09-03 18:18:59 -04:00
Georges-Antoine Assi
fe3fff89da Merge branch 'master' into misc/play-btn-component 2025-09-03 18:00:12 -04:00
Georges-Antoine Assi
a83c4c445e Merge pull request #2366 from rommapp/upload-dropzone
Use dropzone and add button in upload modal
2025-09-03 16:56:18 -05:00
Georges-Antoine Assi
afcb1fb35b Merge pull request #2369 from rommapp/romm-2342
[ROMM-2342] Fix single roms display on postgres
2025-09-03 16:55:28 -05:00
Georges-Antoine Assi
5d2daf7357 move into a function 2025-09-03 17:51:44 -04:00
Georges-Antoine Assi
8a29918ed5 Merge pull request #2368 from rommapp/use-template-ref
Use modern useTemplateRef hook
2025-09-03 16:34:51 -05:00
Georges-Antoine Assi
bacc8d7bf8 self cleanup from review 2025-09-03 17:27:15 -04:00
Georges-Antoine Assi
33ee8d3a20 [ROMM-2342] Fix single roms display on postgres 2025-09-03 17:06:51 -04:00
Georges-Antoine Assi
f06e02df20 Use modern useTemplateRef hook 2025-09-03 14:04:29 -04:00
Georges-Antoine Assi
fe0f58c944 Merge pull request #2367 from rommapp/vueuse-window-scroll
Replace window scroll listeners with reactive useWindowScroll
2025-09-03 10:54:16 -05:00
Georges-Antoine Assi
d8bc739f68 Replace window scroll listeners with reactive useWindowScroll 2025-09-03 11:18:24 -04:00
Georges-Antoine Assi
c649660b06 Merge branch 'master' into upload-dropzone 2025-09-03 10:29:38 -04:00
Georges-Antoine Assi
b83effba1d Merge pull request #2361 from rommapp/import-order-prettier
Set import order in prettierrc
2025-09-03 09:27:00 -05:00
Georges-Antoine Assi
dfd6bd2bc9 Run formatter on all vue imports 2025-09-03 10:18:08 -04:00
Georges-Antoine Assi
9291080cba Merge branch 'master' into import-order-prettier 2025-09-03 10:15:10 -04:00
Georges-Antoine Assi
1db9d6eae8 Use dropzone and add button in upload modal 2025-09-03 10:14:48 -04:00
Georges-Antoine Assi
e556a0f079 Merge pull request #2365 from rommapp/vueuse-activeelement
Replace activeElement with type exact useActiveElement
2025-09-03 08:24:14 -05:00
Georges-Antoine Assi
92d51fc54d Update comments 2025-09-03 09:20:14 -04:00
Georges-Antoine Assi
ed3edcdfc4 Replace activeElement with type exact useActiveElement 2025-09-03 09:17:42 -04:00
Georges-Antoine Assi
8adea5074a Merge pull request #2360 from rommapp/romm-2153
Load core options from config.yml
2025-09-03 08:05:10 -05:00
Georges-Antoine Assi
08e6df81b2 Merge branch 'master' into romm-2153 2025-09-03 09:01:16 -04:00
Georges-Antoine Assi
0aa0242248 Merge pull request #2362 from rommapp/vueuse-localstorage
Replace usage of localStorage with vuewuse useLocalStorage
2025-09-03 07:57:59 -05:00
Georges-Antoine Assi
b372d00176 more simple cleanup 2025-09-03 08:54:32 -04:00
Georges-Antoine Assi
62f1ca65cf cleanup and self review 2025-09-03 08:48:41 -04:00
Georges-Antoine Assi
cc8f574e00 Replace usage of localStorage with vuewuse useLocalStorage 2025-09-02 23:39:01 -04:00
Georges-Antoine Assi
ebaa791a7b set import order in prettierrc 2025-09-02 11:18:13 -04:00
Georges-Antoine Assi
b6c8508e18 fix batocera psx bind 2025-09-02 10:12:38 -04:00
Georges-Antoine Assi
870cf10037 fix core controls order 2025-09-02 10:10:39 -04:00
Georges-Antoine Assi
bb004fce6c fix tests 2025-09-02 09:40:43 -04:00
Georges-Antoine Assi
9d1b9a7ca3 Merge branch 'master' into romm-2153 2025-09-02 09:25:45 -04:00
Georges-Antoine Assi
4b86ca42aa add to console play 2025-09-02 09:17:04 -04:00
Georges-Antoine Assi
d760a2923e change options to settings 2025-09-02 09:10:32 -04:00
Georges-Antoine Assi
949ec85266 improve parsing default controls 2025-09-02 09:07:21 -04:00
Georges-Antoine Assi
e42acbfafc add debug and controls 2025-09-02 08:38:11 -04:00
Michael Manganiello
3a19ecf0fb Merge pull request #2358 from rommapp/misc/prettier-sort-imports
misc: Add prettier plugin to sort imports
2025-09-02 00:32:59 -03:00
Michael Manganiello
c02e9fdb88 misc: Apply import sorting 2025-09-02 00:22:51 -03:00
Michael Manganiello
53da2cfcf7 misc: Add prettier plugin to sort imports
Automate import sorting in frontend code using Prettier plugin, within
Trunk setup.
2025-09-02 00:21:24 -03:00
Georges-Antoine Assi
147a94c406 Load core options from config.yml 2025-09-01 21:16:37 -04:00
Georges-Antoine Assi
aca8ffc4f5 Merge pull request #2359 from rommapp/noload-plugins-mdeditor
Avoid loading external plugins for mdeditor
2025-09-01 18:34:38 -05:00
Georges-Antoine Assi
8706e33ed6 Avoid loading external plugins for mdeditor 2025-09-01 19:23:43 -04:00
Georges-Antoine Assi
aac7352688 Merge pull request #2353 from mazkolain/emulatorjs-custom-exit-emulation
Replace the default exit emulation button with a custom one
2025-09-01 16:52:38 -05:00
Georges-Antoine Assi
33108a6cf4 run trunk 2025-09-01 17:16:38 -04:00
Georges-Antoine Assi
4d962ea02a Merge pull request #2330 from rommapp/jump-prev-next-game
Jump to previous/next game
2025-09-01 16:15:22 -05:00
Georges-Antoine Assi
8f1e3f638c remove the global listener 2025-09-01 16:58:23 -04:00
Georges-Antoine Assi
6bdfaa7784 Merge branch 'master' into jump-prev-next-game 2025-09-01 16:42:39 -04:00
Michael Manganiello
c0b6cd15c4 misc: Add PlayBtn component to unify button logic
The Play button logic was duplicated in three different places,
including when to run either EmulatorJS or Ruffle.

This change centralizes that logic in a new `PlayBtn` component, which
internally decides which player to use, and binds to any arguments
passed to it.

Now all three places also consider platform versions when checking
for emulation support.
2025-09-01 11:29:59 -03:00
Michael Manganiello
cd5b19b5bf Merge pull request #2356 from rommapp/feat/emulatorjs-nginx-headers
feat: Add COEP and COOP headers for EmulatorJS within Nginx config
2025-09-01 00:28:11 -03:00
Michael Manganiello
8c52b7828b feat: Add COEP and COOP headers for EmulatorJS within Nginx config
The COEP (Cross-Origin Embedder Policy) and COOP (Cross-Origin Opener
Policy) headers are needed by EmulatorJS to use the `SharedArrayBuffer`
feature, and enable multi-threaded cores.

These headers are only being set by Nginx for responses to requests
made to the EmulatorJS player path. This is because cross-origin
isolation breaks other features in the application (such as YouTube
embeds), so we only want to enable it for the EmulatorJS player.

It's important to mention that this change does not work when `DEV_MODE`
is set, as we would need Vite server to also set these headers in that
case. This could be implemented separately, if needed.

These changes are not enough to enable multi-threaded cores in the
frontend. Because our application is a SPA, we also need to ensure
that navigation to the EmulatorJS player path results in a full page
reload, so that the cross-origin isolation can be applied. This will be
handled in a separate PR.
2025-08-31 21:43:32 -03:00
Michael Manganiello
568a989980 Merge pull request #2352 from rommapp/feat/task-sync-retroachievements-progress
feat: Add scheduled task to sync RetroAchievements progress
2025-08-31 16:21:46 -03:00
Michael Manganiello
a31a8504c2 feat: Add scheduled task to sync RetroAchievements progress
Add a new scheduled task that syncs RetroAchievements progress for all
users with a RetroAchievements username.

Environment variables:
- `ENABLE_SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC`: Enable or disable
  the task (default: `false`)
- `SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC_CRON`: Cron string to
  schedule the task (default: "0 4 * * *" - daily at 4 AM)
2025-08-31 01:57:26 -03:00