dsh-token-dash 1.1.1 → 1.1.2
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/README.en.md +5 -0
- package/README.md +5 -0
- package/client.js +2 -2
- package/package.json +3 -2
package/README.en.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/spartawhy117/dsh-token-dash/main/docs/pic/icon.png" alt="dsh-token-dash" width="96" height="96" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
<h1 align="center">dsh-token-dash</h1>
|
|
2
6
|
|
|
3
7
|
<p align="center">
|
|
@@ -22,6 +26,7 @@
|
|
|
22
26
|
<img src="https://img.shields.io/github/downloads/spartawhy117/dsh-token-dash/total?label=downloads" alt="downloads" />
|
|
23
27
|
<img src="https://img.shields.io/github/license/spartawhy117/dsh-token-dash" alt="license" />
|
|
24
28
|
<img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="node" />
|
|
29
|
+
<a href="https://awesome-dsh-plugin.com/p/spartawhy117/dsh-token-dash"><img src="https://img.shields.io/badge/awesome--dsh--plugin-listed-6ea8ff" alt="awesome-dsh-plugin" /></a>
|
|
25
30
|
</p>
|
|
26
31
|
|
|
27
32
|
- **Providers**: DeepSeek (DS account / API key), GLM Coding (subscription), Kimi Coding (subscription), Kimi / OpenRouter / Qwen (pay-as-you-go; OpenRouter in USD, Qwen CNY domestic / USD international) — paste a key and the billing mode is detected automatically
|
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/spartawhy117/dsh-token-dash/main/docs/pic/icon.png" alt="dsh-token-dash" width="96" height="96" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
<h1 align="center">dsh-token-dash</h1>
|
|
2
6
|
|
|
3
7
|
<p align="center">
|
|
@@ -22,6 +26,7 @@
|
|
|
22
26
|
<img src="https://img.shields.io/github/downloads/spartawhy117/dsh-token-dash/total?label=downloads" alt="downloads" />
|
|
23
27
|
<img src="https://img.shields.io/github/license/spartawhy117/dsh-token-dash" alt="license" />
|
|
24
28
|
<img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="node" />
|
|
29
|
+
<a href="https://awesome-dsh-plugin.com/zh/p/spartawhy117/dsh-token-dash"><img src="https://img.shields.io/badge/awesome--dsh--plugin-listed-6ea8ff" alt="awesome-dsh-plugin" /></a>
|
|
25
30
|
</p>
|
|
26
31
|
|
|
27
32
|
- **厂商支持**:DeepSeek(DS 账号 / API Key)、GLM Coding(订阅)、Kimi Coding(订阅)、Kimi / OpenRouter / Qwen(按量,OpenRouter USD、Qwen 国内 CNY / 国际 USD)——填 Key 自动识别订阅或按量计费
|
package/client.js
CHANGED
|
@@ -283,7 +283,7 @@ window.__ModuleLoader__.load({
|
|
|
283
283
|
num: { fontWeight: 600, fontVariantNumeric: 'tabular-nums' },
|
|
284
284
|
panel: {
|
|
285
285
|
position: 'absolute', bottom: 'calc(100% + 8px)', left: 0,
|
|
286
|
-
width: 'min(
|
|
286
|
+
width: 'min(360px, calc(100vw - 16px))', boxSizing: 'border-box', maxHeight: '70vh',
|
|
287
287
|
overflow: 'auto', zIndex: 9999, padding: 12, borderRadius: 12,
|
|
288
288
|
background: 'var(--dsw-alias-bg-layer-2, var(--dsh-bg-elevated, #1f1f1f))', color: T.text,
|
|
289
289
|
border: `1px solid ${T.border}`, boxShadow: '0 12px 40px rgba(0,0,0,.35)', fontSize: 12, outline: 'none',
|
|
@@ -610,7 +610,7 @@ window.__ModuleLoader__.load({
|
|
|
610
610
|
const measurePanel = useCallback(() => {
|
|
611
611
|
const rect = pillRef.current?.getBoundingClientRect()
|
|
612
612
|
if (rect === undefined) return
|
|
613
|
-
const width = Math.min(
|
|
613
|
+
const width = Math.min(360, window.innerWidth - 16)
|
|
614
614
|
setPanelShift(Math.min(0, window.innerWidth - 8 - rect.left - width))
|
|
615
615
|
const available = Math.round(rect.top) - 16
|
|
616
616
|
setPanelMaxHeight(`${Math.max(200, Math.min(window.innerHeight * 0.7, available))}px`)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-token-dash",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "DeepSeek Harness Token 看板:月度预算与订阅配额、账户余额、时间范围费用与真实 Tokens 明细,支持本地 JSON 导出 / 导入备份。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"exports": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"e2e": "node scripts/e2e.mjs",
|
|
45
45
|
"logs": "node tools/logs.mjs",
|
|
46
46
|
"shots": "node tools/mock/shots.mjs",
|
|
47
|
+
"icon": "node tools/mock/icon.mjs",
|
|
47
48
|
"pack": "node -e \"require('fs').mkdirSync('build',{recursive:true})\" && npm pack --pack-destination build",
|
|
48
49
|
"prepublishOnly": "npm test"
|
|
49
50
|
},
|