@xixka/dsh-hub 0.2.1-rc.18 → 0.2.1-rc.19
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/lib/client/jet-hub.js +1 -31
- package/package.json +1 -1
package/lib/client/jet-hub.js
CHANGED
|
@@ -1191,9 +1191,6 @@ var STYLES = `
|
|
|
1191
1191
|
官方 DialogPill 也有指针);max-width 216px 收敛上限(见下一段)。 */
|
|
1192
1192
|
.dim-jh-badgeBtn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; max-width: 216px; min-width: 0; padding: 1px 8px; border: none; border-radius: var(--dsw-radius-sm, 6px); background: 0 0; color: var(--dsw-alias-label-tertiary); font: inherit; line-height: inherit; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .15s ease; }
|
|
1193
1193
|
.dim-jh-badgeBtn:hover, .dim-jh-badgeBtn[aria-expanded="true"] { color: var(--dsw-alias-label-primary); }
|
|
1194
|
-
/* pill 图标(叠币):与官方 pill 图标同规格(16px、currentColor 1px 描边)。
|
|
1195
|
-
flex: none —— 图标被压缩会先于文字变形,宁可让文字先让位。 */
|
|
1196
|
-
.dim-jh-badgeIcon { flex: none; }
|
|
1197
1194
|
/* 聚合「待首次请求」占位胶囊(用户报障 2026-10-08:「也没胶囊了?」)。
|
|
1198
1195
|
⚠️ 刻意与 .dim-jh-badgeBtn **外观一致但不共用类名**:那个类名带 cursor:pointer
|
|
1199
1196
|
与 :hover 反馈,而这里没有任何可点的东西(无历史 ⇒ 没有余额可展开)。
|
|
@@ -1232,7 +1229,7 @@ var STYLES = `
|
|
|
1232
1229
|
字号小一档并压紧行高,让它读起来像角标而不是读数的一部分。 */
|
|
1233
1230
|
.dim-jh-badgeWarn { flex: none; font-size: 10px; line-height: 1; color: var(--dsw-alias-state-warn-primary); cursor: help; }
|
|
1234
1231
|
|
|
1235
|
-
/* ②
|
|
1232
|
+
/* ② 窄屏收敛:只留状态点,文字让位给同排官方 pill 与输入框。
|
|
1236
1233
|
* 阈值 720px 是实测桌面版在 100% 缩放下「徽标 216px + 官方 pill ≥ 240px」的临界值。
|
|
1237
1234
|
* ⚠️⚠️ 本段的**位置**是功能性的,不要为了排版把它挪到 .dim-jh-badgeText 之前:
|
|
1238
1235
|
* 它与 ".dim-jh-badgeText { display: flex }" 特异性相同(都是单个类),
|
|
@@ -13803,32 +13800,6 @@ var CLAIM_NOTICE_MS = 8e3;
|
|
|
13803
13800
|
var CLAIM_NOTICE_WARN_MS = 2e4;
|
|
13804
13801
|
var CREDITS_COLLAPSED_LIMIT = 5;
|
|
13805
13802
|
var RESOLVE_RETRY_DELAYS = [300, 700, 1500, 2e3];
|
|
13806
|
-
function BadgePillIcon({ className }) {
|
|
13807
|
-
return React6.createElement("svg", {
|
|
13808
|
-
width: 16,
|
|
13809
|
-
height: 16,
|
|
13810
|
-
viewBox: "0 0 16 16",
|
|
13811
|
-
fill: "none",
|
|
13812
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13813
|
-
className,
|
|
13814
|
-
"aria-hidden": "true",
|
|
13815
|
-
strokeWidth: 1
|
|
13816
|
-
}, [
|
|
13817
|
-
React6.createElement("ellipse", { key: "top", cx: 8, cy: 4.4, rx: 5.2, ry: 2.5, stroke: "currentColor" }),
|
|
13818
|
-
React6.createElement("path", {
|
|
13819
|
-
key: "mid",
|
|
13820
|
-
d: "M2.8 4.4v3.4c0 1.38 2.33 2.5 5.2 2.5s5.2-1.12 5.2-2.5V4.4",
|
|
13821
|
-
stroke: "currentColor",
|
|
13822
|
-
strokeLinecap: "round"
|
|
13823
|
-
}),
|
|
13824
|
-
React6.createElement("path", {
|
|
13825
|
-
key: "bot",
|
|
13826
|
-
d: "M2.8 7.8v3.4c0 1.38 2.33 2.5 5.2 2.5s5.2-1.12 5.2-2.5V7.8",
|
|
13827
|
-
stroke: "currentColor",
|
|
13828
|
-
strokeLinecap: "round"
|
|
13829
|
-
})
|
|
13830
|
-
]);
|
|
13831
|
-
}
|
|
13832
13803
|
function UsageBadge(props) {
|
|
13833
13804
|
const resolveDirectory = props.resolveDirectory;
|
|
13834
13805
|
const [directory, setDirectory] = React6.useState(null);
|
|
@@ -14246,7 +14217,6 @@ function UsageBadgeActive(props) {
|
|
|
14246
14217
|
onClick: () => setOpen((was) => !was)
|
|
14247
14218
|
}, [
|
|
14248
14219
|
React6.createElement("span", { key: "dot", className: "dim-jh-badgeDot", "data-tone": tone }),
|
|
14249
|
-
React6.createElement(BadgePillIcon, { key: "icon", className: "dim-jh-badgeIcon" }),
|
|
14250
14220
|
collapsed
|
|
14251
14221
|
]),
|
|
14252
14222
|
open ? renderPopover() : null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xixka/dsh-hub",
|
|
3
|
-
"version": "0.2.1-rc.
|
|
3
|
+
"version": "0.2.1-rc.19",
|
|
4
4
|
"description": "DeepSeek Harness plugin: one hub for AI coding providers — account login, multi-account pools, silent credential refresh, credit claiming, and a local OpenAI-compatible gateway",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|