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>
This commit is contained in:
2026-11-21 17:26:16 +02:00
co-authored by Claude Opus 5.5
parent aa8ba5d1d4
commit 14d592d963
23 changed files with 625 additions and 40 deletions
+10 -1
View File
@@ -234,7 +234,16 @@
"removeTitle": "Αφαίρεση: {{name}};",
"removeBody": "Σταματά αμέσως και δείχνει την οθόνη σύζευξης. Για να ξαναχρησιμοποιηθεί, κάντε ξανά σύζευξη.",
"changeAppBody": "Όποιος είναι συνδεδεμένος σε αυτή αποσυνδέεται.",
"limitReached": "{{label}}: η άδεια επιτρέπει {{max}}. Αφαιρέστε μία ή ζητήστε μεγαλύτερη άδεια."
"limitReached": "{{label}}: η άδεια επιτρέπει {{max}}. Αφαιρέστε μία ή ζητήστε μεγαλύτερη άδεια.",
"support": {
"title": "Συσκευές που λειτουργούν",
"bestLabel": "Ιδανικά:",
"best": "Chrome ή Edge 111, Firefox 114, Safari 16.4 ή νεότερα: ενημερωμένα κινητά, tablet και υπολογιστές, Android TV box, οι περισσότερες τηλεοράσεις από το 2024 και μετά. Όλα τρέχουν σε πλήρη ταχύτητα.",
"compatLabel": "Λειτουργεί, με επίπεδο συμβατότητας:",
"compat": "Chrome 79, Firefox 78, Safari 13 ή νεότερα, π.χ. ο ενσωματωμένος browser τηλεοράσεων LG και Samsung από το 2021 έως το 2023. Φτιαγμένο για οθόνες ψηφιακής σήμανσης: μπορεί να φορτώνει και να παίζει πιο αργά. Για ταμεία, οθόνες κουζίνας και tablet μενού χρησιμοποιήστε νεότερη συσκευή.",
"oldLabel": "Πολύ παλιό:",
"old": "οτιδήποτε παλαιότερο (π.χ. τηλεοράσεις LG του 2020 ή παλαιότερες) δείχνει λευκή σελίδα. Συνδέστε στην τηλεόραση ένα Android TV box ή stick (οποιοδήποτε πρόσφατο κάνει) και ανοίξτε εκεί τη διεύθυνση."
}
},
"roles": {
"superadmin": "Superadmin",
+10 -1
View File
@@ -234,7 +234,16 @@
"removeTitle": "Remove {{name}}?",
"removeBody": "It stops at once and shows the pairing screen. To use it again, pair it again.",
"changeAppBody": "Whoever is signed in on it is signed out.",
"limitReached": "{{label}}: the license allows {{max}}. Remove one or ask for a bigger license."
"limitReached": "{{label}}: the license allows {{max}}. Remove one or ask for a bigger license.",
"support": {
"title": "Devices that work",
"bestLabel": "Best:",
"best": "Chrome or Edge 111, Firefox 114, Safari 16.4 or newer: phones, tablets and computers that are up to date, Android TV boxes, most TVs from 2024 on. Everything runs at full speed.",
"compatLabel": "Works, with a compatibility layer:",
"compat": "Chrome 79, Firefox 78, Safari 13 or newer, e.g. the built-in browser of LG and Samsung TVs from 2021 to 2023. Made for screens with signage: it may load and play more slowly. For tills, kitchen screens and menu tablets use a newer device.",
"oldLabel": "Too old:",
"old": "anything older (e.g. LG TVs from 2020 or before) shows a blank page. Plug an Android TV box or stick into the TV (any recent one is fine) and open the address there."
}
},
"roles": {
"superadmin": "Superadmin",