dsh-xdpool 2.6.0 → 2.6.1

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 CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
  本项目的所有重要变更都会记录在此文件。
3
3
  版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
+ ## 2.6.1 — 交流群二维码就地展开在标签栏下方
5
+
6
+ > 反馈是「一直在最底部出现不直观,我要的是就在我点击的这个箭头这里出现」。改了三版才对:`absolute` 贴 shell(跑到页面中部)、`fixed` 视口居中(技术上正确但不是需求),最后改成**跟随文档流、紧跟标签栏**的就地展开。
7
+
8
+ 这是一个 disclosure,不是弹窗:没有遮罩、没有定位、没有居中。打开时把下面的面板按它自己的高度往下推,于是二维码就出现在按钮正下方 —— 和这张卡片上其他折叠面板的行为一致,也是唯一能让答案贴着问题的做法。
9
+
10
+ - 去掉 `aria-modal`:没有遮罩却声称是 modal,会让读屏软件以为交互被挡住了,那是假话
11
+ - 没有背景可点,关闭由 × 按钮承担;Esc 仍然有效(键盘打开的东西必须能从键盘关掉)
12
+ - 渲染检查加了断言:面板必须出现在 `</nav>` 与页面主体**之间**,以后重构不能又把它挂到末尾
13
+
4
14
  ## 2.6.0 — 一次收掉 2.5.1 之后的全部改动
5
15
 
6
16
  > 本版把 2.5.2 到 2.5.6 的五个小版本合并发布。内容分四块:**群反馈的五处界面问题**、**八项借鉴来的功能**、**CodeArts 403 那四个缺陷**、以及**路由与看板的一次结构升级**。另外收掉了我自己在修补过程中引入的三处错误(lane 选择极性反转、两套 tsconfig 判据不一、`source` 变量在死区被读取)。
package/lib/client.js CHANGED
@@ -1204,7 +1204,13 @@ window.__ModuleLoader__.load({
1204
1204
  .dsm-xdpool-group svg{fill:currentColor;transition:transform .28s cubic-bezier(.34,1.56,.64,1)}
1205
1205
  /* The invite dialog. Positioned against the shell (which is the containing
1206
1206
  block) so it covers the card and nothing of the host dialog around it. */
1207
- .dsm-xdpool-groupmask{position:absolute;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;border-radius:16px;background:color-mix(in srgb, var(--dsw-alias-bg-layer-1,#191a1e) 72%, transparent)}
1207
+ /* The invite, expanded in the flow directly under the tab strip.
1208
+ No overlay and no positioning: it is a disclosure, so it pushes the panels below
1209
+ down by its own height and appears exactly where the 交流群 button sits. Two earlier
1210
+ attempts are worth remembering — absolute measured against the page column (so it
1211
+ landed half-way down the scroll), and fixed centred it as a modal (correct for a
1212
+ modal, but the ask was "show it HERE"). */
1213
+ .dsm-xdpool-groupinline{display:flex;justify-content:center}
1208
1214
  .dsm-xdpool-groupcard{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:520px;padding:16px 18px 18px;border-radius:16px;border:1px solid color-mix(in srgb, var(--dsw-alias-border-l2,#ffffff1f) 86%, transparent);background:var(--dsw-alias-bg-layer-2,#1c1e22);box-shadow:0 18px 48px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 7%)}
1209
1215
  /* The two codes sit side by side and WRAP to a column before either shrinks:
1210
1216
  a QR squeezed narrower than its module grid is a QR that stops scanning, so
@@ -2091,24 +2097,13 @@ window.__ModuleLoader__.load({
2091
2097
  })
2092
2098
  ]
2093
2099
  }),
2094
- hero === void 0 ? null : hero,
2095
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2096
- className: "dsm-xdpool-body",
2097
- children
2098
- }),
2099
2100
  !groupOpen ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2100
- className: "dsm-xdpool-groupmask",
2101
+ className: "dsm-xdpool-groupinline",
2101
2102
  role: "dialog",
2102
- "aria-modal": "true",
2103
+ "aria-modal": "false",
2103
2104
  "aria-label": t?.("shell.groupTitle") ?? "XD 交流群",
2104
- onClick: () => {
2105
- setGroupOpen(false);
2106
- },
2107
2105
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2108
2106
  className: "dsm-xdpool-groupcard",
2109
- onClick: (event) => {
2110
- event.stopPropagation();
2111
- },
2112
2107
  children: [
2113
2108
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2114
2109
  className: "dsm-xdpool-groupcardhead",
@@ -2170,6 +2165,11 @@ window.__ModuleLoader__.load({
2170
2165
  })
2171
2166
  ]
2172
2167
  })
2168
+ }),
2169
+ hero === void 0 ? null : hero,
2170
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2171
+ className: "dsm-xdpool-body",
2172
+ children
2173
2173
  })
2174
2174
  ]
2175
2175
  });
@@ -12683,7 +12683,7 @@ window.__ModuleLoader__.load({
12683
12683
  *
12684
12684
  * @module dsh-xdpool/version
12685
12685
  */
12686
- const POOL_VERSION = "2.6.0";
12686
+ const POOL_VERSION = "2.6.1";
12687
12687
  //#endregion
12688
12688
  //#region src/client/PoolCard.tsx
12689
12689
  /**
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-xdpool",
3
3
  "displayName": "DSH XD Pool",
4
4
  "description": "One DSH model pool for every free quota you have: merge all locally signed-in WorkBuddy accounts with auto-failover, sign in to 13 vendors by QR/web, aggregate 76 vendors' free tiers, plus a usage dashboard, model routing, a local OpenAI-compatible gateway and a points-automation suite.",
5
- "version": "2.6.0",
5
+ "version": "2.6.1",
6
6
  "license": "MIT",
7
7
  "author": "XDTrees",
8
8
  "homepage": "https://github.com/XDTrees/dsh-xdpool#readme",