dsh-jethub-mobile 0.1.4 → 0.1.5

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.
@@ -2942,6 +2942,36 @@ col.dim-jh-ledgerColAccount { width: 12.68%; }
2942
2942
  基础规则是 width:100% 铺满;这里改自适应宽度 + margin-right:auto 贴左,
2943
2943
  max-width:100% 保证长内容(凭据 / 有效期)仍不溢出容器。 */
2944
2944
  .dim-jh-accountList > .dim-jh-accountCard { width: auto; max-width: 100%; margin-right: auto; }
2945
+ /* 竖屏弹窗:遮罩内边距 + border-box,救回被 padding 吃掉的内容宽。
2946
+ 基础 .dim-jh-modalOverlay 左右各 24px padding,而 .dim-jh-modal 是 content-box
2947
+ 且 width:min(560px,100%) —— 360px 手机上弹窗宽解析成 312px,再扣自身左右各
2948
+ 22px padding,内容区只剩 268px(用量表格弹窗更挤),搜索框 140px + 状态按钮
2949
+ 被迫多折一行、9 列明细节只能横滑。这里把遮罩内边距收到 8px,并让弹窗用
2950
+ border-box + width:100% 把 padding 包含进宽度 ⇒ 内容区恢复到 316px。
2951
+ ⚠️ 只写 box-sizing / width / padding 三条,max-height、min-height、圆角、
2952
+ 阴影等全部继承基础规则;宽屏(>720px)这段不生效,逐字不动。 */
2953
+ .dim-jh-modalOverlay { padding: 8px; }
2954
+ .dim-jh-modal { box-sizing: border-box; width: 100%; padding: 14px 14px; }
2955
+ .dim-jh-modal--ledger { box-sizing: border-box; width: 100%; padding: 12px 10px; }
2956
+ /* 竖屏用量浮层:账号行在 323px 内宽里重新分配。
2957
+ 窄屏浮层 portal 到 body 后实际宽度 = 视口 − 16px,360px 手机扣掉自身
2958
+ padding 后内容宽只有 323px。基础规则里账号标识列写死 170px,是按宽屏
2959
+ 530px 弹窗(内宽 509px = 170 + 尾段 336)算的 —— 在 323px 里它会吃掉
2960
+ 53%,尾段只剩 153px 而实际要 336px ⇒ 长期/短期/临期/倒计时被整段截掉,
2961
+ 用户只看得到「位次 N · 名字 · 总7…」。这里让标识列收缩(最多四成),
2962
+ 并把分档段降到 10px/18px 行高,尾段才挤得进窄屏。宽屏路径逐字不动。 */
2963
+ .dim-jh-badgeColId { width: auto; max-width: 40%; }
2964
+ .dim-jh-badgeRowNoteInline > .dim-jh-badgeNotePart,
2965
+ .dim-jh-badgeRowNoteInline > .dim-jh-badgeNoteSep { font-size: 10px; line-height: 18px; }
2966
+ /* 窗口行第 4 列倒计时原写死 100px,320px 档会把进度条压到 60px 下限后溢出;
2967
+ 改成弹性下限并把浮层横向裁掉(只有 overflow-y:auto 时会出横向滚动条)。 */
2968
+ .dim-jh-badgeWins { grid-template-columns: max-content minmax(40px, 1fr) max-content minmax(64px, 88px); }
2969
+ .dim-jh-badgePop { overflow-x: hidden; }
2970
+ /* 工具行:兑现「极窄换行」的兜底注释(基础规则 nowrap + row-gap 对单行无效)。 */
2971
+ @media (max-width: 400px) {
2972
+ .dim-jh-badgeToolbar { flex-wrap: wrap; }
2973
+ .dim-jh-badgeToolbarPref { margin-left: auto; }
2974
+ }
2945
2975
  }
2946
2976
 
2947
2977
  /* ── 窄屏:用量浮层(聊天输入区那枚徽标展开的面板)──
@@ -20831,7 +20861,7 @@ function JetHubMainPanel({ rpcCall }) {
20831
20861
  if (typeof rpcCall !== "function") return null;
20832
20862
  return React12.createElement(
20833
20863
  "div",
20834
- { className: "dim-jh-panelHost", "data-plugin": "dsh-jethub-mobile" },
20864
+ { className: "dim-jh-panelHost", "data-plugin": "dsh-providers-hub" },
20835
20865
  React12.createElement(JetHubPageForMain, { rpcCall })
20836
20866
  );
20837
20867
  }
@@ -20930,7 +20960,7 @@ function registerJetHubPanelEntries(ctx, rpcCall) {
20930
20960
 
20931
20961
  // plugin-src/client/ledger-tab.js
20932
20962
  var React13 = __toESM(require("react"), 1);
20933
- var LEDGER_TAB_ID = "dsh-jethub-mobile/ledger";
20963
+ var LEDGER_TAB_ID = "dsh-providers-hub/ledger";
20934
20964
  var LEDGER_TAB_KIND = "jet-hub-ledger";
20935
20965
  var LEDGER_TAB_ORDER = 40;
20936
20966
  var GUIDE_TITLE = "JetHub 插件 Token 用量";
@@ -21444,7 +21474,7 @@ function apply(ctx) {
21444
21474
  registerModelLabelSlot(ctx, rpcCall);
21445
21475
  ctx.slots.inject("plugins.bundle.config", () => ctx.slots.register({
21446
21476
  name: "plugins.bundle.config",
21447
- key: "dsh-jethub-mobile",
21477
+ key: "dsh-providers-hub",
21448
21478
  inject: () => ({ rpcCall })
21449
21479
  }, JetHubPanelEntryCardGuarded));
21450
21480
  ctx.slots.inject("conversation.input.right", () => ctx.slots.register({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-jethub-mobile",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Jet Hub —— 基于官方 dsh-providers-hub,提供多渠道适配、账号池、余额、续期、签到、网关、模型目录等全部能力,界面保持官方原版。账号数据本体留在 ~/.dsh/.credentials.yaml。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",