MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / renderSubscriptionStatus

Function renderSubscriptionStatus

static/js/accounts.js:832–845  ·  view source on GitHub ↗
(subscriptionType)

Source from the content-addressed store, hash-verified

830}
831
832function renderSubscriptionStatus(subscriptionType) {
833 const normalized = normalizeSubscriptionType(subscriptionType);
834 const variant = normalized === 'plus' ? 'plus' : 'free';
835 const label = variant.toUpperCase();
836 const title = variant === 'free'
837 ? '未检测到 Plus 订阅'
838 : `已订阅: ${variant}`;
839 return `
840 <div class="subscription-status ${variant}" title="${escapeHtml(title)}">
841 <span class="dot"></span>
842 <span class="label">${escapeHtml(label)}</span>
843 </div>
844 `;
845}
846
847// 切换密码显示
848function togglePassword(element, password) {

Callers 1

renderAccountsFunction · 0.85

Calls 2

escapeHtmlFunction · 0.70

Tested by

no test coverage detected