dsh-sub2api 0.2.12 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +27 -0
- package/lib/client.js +651 -283
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0 — panel rebuilt around what people actually check
|
|
4
|
+
|
|
5
|
+
- A status header answers "connected? funded? how many models?" in one line,
|
|
6
|
+
with 刷新 and 充值 where the eye lands. Everything else is folded below it.
|
|
7
|
+
- Sections collapse: 模型 open by default (that is what people change), 充值
|
|
8
|
+
opens itself when the balance hits zero, 密钥 / 账户 / 诊断 stay out of the way.
|
|
9
|
+
Each collapsed header still carries the fact you would open it for — the masked
|
|
10
|
+
key, the email, the balance.
|
|
11
|
+
- Per-action pending state: refreshing models no longer greys out the whole page.
|
|
12
|
+
- Toasts confirm what happened (copied, synced N models, selection saved, key
|
|
13
|
+
rebuilt, redeemed).
|
|
14
|
+
- The redeem field moved behind 有兑换码?, so the common path is two clicks.
|
|
15
|
+
- Diagnostics no longer owns a card of its own on first paint.
|
|
16
|
+
|
|
17
|
+
## 0.3.0
|
|
18
|
+
|
|
19
|
+
- **Balance badge in the chat input's bottom-right corner**
|
|
20
|
+
(`conversation.input.right`): the number a user checks before a long request,
|
|
21
|
+
without opening settings. Green dot normally, amber below ¥5, red at zero —
|
|
22
|
+
where clicking it opens the payment page instead of refreshing.
|
|
23
|
+
- **One shared status store.** The panel, the sidebar card and the badge used to
|
|
24
|
+
poll `/status` independently; they now subscribe to a single store with one
|
|
25
|
+
in-flight request and one 45s timer that stops when nothing is mounted.
|
|
26
|
+
- Skeletons instead of a bare "加载中…", and panel actions report their failure
|
|
27
|
+
once — the login form keeps its inline message instead of also raising the
|
|
28
|
+
page-level alert.
|
|
29
|
+
|
|
3
30
|
## 0.2.12
|
|
4
31
|
|
|
5
32
|
- Stop dropping `<private-host>`-style placeholders while stripping HTML from an
|
package/README.md
CHANGED
|
@@ -65,8 +65,35 @@ dsh plugin add dsh-sub2api
|
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
68
|
+
## 聊天输入框右下角的余额徽章
|
|
69
|
+
|
|
70
|
+
插件在对话输入框的右下角(`conversation.input.right`)常驻一个小徽章:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
● ¥12.34 正常
|
|
74
|
+
● ¥3.00 偏低(< 5 元,琥珀色)
|
|
75
|
+
● ¥0.00 去充值 余额为零(红色,点击直达支付页)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- 鼠标悬停显示详情:账号、可用模型数、是否待充值
|
|
79
|
+
- 余额正常时点击 = 刷新;余额为零时点击 = 打开支付页
|
|
80
|
+
- 未登录时不渲染,不占位
|
|
81
|
+
- 与设置页共用**同一份**状态和轮询(45 秒一次),不会重复请求
|
|
82
|
+
|
|
68
83
|
## 面板
|
|
69
84
|
|
|
85
|
+
打开就是一行状态:**连接状态、余额、可用模型数**,右边两个按钮「刷新」「充值」。下面按需要展开:
|
|
86
|
+
|
|
87
|
+
| 区块 | 默认 | 里面有什么 |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| 模型 | **展开** | 已选几个、刷新、管理(勾选 + 逐模型上下文容量) |
|
|
90
|
+
| 充值 | 余额为 0 时自动展开 | 金额预设、预计到账、去支付、兑换码(默认收起) |
|
|
91
|
+
| API 密钥 | 收起 | 掩码、复制、重建 |
|
|
92
|
+
| 账户与用量 | 收起 | 今日/累计用量、订阅进度条、退出登录 |
|
|
93
|
+
| 诊断 | 收起 | 六项检查 |
|
|
94
|
+
|
|
95
|
+
操作有回执:复制、刷新、保存选择、兑换、重建密钥都会在右上角弹一条提示;每个按钮只管自己的忙碌状态,不会因为别处刷新就整页变灰。
|
|
96
|
+
|
|
70
97
|
### 账户
|
|
71
98
|
|
|
72
99
|
邮箱、余额、并发数、今日/累计用量,以及订阅进度条(日/周/月)。未登录时是登录表单:一个邮箱 + 一个密码 + 一个「继续」按钮。
|