feat: add TV Quick Connect to connection page for Android TV / Apple TV

When user selects Android TV or Apple TV platform (from non-TV device),
shows 5-char code input + QR scanner to send subscription to TV via
Happ TV API. Hybrid QR strategy: native Telegram scanner on mobile,
html5-qrcode CDN fallback on desktop. i18n keys for ru/en/zh/fa.

Based on PR #415 by @smediainfo.
This commit is contained in:
Fringg
2026-05-04 06:22:29 +03:00
parent d21c6637bf
commit 65f94931c5
6 changed files with 444 additions and 3 deletions

View File

@@ -593,6 +593,20 @@
"label": "Traffic",
"selectVolume": "Select traffic volume",
"default": "Default: {{label}}"
},
"tvQuickConnect": {
"title": "Connect TV",
"description": "Enter the 5-character code from your TV screen",
"sendBtn": "Send to TV",
"badCode": "Enter a 5-character code (letters and digits)",
"sent": "Sent to TV!",
"error": "Failed to send to TV",
"scanTitle": "Scan QR Code",
"scanDescription": "Scan the QR code from your TV screen",
"scanBtn": "Scan QR from TV",
"stopScan": "Close camera",
"noCamera": "Camera access denied",
"codeFound": "Code found"
}
},
"balance": {