# archived/

Pre-`webapp/` artefacts retained for reference and rollback.

## scenes/
The seven hand-authored HTML scene overlays that lived at the repo root
before the Laravel migration:

- `landing/`   — "PLEASE STAND BY" with telemetry rotator
- `loading/`   — project-load terminal + countdown + manifest
- `game/`      — game HUD with camera-frame OBS-WS sync
- `desktop/`   — desktop HUD (camera + screen frames)
- `goodbye/`   — sign-off terminal + "OFFLINE FOR" counter
- `music/`     — legacy browser-side music daemon (HTML5 `<audio>`)
- `music-box/` — full HUD, widget, cover, and nc variant

Each `index.html` is a self-contained file with inline CSS+JS. The
corresponding Blade view lives in
`webapp/resources/views/overlays/<scene>.blade.php` (and `music/box.blade.php`,
`music/widget.blade.php`, `music/cover.blade.php`, `music/nc.blade.php`,
`music/daemon.blade.php` for the music sub-tree).

## scripts/
Bash helpers that wrote `window.__X` global JS files. Replaced by Artisan:

| Old                       | New                                |
|---------------------------|------------------------------------|
| `scripts/setup.sh`        | `php artisan rig:setup`            |
| `scripts/loading.sh`      | `php artisan rig:loading`          |
| `scripts/playlist.sh`     | `php artisan rig:playlist`         |
| `scripts/telemetry.sh`    | `php artisan rig:telemetry`        |
| `scripts/playlist.sh skip`| `php artisan rig:cmd skip` (or `curl -X POST http://127.0.0.1:1118/cmd/skip`) |

## vendor/
- `obs-ws-mini.js` — moved to `webapp/public/js/obs-ws-mini.js`.
- `obs-config.js`  — moved to `webapp/public/js/obs-config.js` (still
  generated by `rig:setup`).

## Rollback
1. Close OBS (`flatpak kill com.obsproject.Studio`).
2. Restore the scene JSON:
   ```
   cp basic/scenes/Default_Stream_HUD.json.pre-webapp \
      basic/scenes/Default_Stream_HUD.json
   ```
3. Move directories back from `archived/scenes/` to the repo root,
   `archived/vendor/` back to `vendor/`, and `archived/scripts/*.sh`
   back to `scripts/`.
4. Re-run `bash scripts/setup.sh` to regenerate `vendor/obs-config.js`
   at the old path.
5. Stop the webapp: `sudo supervisorctl stop obs-webapp`.
6. Restart OBS.
