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 committed 2026-09-16 01:55:56 +02:00 Unverified
1 parent 01ce2bcecb
commit e26cf1d3ed
42 files changed
+1869 -877

No files matched your search

+14 -2
View File
@@ -80,7 +80,6 @@
"somethingWentWrong": "حدث خطأ ما",
"subscription": {
"title": "معلومات الاشتراك",
"subId": "معرّف الاشتراك",
"status": "الحالة",
"downloaded": "التنزيل",
"uploaded": "الرفع",
@@ -93,7 +92,20 @@
"noExpiry": "بدون انتهاء",
"copyAllConfigs": "نسخ جميع الإعدادات",
"copyAllConfigsCopied": "تم نسخ جميع الإعدادات",
"email": "البريد"
"daysLeft": "الأيام المتبقية",
"expired": "منتهي الصلاحية",
"depleted": "نفدت البيانات",
"ofTotal": "من {total}",
"tabLinks": "الاشتراك",
"tabApps": "التطبيقات",
"tabConfigs": "الكونفيجات",
"scanTitle": "امسح بهاتفك",
"scanHint": "امسح هذا الرمز في تطبيق VPN لإضافة الاشتراك دون نسخ الرابط.",
"updateInterval": "تحديث تلقائي كل {hours} ساعة",
"support": "الدعم",
"qrTitle": "امسح. استورد. اتصل.",
"qrHint": "امسح الرمز بتطبيق العميل. لا تشارك هذا الرمز مع أحد.",
"saveQr": "حفظ QR"
},
"menu": {
"theme": "الثيم",
+15 -3
View File
@@ -80,8 +80,6 @@
"somethingWentWrong": "Something went wrong",
"subscription": {
"title": "Subscription info",
"subId": "Subscription ID",
"email": "Email",
"status": "Status",
"downloaded": "Downloaded",
"uploaded": "Uploaded",
@@ -93,7 +91,21 @@
"unlimited": "Unlimited",
"noExpiry": "No expiry",
"copyAllConfigs": "Copy All Configs",
"copyAllConfigsCopied": "All configs copied"
"copyAllConfigsCopied": "All configs copied",
"daysLeft": "Days left",
"expired": "Expired",
"depleted": "Data used up",
"ofTotal": "of {total}",
"tabLinks": "Subscription",
"tabApps": "Apps",
"tabConfigs": "Configs",
"scanTitle": "Scan with your phone",
"scanHint": "Scan this code in your VPN app to add the subscription without copying the link.",
"updateInterval": "Auto-updates every {hours} hours",
"support": "Support",
"qrTitle": "Scan. Import. Connect.",
"qrHint": "Scan with your client app. Keep this code private.",
"saveQr": "Save QR"
},
"menu": {
"theme": "Theme",
+14 -2
View File
@@ -80,7 +80,6 @@
"somethingWentWrong": "Algo salió mal",
"subscription": {
"title": "Información de suscripción",
"subId": "ID de suscripción",
"status": "Estado",
"downloaded": "Descargado",
"uploaded": "Subido",
@@ -93,7 +92,20 @@
"noExpiry": "Sin caducidad",
"copyAllConfigs": "Copiar Todas las Configuraciones",
"copyAllConfigsCopied": "Todas las configuraciones copiadas",
"email": "Email"
"daysLeft": "Días restantes",
"expired": "Caducada",
"depleted": "Datos agotados",
"ofTotal": "de {total}",
"tabLinks": "Suscripción",
"tabApps": "Aplicaciones",
"tabConfigs": "Configuraciones",
"scanTitle": "Escanea con tu teléfono",
"scanHint": "Escanea este código en tu aplicación VPN para añadir la suscripción sin copiar el enlace.",
"updateInterval": "Se actualiza automáticamente cada {hours} horas",
"support": "Soporte",
"qrTitle": "Escanea. Importa. Conéctate.",
"qrHint": "Escanéalo con tu aplicación cliente. Mantén este código en privado.",
"saveQr": "Guardar QR"
},
"menu": {
"theme": "Tema",
Loaded 3 of 42 files, more files were not shown because too many files have changed in this diff. Show more