dsh-better-sidebar-left 0.3.1 → 0.3.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/package.json +9 -9
- package/src/client.js +128 -52
- package/src/components.js +7 -7
- package/src/vendor/host/dsh-declutter.js +1 -1
- package/src/vendor/host/dsh-declutter.logic.js +2 -2
- package/src/vendor/host/dsh-delete-session.js +1 -1
- package/src/vendor/host/dsh-session-relocate.js +2 -2
- package/src/vendor/host/dsh-session-relocate.paths.js +1 -1
- package/src/vendor/host/dsh-session-relocate.relocate.js +1 -1
- package/src/vendor/host/dsh-session-relocate.zstd.js +1 -1
- package/src/vendor/host/dsh-settings-launcher.js +1 -1
- package/src/vendor/versions.json +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-better-sidebar-left",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Session management for DeepSeek Harness in one install: delete a session with a risk-checked confirmation, move one across workspaces (menu and drag), rename one by double-clicking its title, show per-workspace session counts, and declutter both the sidebar and the conversation's collapsed turns. Self-contained: the plugin list shows this one row, and the five components are vendored inside it - installing this plugin installs nothing else.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"dsh-delete-session": {
|
|
70
70
|
"repo": "https://github.com/DDDMUC/dsh-delete-session",
|
|
71
71
|
"ref": "main",
|
|
72
|
-
"commit": "
|
|
73
|
-
"version": "0.5.
|
|
72
|
+
"commit": "bd0e1c96a7c6d2d091fc1d0716c698712af3e939",
|
|
73
|
+
"version": "0.5.4"
|
|
74
74
|
},
|
|
75
75
|
"dsh-session-relocate": {
|
|
76
76
|
"repo": "https://github.com/DDDMUC/dsh-session-relocate",
|
|
77
77
|
"ref": "main",
|
|
78
|
-
"commit": "
|
|
79
|
-
"version": "0.3.
|
|
78
|
+
"commit": "e14a461dbfd1332d41dcc9a34b1ae3d3fb570a2b",
|
|
79
|
+
"version": "0.3.5"
|
|
80
80
|
},
|
|
81
81
|
"dsh-session-rename-dblclick": {
|
|
82
82
|
"repo": "https://github.com/DDDMUC/dsh-session-rename-dblclick",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
"dsh-declutter": {
|
|
94
94
|
"repo": "https://github.com/DDDMUC/dsh-declutter",
|
|
95
95
|
"ref": "main",
|
|
96
|
-
"commit": "
|
|
97
|
-
"version": "0.2.
|
|
96
|
+
"commit": "a439701ca268582c21bd58fda69b1e7867091063",
|
|
97
|
+
"version": "0.2.5"
|
|
98
98
|
},
|
|
99
99
|
"dsh-settings-launcher": {
|
|
100
100
|
"repo": "https://github.com/DDDMUC/dsh-settings-launcher",
|
|
101
101
|
"ref": "main",
|
|
102
|
-
"commit": "
|
|
103
|
-
"version": "0.0.
|
|
102
|
+
"commit": "4685ab923be4a6a388fcd061f0ac9d5430a50ffc",
|
|
103
|
+
"version": "0.0.5"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"client": {
|
package/src/client.js
CHANGED
|
@@ -79,7 +79,7 @@ window.__ModuleLoader__.load({
|
|
|
79
79
|
pageHintAutoWithArtifacts: '删除会话仍会弹窗——产出文件要先列清单给你勾选。',
|
|
80
80
|
pageSummaryAsk: '删除前询问',
|
|
81
81
|
pageSummaryAuto: '直接删除',
|
|
82
|
-
pageArtifactsOff: '
|
|
82
|
+
pageArtifactsOff: '不处理产出文件',
|
|
83
83
|
pageHintArtifactsOff: '删除会话只清理对话记录,完全不碰工作目录里的文件。',
|
|
84
84
|
pageHintArtifactsOn: '删除会话时还会处理这个对话在工作目录里碰过的文件。',
|
|
85
85
|
pageArtifactsAuto: '产出文件默认全部进隔离夹',
|
|
@@ -195,7 +195,7 @@ window.__ModuleLoader__.load({
|
|
|
195
195
|
pageHintAutoWithArtifacts: 'A delete still opens a dialog, because the produced-file list has to be shown first.',
|
|
196
196
|
pageSummaryAsk: 'Ask before deleting',
|
|
197
197
|
pageSummaryAuto: 'Delete without asking',
|
|
198
|
-
pageArtifactsOff: 'Leave produced files alone
|
|
198
|
+
pageArtifactsOff: 'Leave produced files alone',
|
|
199
199
|
pageHintArtifactsOff: 'Deleting a session clears its record only and never touches files in the working directory.',
|
|
200
200
|
pageHintArtifactsOn: 'Deleting a session also handles the files this conversation touched in its working directory.',
|
|
201
201
|
pageArtifactsAuto: 'Send produced files straight to quarantine',
|
|
@@ -1119,10 +1119,11 @@ window.__ModuleLoader__.load({
|
|
|
1119
1119
|
'.dsdel-field:hover{background:var(--dsdel-bg-hover)}',
|
|
1120
1120
|
'.dsdel-field:focus-within{outline:2px solid var(--dsdel-ring);outline-offset:1px}',
|
|
1121
1121
|
'.dsdel-page-hint{margin:0;color:var(--dsdel-label-faint);font-size:12.5px;line-height:19px;letter-spacing:.01em}',
|
|
1122
|
-
'.dsdel-setting{display:flex;align-items:flex-start;gap:
|
|
1123
|
-
'.dsdel-setting-text{
|
|
1124
|
-
'.dsdel-setting-title{font-size:13px;line-height:20px
|
|
1125
|
-
'.dsdel-setting-desc{font-size:12px;line-height:18px;color:var(--
|
|
1122
|
+
'.dsdel-setting{position:relative;display:flex;align-items:flex-start;gap:16px;padding:12px 0;width:100%}',
|
|
1123
|
+
'.dsdel-setting-text{flex:1;min-width:0}',
|
|
1124
|
+
'.dsdel-setting-title{font-size:13px;font-weight:600;line-height:20px}',
|
|
1125
|
+
'.dsdel-setting-desc{position:absolute;left:0;top:100%;z-index:6;max-width:min(560px,100%);margin-top:6px;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.08);background:var(--dsw-alias-bg-layer-2,#fff);box-shadow:0 6px 20px rgba(0,0,0,.10);font-size:12px;line-height:18px;color:var(--dsw-alias-label-primary,#111);opacity:0;pointer-events:none;transition:opacity .12s}',
|
|
1126
|
+
'.dsdel-setting:hover .dsdel-setting-desc{opacity:1}',
|
|
1126
1127
|
'.dsdel-switch{position:relative;flex:none;width:38px;height:22px;margin-left:auto;border:0;border-radius:11px;padding:0;cursor:pointer;background:rgba(127,127,127,.4);transition:background .12s ease}',
|
|
1127
1128
|
'.dsdel-switch[aria-checked="true"]{background:#4c8dff}',
|
|
1128
1129
|
'.dsdel-switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s ease}',
|
|
@@ -3468,10 +3469,11 @@ window.__ModuleLoader__.load({
|
|
|
3468
3469
|
'.dshsm-light .dshsm-picker-btn:hover:not(:disabled){background:rgba(0,0,0,.06)}',
|
|
3469
3470
|
'.dshsm-picker-btn:disabled{opacity:.45;cursor:default}',
|
|
3470
3471
|
// 插件设置页:连同子对话开关
|
|
3471
|
-
'.dshsm-setting{display:flex;align-items:flex-start;gap:16px;padding:12px 0;width:100%}',
|
|
3472
|
+
'.dshsm-setting{position:relative;display:flex;align-items:flex-start;gap:16px;padding:12px 0;width:100%}',
|
|
3472
3473
|
'.dshsm-setting-text{flex:1;min-width:0}',
|
|
3473
3474
|
'.dshsm-setting-title{font-size:13px;font-weight:600;line-height:20px}',
|
|
3474
|
-
'.dshsm-setting-desc{font-size:12px;line-height:18px;opacity
|
|
3475
|
+
'.dshsm-setting-desc{position:absolute;left:0;top:100%;z-index:6;max-width:min(560px,100%);margin-top:6px;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.08);background:var(--dsw-alias-bg-layer-2,#fff);box-shadow:0 6px 20px rgba(0,0,0,.10);font-size:12px;line-height:18px;color:var(--dsw-alias-label-primary,#111);opacity:0;pointer-events:none;transition:opacity .12s}',
|
|
3476
|
+
'.dshsm-setting:hover .dshsm-setting-desc{opacity:1}',
|
|
3475
3477
|
'.dshsm-seg{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:8px;background:var(--dsw-alias-interactive-bg-hover,rgba(127,127,127,.12));flex:none}',
|
|
3476
3478
|
'.dshsm-segBtn{border:0;background:0 0;color:var(--dsw-alias-label-secondary,inherit);font:inherit;font-size:12px;line-height:18px;padding:3px 8px;border-radius:6px;cursor:pointer;white-space:nowrap}',
|
|
3477
3479
|
'.dshsm-segBtn[data-on="true"]{background:var(--dsw-alias-bg-layer-2,#fff);color:var(--dsw-alias-label-primary,inherit)}',
|
|
@@ -3640,9 +3642,9 @@ window.__ModuleLoader__.load({
|
|
|
3640
3642
|
noteReleaseRetries: '(释放重试 {n} 次)',
|
|
3641
3643
|
noteSampled: '(大会话:抽样校验)',
|
|
3642
3644
|
childrenSettingTitle: '连同子对话一起移动',
|
|
3643
|
-
childrenSettingDesc: '
|
|
3645
|
+
childrenSettingDesc: '默认开。移动父对话时,它的子会话一起搬到目标工作区;关掉后只搬父对话。',
|
|
3644
3646
|
chipModeTitle: '工作区 chip 什么时候出现',
|
|
3645
|
-
chipModeDesc: '
|
|
3647
|
+
chipModeDesc: '「一直出现」常驻在输入框上方;「悬浮在那一行才出现」鼠标移到整行才显示;「只悬浮胶囊才出现」鼠标要正好落在胶囊那一小块;两者都保留占位,不会跳。「不出现」完全不渲染。',
|
|
3646
3648
|
chipModeAlways: '一直出现',
|
|
3647
3649
|
chipModeHover: '悬浮在那一行才出现',
|
|
3648
3650
|
chipModeHoverSelf: '只悬浮胶囊才出现',
|
|
@@ -3696,9 +3698,9 @@ window.__ModuleLoader__.load({
|
|
|
3696
3698
|
noteReleaseRetries: ' (release retried {n}×)',
|
|
3697
3699
|
noteSampled: ' (large session: sampled verify)',
|
|
3698
3700
|
childrenSettingTitle: 'Move child conversations too',
|
|
3699
|
-
childrenSettingDesc: 'On by default. Moving a conversation also moves its
|
|
3701
|
+
childrenSettingDesc: 'On by default. Moving a conversation also moves its child sessions to the target workspace; turn it off to move only the parent conversation.',
|
|
3700
3702
|
chipModeTitle: 'When to show the workspace chip',
|
|
3701
|
-
chipModeDesc: '"Always" keeps it above the composer; "On row hover" reveals it when the pointer enters that row; "Only when hovering the chip" needs the pointer on the chip itself. Both keep their space, so nothing jumps. "Never" hides it
|
|
3703
|
+
chipModeDesc: '"Always" keeps it above the composer; "On row hover" reveals it when the pointer enters that row; "Only when hovering the chip" needs the pointer on the chip itself. Both keep their space, so nothing jumps. "Never" hides it.',
|
|
3702
3704
|
chipModeAlways: 'Always',
|
|
3703
3705
|
chipModeHover: 'On row hover',
|
|
3704
3706
|
chipModeHoverSelf: 'Only when hovering the chip',
|
|
@@ -7380,7 +7382,7 @@ window.__ModuleLoader__.load({
|
|
|
7380
7382
|
const react = require('react')
|
|
7381
7383
|
|
|
7382
7384
|
const NS = 'dsh-declutter'
|
|
7383
|
-
const VERSION = '0.2.
|
|
7385
|
+
const VERSION = '0.2.5'
|
|
7384
7386
|
const ROUTE_PREFIX = '/dsh-declutter'
|
|
7385
7387
|
// Same cadence the sibling plugins use for transcript polling.
|
|
7386
7388
|
const REFRESH_INTERVAL_MS = 3000
|
|
@@ -8506,10 +8508,11 @@ window.__ModuleLoader__.load({
|
|
|
8506
8508
|
const FORM_CSS = [
|
|
8507
8509
|
'.dhns-form{display:flex;flex-direction:column;gap:22px;padding:12px 0}',
|
|
8508
8510
|
'.dhns-section{display:flex;flex-direction:column;gap:8px}',
|
|
8509
|
-
'.dhns-sectionHead{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}',
|
|
8511
|
+
'.dhns-sectionHead{position:relative;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}',
|
|
8510
8512
|
'.dhns-sectionTitle{margin:0;font-size:13px;font-weight:600;',
|
|
8511
8513
|
'letter-spacing:.02em;color:var(--dsw-alias-label-primary)}',
|
|
8512
|
-
'.dhns-sectionHint{font-size:
|
|
8514
|
+
'.dhns-sectionHint{position:absolute;left:0;top:100%;z-index:6;max-width:min(560px,100%);margin-top:6px;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.08);background:var(--dsw-alias-bg-layer-2,#fff);box-shadow:0 6px 20px rgba(0,0,0,.10);font-size:12px;line-height:18px;color:var(--dsw-alias-label-primary,#111);opacity:0;pointer-events:none;transition:opacity .12s}',
|
|
8515
|
+
'.dhns-sectionHead:hover .dhns-sectionHint{opacity:1}',
|
|
8513
8516
|
'.dhns-rows{display:flex;flex-direction:column;gap:8px}',
|
|
8514
8517
|
'.dhns-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}',
|
|
8515
8518
|
'.dhns-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}',
|
|
@@ -9680,6 +9683,16 @@ window.__ModuleLoader__.load({
|
|
|
9680
9683
|
'background:var(--dsw-alias-bg-primary,transparent);box-sizing:border-box}',
|
|
9681
9684
|
'.dsd-title{font-size:14px;color:var(--dsw-alias-label-primary)}',
|
|
9682
9685
|
'.dsd-sub{font-size:12px;line-height:1.5;color:var(--dsw-alias-label-tertiary)}',
|
|
9686
|
+
'.dsd-setting{display:inline-flex;align-items:center;gap:10px;padding:4px 0;width:auto}',
|
|
9687
|
+
'.dsd-setting-text{flex:0 0 auto;min-width:0}',
|
|
9688
|
+
'.dsd-setting-title{font-size:13px;font-weight:600;line-height:20px;white-space:nowrap}',
|
|
9689
|
+
'.dsd-setting-desc{font-size:12px;line-height:18px;opacity:.7;margin-top:2px}',
|
|
9690
|
+
'.dsd-switch{position:relative;flex:none;width:38px;height:22px;margin-left:auto;border:0;border-radius:11px;padding:0;cursor:pointer;background:rgba(127,127,127,.4);transition:background .12s ease}',
|
|
9691
|
+
'.dsd-switch[aria-checked="true"]{background:#4c8dff}',
|
|
9692
|
+
'.dsd-switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s ease}',
|
|
9693
|
+
'.dsd-switch[aria-checked="true"]::after{left:18px}',
|
|
9694
|
+
'.dsd-switch:focus-visible{outline:2px solid rgba(76,141,255,.45);outline-offset:2px}',
|
|
9695
|
+
'@media (prefers-reduced-motion:reduce){.dsd-switch,.dsd-switch::after{transition:none}}',
|
|
9683
9696
|
'.dsd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}',
|
|
9684
9697
|
'.dsd-btn{font:inherit;font-size:13px;line-height:20px;padding:6px 14px;cursor:pointer;',
|
|
9685
9698
|
'border-radius:var(--dsw-radius-md,8px);border:1px solid var(--dsw-alias-border-secondary,rgba(128,128,128,.3));',
|
|
@@ -9688,19 +9701,10 @@ window.__ModuleLoader__.load({
|
|
|
9688
9701
|
'.dsd-btn:disabled{opacity:.5;cursor:default}',
|
|
9689
9702
|
'.dsd-btn[data-tone=danger]{color:var(--dsw-alias-state-error-primary,#e5484d);',
|
|
9690
9703
|
'border-color:var(--dsw-alias-state-error-primary,#e5484d)}',
|
|
9691
|
-
'.dsd-note{font-size:12px;line-height:1.5;color:var(--dsw-alias-label-
|
|
9704
|
+
'.dsd-note{font-size:12px;line-height:1.5;color:var(--dsw-alias-label-primary,#111)}',
|
|
9692
9705
|
// The plugin page's form: two independent rows, each its own checkbox.
|
|
9693
9706
|
'.dsd-form{display:flex;flex-direction:column;gap:8px}',
|
|
9694
|
-
'.dsd-choice{display:flex;flex-direction:
|
|
9695
|
-
'.dsd-option{display:flex;align-items:flex-start;gap:10px;cursor:pointer;',
|
|
9696
|
-
'border:1px solid var(--dsw-alias-border-secondary,rgba(128,128,128,.18));',
|
|
9697
|
-
'border-radius:var(--dsw-radius-md,8px);padding:10px 12px;background:transparent}',
|
|
9698
|
-
'.dsd-option[data-selected=true]{border-color:var(--dsw-alias-state-business-primary,#4a6cf7);',
|
|
9699
|
-
'background:var(--dsw-alias-interactive-bg-hover)}',
|
|
9700
|
-
'.dsd-option input{margin:2px 0 0;flex:none}',
|
|
9701
|
-
'.dsd-optionText{display:flex;flex-direction:column;gap:2px;min-width:0}',
|
|
9702
|
-
'.dsd-optionTitle{font-size:13px;color:var(--dsw-alias-label-primary)}',
|
|
9703
|
-
'.dsd-optionHint{font-size:12px;line-height:1.5;color:var(--dsw-alias-label-tertiary)}',
|
|
9707
|
+
'.dsd-choice{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 28px;border:0;margin:0;padding:0}',
|
|
9704
9708
|
].join('')
|
|
9705
9709
|
|
|
9706
9710
|
function ensureStyle() {
|
|
@@ -9733,38 +9737,45 @@ window.__ModuleLoader__.load({
|
|
|
9733
9737
|
return h('span', { className: 'dsd-note' }, flagsSummary(flags))
|
|
9734
9738
|
}
|
|
9735
9739
|
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
onChange: (event) => writeFlags({ ...flags, [key]: event.target.checked === true }),
|
|
9744
|
-
}),
|
|
9740
|
+
// One switch per row: the copy on the left, the control on the right. Same
|
|
9741
|
+
// shape the session components use, so the three settings pages read alike.
|
|
9742
|
+
const row = (key, title, hint) => {
|
|
9743
|
+
const on = flags[key] === true
|
|
9744
|
+
return h(
|
|
9745
|
+
'div',
|
|
9746
|
+
{ key, className: 'dsd-setting' },
|
|
9745
9747
|
h(
|
|
9746
|
-
'
|
|
9747
|
-
{ className: 'dsd-
|
|
9748
|
-
h('
|
|
9749
|
-
h('
|
|
9748
|
+
'div',
|
|
9749
|
+
{ className: 'dsd-setting-text' },
|
|
9750
|
+
h('div', { className: 'dsd-setting-title' }, title),
|
|
9751
|
+
hint === '' || hint === undefined ? null : h('div', { className: 'dsd-setting-desc' }, hint),
|
|
9750
9752
|
),
|
|
9753
|
+
h('button', {
|
|
9754
|
+
type: 'button',
|
|
9755
|
+
role: 'switch',
|
|
9756
|
+
className: 'dsd-switch',
|
|
9757
|
+
'aria-checked': on ? 'true' : 'false',
|
|
9758
|
+
'aria-label': title,
|
|
9759
|
+
onClick: () => writeFlags({ ...flags, [key]: !on }),
|
|
9760
|
+
}),
|
|
9751
9761
|
)
|
|
9762
|
+
}
|
|
9752
9763
|
|
|
9753
9764
|
return h(
|
|
9754
9765
|
'div',
|
|
9755
9766
|
{ className: 'dsd-form' },
|
|
9756
9767
|
h(
|
|
9757
|
-
'
|
|
9758
|
-
{ className: 'dsd-choice', 'aria-label': '
|
|
9768
|
+
'div',
|
|
9769
|
+
{ className: 'dsd-choice', role: 'group', 'aria-label': '侧栏设置入口的交互' },
|
|
9759
9770
|
row(
|
|
9760
9771
|
FLAG_HOVER,
|
|
9761
9772
|
'悬浮展开菜单',
|
|
9762
|
-
'
|
|
9773
|
+
'',
|
|
9763
9774
|
),
|
|
9764
9775
|
row(
|
|
9765
9776
|
FLAG_DIRECT,
|
|
9766
9777
|
'点击进设置',
|
|
9767
|
-
'
|
|
9778
|
+
'',
|
|
9768
9779
|
),
|
|
9769
9780
|
h('span', { className: 'dsd-note' }, flagsSummary(flags)),
|
|
9770
9781
|
),
|
|
@@ -10123,7 +10134,7 @@ window.__ModuleLoader__.load({
|
|
|
10123
10134
|
if (flags.direct && openSettings === null) {
|
|
10124
10135
|
console.warn(
|
|
10125
10136
|
'[dsh-settings-launcher] 拿不到 shortcuts 服务的 registry.invoke,' +
|
|
10126
|
-
'
|
|
10137
|
+
'「点击进设置」这次不生效,设置入口保持官方行为。',
|
|
10127
10138
|
)
|
|
10128
10139
|
}
|
|
10129
10140
|
|
|
@@ -10450,7 +10461,7 @@ window.__ModuleLoader__.load({
|
|
|
10450
10461
|
const NS = 'dsh-better-sidebar-left'
|
|
10451
10462
|
|
|
10452
10463
|
/** Keep in sync with package.json and src/components.js. */
|
|
10453
|
-
const PLUGIN_VERSION = '0.3.
|
|
10464
|
+
const PLUGIN_VERSION = '0.3.2'
|
|
10454
10465
|
|
|
10455
10466
|
/** Presence marker the live verifier reads. */
|
|
10456
10467
|
const DEBUG_KEY = '__DSH_BETTER_SIDEBAR_LEFT__'
|
|
@@ -10536,6 +10547,8 @@ window.__ModuleLoader__.load({
|
|
|
10536
10547
|
panelTabTidy: '收纳与整理',
|
|
10537
10548
|
panelTabDelete: '删除会话',
|
|
10538
10549
|
panelTabMove: '移动会话',
|
|
10550
|
+
starAsk: '顺手留颗 Star,作者能高兴一整天',
|
|
10551
|
+
starCta: '行,给你一颗 Star',
|
|
10539
10552
|
panelState: '运行状态',
|
|
10540
10553
|
panelVersion: '版本',
|
|
10541
10554
|
panelPackage: '包名',
|
|
@@ -10579,6 +10592,8 @@ window.__ModuleLoader__.load({
|
|
|
10579
10592
|
panelTabTidy: 'Tidy up',
|
|
10580
10593
|
panelTabDelete: 'Delete a session',
|
|
10581
10594
|
panelTabMove: 'Move a session',
|
|
10595
|
+
starAsk: 'A star would make the author\'s day',
|
|
10596
|
+
starCta: 'Fine — have one',
|
|
10582
10597
|
panelState: 'State',
|
|
10583
10598
|
panelVersion: 'Version',
|
|
10584
10599
|
panelPackage: 'Package',
|
|
@@ -10677,11 +10692,11 @@ window.__ModuleLoader__.load({
|
|
|
10677
10692
|
"kind": "maintenance",
|
|
10678
10693
|
"repo": "https://github.com/DDDMUC/dsh-settings-launcher",
|
|
10679
10694
|
"title": {
|
|
10680
|
-
"zh": "
|
|
10681
|
-
"en": "
|
|
10695
|
+
"zh": "设置入口",
|
|
10696
|
+
"en": "Settings entry"
|
|
10682
10697
|
},
|
|
10683
10698
|
"pitch": {
|
|
10684
|
-
"zh": "
|
|
10699
|
+
"zh": "侧栏设置入口的两个独立开关:悬浮自动展开原版菜单、点击直达设置;两个都关就是官方原样。",
|
|
10685
10700
|
"en": "Two independent switches for the sidebar account entry: auto-expand the stock menu on hover, and go straight to Settings on click. Both off is the stock behaviour."
|
|
10686
10701
|
}
|
|
10687
10702
|
}
|
|
@@ -10822,6 +10837,10 @@ window.__ModuleLoader__.load({
|
|
|
10822
10837
|
{
|
|
10823
10838
|
"component": "dsh-declutter",
|
|
10824
10839
|
"exportPath": "__settings.SettingsCard",
|
|
10840
|
+
"tabLabel": {
|
|
10841
|
+
"zh": "收纳与整理",
|
|
10842
|
+
"en": "Tidy up"
|
|
10843
|
+
},
|
|
10825
10844
|
"label": {
|
|
10826
10845
|
"zh": "收纳与整理",
|
|
10827
10846
|
"en": "Declutter"
|
|
@@ -10830,6 +10849,10 @@ window.__ModuleLoader__.load({
|
|
|
10830
10849
|
{
|
|
10831
10850
|
"component": "dsh-delete-session",
|
|
10832
10851
|
"exportPath": "__settings.SettingsCard",
|
|
10852
|
+
"tabLabel": {
|
|
10853
|
+
"zh": "删除会话",
|
|
10854
|
+
"en": "Delete"
|
|
10855
|
+
},
|
|
10833
10856
|
"label": {
|
|
10834
10857
|
"zh": "删除会话",
|
|
10835
10858
|
"en": "Delete a session"
|
|
@@ -10838,6 +10861,10 @@ window.__ModuleLoader__.load({
|
|
|
10838
10861
|
{
|
|
10839
10862
|
"component": "dsh-session-relocate",
|
|
10840
10863
|
"exportPath": "__settings.ChildrenSetting",
|
|
10864
|
+
"tabLabel": {
|
|
10865
|
+
"zh": "移动会话",
|
|
10866
|
+
"en": "Move"
|
|
10867
|
+
},
|
|
10841
10868
|
"label": {
|
|
10842
10869
|
"zh": "连同子对话",
|
|
10843
10870
|
"en": "Include child conversations"
|
|
@@ -10846,9 +10873,13 @@ window.__ModuleLoader__.load({
|
|
|
10846
10873
|
{
|
|
10847
10874
|
"component": "dsh-settings-launcher",
|
|
10848
10875
|
"exportPath": "__settings.SwitchCard",
|
|
10876
|
+
"tabLabel": {
|
|
10877
|
+
"zh": "设置入口",
|
|
10878
|
+
"en": "Settings entry"
|
|
10879
|
+
},
|
|
10849
10880
|
"label": {
|
|
10850
|
-
"zh": "
|
|
10851
|
-
"en": "
|
|
10881
|
+
"zh": "设置入口",
|
|
10882
|
+
"en": "Settings entry"
|
|
10852
10883
|
}
|
|
10853
10884
|
}
|
|
10854
10885
|
]
|
|
@@ -10860,6 +10891,11 @@ window.__ModuleLoader__.load({
|
|
|
10860
10891
|
|
|
10861
10892
|
const STYLE = [
|
|
10862
10893
|
'.dbsl-page{height:100%;min-height:0;overflow-y:auto;box-sizing:border-box;padding:14px 24px 24px 46px}',
|
|
10894
|
+
'.dbsl-star{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;padding:8px 10px;border-radius:8px;border:1px solid rgba(0,0,0,.08);background:rgba(255,196,0,.06);color:inherit;text-decoration:none;font-size:12px;line-height:1.4}',
|
|
10895
|
+
'.dbsl-star:hover{background:rgba(255,196,0,.14)}',
|
|
10896
|
+
'.dbsl-starIcon{font-size:14px;line-height:1}',
|
|
10897
|
+
'.dbsl-starCta{margin-left:auto;color:#8a6d00;font-weight:600}',
|
|
10898
|
+
'@media (prefers-color-scheme: dark){.dbsl-star{border-color:rgba(255,255,255,.12);background:rgba(255,196,0,.08)}.dbsl-starCta{color:#e8c15a}}',
|
|
10863
10899
|
'.dbsl-h1{font-size:15px;font-weight:600;margin:0 0 6px}',
|
|
10864
10900
|
'.dbsl-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--dsw-alias-border-l2);padding-bottom:0;margin:2px 0 12px}',
|
|
10865
10901
|
'.dbsl-tab{font:inherit;font-size:13px;color:var(--dsw-alias-label-secondary);background:transparent;border:0;border-bottom:2px solid transparent;padding:6px 10px;margin-bottom:-1px;cursor:pointer;border-radius:6px 6px 0 0}',
|
|
@@ -11215,7 +11251,7 @@ window.__ModuleLoader__.load({
|
|
|
11215
11251
|
|
|
11216
11252
|
// One tab per component that exports a card, in manifest order: a component
|
|
11217
11253
|
// that starts exporting one gets a tab without a second place to edit.
|
|
11218
|
-
const RAIL_TABS = INTEROP.settingsCards.map((card) => ({ id: card.component, label: card.label }))
|
|
11254
|
+
const RAIL_TABS = INTEROP.settingsCards.map((card) => ({ id: card.component, label: card.tabLabel || card.label }))
|
|
11219
11255
|
|
|
11220
11256
|
/** The tab's label in the reader's language, from the manifest. */
|
|
11221
11257
|
function railTabLabel(tab) {
|
|
@@ -11250,9 +11286,47 @@ window.__ModuleLoader__.load({
|
|
|
11250
11286
|
return buttons.length === 0 ? null : h('div', { className: 'dbsl-tabs', role: 'tablist' }, buttons)
|
|
11251
11287
|
}
|
|
11252
11288
|
|
|
11289
|
+
/** Components whose own card already ends with a star banner. */
|
|
11290
|
+
const BANNER_OWNERS = ['dsh-delete-session', 'dsh-session-relocate']
|
|
11291
|
+
|
|
11292
|
+
/**
|
|
11293
|
+
* The repository of the component behind a tab, for its star banner.
|
|
11294
|
+
* @param id - component id.
|
|
11295
|
+
* @returns the https URL, or null when the manifest has none.
|
|
11296
|
+
*/
|
|
11297
|
+
function starHrefOf(id) {
|
|
11298
|
+
const entry = MANIFEST.filter((component) => component.id === id)[0]
|
|
11299
|
+
return entry === undefined || typeof entry.repo !== 'string' ? null : entry.repo
|
|
11300
|
+
}
|
|
11301
|
+
|
|
11302
|
+
/**
|
|
11303
|
+
* The star nudge, for the tabs whose component does not draw one itself.
|
|
11304
|
+
* Two components already end their card with it; adding a second banner there
|
|
11305
|
+
* would be the same request twice, so those are left alone.
|
|
11306
|
+
*/
|
|
11307
|
+
function starBannerOf(id) {
|
|
11308
|
+
if (BANNER_OWNERS.indexOf(id) !== -1) return null
|
|
11309
|
+
const href = starHrefOf(id)
|
|
11310
|
+
if (href === null) return null
|
|
11311
|
+
return h('a', {
|
|
11312
|
+
key: 'star-' + id,
|
|
11313
|
+
className: 'dbsl-star',
|
|
11314
|
+
href,
|
|
11315
|
+
target: '_blank',
|
|
11316
|
+
rel: 'noreferrer',
|
|
11317
|
+
},
|
|
11318
|
+
h('span', { key: 'icon', className: 'dbsl-starIcon', 'aria-hidden': 'true' }, '\u2b50'),
|
|
11319
|
+
h('span', { key: 'ask' }, railText('starAsk')),
|
|
11320
|
+
h('span', { key: 'cta', className: 'dbsl-starCta' }, railText('starCta')))
|
|
11321
|
+
}
|
|
11322
|
+
|
|
11253
11323
|
function railPageOf(id) {
|
|
11254
11324
|
const Card = vendoredConfigCard(id)
|
|
11255
|
-
|
|
11325
|
+
if (Card === null) return []
|
|
11326
|
+
const nodes = [h(Card, { key: 'card-' + id, view: 'full', t: railText })]
|
|
11327
|
+
const star = starBannerOf(id)
|
|
11328
|
+
if (star !== null) nodes.push(star)
|
|
11329
|
+
return nodes
|
|
11256
11330
|
}
|
|
11257
11331
|
|
|
11258
11332
|
function LeftRailPage() {
|
|
@@ -11397,6 +11471,8 @@ window.__ModuleLoader__.load({
|
|
|
11397
11471
|
exports.MANIFEST = MANIFEST
|
|
11398
11472
|
exports.INTEROP = INTEROP
|
|
11399
11473
|
exports.RAIL_TABS = RAIL_TABS
|
|
11474
|
+
// Test-only entry: the banner is appended by railPageOf, which no test renders.
|
|
11475
|
+
exports.__starBanner = starBannerOf
|
|
11400
11476
|
exports.VENDORED = VENDORED
|
|
11401
11477
|
exports.SERVICES = SERVICES
|
|
11402
11478
|
exports.failures = failures
|
package/src/components.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
export const PLUGIN_ID = 'dsh-better-sidebar-left'
|
|
25
25
|
|
|
26
26
|
/** Keep in sync with package.json and src/sidebar.js. */
|
|
27
|
-
export const PLUGIN_VERSION = '0.3.
|
|
27
|
+
export const PLUGIN_VERSION = '0.3.2'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* The five components, in the order the user meets them in the sidebar.
|
|
@@ -196,9 +196,9 @@ export const COMPONENTS = [
|
|
|
196
196
|
feature: 'launcher',
|
|
197
197
|
kind: 'maintenance',
|
|
198
198
|
repo: 'https://github.com/DDDMUC/dsh-settings-launcher',
|
|
199
|
-
title: { zh: '
|
|
199
|
+
title: { zh: '设置入口', en: 'Settings entry' },
|
|
200
200
|
pitch: {
|
|
201
|
-
zh: '
|
|
201
|
+
zh: '侧栏设置入口的两个独立开关:悬浮自动展开原版菜单、点击直达设置;两个都关就是官方原样。',
|
|
202
202
|
en: 'Two independent switches for the sidebar account entry: auto-expand the stock menu on hover, and go straight to Settings on click. Both off is the stock behaviour.',
|
|
203
203
|
},
|
|
204
204
|
slots: [{ name: 'plugins.row.config', key: 'dsh-settings-launcher#settings-launcher' }],
|
|
@@ -258,10 +258,10 @@ export const INTEROP = {
|
|
|
258
258
|
},
|
|
259
259
|
],
|
|
260
260
|
settingsCards: [
|
|
261
|
-
{ component: 'dsh-declutter', exportPath: '__settings.SettingsCard', label: { zh: '收纳与整理', en: 'Declutter' } },
|
|
262
|
-
{ component: 'dsh-delete-session', exportPath: '__settings.SettingsCard', label: { zh: '删除会话', en: 'Delete a session' } },
|
|
263
|
-
{ component: 'dsh-session-relocate', exportPath: '__settings.ChildrenSetting', label: { zh: '连同子对话', en: 'Include child conversations' } },
|
|
264
|
-
{ component: 'dsh-settings-launcher', exportPath: '__settings.SwitchCard', label: { zh: '
|
|
261
|
+
{ component: 'dsh-declutter', exportPath: '__settings.SettingsCard', tabLabel: { zh: '收纳与整理', en: 'Tidy up' }, label: { zh: '收纳与整理', en: 'Declutter' } },
|
|
262
|
+
{ component: 'dsh-delete-session', exportPath: '__settings.SettingsCard', tabLabel: { zh: '删除会话', en: 'Delete' }, label: { zh: '删除会话', en: 'Delete a session' } },
|
|
263
|
+
{ component: 'dsh-session-relocate', exportPath: '__settings.ChildrenSetting', tabLabel: { zh: '移动会话', en: 'Move' }, label: { zh: '连同子对话', en: 'Include child conversations' } },
|
|
264
|
+
{ component: 'dsh-settings-launcher', exportPath: '__settings.SwitchCard', tabLabel: { zh: '设置入口', en: 'Settings entry' }, label: { zh: '设置入口', en: 'Settings entry' } },
|
|
265
265
|
],
|
|
266
266
|
/** This plugin's own registrations: one row config seat, nothing else. */
|
|
267
267
|
pluginSlots: [{ name: 'plugins.row.config', key: PLUGIN_ID + '#' + PLUGIN_ID }],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-declutter host half (dsh-declutter.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-declutter/src/index.js (v0.2.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-declutter/src/index.js (v0.2.5, sha256 52a9cea8ada7fc81)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-declutter host half (dsh-declutter.logic.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-declutter/a sibling module (v0.2.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-declutter/a sibling module (v0.2.5, sha256 9b81064ad6671995)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
export const PLUGIN_ID = 'dsh-declutter'
|
|
52
52
|
|
|
53
53
|
/** Version, kept identical to package.json and src/client.js. */
|
|
54
|
-
export const VERSION = '0.2.
|
|
54
|
+
export const VERSION = '0.2.5'
|
|
55
55
|
|
|
56
56
|
/** View namespace. Every injected attribute/element this plugin owns is prefixed with it. */
|
|
57
57
|
export const NS = 'dshdc'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-delete-session host half (dsh-delete-session.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-delete-session/src/index.js (v0.5.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-delete-session/src/index.js (v0.5.4, sha256 c7a9942cc816b3f6)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-session-relocate host half (dsh-session-relocate.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/src/plugin.js (v0.3.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/src/plugin.js (v0.3.5, sha256 98479b99e10a79f4)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -45,7 +45,7 @@ const DEFAULT_PREFIX = '/api/dsh-session-relocate';
|
|
|
45
45
|
*/
|
|
46
46
|
const PLUGIN_VERSION = (() => {
|
|
47
47
|
try {
|
|
48
|
-
return "0.3.
|
|
48
|
+
return "0.3.5";
|
|
49
49
|
} catch {
|
|
50
50
|
return '0.0.0-unknown';
|
|
51
51
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-session-relocate host half (dsh-session-relocate.paths.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.5, sha256 2e6366216b2cf331)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-session-relocate host half (dsh-session-relocate.relocate.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.5, sha256 713b94c76832f0de)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-session-relocate host half (dsh-session-relocate.zstd.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-session-relocate/a sibling module (v0.3.5, sha256 3e84e0d59ffbc4ca)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dsh-settings-launcher host half (dsh-settings-launcher.js), VENDORED by tools/vendor.mjs - DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
// Source: ../dsh-better-sidebar-left-src/components/dsh-settings-launcher/src/index.js (v0.0.
|
|
3
|
+
// Source: ../dsh-better-sidebar-left-src/components/dsh-settings-launcher/src/index.js (v0.0.5, sha256 5aeab291ba2a47d9)
|
|
4
4
|
// Regenerate with npm run vendor; test/sync.test.js fails when this is stale.
|
|
5
5
|
//
|
|
6
6
|
// src/shell.js mounts the copy named after the component, which is why this
|
package/src/vendor/versions.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dsh-delete-session": "0.5.
|
|
3
|
-
"dsh-session-relocate": "0.3.
|
|
2
|
+
"dsh-delete-session": "0.5.4",
|
|
3
|
+
"dsh-session-relocate": "0.3.5",
|
|
4
4
|
"dsh-session-rename-dblclick": "0.3.0",
|
|
5
5
|
"dsh-session-counts": "0.0.3",
|
|
6
|
-
"dsh-declutter": "0.2.
|
|
7
|
-
"dsh-settings-launcher": "0.0.
|
|
6
|
+
"dsh-declutter": "0.2.5",
|
|
7
|
+
"dsh-settings-launcher": "0.0.5"
|
|
8
8
|
}
|