package plugin import ( "encoding/base64" ) // QuotaPageHTML contains the full standalone HTML/CSS/JS single-file QuotaCard UI. const QuotaPageHTML = ` 用量配额 - Command Code + OpenCode Go - CLIProxyAPI
用量配额 - Command Code + OpenCode Go v0.3.0
CLIProxyAPI 实时限额与用量监控 (Command Code + OpenCode Go)
正在检查...
加载失败
诊断与访问配置
仅测试覆盖用:值不持久化,仅当次请求生效
Command Code 查询失败
-
月度额度 (Monthly Credits)
💰
-
当前周期 Command Code 基础配额
开源奖励额度 (Open Source)
🎁
-
开源贡献者赠送与奖励额度
可用额度总计 (Total Credits)
✨
-
月度额度与奖励额度汇总
账单周期
月度额度 (Monthly Window)
- %
- / -
剩余可用: -
账单周期重置
--:--:--
短期滑动窗口
5 小时限制 (5-Hour Window)
- %
- / -
剩余可用: -
重置倒计时
--:--:--
周度窗口
每周限制 (Weekly Window)
- %
- / -
剩余可用: -
重置倒计时
--:--:--
OpenCode Go 查询失败
-
短期滑动窗口
Rolling 5h (5 小时窗口)
-
- %
重置倒计时
-
周度窗口
Weekly (每周限制)
-
- %
重置倒计时
-
月度窗口
Monthly (月度窗口)
-
- %
重置倒计时
-
Command Code -
尚未加载
OpenCode Go -
尚未加载
` // GetQuotaPageHTML returns the raw HTML bytes. func GetQuotaPageHTML() []byte { return []byte(QuotaPageHTML) } // GetQuotaPageBase64 returns the base64-encoded Quota page HTML. func GetQuotaPageBase64() string { return base64.StdEncoding.EncodeToString([]byte(QuotaPageHTML)) }