mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-16 18:15:01 +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": "アウトバウンド",
|
||||
"apiDocs": "API ドキュメント",
|
||||
"donate": "寄付",
|
||||
"sponsors": "スポンサー",
|
||||
"hosts": "ホスト",
|
||||
"docs": "ドキュメント",
|
||||
"openMenu": "メニューを開く",
|
||||
@@ -2256,6 +2257,27 @@
|
||||
"badTag": "無効なタグ",
|
||||
"badVlessRoute": "0〜65535 の単一の数値を入力してください"
|
||||
}
|
||||
},
|
||||
"sponsors": {
|
||||
"title": "スポンサー",
|
||||
"intro": "3X-UI の開発を支援している企業です。スポンサーリンクは新しいタブで開きます。",
|
||||
"become": "スポンサーになる",
|
||||
"tag": "スポンサー",
|
||||
"visit": "訪問",
|
||||
"yourBrand": "ここにあなたのブランドを",
|
||||
"yourBrandText": "毎日 3X-UI を開く何千人ものサーバー管理者に御社をアピールできます。",
|
||||
"placements": "掲載枠",
|
||||
"placementDashboard": "ダッシュボードバナー",
|
||||
"placementDashboardDesc": "ダッシュボード上部のプレミアム枠。一度に 1 社のみ。",
|
||||
"placementSidebar": "サイドバーカード",
|
||||
"placementSidebarDesc": "パネルの全ページに表示され、スポンサー間でローテーションします。",
|
||||
"placementLogin": "ログインページ",
|
||||
"placementLoginDesc": "管理者がログインするたびに表示されます。",
|
||||
"placementPage": "スポンサーページ",
|
||||
"placementPageDesc": "ロゴ、説明、リンク付きでここに掲載されます。",
|
||||
"available": "空きあり",
|
||||
"takenUntil": "{date} まで予約済み",
|
||||
"activeCount": "{count} 件掲載中"
|
||||
}
|
||||
},
|
||||
"tgbot": {
|
||||
|
||||
Reference in New Issue
Block a user