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

@@ -472,6 +472,20 @@
"resumeBtn": "恢复",
"title": "暂停订阅",
"willBeCharged": "将扣费"
},
"tvQuickConnect": {
"title": "连接电视",
"description": "输入电视屏幕上显示的5位代码",
"sendBtn": "发送到电视",
"badCode": "请输入5位代码字母和数字",
"sent": "已发送到电视!",
"error": "发送到电视失败",
"scanTitle": "扫描二维码",
"scanDescription": "扫描电视屏幕上的二维码",
"scanBtn": "扫描电视二维码",
"stopScan": "关闭摄像头",
"noCamera": "无法访问摄像头",
"codeFound": "找到代码"
}
},
"balance": {