(subscriptionType)
| 830 | } |
| 831 | |
| 832 | function 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 | // 切换密码显示 |
| 848 | function togglePassword(element, password) { |
no test coverage detected