Files
bonaminandClaude Opus 5.5 14d592d963 feat(terminal): older TVs get a legacy build with a compatibility layer; modern output unchanged
- @vitejs/plugin-legacy: browsers without import.meta.resolve (older than Chrome 105 /
  Firefox 106 / Safari 16.4) load a second copy built for Chrome 79 / Firefox 78 / Safari 13
  with polyfills. The modern targets and the stylesheet stay on Vite's own defaults, so modern
  chunks are byte-identical to before (only plugin-legacy's 230-byte guard in the entry).
- terminal/src/compat.js (legacy copy only): swaps in <name>.compat.css (lightningcss for the
  older targets), sets container-size variables for signage slides, emulates flex gap.
- @xenia/signage cq()/CQ_BOX: container units as before where supported, calc(var()) fallback
  otherwise; EmbeddedSlide no longer uses inline `inset`.
- Shared Notice (@xenia/ui); "Devices that work" in Pair a device and Signage -> Screens (EN/EL).
- tests/e2e/compat.mjs: modern browser loads nothing extra; a simulated older TV runs the legacy
  copy and the layer, pairs, and plays a slide at the same sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:26:16 +02:00

45 lines
1.3 KiB
JSON

{
"name": "terminal",
"private": true,
"version": "0.0.0",
"type": "module",
"description": "The terminal app (plan phase 3, APPS_PLATFORM D-2, D-8): one web app for every paired screen - kitchen display, counter POS, customer display. Served on :8082 (LAN only).",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "node --test \"tests/*.test.mjs\"",
"lint": "eslint eslint.config.js tests src"
},
"dependencies": {
"@xenia/access": "^0.0.0",
"@xenia/api": "^0.0.0",
"@xenia/floorplan": "^0.0.0",
"@xenia/i18n": "^0.0.0",
"@xenia/ordering": "^0.0.0",
"@xenia/signage": "^0.0.0",
"@xenia/ui": "^0.0.0",
"axios": "^1.21.1",
"lucide-react": "^1.73.0",
"qrcode.react": "^4.2.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-router-dom": "^7.18.5"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@vitejs/plugin-legacy": "^8.2.4",
"@vitejs/plugin-react": "^6.3.0",
"autoprefixer": "^10.6.2",
"eslint": "^9.39.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"globals": "^17.14.0",
"lightningcss": "^1.33.0",
"postcss": "^8.5.33",
"tailwindcss": "^3.4.16",
"terser": "^5.51.4",
"vite": "^8.3.8"
}
}