feat(sub): redesign the subscription page around usage, tabs and app imports

The info page was a long key/value table followed by every link and two
app dropdowns, and it rendered left-to-right even for Persian and Arabic.
It now leads with a usage ring, the remaining quota and a stats grid, and
splits the rest into Subscription / Apps / Configs tabs.

- Status tells expired, data-used-up and disabled apart instead of one
  "Inactive", replacing the hard-coded English expiry chip.
- The Apps tab keeps every Android and iOS app with its existing deep
  link, preselects the visitor's platform and adds Windows: Hiddify and
  Clash Verge Rev import directly, v2rayN copies the link.
- fa-IR and ar-EG render right-to-left; URLs, IDs and sizes stay LTR.
- The footer shows the support link and the client refresh interval, so
  subPageContext now carries subUpdates (also in ?format=info).
- Status, days-left and app deep-link logic lives in subPageModel.ts,
  with unit tests pinning the deep links the page already shipped.
This commit is contained in:
Sanaei
2026-09-16 01:17:04 +02:00
parent 01ce2bcecb
commit e26cf1d3ed
42 changed files with 1869 additions and 877 deletions
+14 -2
View File
@@ -80,7 +80,6 @@
"somethingWentWrong": "發生錯誤",
"subscription": {
"title": "訂閱資訊",
"subId": "訂閱 ID",
"status": "狀態",
"downloaded": "已下載",
"uploaded": "已上傳",
@@ -93,7 +92,20 @@
"noExpiry": "無到期",
"copyAllConfigs": "複製全部配置",
"copyAllConfigsCopied": "已複製全部配置",
"email": "電子郵件"
"daysLeft": "剩餘天數",
"expired": "已過期",
"depleted": "流量已用完",
"ofTotal": "共 {total}",
"tabLinks": "訂閱",
"tabApps": "應用程式",
"tabConfigs": "設定檔",
"scanTitle": "用手機掃描",
"scanHint": "在 VPN 應用程式中掃描此 QR 碼,無需複製連結即可新增訂閱。",
"updateInterval": "每 {hours} 小時自動更新",
"support": "支援",
"qrTitle": "掃描。匯入。連線。",
"qrHint": "使用用戶端應用程式掃描。請勿外洩此 QR 碼。",
"saveQr": "儲存 QR 碼"
},
"menu": {
"theme": "主題",