mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
EmulatorJS.vue and Ruffle.vue each carry their own copy of the block every v2
player opens with: the synchronous hero seeding, title, platform label and
background-art watch. Ruffle additionally hand-rolls the cover column,
settings card, back buttons and loading spinner that any simple player needs.
Extract two seams:
* usePlayerHero — the seed/hero/title/platform-label block plus the
background-art watch, adopted by both players. The caller keeps ownership
of the `rom` ref because EmulatorJS needs a deep one for the save and
state lists it mutates.
* PlayerShell — the cover column, settings card, play and back buttons, the
full-bleed running stage and the loading state, with `settings`, `stage`
and `brand` slots. Ruffle keeps only its colour picker, brand strip and
stage. EmulatorJS deliberately opts out: its hero sits inside a card with
an alt-art glow and it lays out three panels on its own breakpoints, so it
takes the composable alone.
Stream.vue is left alone: its label comes from the streaming container, its
background art clears while playing, and it has its own back route.
No intended behaviour change. Ruffle's hand-rolled loading spinner is now
RSpinner, matching the other players.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>