@moonsand/dsh-ui-optimize 0.11.8 → 0.11.10

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.
Files changed (2) hide show
  1. package/client.js +23 -8
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -111,8 +111,8 @@ window.__ModuleLoader__.load({
111
111
  'updates.notesNoZhVersion': 'No Chinese notes for this version.',
112
112
  'updates.notesSpan': 'Changes since {from}',
113
113
  'updates.updateAll': 'Update all',
114
- 'updates.needRestartHint': '{n} of them only take effect after DSH restarts — the new code is on disk, the running process still has the old one. Restarting also reloads the page, so one restart covers both. Restart when convenient.',
115
- 'updates.needRefreshHint': 'Done. Reload the page to load the new client code.',
114
+ 'updates.needRestartHint': 'Restart DSH to apply {n} plugin(s) — the new code is on disk, the running process still holds the old one. One restart also reloads the page, so you do not need to refresh afterwards.',
115
+ 'updates.needRefreshHint': 'Refresh this page to apply the update — no restart needed.',
116
116
  'updates.updating': 'Updating…',
117
117
  'updates.none': 'Nothing to update.',
118
118
  'updates.upToDate': '{n} already up to date',
@@ -218,8 +218,8 @@ window.__ModuleLoader__.load({
218
218
  'updates.notesNoZhVersion': '该版本没有中文说明。',
219
219
  'updates.notesSpan': '自 {from} 以来的改动',
220
220
  'updates.updateAll': '一键更新',
221
- 'updates.needRestartHint': '{n} 个插件要重启 DSH 才真正生效——新代码已经在磁盘上,跑着的进程还是旧的。重启会连页面一起刷新,所以重启一次就都齐了,不急着马上重。',
222
- 'updates.needRefreshHint': '都更新完了,刷新页面即可加载新的客户端代码。',
221
+ 'updates.needRestartHint': '需要重启 DSH 才能生效({n} 个插件)——新代码已在磁盘上,运行中的进程还是旧代码。重启会一并刷新页面,不用再手动刷新。',
222
+ 'updates.needRefreshHint': '刷新页面即可生效——不需要重启。',
223
223
  'updates.updating': '更新中…',
224
224
  'updates.none': '没有可更新的插件。',
225
225
  'updates.upToDate': '其余 {n} 个已是最新版',
@@ -3097,8 +3097,10 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3097
3097
  const isOpen = !!open[row.name]
3098
3098
  return h(
3099
3099
  'li',
3100
+ { key: row.name, className: 'dsuik-up-item' },
3101
+ h(
3102
+ 'div',
3100
3103
  {
3101
- key: row.name,
3102
3104
  className: 'dsuik-up-row'
3103
3105
  + (row.state === 'running' ? ' is-running' : '')
3104
3106
  + (row.state === 'succeeded' ? ' is-ok' : '')
@@ -3106,8 +3108,9 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3106
3108
  + (isOpen ? ' is-open' : ''),
3107
3109
  style: { animationDelay: String(Math.min(index, 12) * 18) + 'ms' },
3108
3110
  },
3109
- h('button', {
3110
- type: 'button',
3111
+ h('div', {
3112
+ role: 'button',
3113
+ tabIndex: 0,
3111
3114
  className: 'dsuik-up-head',
3112
3115
  'aria-expanded': isOpen ? 'true' : 'false',
3113
3116
  title: translate('updates.notesToggle'),
@@ -3123,6 +3126,11 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3123
3126
  onClick: function () {
3124
3127
  toggleNotes(row)
3125
3128
  },
3129
+ onKeyDown: function (event) {
3130
+ if (event.key !== 'Enter' && event.key !== ' ') return
3131
+ event.preventDefault()
3132
+ toggleNotes(row)
3133
+ },
3126
3134
  },
3127
3135
  h('span', { className: 'dsuik-up-main' },
3128
3136
  h('span', { className: 'dsuik-up-name' }, row.name),
@@ -3147,6 +3155,7 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3147
3155
  : h('div', { className: 'dsuik-up-bar' }, h('i', { style: { width: String(row.percent || 0) + '%' } })))
3148
3156
  : null,
3149
3157
  isOpen ? h('div', { className: 'dsuik-up-notes' }, notesView(row.name, row)) : null,
3158
+ ),
3150
3159
  )
3151
3160
  }
3152
3161
 
@@ -3154,7 +3163,11 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3154
3163
  * below it, so the button above always matches the list above. */
3155
3164
  const groups = { ready: [], blocked: [], waiting: [] }
3156
3165
  rows.forEach(function (row) {
3157
- const ready = row.state === 'succeeded' || targetOf(row) !== null
3166
+ /* A row we are actively installing belongs with the rows you can act
3167
+ * on, even when its release is still inside the 24-hour window —
3168
+ * otherwise a forced update disappears into the "waiting" list while
3169
+ * its progress bar is still moving. */
3170
+ const ready = row.state === 'succeeded' || row.state === 'running' || targetOf(row) !== null
3158
3171
  if (ready) groups.ready.push(row)
3159
3172
  else if (row.compat && row.state !== 'succeeded') groups.blocked.push(row)
3160
3173
  else groups.waiting.push(row)
@@ -3266,6 +3279,8 @@ button.muik-shelf-row:focus-visible{outline:2px solid var(--dsw-alias-brand-prim
3266
3279
  .dsuik-up-loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:34px 0 30px;font-size:13px;color:var(--dsw-alias-label-secondary);animation:dsuik-up-in .2s ease-out both;}
3267
3280
  @media (prefers-reduced-motion: reduce){.dsuik-up-section,.dsuik-up-row,.dsuik-up-loading{animation:none;}}
3268
3281
  .dsuik-up-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;align-items:flex-start;}
3282
+ .dsuik-up-item{display:flex;align-items:center;gap:8px;align-self:flex-start;max-width:100%;}
3283
+ .dsuik-up-item .dsuik-up-row{align-self:auto;}
3269
3284
  .dsuik-up-row{display:flex;flex-direction:column;gap:4px;width:auto;align-self:flex-start;padding:3px 10px;border:1px solid var(--dsw-alias-border-l1);border-radius:999px;background:var(--dsw-alias-bg-layer-1);animation:dsuik-up-in .24s cubic-bezier(.2,.8,.3,1) both;transition:border-color .2s ease,opacity .25s ease;}
3270
3285
  .dsuik-up-head{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-align:left;}
3271
3286
  .dsuik-up-chev{font-size:10px;line-height:1;color:var(--dsw-alias-label-tertiary, var(--dsw-alias-label-secondary));}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonsand/dsh-ui-optimize",
3
- "version": "0.11.8",
3
+ "version": "0.11.10",
4
4
  "type": "module",
5
5
  "description": "Switches that tune how DeepSeek Harness looks and behaves across the whole interface, not just a few screens — each works on its own and more arrive as the shell grows: an eight-theme minimalist gallery, sidebar panel folding, and reload/restart buttons at the sidebar foot. · 调 DeepSeek Harness 整体观感与操作的开关集合,管的是整套界面而不只是某几块;每个开关独立生效,随宿主能力增长继续增加:8 套极简主题画廊、侧栏面板收纳,以及侧栏底部的刷新界面与重启应用按钮。",
6
6
  "license": "MIT",