dsh-clash-subscription 0.6.4 → 0.8.0
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-0.8.0.md +120 -0
- package/client.js +120 -3
- package/index.js +585 -112
- package/lib/core.js +218 -1
- package/lib/health.js +7 -58
- package/lib/realprobe.js +629 -0
- package/lib/routes.js +36 -0
- package/lib/skill.js +153 -0
- package/lib/watch.js +148 -0
- package/package.json +6 -5
- package/CHANGELOG-0.6.4.md +0 -47
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# 0.8.0 · 一个循环、30 秒、延迟进判定;插件自带技能
|
|
2
|
+
|
|
3
|
+
> 上一版 `0.7.0` · 本版 `0.8.0`
|
|
4
|
+
|
|
5
|
+
## 为什么改
|
|
6
|
+
|
|
7
|
+
0.7.0 有两个定时器做同一件事,而且延迟完全不参与判定:
|
|
8
|
+
|
|
9
|
+
| 0.7.0 的字段 | 实际行为 |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `reselectMinutes: 15` | 每 15 分钟按能力重挑一次节点 |
|
|
12
|
+
| `healthRoundMinutes: 2` | 每 2 分钟真实探测当前节点 |
|
|
13
|
+
| — | 延迟只显示在面板上,**从不影响去留** |
|
|
14
|
+
|
|
15
|
+
后果:一个 1 800 ms 的节点每次都通过探测,于是被永久保留,而所有走它的请求都慢得像卡住。
|
|
16
|
+
两个循环还会互相清零计数,同一个节点得到两份结论。
|
|
17
|
+
|
|
18
|
+
## 改了什么
|
|
19
|
+
|
|
20
|
+
### 1. 合并成一个循环
|
|
21
|
+
|
|
22
|
+
`reselect` 不再是独立定时器,手动 `action=reselect` 变成「立刻跑一轮」。
|
|
23
|
+
删掉了 `scheduleReselect` / `stopReselect`,只留 `scheduleHealthRound`。
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
每 30 秒:
|
|
27
|
+
├─ 通过当前节点发真实请求(gstatic 204 / GitHub 配额 / git 拉取)
|
|
28
|
+
├─ 测 Google 延迟(warm)
|
|
29
|
+
├─ 可用 且 延迟 ≤ 400 ms → 保持,strikes = 0
|
|
30
|
+
├─ 不可用 或 延迟超阈值 → strikes += 1
|
|
31
|
+
└─ strikes ≥ 3 → 排除当前节点,按真实探测结果切到最优
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
| 字段 | 默认 | 说明 |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `healthRoundSeconds` | **30** | 轮询间隔(秒)。0 = 关闭 |
|
|
37
|
+
| `healthStrikeLimit` | 3 | 连续几轮不合格才切 |
|
|
38
|
+
| `healthMaxDelayMs` | **400** | 延迟阈值;0 = 只看连通性 |
|
|
39
|
+
| `healthBaselineProbe` | **google** | 延迟取哪个探针 |
|
|
40
|
+
| `healthSurveyEvery` | 20 | 每 N 轮后台巡测其他节点(30 秒间隔下约 10 分钟) |
|
|
41
|
+
|
|
42
|
+
旧的 `healthRoundMinutes` 会自动迁移成秒(2 分钟 → 120 秒),不会静默回落到 30 秒默认。
|
|
43
|
+
|
|
44
|
+
### 2. 延迟改成 Google,且要 warm
|
|
45
|
+
|
|
46
|
+
**基准是 Google 的 `generate_204`**:静态 204,没有 API 处理逻辑,是最接近「这个节点离你多远」的量。
|
|
47
|
+
|
|
48
|
+
但直接测出来是错的,实测两次修正:
|
|
49
|
+
|
|
50
|
+
| 错法 | 实测 | 真因 |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| 用所有探针的**总和** | 健康节点 1 286 ms,其中 gstatic 只占 90 ms | GitHub 自己的处理时间和三次 TLS 握手都在总和里,节点不背这个锅 |
|
|
53
|
+
| 用**第一次**请求 | 同一节点首轮 513 ms,之后 82 ms | 每个探针都是 `Connection: close`,首次要付 DNS + TCP + TLS;真实流量是复用的 |
|
|
54
|
+
|
|
55
|
+
所以延迟 = **Google 探针的第二次测量**。e2e 实测:`warm 149ms (cold 240ms)`,阈值 400 ms 内保持不动。
|
|
56
|
+
|
|
57
|
+
### 3. Google 不通 ≠ 节点慢
|
|
58
|
+
|
|
59
|
+
Google 不是门槛探针(`gating: false`)。它不通时:
|
|
60
|
+
|
|
61
|
+
- 不判 `slow`,不发明一个延迟;
|
|
62
|
+
- `latencySource` 标为 `unreachable`,面板能解释;
|
|
63
|
+
- 节点只按门槛探针判去留。
|
|
64
|
+
|
|
65
|
+
否则一个 Google 被限、但 GitHub/git 全通的节点会被当成慢节点切走。
|
|
66
|
+
|
|
67
|
+
### 4. 插件自带技能
|
|
68
|
+
|
|
69
|
+
原来这套排障知识只写在 README 和工具描述里,真正需要它的时候没人去翻。
|
|
70
|
+
现在通过 `ctx.skills.register()` 注册成技能 `clash-proxy-egress`,随插件加载/卸载:
|
|
71
|
+
|
|
72
|
+
| 项 | 值 |
|
|
73
|
+
|---|---|
|
|
74
|
+
| 名字 | `clash-proxy-egress` |
|
|
75
|
+
| 何时触发 | 境外命令失败(git/curl/npm/pip/web_fetch)、问代理通不通、问为什么某节点慢、要指定地区出口 |
|
|
76
|
+
| 内容 | 取证三条命令 → 修复阶梯(start → select → restart → refresh,按代价从小到大)→ 按真实探测挑节点 → 不要抢自动切换 → 症状对照表 |
|
|
77
|
+
| 长度 | 3 051 字符,含 8 个代码围栏 |
|
|
78
|
+
|
|
79
|
+
技能里明确写了两条最常犯的错:
|
|
80
|
+
|
|
81
|
+
1. **不要开桌面 Clash Verge 或改系统代理** —— 会和插件抢同一个 dispatcher,表现是「时通时不通」;
|
|
82
|
+
2. **`strikes` 没到上限时不要手动换节点** —— 会把计数清零,坏节点永远攒不满 3 轮。
|
|
83
|
+
|
|
84
|
+
### 5. 新增 `action=restart`
|
|
85
|
+
|
|
86
|
+
「内核在跑但控制 API 不应答」时的一条命令,不用先 stop 再 start。
|
|
87
|
+
|
|
88
|
+
## 验收
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
node test/regression-070.mjs → 106 passed, 0 failed
|
|
92
|
+
node test/regression-063.mjs → 31 passed, 0 failed
|
|
93
|
+
node test/e2e-080.mjs → 21 passed, 0 failed(真内核 + 真订阅 + 真请求)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
e2e 真实输出:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
round#1: state=ok latency=149ms source=warm ceiling=400 strikes=0
|
|
100
|
+
warm 149ms (cold 240ms) → 用第二次测量
|
|
101
|
+
gstatic 204 / github 200 / git 200
|
|
102
|
+
|
|
103
|
+
strict round (ceiling=1ms): state=slow latency=184ms strikes=1
|
|
104
|
+
前两轮不切换: slow/1 slow/2
|
|
105
|
+
round3: state=switched from=🇸🇬 新加坡01 to=🇺🇸 美国02 tested=7
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## 一个被测试抓住的判据错误(留档)
|
|
109
|
+
|
|
110
|
+
第一版把 `verdict.total`(所有门槛探针耗时之和)当延迟比 400 ms,e2e 立刻报
|
|
111
|
+
`健康节点首轮通过: slow 1286ms`。改用 Google 单探针后又报 `slow 513ms`,
|
|
112
|
+
再查才发现那是冷启动。两次都是判据错,不是节点慢——**如果没在真机上跑一遍,
|
|
113
|
+
上线后会把整批健康节点判成慢节点并疯狂切换**。
|
|
114
|
+
|
|
115
|
+
## 遗留
|
|
116
|
+
|
|
117
|
+
- 面板新增的两个字段(`healthMaxDelayMs` / `healthSurveyEvery`)已接进 `client.js`,
|
|
118
|
+
但**没有在真浏览器里看过渲染**(本轮只跑了逻辑测试)。
|
|
119
|
+
- `healthSurveyEvery` 的后台巡测只做了单元级验证,真机轮次里被设为 0 跳过,
|
|
120
|
+
以避免 e2e 结果受巡测干扰。
|
package/client.js
CHANGED
|
@@ -111,8 +111,30 @@ const en = {
|
|
|
111
111
|
measuredAt: 'Last measurement: {time}',
|
|
112
112
|
never: 'never',
|
|
113
113
|
usableOk: 'usable',
|
|
114
|
+
usableLimited: 'limited',
|
|
114
115
|
usableBlocked: 'blocked',
|
|
115
116
|
usableUnknown: 'untested',
|
|
117
|
+
healthTitle: 'Health watch and automatic switching',
|
|
118
|
+
autoSwitch: 'Watch the node with real requests',
|
|
119
|
+
autoSwitchHint: 'Every round sends real requests through the live node: GitHub API (including the remaining quota), a git fetch, and a 204 endpoint. A node counts as usable only when all of those answer. This is what catches a rate-limited node, which a plain latency check reports as healthy.',
|
|
120
|
+
healthRound: 'Round interval (seconds)',
|
|
121
|
+
healthRoundHint: 'How often the real-request round runs. Default 30. 0 turns it off. Each round sends a few real requests through the live node, so very short intervals cost quota.',
|
|
122
|
+
healthStrikes: 'Bad rounds before switching',
|
|
123
|
+
healthStrikesHint: 'Consecutive failed rounds before the node is given up on. A round fails when a required request does not answer, OR when the node is slower than the latency ceiling. Any good round resets the count. Default 3.',
|
|
124
|
+
healthMaxDelay: 'Latency ceiling (ms)',
|
|
125
|
+
healthMaxDelayHint: 'A node slower than this does not stay selected. 0 disables the ceiling and only reachability decides. Default 400 ms.',
|
|
126
|
+
healthSurvey: 'Survey other nodes every N rounds',
|
|
127
|
+
healthSurveyHint: 'In the background, once every N rounds, measure the other nodes for real so a switch picks from a ranked list instead of starting a slow search when the line is already broken. 0 disables the survey. Default 20 rounds (about 10 minutes at 30 s).',
|
|
128
|
+
healthCandidates: 'Nodes tried per switch',
|
|
129
|
+
healthCandidatesHint: 'How many alternatives one switch tests, fastest first. 0 tests every node, which on a 54-node subscription takes minutes.',
|
|
130
|
+
switchWhileBusy: 'Switch even with connections open',
|
|
131
|
+
switchWhileBusyHint: 'Off by default: a switch aborts whatever is in flight. On means a broken node is abandoned immediately instead of waiting for the line to go quiet.',
|
|
132
|
+
limitedNote: '{count} limited, {blocked} blocked',
|
|
133
|
+
healthRoundNote: 'Every {every}s · last round {state} at {latency} ms (ceiling {ceiling} ms) · streak {strikes}/{limit}',
|
|
134
|
+
lastSwitchNote: 'Switched {from} → {to} at {time}',
|
|
135
|
+
runHealth: 'Check the live node now',
|
|
136
|
+
healthRunning: 'Checking the live node…',
|
|
137
|
+
healthOff: 'Health watch off',
|
|
116
138
|
readOnly: 'This panel is read-only here; open it from Settings to edit.',
|
|
117
139
|
}
|
|
118
140
|
|
|
@@ -187,8 +209,30 @@ const zh = {
|
|
|
187
209
|
blockedCount: '已屏蔽 {count} 个节点',
|
|
188
210
|
blockedInvalid: '正则无效,未生效:',
|
|
189
211
|
usableOk: '可用',
|
|
212
|
+
usableLimited: '限流',
|
|
190
213
|
usableBlocked: '受限',
|
|
191
214
|
usableUnknown: '未测',
|
|
215
|
+
healthTitle: '可用性监视与自动切换',
|
|
216
|
+
autoSwitch: '用真实请求监视当前节点',
|
|
217
|
+
autoSwitchHint: '每轮都通过当前节点实发请求:GitHub API(连剩余配额一起看)、git 拉取、以及一个 204 连通性端点。全部通过才算可用。这正是「限流节点被判成可用」的那个缺口——普通延迟检测对 403 也报成功。',
|
|
218
|
+
healthRound: '检测间隔(秒)',
|
|
219
|
+
healthRoundHint: '多久跑一轮真实请求检测,默认 30 秒。0 = 关闭。每轮都会通过当前节点发几次真实请求,间隔太短会消耗服务配额。',
|
|
220
|
+
healthStrikes: '连续几轮失败才切换',
|
|
221
|
+
healthStrikesHint: '节点连续失败多少轮才放弃。记为失败有两种情况:必需的请求没通,或者节点延迟超过上面那条阈值。任何一轮通过都会把计数清零。默认 3。',
|
|
222
|
+
healthMaxDelay: '延迟阈值(毫秒)',
|
|
223
|
+
healthMaxDelayHint: '超过这个延迟的节点不会被保留。填 0 表示只看连通性,不管快慢。默认 400 毫秒。',
|
|
224
|
+
healthSurvey: '每几轮巡测一次其他节点',
|
|
225
|
+
healthSurveyHint: '后台每 N 轮真实测一次其他节点,切换时直接从排好序的候选里挑,不用等线路已经坏了才开始慢慢搜。0 = 关闭巡测。默认 20 轮(30 秒间隔下约 10 分钟)。',
|
|
226
|
+
healthCandidates: '每次切换试几个节点',
|
|
227
|
+
healthCandidatesHint: '一次切换最多试多少个候选,按延迟从低到高。0 = 全试,54 个节点要几分钟。',
|
|
228
|
+
switchWhileBusy: '有连接在进行时也切换',
|
|
229
|
+
switchWhileBusyHint: '默认关闭:切换会中断正在进行的请求。打开后坏节点会被立刻丢弃,不等线路空闲。',
|
|
230
|
+
limitedNote: '{count} 个限流,{blocked} 个不通',
|
|
231
|
+
healthRoundNote: '每 {every} 秒 · 最近一轮 {state},{latency} ms(阈值 {ceiling} ms)· 连续 {strikes}/{limit}',
|
|
232
|
+
lastSwitchNote: '已于 {time} 从「{from}」切到「{to}」',
|
|
233
|
+
runHealth: '立刻检测当前节点',
|
|
234
|
+
healthRunning: '正在检测当前节点…',
|
|
235
|
+
healthOff: '可用性监视已关闭',
|
|
192
236
|
blockedEmpty: '还没有节点清单——先启动一次,这里就会出现可勾选的节点。',
|
|
193
237
|
blockedSearch: '筛选节点…',
|
|
194
238
|
blockedSelected: '已屏蔽 {count} / 共 {total}',
|
|
@@ -354,6 +398,9 @@ const CSS = `
|
|
|
354
398
|
.clxp-usable { flex: 0 0 auto; font-size: 11px; padding: 0 5px; border-radius: 3px; line-height: 1.6; }
|
|
355
399
|
.clxp-usable.ok { color: #1a7f37; background: rgba(26, 127, 55, 0.1); }
|
|
356
400
|
.clxp-usable.blocked { color: #cf222e; background: rgba(207, 34, 46, 0.1); }
|
|
401
|
+
/* Distinct from both red and green: a node out of GitHub quota still carries everything else,
|
|
402
|
+
so painting it as dead would send the reader looking for the wrong problem. */
|
|
403
|
+
.clxp-usable.limited { color: #9a6700; background: rgba(154, 103, 0, 0.12); }
|
|
357
404
|
.clxp-usable.unknown { color: var(--dsh-text-tertiary, #8b949e); background: var(--dsh-surface-subtle, #f6f8fa); }
|
|
358
405
|
.clxp-node-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
359
406
|
.clxp-delay { font-variant-numeric: tabular-nums; color: var(--dsh-text-secondary, #57606a); font-size: 12px; }
|
|
@@ -391,10 +438,23 @@ function sections(t) {
|
|
|
391
438
|
id: 'capability',
|
|
392
439
|
title: t('capability'),
|
|
393
440
|
fields: [
|
|
394
|
-
{ key: 'requiredProbes', kind: 'text', label: t('requiredProbes'), hint: t('requiredProbesHint'), placeholder: '
|
|
441
|
+
{ key: 'requiredProbes', kind: 'text', label: t('requiredProbes'), hint: t('requiredProbesHint'), placeholder: 'github, git, gstatic' },
|
|
395
442
|
{ key: 'probes', kind: 'text', label: t('probes'), hint: t('probesHint'), placeholder: 'hf=https://huggingface.co' },
|
|
396
443
|
],
|
|
397
444
|
},
|
|
445
|
+
{
|
|
446
|
+
id: 'health',
|
|
447
|
+
title: t('healthTitle'),
|
|
448
|
+
fields: [
|
|
449
|
+
{ key: 'autoSwitch', kind: 'switch', label: t('autoSwitch'), hint: t('autoSwitchHint') },
|
|
450
|
+
{ key: 'healthRoundSeconds', kind: 'number', label: t('healthRound'), hint: t('healthRoundHint'), min: 0, max: 3600, step: 5 },
|
|
451
|
+
{ key: 'healthStrikeLimit', kind: 'number', label: t('healthStrikes'), hint: t('healthStrikesHint'), min: 1, max: 20, step: 1 },
|
|
452
|
+
{ key: 'healthMaxDelayMs', kind: 'number', label: t('healthMaxDelay'), hint: t('healthMaxDelayHint'), min: 0, max: 30000, step: 50 },
|
|
453
|
+
{ key: 'healthSurveyEvery', kind: 'number', label: t('healthSurvey'), hint: t('healthSurveyHint'), min: 0, max: 10000, step: 5 },
|
|
454
|
+
{ key: 'healthSwitchCandidates', kind: 'number', label: t('healthCandidates'), hint: t('healthCandidatesHint'), min: 0, max: 100, step: 1 },
|
|
455
|
+
{ key: 'switchWhileBusy', kind: 'switch', label: t('switchWhileBusy'), hint: t('switchWhileBusyHint') },
|
|
456
|
+
],
|
|
457
|
+
},
|
|
398
458
|
{
|
|
399
459
|
id: 'blocklist',
|
|
400
460
|
title: t('blocked'),
|
|
@@ -538,6 +598,30 @@ function Panel(props) {
|
|
|
538
598
|
const delayText = (value) =>
|
|
539
599
|
value === undefined ? t('untested') : value === null ? t('unreachable') : fill(t('delay'), { ms: value })
|
|
540
600
|
|
|
601
|
+
/**
|
|
602
|
+
* The per-probe reason behind a row's verdict, for the tooltip.
|
|
603
|
+
*
|
|
604
|
+
* Without this the badge says "limited" and the reader has no way to tell a spent GitHub
|
|
605
|
+
* quota from a blocked AI range — which are different problems with different answers
|
|
606
|
+
* (wait for the reset, or switch region).
|
|
607
|
+
*/
|
|
608
|
+
const describeRowProbes = (row, t) => {
|
|
609
|
+
const probes = row?.probes
|
|
610
|
+
if (probes === undefined || probes === null || Object.keys(probes).length === 0) {
|
|
611
|
+
return (row?.failed ?? []).join(', ')
|
|
612
|
+
}
|
|
613
|
+
return Object.values(probes)
|
|
614
|
+
.map((probe) => {
|
|
615
|
+
if (probe?.ok === true) return `${probe.label ?? probe.id}: ${probe.ms} ms`
|
|
616
|
+
if (probe?.state === 'limited') {
|
|
617
|
+
const quota = probe.remaining === undefined ? '' : `(剩余 ${probe.remaining}${probe.resetAt === undefined ? '' : `,${probe.resetAt} 重置`})`
|
|
618
|
+
return `${probe.label ?? probe.id}: 限流 ${probe.reason}${quota}`
|
|
619
|
+
}
|
|
620
|
+
return `${probe.label ?? probe.id}: ${probe.reason}`
|
|
621
|
+
})
|
|
622
|
+
.join('\n')
|
|
623
|
+
}
|
|
624
|
+
|
|
541
625
|
const field = (spec) => {
|
|
542
626
|
const value = editable ? draft[spec.key] : live?.config?.[spec.key]
|
|
543
627
|
// The multi-line subscription editor needs the full width: a grid cell clips both a
|
|
@@ -760,8 +844,16 @@ function Panel(props) {
|
|
|
760
844
|
h('span', {
|
|
761
845
|
key: 'u',
|
|
762
846
|
className: `clxp-usable ${usable}`,
|
|
763
|
-
|
|
764
|
-
|
|
847
|
+
// The reason, not just the verdict: "limited" needs to name the probe that was
|
|
848
|
+
// rate limited or the label is no more useful than the old one.
|
|
849
|
+
title: describeRowProbes(nodeRow, t),
|
|
850
|
+
}, usable === 'ok'
|
|
851
|
+
? t('usableOk')
|
|
852
|
+
: usable === 'limited'
|
|
853
|
+
? t('usableLimited')
|
|
854
|
+
: usable === 'blocked'
|
|
855
|
+
? t('usableBlocked')
|
|
856
|
+
: t('usableUnknown')),
|
|
765
857
|
h('button', {
|
|
766
858
|
key: 't',
|
|
767
859
|
type: 'button',
|
|
@@ -783,8 +875,33 @@ function Panel(props) {
|
|
|
783
875
|
h('div', { key: 'ac', className: 'clxp-actions' }, [
|
|
784
876
|
h('button', { key: 'te', type: 'button', disabled: busy !== '' || !running, onClick: () => void props.onAction('test') }, busy === 'test' ? t('testing') : t('testNow')),
|
|
785
877
|
h('button', { key: 'ta', type: 'button', disabled: busy !== '' || !running, onClick: () => void props.onAction('test', { all: true }) }, busy === 'test' ? t('testing') : t('testAll')),
|
|
878
|
+
h('button', { key: 'hl', type: 'button', disabled: busy !== '' || !running, onClick: () => void props.onAction('health') }, busy === 'health' ? t('healthRunning') : t('runHealth')),
|
|
786
879
|
h('button', { key: 'rs', type: 'button', className: 'clxp-primary', disabled: busy !== '' || !running, onClick: () => void props.onAction('reselect') }, busy === 'reselect' ? t('reselecting') : t('reselect')),
|
|
787
880
|
]),
|
|
881
|
+
// What the automatic switch is doing: armed or not, the live node's streak, and the last
|
|
882
|
+
// switch it performed. Without this the panel shows a limited node and no reason it is
|
|
883
|
+
// still selected, which reads as the bug this whole cycle exists to remove.
|
|
884
|
+
live?.health === undefined
|
|
885
|
+
? null
|
|
886
|
+
: h('p', { key: 'hlth', className: 'clxp-note' }, [
|
|
887
|
+
live.health.enabled === false
|
|
888
|
+
? t('healthOff')
|
|
889
|
+
: fill(t('healthRoundNote'), {
|
|
890
|
+
every: live.health.everySeconds ?? 30,
|
|
891
|
+
state: live.health.lastRound?.state ?? t('never'),
|
|
892
|
+
strikes: live.health.lastRound?.strikes ?? 0,
|
|
893
|
+
limit: live.health.strikeLimit ?? 3,
|
|
894
|
+
latency: live.health.lastRound?.latency ?? '—',
|
|
895
|
+
ceiling: live.health.maxDelayMs ?? 400,
|
|
896
|
+
}),
|
|
897
|
+
live.health.lastSwitch?.state === 'switched'
|
|
898
|
+
? ' · ' + fill(t('lastSwitchNote'), {
|
|
899
|
+
from: live.health.lastSwitch.from,
|
|
900
|
+
to: live.health.lastSwitch.to,
|
|
901
|
+
time: new Date(live.health.lastSwitch.at).toLocaleTimeString(),
|
|
902
|
+
})
|
|
903
|
+
: '',
|
|
904
|
+
].join('')),
|
|
788
905
|
]),
|
|
789
906
|
|
|
790
907
|
// A checkbox per node. This is the primary way to hide nodes; the text field below stays
|