Files
romm/frontend
Georges-Antoine Assi 85be36dc0b refactor(v2): extract a shared player shell
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>
2026-08-29 15:44:48 -04:00
..
2026-06-22 10:06:03 -04:00
2025-09-09 20:19:30 -04:00
2026-05-30 20:53:52 -04:00
2026-07-26 14:14:07 -04:00