fix: update host center labels

This commit is contained in:
170-carry 2026-04-28 20:26:42 +08:00
parent 15291c68c0
commit 9de1ae2712
10 changed files with 64 additions and 65 deletions

View File

@ -3,11 +3,11 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>Stream Center</title> <title>Host Center</title>
<link rel="stylesheet" href="./style.css?v=20260428-2025" /> <link rel="stylesheet" href="./style.css?v=20260428-2030" />
</head> </head>
<body> <body>
<div class="host-center" aria-label="Stream Center" data-i18n-aria="page_label"> <div class="host-center" aria-label="Host Center" data-i18n-aria="page_label">
<div class="hero-bg" aria-hidden="true"></div> <div class="hero-bg" aria-hidden="true"></div>
<header class="status-bar" aria-hidden="true"> <header class="status-bar" aria-hidden="true">
@ -25,7 +25,7 @@
<path d="M20 8 12 16l8 8" /> <path d="M20 8 12 16l8 8" />
</svg> </svg>
</button> </button>
<h1 data-i18n="title">Stream Center</h1> <h1 data-i18n="title">Host Center</h1>
<div class="language-switcher"> <div class="language-switcher">
<button class="language-button" type="button" aria-label="Change language" data-i18n-aria="language_button_aria" aria-expanded="false">EN</button> <button class="language-button" type="button" aria-label="Change language" data-i18n-aria="language_button_aria" aria-expanded="false">EN</button>
<div class="language-menu" hidden> <div class="language-menu" hidden>
@ -43,11 +43,10 @@
<img class="avatar-image" id="profileAvatar" alt="" hidden /> <img class="avatar-image" id="profileAvatar" alt="" hidden />
</div> </div>
<div class="profile-copy"> <div class="profile-copy">
<div class="name" id="profileName">Oscar</div> <div class="name" id="profileName"></div>
<div class="meta" id="profileUid" data-i18n="uid">UID: 1234567890</div> <div class="meta" id="profileUid" data-i18n="uid"></div>
<button class="agency" type="button"> <button class="agency" type="button">
<span data-i18n="agency">Agency: Bilibili(101013)</span> <span data-i18n="agency"></span>
<span class="chevron">&rsaquo;</span>
</button> </button>
</div> </div>
</section> </section>
@ -55,13 +54,13 @@
<section class="card metrics-card"> <section class="card metrics-card">
<div class="metric"> <div class="metric">
<div class="label" data-i18n-html="streaming_duration">Work Time (min)</div> <div class="label" data-i18n-html="streaming_duration">Work Time (min)</div>
<div class="value" id="streamingDuration">0</div> <div class="value" id="streamingDuration"></div>
</div> </div>
<div class="vertical-line" aria-hidden="true"></div> <div class="vertical-line" aria-hidden="true"></div>
<div class="metric gift-metric"> <div class="metric gift-metric">
<div class="label" data-i18n="target">Target</div> <div class="label" data-i18n="target">Target</div>
<button class="gift-value" type="button" aria-live="polite" aria-label="Open daily data" data-i18n-aria="open_daily_data"> <button class="gift-value" type="button" aria-live="polite" aria-label="Open daily data" data-i18n-aria="open_daily_data">
<span class="amount-text" id="currentGiftValue">0</span> <span class="amount-text" id="currentGiftValue"></span>
<span class="chevron">&rsaquo;</span> <span class="chevron">&rsaquo;</span>
</button> </button>
</div> </div>
@ -83,19 +82,19 @@
</div> </div>
<a class="income-value" href="../withdraw-exchange/index.html" aria-label="Open withdraw and exchange page" data-i18n-aria="open_withdraw_exchange"> <a class="income-value" href="../withdraw-exchange/index.html" aria-label="Open withdraw and exchange page" data-i18n-aria="open_withdraw_exchange">
<span class="income-currency" aria-hidden="true">$</span> <span class="income-currency" aria-hidden="true">$</span>
<span class="amount-text" id="currentSalary">0.00</span> <span class="amount-text" id="currentSalary"></span>
<span class="chevron">&rsaquo;</span> <span class="chevron">&rsaquo;</span>
</a> </a>
</section> </section>
<section class="card policy-entry-card"> <section class="card policy-entry-card">
<a class="policy-entry-link" id="anchorPolicyLink" href="./policy.html" aria-label="Open anchor policy" data-i18n-aria="open_anchor_policy"> <a class="policy-entry-link" id="anchorPolicyLink" href="./policy.html" aria-label="Open host policy" data-i18n-aria="open_anchor_policy">
<span class="policy-entry-left"> <span class="policy-entry-left">
<svg viewBox="0 0 28 28" aria-hidden="true"> <svg viewBox="0 0 28 28" aria-hidden="true">
<path d="M8 5h10l3 3v15H8Z" /> <path d="M8 5h10l3 3v15H8Z" />
<path d="M18 5v5h4M11 14h7M11 18h6" /> <path d="M18 5v5h4M11 14h7M11 18h6" />
</svg> </svg>
<span data-i18n="anchor_policy">Anchor Policy</span> <span data-i18n="anchor_policy">Host Policy</span>
</span> </span>
<span class="chevron">&rsaquo;</span> <span class="chevron">&rsaquo;</span>
</a> </a>
@ -119,6 +118,6 @@
<div class="home-indicator" aria-hidden="true"></div> <div class="home-indicator" aria-hidden="true"></div>
</div> </div>
<script src="./script.js?v=20260428-2025" defer></script> <script src="./script.js?v=20260428-2030" defer></script>
</body> </body>
</html> </html>

View File

@ -1,8 +1,8 @@
{ {
"document_title": "مركز البث", "document_title": "مركز المضيف",
"page_label": "مركز البث", "page_label": "مركز المضيف",
"back": "رجوع", "back": "رجوع",
"title": "مركز البث", "title": "مركز المضيف",
"language_button_aria": "تغيير اللغة", "language_button_aria": "تغيير اللغة",
"uid": "معرّف المستخدم: 1234567890", "uid": "معرّف المستخدم: 1234567890",
"agency": "الوكالة: Bilibili(101013)", "agency": "الوكالة: Bilibili(101013)",

View File

@ -1,8 +1,8 @@
{ {
"document_title": "Stream Center", "document_title": "Host Center",
"page_label": "Stream Center", "page_label": "Host Center",
"back": "Back", "back": "Back",
"title": "Stream Center", "title": "Host Center",
"language_button_aria": "Change language", "language_button_aria": "Change language",
"uid": "UID: 1234567890", "uid": "UID: 1234567890",
"agency": "Agency: Bilibili(101013)", "agency": "Agency: Bilibili(101013)",
@ -17,8 +17,8 @@
"my_income": "My Income", "my_income": "My Income",
"withdraw_exchange": "Withdraw/Exchange", "withdraw_exchange": "Withdraw/Exchange",
"open_withdraw_exchange": "Open withdraw and exchange page", "open_withdraw_exchange": "Open withdraw and exchange page",
"open_anchor_policy": "Open anchor policy", "open_anchor_policy": "Open host policy",
"anchor_policy": "Anchor Policy", "anchor_policy": "Host Policy",
"policy_loading": "Loading policy...", "policy_loading": "Loading policy...",
"policy_empty": "No policy data", "policy_empty": "No policy data",
"policy_missing_token": "Missing token", "policy_missing_token": "Missing token",

View File

@ -1,8 +1,8 @@
{ {
"document_title": "Pusat Streaming", "document_title": "Pusat Host",
"page_label": "Pusat Streaming", "page_label": "Pusat Host",
"back": "Kembali", "back": "Kembali",
"title": "Pusat Streaming", "title": "Pusat Host",
"language_button_aria": "Ubah bahasa", "language_button_aria": "Ubah bahasa",
"uid": "UID: 1234567890", "uid": "UID: 1234567890",
"agency": "Agensi: Bilibili(101013)", "agency": "Agensi: Bilibili(101013)",

View File

@ -1,8 +1,8 @@
{ {
"document_title": "Yayın Merkezi", "document_title": "Host Merkezi",
"page_label": "Yayın Merkezi", "page_label": "Host Merkezi",
"back": "Geri", "back": "Geri",
"title": "Yayın Merkezi", "title": "Host Merkezi",
"language_button_aria": "Dili değiştir", "language_button_aria": "Dili değiştir",
"uid": "UID: 1234567890", "uid": "UID: 1234567890",
"agency": "Ajans: Bilibili(101013)", "agency": "Ajans: Bilibili(101013)",

View File

@ -3,11 +3,11 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>Anchor Policy</title> <title>Host Policy</title>
<link rel="stylesheet" href="./style.css?v=20260428-1535" /> <link rel="stylesheet" href="./style.css?v=20260428-2030" />
</head> </head>
<body> <body>
<div class="host-center policy-page" aria-label="Anchor Policy" data-i18n-aria="anchor_policy"> <div class="host-center policy-page" aria-label="Host Policy" data-i18n-aria="anchor_policy">
<div class="hero-bg" aria-hidden="true"></div> <div class="hero-bg" aria-hidden="true"></div>
<header class="status-bar" aria-hidden="true"> <header class="status-bar" aria-hidden="true">
@ -25,7 +25,7 @@
<path d="M20 8 12 16l8 8" /> <path d="M20 8 12 16l8 8" />
</svg> </svg>
</button> </button>
<h1 data-i18n="anchor_policy">Anchor Policy</h1> <h1 data-i18n="anchor_policy">Host Policy</h1>
<div class="language-switcher"> <div class="language-switcher">
<button class="language-button" type="button" aria-label="Change language" data-i18n-aria="language_button_aria" aria-expanded="false">EN</button> <button class="language-button" type="button" aria-label="Change language" data-i18n-aria="language_button_aria" aria-expanded="false">EN</button>
<div class="language-menu" hidden> <div class="language-menu" hidden>
@ -40,7 +40,7 @@
<main class="content policy-content"> <main class="content policy-content">
<section class="card policy-card" aria-labelledby="anchorPolicyTitle"> <section class="card policy-card" aria-labelledby="anchorPolicyTitle">
<div class="policy-head"> <div class="policy-head">
<h2 id="anchorPolicyTitle" data-i18n="anchor_policy">Anchor Policy</h2> <h2 id="anchorPolicyTitle" data-i18n="anchor_policy">Host Policy</h2>
<span class="policy-region" id="policyRegion"></span> <span class="policy-region" id="policyRegion"></span>
</div> </div>
<div class="policy-status" id="policyStatus" data-i18n="policy_loading">Loading policy...</div> <div class="policy-status" id="policyStatus" data-i18n="policy_loading">Loading policy...</div>
@ -50,6 +50,6 @@
<div class="home-indicator" aria-hidden="true"></div> <div class="home-indicator" aria-hidden="true"></div>
</div> </div>
<script src="./policy.js?v=20260428-1535" defer></script> <script src="./policy.js?v=20260428-2030" defer></script>
</body> </body>
</html> </html>

View File

@ -10,10 +10,10 @@
const fallbackMessages = { const fallbackMessages = {
en: { en: {
document_title: "Anchor Policy", document_title: "Host Policy",
back: "Back", back: "Back",
language_button_aria: "Change language", language_button_aria: "Change language",
anchor_policy: "Anchor Policy", anchor_policy: "Host Policy",
policy_loading: "Loading policy...", policy_loading: "Loading policy...",
policy_empty: "No policy data", policy_empty: "No policy data",
policy_missing_token: "Missing token", policy_missing_token: "Missing token",
@ -136,7 +136,7 @@
if (window.location.protocol === "file:") return fallbackMessages[normalizedLang]; if (window.location.protocol === "file:") return fallbackMessages[normalizedLang];
try { try {
const response = await fetch(`./locales/${normalizedLang}.json`, { cache: "no-store" }); const response = await fetch(`./locales/${normalizedLang}.json?v=20260428-2030`, { cache: "no-store" });
if (response.ok) return await response.json(); if (response.ok) return await response.json();
} catch (error) { } catch (error) {
return fallbackMessages[normalizedLang]; return fallbackMessages[normalizedLang];
@ -415,7 +415,7 @@
document.documentElement.lang = currentLang; document.documentElement.lang = currentLang;
document.documentElement.dir = currentLang === "ar" ? "rtl" : "ltr"; document.documentElement.dir = currentLang === "ar" ? "rtl" : "ltr";
document.title = messages.document_title || messages.anchor_policy || "Anchor Policy"; document.title = messages.anchor_policy || messages.document_title || "Host Policy";
renderMessages(messages); renderMessages(messages);
renderLanguageControls(messages); renderLanguageControls(messages);
if (currentPolicy) { if (currentPolicy) {

View File

@ -10,10 +10,10 @@
const fallbackMessages = { const fallbackMessages = {
en: { en: {
document_title: "Stream Center", document_title: "Host Center",
page_label: "Stream Center", page_label: "Host Center",
back: "Back", back: "Back",
title: "Stream Center", title: "Host Center",
language_button_aria: "Change language", language_button_aria: "Change language",
uid: "UID: 1234567890", uid: "UID: 1234567890",
agency: "Agency: Bilibili(101013)", agency: "Agency: Bilibili(101013)",
@ -28,8 +28,8 @@
my_income: "My Income", my_income: "My Income",
withdraw_exchange: "Withdraw/Exchange", withdraw_exchange: "Withdraw/Exchange",
open_withdraw_exchange: "Open withdraw and exchange page", open_withdraw_exchange: "Open withdraw and exchange page",
open_anchor_policy: "Open anchor policy", open_anchor_policy: "Open host policy",
anchor_policy: "Anchor Policy", anchor_policy: "Host Policy",
policy_loading: "Loading policy...", policy_loading: "Loading policy...",
policy_empty: "No policy data", policy_empty: "No policy data",
policy_missing_token: "Missing token", policy_missing_token: "Missing token",
@ -43,10 +43,10 @@
policy_total_salary: "Total salary" policy_total_salary: "Total salary"
}, },
ar: { ar: {
document_title: "مركز البث", document_title: "مركز المضيف",
page_label: "مركز البث", page_label: "مركز المضيف",
back: "رجوع", back: "رجوع",
title: "مركز البث", title: "مركز المضيف",
language_button_aria: "تغيير اللغة", language_button_aria: "تغيير اللغة",
uid: "معرّف المستخدم: 1234567890", uid: "معرّف المستخدم: 1234567890",
agency: "الوكالة: Bilibili(101013)", agency: "الوكالة: Bilibili(101013)",
@ -76,10 +76,10 @@
policy_total_salary: "إجمالي الراتب" policy_total_salary: "إجمالي الراتب"
}, },
tr: { tr: {
document_title: "Yayın Merkezi", document_title: "Host Merkezi",
page_label: "Yayın Merkezi", page_label: "Host Merkezi",
back: "Geri", back: "Geri",
title: "Yayın Merkezi", title: "Host Merkezi",
language_button_aria: "Dili değiştir", language_button_aria: "Dili değiştir",
uid: "UID: 1234567890", uid: "UID: 1234567890",
agency: "Ajans: Bilibili(101013)", agency: "Ajans: Bilibili(101013)",
@ -109,10 +109,10 @@
policy_total_salary: "Toplam maaş" policy_total_salary: "Toplam maaş"
}, },
id: { id: {
document_title: "Pusat Streaming", document_title: "Pusat Host",
page_label: "Pusat Streaming", page_label: "Pusat Host",
back: "Kembali", back: "Kembali",
title: "Pusat Streaming", title: "Pusat Host",
language_button_aria: "Ubah bahasa", language_button_aria: "Ubah bahasa",
uid: "UID: 1234567890", uid: "UID: 1234567890",
agency: "Agensi: Bilibili(101013)", agency: "Agensi: Bilibili(101013)",
@ -202,7 +202,7 @@
if (window.location.protocol === "file:") return fallbackMessages[normalizedLang]; if (window.location.protocol === "file:") return fallbackMessages[normalizedLang];
try { try {
const response = await fetch(`./locales/${normalizedLang}.json?v=20260428-2025`, { cache: "no-store" }); const response = await fetch(`./locales/${normalizedLang}.json?v=20260428-2030`, { cache: "no-store" });
if (response.ok) return await response.json(); if (response.ok) return await response.json();
} catch (error) { } catch (error) {
return fallbackMessages[normalizedLang]; return fallbackMessages[normalizedLang];
@ -794,7 +794,7 @@
document.documentElement.lang = currentLang; document.documentElement.lang = currentLang;
document.documentElement.dir = currentLang === "ar" ? "rtl" : "ltr"; document.documentElement.dir = currentLang === "ar" ? "rtl" : "ltr";
document.title = messages.document_title || messages.title || "Stream Center"; document.title = messages.document_title || messages.title || "Host Center";
renderMessages(messages); renderMessages(messages);
renderLanguageControls(messages); renderLanguageControls(messages);
syncLocalizedLinks(); syncLocalizedLinks();

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>Withdraw/Exchange</title> <title>Withdraw/Exchange</title>
<link rel="stylesheet" href="./style.css?v=20260428-1535" /> <link rel="stylesheet" href="./style.css?v=20260428-2030" />
</head> </head>
<body> <body>
<div class="wallet-page" aria-label="Withdraw and exchange" data-i18n-aria="page_label"> <div class="wallet-page" aria-label="Withdraw and exchange" data-i18n-aria="page_label">
@ -39,7 +39,7 @@
<main class="content"> <main class="content">
<section class="balance-card"> <section class="balance-card">
<div class="balance-label" data-i18n="available_income">Available Income</div> <div class="balance-label" data-i18n="available_income">salary</div>
<div class="balance-value"> <div class="balance-value">
<span class="balance-currency" aria-hidden="true">$</span> <span class="balance-currency" aria-hidden="true">$</span>
<span id="balanceAmount">0.00</span> <span id="balanceAmount">0.00</span>
@ -147,6 +147,6 @@
<div class="toast" hidden></div> <div class="toast" hidden></div>
<div class="home-indicator" aria-hidden="true"></div> <div class="home-indicator" aria-hidden="true"></div>
</div> </div>
<script src="./script.js?v=20260428-1535" defer></script> <script src="./script.js?v=20260428-2030" defer></script>
</body> </body>
</html> </html>

View File

@ -15,7 +15,7 @@
back: "Back", back: "Back",
title: "Withdraw/Exchange", title: "Withdraw/Exchange",
language_button_aria: "Change language", language_button_aria: "Change language",
available_income: "Available Income", available_income: "salary",
withdraw: "Withdraw", withdraw: "Withdraw",
exchange: "Exchange", exchange: "Exchange",
transfer: "Transfer", transfer: "Transfer",
@ -49,7 +49,7 @@
invalid_address: "Please enter a valid TRC20 USDT address", invalid_address: "Please enter a valid TRC20 USDT address",
invalid_amount: "Please enter a valid amount", invalid_amount: "Please enter a valid amount",
amount_too_low: "Minimum withdrawal amount is 50 USD", amount_too_low: "Minimum withdrawal amount is 50 USD",
amount_exceeds_balance: "Amount exceeds available income", amount_exceeds_balance: "Amount exceeds salary",
payee_not_found: "User not found", payee_not_found: "User not found",
missing_payee: "Please search and select a user", missing_payee: "Please search and select a user",
address_saved: "Address saved", address_saved: "Address saved",
@ -65,7 +65,7 @@
back: "رجوع", back: "رجوع",
title: "سحب/تبديل", title: "سحب/تبديل",
language_button_aria: "تغيير اللغة", language_button_aria: "تغيير اللغة",
available_income: "الدخل المتاح", available_income: "الراتب",
withdraw: "سحب", withdraw: "سحب",
exchange: "تبديل", exchange: "تبديل",
transfer: "تحويل", transfer: "تحويل",
@ -99,7 +99,7 @@
invalid_address: "يرجى إدخال عنوان USDT TRC20 صالح", invalid_address: "يرجى إدخال عنوان USDT TRC20 صالح",
invalid_amount: "يرجى إدخال مبلغ صالح", invalid_amount: "يرجى إدخال مبلغ صالح",
amount_too_low: "الحد الأدنى للسحب هو 50 USD", amount_too_low: "الحد الأدنى للسحب هو 50 USD",
amount_exceeds_balance: "المبلغ يتجاوز الدخل المتاح", amount_exceeds_balance: "المبلغ يتجاوز الراتب",
payee_not_found: "لم يتم العثور على المستخدم", payee_not_found: "لم يتم العثور على المستخدم",
missing_payee: "يرجى البحث واختيار مستخدم", missing_payee: "يرجى البحث واختيار مستخدم",
address_saved: "تم حفظ العنوان", address_saved: "تم حفظ العنوان",
@ -115,7 +115,7 @@
back: "Geri", back: "Geri",
title: "Çek/Değiştir", title: "Çek/Değiştir",
language_button_aria: "Dili değiştir", language_button_aria: "Dili değiştir",
available_income: "Kullanılabilir Gelir", available_income: "Maaş",
withdraw: "Withdraw", withdraw: "Withdraw",
exchange: "Exchange", exchange: "Exchange",
transfer: "Transfer", transfer: "Transfer",
@ -149,7 +149,7 @@
invalid_address: "Please enter a valid TRC20 USDT address", invalid_address: "Please enter a valid TRC20 USDT address",
invalid_amount: "Please enter a valid amount", invalid_amount: "Please enter a valid amount",
amount_too_low: "Minimum withdrawal amount is 50 USD", amount_too_low: "Minimum withdrawal amount is 50 USD",
amount_exceeds_balance: "Amount exceeds available income", amount_exceeds_balance: "Amount exceeds salary",
payee_not_found: "User not found", payee_not_found: "User not found",
missing_payee: "Please search and select a user", missing_payee: "Please search and select a user",
address_saved: "Address saved", address_saved: "Address saved",
@ -165,7 +165,7 @@
back: "Kembali", back: "Kembali",
title: "Tarik/Tukar", title: "Tarik/Tukar",
language_button_aria: "Ubah bahasa", language_button_aria: "Ubah bahasa",
available_income: "Penghasilan Tersedia", available_income: "Gaji",
withdraw: "Tarik", withdraw: "Tarik",
exchange: "Tukar", exchange: "Tukar",
transfer: "Transfer", transfer: "Transfer",
@ -199,7 +199,7 @@
invalid_address: "Masukkan alamat USDT TRC20 yang valid", invalid_address: "Masukkan alamat USDT TRC20 yang valid",
invalid_amount: "Masukkan jumlah yang valid", invalid_amount: "Masukkan jumlah yang valid",
amount_too_low: "Minimum penarikan adalah 50 USD", amount_too_low: "Minimum penarikan adalah 50 USD",
amount_exceeds_balance: "Jumlah melebihi penghasilan tersedia", amount_exceeds_balance: "Jumlah melebihi gaji",
payee_not_found: "Pengguna tidak ditemukan", payee_not_found: "Pengguna tidak ditemukan",
missing_payee: "Cari dan pilih pengguna", missing_payee: "Cari dan pilih pengguna",
address_saved: "Alamat disimpan", address_saved: "Alamat disimpan",