Files
Paul HittandClaude Opus 5 51abf2cf26 FlameNet Classic: a 90s set-top skin for Jellyfin 10.11
CSS theme that restyles Jellyfin as a 1999-era DVR: gold selection bar,
chunky bevels, a proper grid channel guide, CRT phosphor.

Selectors were read out of a live 10.11.11 server's own shipped bundles
rather than from memory. Includes an offline preview harness that uses
Jellyfin's real DOM structure, an optional Web Audio + guide-NOW-line
extras layer, and install/rollback scripts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 10:37:39 -04:00

43 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# Build preview-standalone.html: preview.html with flamenet.css and
# flamenet-extras.js inlined, so the preview is one portable file with zero
# external requests (openable from anywhere, no web server needed).
set -euo pipefail
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 - <<'PY'
import pathlib, sys
d = pathlib.Path('.')
html = (d / 'preview.html').read_text()
css = (d / 'flamenet.css').read_text()
js = (d / 'flamenet-extras.js').read_text()
link = '<link rel="stylesheet" href="flamenet.css">'
script = '<script src="flamenet-extras.js"></script>'
if link not in html:
sys.exit('build failed: stylesheet link tag not found in preview.html')
if script not in html:
sys.exit('build failed: extras script tag not found in preview.html')
out = html.replace(
link,
'<style>\n/* ===== flamenet.css inlined for a portable single-file preview ===== */\n'
+ css + '\n</style>')
out = out.replace(
script,
'<script>\n/* ===== flamenet-extras.js inlined ===== */\n' + js + '\n</script>')
# fail loudly rather than shipping a half-inlined file
for bad, msg in ((link, 'stylesheet link survived'), (script, 'script tag survived')):
if bad in out:
sys.exit(f'build failed: {msg}')
for need, msg in (('--fn-gold', 'css missing'), ('window.FlameNet', 'extras missing')):
if need not in out:
sys.exit(f'build failed: {msg}')
(d / 'preview-standalone.html').write_text(out)
print(f'preview-standalone.html {len(out):,} bytes (css {len(css):,} + js {len(js):,})')
PY