mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-15 01:25:00 +03:00
feat(panel): add sponsor slots fed from sponsors.sanaei.dev
Monthly sponsor placements need to change without cutting a panel release. Panels now read 3X/sponsors.json from the MHSanaei/sponsors repo (GitHub Pages on sponsors.sanaei.dev) and show active sponsors in four slots: an overview banner, a rotating sidebar card (max three), the login page and a new Sponsors page that also lists open placements. An entry shows only while enable is not false and until is in the future; links must be https and logos are png/webp/jpg by name only. The list is cached for an hour and the last good copy survives upstream failures; logos are proxied through /sponsors/logo/:name with failures cached, so CSP stays 'self' and admin browsers never reach a third party. Admins can hide a slot for 24h. Under XUI_DEBUG the panel reads a sibling ../sponsors/3X checkout so edits can be previewed before push.
This commit is contained in:
@@ -120,6 +120,7 @@
|
||||
"outbounds": "Giden Bağlantılar",
|
||||
"apiDocs": "API Belgeleri",
|
||||
"donate": "Bağış Yap",
|
||||
"sponsors": "Sponsorlar",
|
||||
"hosts": "Host'lar",
|
||||
"docs": "Belgeler",
|
||||
"openMenu": "Menüyü aç",
|
||||
@@ -2256,6 +2257,27 @@
|
||||
"badTag": "Geçersiz etiket",
|
||||
"badVlessRoute": "0 ile 65535 arasında tek bir sayı girin"
|
||||
}
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "Sponsorlar",
|
||||
"intro": "3X-UI geliştirmesini destekleyen şirketler. Sponsor bağlantıları yeni sekmede açılır.",
|
||||
"become": "Sponsor ol",
|
||||
"tag": "Sponsor",
|
||||
"visit": "Ziyaret et",
|
||||
"yourBrand": "Markanız burada",
|
||||
"yourBrandText": "Şirketinizi her gün 3X-UI açan binlerce sunucu yöneticisinin önüne çıkarın.",
|
||||
"placements": "Mevcut yerleşimler",
|
||||
"placementDashboard": "Genel bakış afişi",
|
||||
"placementDashboardDesc": "Panonun üstünde premium alan, aynı anda tek sponsor.",
|
||||
"placementSidebar": "Kenar çubuğu kartı",
|
||||
"placementSidebarDesc": "Tüm panel sayfalarında gösterilir, sponsorlar arasında döner.",
|
||||
"placementLogin": "Giriş sayfası",
|
||||
"placementLoginDesc": "Yönetici her girişte görür.",
|
||||
"placementPage": "Sponsorlar sayfası",
|
||||
"placementPageDesc": "Logo, açıklama ve bağlantıyla burada listelenir.",
|
||||
"available": "Müsait",
|
||||
"takenUntil": "{date} tarihine kadar dolu",
|
||||
"activeCount": "{count} aktif"
|
||||
}
|
||||
},
|
||||
"tgbot": {
|
||||
|
||||
Reference in New Issue
Block a user