dsh-mobile-plugin 0.5.39 → 0.5.40

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 (288) hide show
  1. package/README.md +3 -4
  2. package/docs/extension-authoring.md +34 -2
  3. package/extensions/README.md +7 -3
  4. package/extensions/catalog.json +1 -8
  5. package/lib/client.js +1 -40
  6. package/lib/mobile/extension-data.js +8 -82
  7. package/lib/mobile/extension-dev.js +56 -0
  8. package/lib/mobile/permissions.js +2 -3
  9. package/lib/mobile/third-party-extensions.js +49 -2
  10. package/lib/mobile/uploads.js +3 -31
  11. package/lib/panel/index.html +11 -11
  12. package/lib/routes/control-plane.js +0 -41
  13. package/lib/routes/mobile-api.js +2 -14
  14. package/package.json +3 -1
  15. package/extensions/magpie/agentcompact.js +0 -104
  16. package/extensions/magpie/app.css +0 -4902
  17. package/extensions/magpie/app.js +0 -24474
  18. package/extensions/magpie/autobackup.js +0 -185
  19. package/extensions/magpie/autoresetown.js +0 -151
  20. package/extensions/magpie/balfound.js +0 -38
  21. package/extensions/magpie/boot.js +0 -23
  22. package/extensions/magpie/cfgblocked.js +0 -39
  23. package/extensions/magpie/checkinnow.js +0 -111
  24. package/extensions/magpie/claudemode.js +0 -92
  25. package/extensions/magpie/compat.js +0 -41
  26. package/extensions/magpie/context.css +0 -433
  27. package/extensions/magpie/context.js +0 -1576
  28. package/extensions/magpie/ctxtext.js +0 -223
  29. package/extensions/magpie/fonts.js +0 -42
  30. package/extensions/magpie/i18n.js +0 -18942
  31. package/extensions/magpie/icons/ai21.svg +0 -1
  32. package/extensions/magpie/icons/ai302-color.svg +0 -1
  33. package/extensions/magpie/icons/ai360-color.svg +0 -1
  34. package/extensions/magpie/icons/aihubmix-color.svg +0 -1
  35. package/extensions/magpie/icons/aionui.svg +0 -1
  36. package/extensions/magpie/icons/air.svg +0 -4
  37. package/extensions/magpie/icons/alibaba-color.svg +0 -1
  38. package/extensions/magpie/icons/alibabacloud-color.svg +0 -1
  39. package/extensions/magpie/icons/alma.png +0 -0
  40. package/extensions/magpie/icons/anthropic.svg +0 -1
  41. package/extensions/magpie/icons/antigravity-color.svg +0 -1
  42. package/extensions/magpie/icons/anyscale-color.svg +0 -1
  43. package/extensions/magpie/icons/app-alma.png +0 -0
  44. package/extensions/magpie/icons/app-cc-switch.png +0 -0
  45. package/extensions/magpie/icons/apple-touch-icon.png +0 -0
  46. package/extensions/magpie/icons/aside.svg +0 -28
  47. package/extensions/magpie/icons/astrbot.svg +0 -1
  48. package/extensions/magpie/icons/atomcode.png +0 -0
  49. package/extensions/magpie/icons/aws.svg +0 -1
  50. package/extensions/magpie/icons/azure-color.svg +0 -1
  51. package/extensions/magpie/icons/azureai-color.svg +0 -1
  52. package/extensions/magpie/icons/baichuan-color.svg +0 -1
  53. package/extensions/magpie/icons/baidu-color.svg +0 -1
  54. package/extensions/magpie/icons/baiducloud-color.svg +0 -1
  55. package/extensions/magpie/icons/bailian-color.svg +0 -1
  56. package/extensions/magpie/icons/baseten.svg +0 -1
  57. package/extensions/magpie/icons/bedrock-color.svg +0 -1
  58. package/extensions/magpie/icons/burncloud-color.svg +0 -1
  59. package/extensions/magpie/icons/bytedance-color.svg +0 -1
  60. package/extensions/magpie/icons/cerebras.svg +0 -1
  61. package/extensions/magpie/icons/chatglm-color.svg +0 -1
  62. package/extensions/magpie/icons/cherryin-color.svg +0 -1
  63. package/extensions/magpie/icons/chutes.svg +0 -1
  64. package/extensions/magpie/icons/cindy.png +0 -0
  65. package/extensions/magpie/icons/claude-color.svg +0 -1
  66. package/extensions/magpie/icons/claudecode-color.svg +0 -1
  67. package/extensions/magpie/icons/cline.svg +0 -1
  68. package/extensions/magpie/icons/cloudflare-color.svg +0 -1
  69. package/extensions/magpie/icons/codebuddy-color.svg +0 -1
  70. package/extensions/magpie/icons/codex-color.svg +0 -1
  71. package/extensions/magpie/icons/cohere-color.svg +0 -1
  72. package/extensions/magpie/icons/cometapi-color.svg +0 -1
  73. package/extensions/magpie/icons/commandcode.svg +0 -1
  74. package/extensions/magpie/icons/copilot-color.svg +0 -1
  75. package/extensions/magpie/icons/coze.svg +0 -1
  76. package/extensions/magpie/icons/crush.png +0 -0
  77. package/extensions/magpie/icons/curl.svg +0 -1
  78. package/extensions/magpie/icons/cursor.svg +0 -1
  79. package/extensions/magpie/icons/deepinfra-color.svg +0 -1
  80. package/extensions/magpie/icons/deepmind-color.svg +0 -1
  81. package/extensions/magpie/icons/deepseek-color.svg +0 -1
  82. package/extensions/magpie/icons/deveco-color.svg +0 -12
  83. package/extensions/magpie/icons/devin.svg +0 -1
  84. package/extensions/magpie/icons/doubao-color.svg +0 -1
  85. package/extensions/magpie/icons/empryo-color.svg +0 -1
  86. package/extensions/magpie/icons/factory.svg +0 -1
  87. package/extensions/magpie/icons/favicon.svg +0 -1
  88. package/extensions/magpie/icons/featherless-color.svg +0 -1
  89. package/extensions/magpie/icons/fireworks-color.svg +0 -1
  90. package/extensions/magpie/icons/friendli.svg +0 -1
  91. package/extensions/magpie/icons/fx.svg +0 -1
  92. package/extensions/magpie/icons/gemini-color.svg +0 -1
  93. package/extensions/magpie/icons/geminicli-color.svg +0 -1
  94. package/extensions/magpie/icons/gemma-color.svg +0 -1
  95. package/extensions/magpie/icons/giteeai.svg +0 -1
  96. package/extensions/magpie/icons/github.svg +0 -1
  97. package/extensions/magpie/icons/githubcopilot.svg +0 -1
  98. package/extensions/magpie/icons/glama.svg +0 -1
  99. package/extensions/magpie/icons/gmicloud.svg +0 -1
  100. package/extensions/magpie/icons/google-color.svg +0 -1
  101. package/extensions/magpie/icons/googlecloud-color.svg +0 -1
  102. package/extensions/magpie/icons/goose.svg +0 -1
  103. package/extensions/magpie/icons/grok.svg +0 -1
  104. package/extensions/magpie/icons/groq.svg +0 -1
  105. package/extensions/magpie/icons/hanako.png +0 -0
  106. package/extensions/magpie/icons/hermes.svg +0 -1
  107. package/extensions/magpie/icons/huawei-color.svg +0 -1
  108. package/extensions/magpie/icons/huaweicloud-color.svg +0 -1
  109. package/extensions/magpie/icons/huggingface-color.svg +0 -1
  110. package/extensions/magpie/icons/hunyuan-color.svg +0 -1
  111. package/extensions/magpie/icons/hyperbolic-color.svg +0 -1
  112. package/extensions/magpie/icons/icon-512.png +0 -0
  113. package/extensions/magpie/icons/iflytekcloud-color.svg +0 -1
  114. package/extensions/magpie/icons/inference.svg +0 -1
  115. package/extensions/magpie/icons/infinigence-color.svg +0 -1
  116. package/extensions/magpie/icons/internlm-color.svg +0 -1
  117. package/extensions/magpie/icons/jcode.svg +0 -1
  118. package/extensions/magpie/icons/jina.svg +0 -1
  119. package/extensions/magpie/icons/kilo.svg +0 -1
  120. package/extensions/magpie/icons/kilocode.svg +0 -1
  121. package/extensions/magpie/icons/kimi-code-desktop.png +0 -0
  122. package/extensions/magpie/icons/kimi.svg +0 -1
  123. package/extensions/magpie/icons/kiro-color.svg +0 -1
  124. package/extensions/magpie/icons/kling-color.svg +0 -1
  125. package/extensions/magpie/icons/lambda.svg +0 -1
  126. package/extensions/magpie/icons/leptonai-color.svg +0 -1
  127. package/extensions/magpie/icons/liquid.svg +0 -1
  128. package/extensions/magpie/icons/liveagent-color.svg +0 -1
  129. package/extensions/magpie/icons/llmapi.svg +0 -1
  130. package/extensions/magpie/icons/lmstudio.svg +0 -1
  131. package/extensions/magpie/icons/lody.png +0 -0
  132. package/extensions/magpie/icons/longcat.svg +0 -1
  133. package/extensions/magpie/icons/magpie.svg +0 -1
  134. package/extensions/magpie/icons/meta-color.svg +0 -1
  135. package/extensions/magpie/icons/metaai-color.svg +0 -1
  136. package/extensions/magpie/icons/microsoft-color.svg +0 -1
  137. package/extensions/magpie/icons/mimocode.svg +0 -1
  138. package/extensions/magpie/icons/minimax-color.svg +0 -1
  139. package/extensions/magpie/icons/mistermorph-color.svg +0 -1
  140. package/extensions/magpie/icons/mistral-color.svg +0 -1
  141. package/extensions/magpie/icons/mlx-serve.png +0 -0
  142. package/extensions/magpie/icons/modelscope-color.svg +0 -1
  143. package/extensions/magpie/icons/monica-color.svg +0 -1
  144. package/extensions/magpie/icons/moonshot.svg +0 -1
  145. package/extensions/magpie/icons/morph-color.svg +0 -1
  146. package/extensions/magpie/icons/mothx.png +0 -0
  147. package/extensions/magpie/icons/nebius.svg +0 -1
  148. package/extensions/magpie/icons/newapi-color.svg +0 -1
  149. package/extensions/magpie/icons/nousresearch.svg +0 -1
  150. package/extensions/magpie/icons/nova-color.svg +0 -1
  151. package/extensions/magpie/icons/novita-color.svg +0 -1
  152. package/extensions/magpie/icons/nvidia-color.svg +0 -1
  153. package/extensions/magpie/icons/ollama.svg +0 -1
  154. package/extensions/magpie/icons/omlx.svg +0 -1
  155. package/extensions/magpie/icons/omo.svg +0 -1
  156. package/extensions/magpie/icons/omp.svg +0 -1
  157. package/extensions/magpie/icons/openai.svg +0 -1
  158. package/extensions/magpie/icons/openchamber.svg +0 -11
  159. package/extensions/magpie/icons/openclaw.svg +0 -1
  160. package/extensions/magpie/icons/opencode.svg +0 -1
  161. package/extensions/magpie/icons/openmausbot.svg +0 -1
  162. package/extensions/magpie/icons/openrouter.svg +0 -1
  163. package/extensions/magpie/icons/openwebui.svg +0 -1
  164. package/extensions/magpie/icons/parasail.svg +0 -1
  165. package/extensions/magpie/icons/penguin-color.svg +0 -1
  166. package/extensions/magpie/icons/perplexity-color.svg +0 -1
  167. package/extensions/magpie/icons/phala-color.svg +0 -1
  168. package/extensions/magpie/icons/pi.svg +0 -1
  169. package/extensions/magpie/icons/pipellm-color.svg +0 -5
  170. package/extensions/magpie/icons/poe.svg +0 -1
  171. package/extensions/magpie/icons/ppio-color.svg +0 -1
  172. package/extensions/magpie/icons/prime-agent.svg +0 -1
  173. package/extensions/magpie/icons/qiniu-color.svg +0 -1
  174. package/extensions/magpie/icons/qoder.svg +0 -1
  175. package/extensions/magpie/icons/qwen-color.svg +0 -1
  176. package/extensions/magpie/icons/qwenpaw.svg +0 -1
  177. package/extensions/magpie/icons/raycast.svg +0 -1
  178. package/extensions/magpie/icons/reasonix-color.svg +0 -48
  179. package/extensions/magpie/icons/reka.svg +0 -1
  180. package/extensions/magpie/icons/replicate.svg +0 -1
  181. package/extensions/magpie/icons/roocode.svg +0 -1
  182. package/extensions/magpie/icons/rtk.png +0 -0
  183. package/extensions/magpie/icons/sambanova-color.svg +0 -1
  184. package/extensions/magpie/icons/sensenova-color.svg +0 -1
  185. package/extensions/magpie/icons/siliconcloud-color.svg +0 -1
  186. package/extensions/magpie/icons/snow.png +0 -0
  187. package/extensions/magpie/icons/snowflake-color.svg +0 -1
  188. package/extensions/magpie/icons/sophnet-color.svg +0 -1
  189. package/extensions/magpie/icons/spark-color.svg +0 -1
  190. package/extensions/magpie/icons/stepfun-color.svg +0 -1
  191. package/extensions/magpie/icons/straico-color.svg +0 -1
  192. package/extensions/magpie/icons/submodel-color.svg +0 -1
  193. package/extensions/magpie/icons/t3code.svg +0 -4
  194. package/extensions/magpie/icons/targon-color.svg +0 -1
  195. package/extensions/magpie/icons/tencent-color.svg +0 -1
  196. package/extensions/magpie/icons/tencentcloud-color.svg +0 -1
  197. package/extensions/magpie/icons/tiangong-color.svg +0 -1
  198. package/extensions/magpie/icons/together-color.svg +0 -1
  199. package/extensions/magpie/icons/trae.svg +0 -1
  200. package/extensions/magpie/icons/typesafe.png +0 -0
  201. package/extensions/magpie/icons/upstage-color.svg +0 -1
  202. package/extensions/magpie/icons/venice-color.svg +0 -1
  203. package/extensions/magpie/icons/vercel.svg +0 -1
  204. package/extensions/magpie/icons/vertexai-color.svg +0 -1
  205. package/extensions/magpie/icons/vllm-color.svg +0 -1
  206. package/extensions/magpie/icons/volcengine-color.svg +0 -1
  207. package/extensions/magpie/icons/voyage-color.svg +0 -1
  208. package/extensions/magpie/icons/vscode.svg +0 -1
  209. package/extensions/magpie/icons/wenxin-color.svg +0 -1
  210. package/extensions/magpie/icons/windsurf.svg +0 -1
  211. package/extensions/magpie/icons/workbuddy-color.svg +0 -1
  212. package/extensions/magpie/icons/workersai-color.svg +0 -1
  213. package/extensions/magpie/icons/xai.svg +0 -1
  214. package/extensions/magpie/icons/xiaomimimo.svg +0 -1
  215. package/extensions/magpie/icons/xinference-color.svg +0 -1
  216. package/extensions/magpie/icons/yi.svg +0 -1
  217. package/extensions/magpie/icons/yuanbao-color.svg +0 -1
  218. package/extensions/magpie/icons/yylx.svg +0 -5
  219. package/extensions/magpie/icons/zai.svg +0 -1
  220. package/extensions/magpie/icons/zcode.png +0 -0
  221. package/extensions/magpie/icons/zed.svg +0 -1
  222. package/extensions/magpie/icons/zenmux.svg +0 -1
  223. package/extensions/magpie/icons/zeroone.svg +0 -1
  224. package/extensions/magpie/icons/zhipu-color.svg +0 -1
  225. package/extensions/magpie/icons/zoo-code.png +0 -0
  226. package/extensions/magpie/index.html +0 -572
  227. package/extensions/magpie/kernel.js +0 -274
  228. package/extensions/magpie/keyspend.js +0 -63
  229. package/extensions/magpie/layout.js +0 -26
  230. package/extensions/magpie/manifest.json +0 -37
  231. package/extensions/magpie/navlamp.js +0 -47
  232. package/extensions/magpie/omarchy.css +0 -72
  233. package/extensions/magpie/omarchy.js +0 -46
  234. package/extensions/magpie/passerrors.js +0 -21
  235. package/extensions/magpie/pluginpages.js +0 -405
  236. package/extensions/magpie/plugins/gateway/client.js +0 -1194
  237. package/extensions/magpie/plugins/gateway/keys.js +0 -972
  238. package/extensions/magpie/plugins/gateway/settings.js +0 -459
  239. package/extensions/magpie/plugins/library/client.js +0 -6788
  240. package/extensions/magpie/plugins/library/i18n.js +0 -3228
  241. package/extensions/magpie/plugins/library/library.css +0 -848
  242. package/extensions/magpie/plugins/otel/i18n.js +0 -48
  243. package/extensions/magpie/plugins/otel/page.js +0 -189
  244. package/extensions/magpie/plugins/redact/client.js +0 -46
  245. package/extensions/magpie/plugins/redact/demo.js +0 -461
  246. package/extensions/magpie/plugins/redact/i18n.js +0 -432
  247. package/extensions/magpie/plugins/redact/page.js +0 -985
  248. package/extensions/magpie/plugins/redact/redact.css +0 -385
  249. package/extensions/magpie/plugins/redact/settings.js +0 -248
  250. package/extensions/magpie/plugins/redact/xq_dark.jpg +0 -0
  251. package/extensions/magpie/plugins/redact/xq_dark.webm +0 -0
  252. package/extensions/magpie/plugins/redact/xq_light.jpg +0 -0
  253. package/extensions/magpie/plugins/redact/xq_light.webm +0 -0
  254. package/extensions/magpie/plugins/routing/client.js +0 -8593
  255. package/extensions/magpie/plugins/routing/i18n.js +0 -2696
  256. package/extensions/magpie/plugins/routing/routing.css +0 -1111
  257. package/extensions/magpie/plugins/search/settings.js +0 -460
  258. package/extensions/magpie/plugins/sessions/client.js +0 -1622
  259. package/extensions/magpie/plugins/sessions/i18n.js +0 -360
  260. package/extensions/magpie/plugins/sessions/sessions.css +0 -181
  261. package/extensions/magpie/plugins/sessions/settings.js +0 -100
  262. package/extensions/magpie/plugins/usage/client.js +0 -150
  263. package/extensions/magpie/plugins/usage/i18n.js +0 -984
  264. package/extensions/magpie/plugins/usage/page.js +0 -4307
  265. package/extensions/magpie/plugins.css +0 -319
  266. package/extensions/magpie/plugins.js +0 -1926
  267. package/extensions/magpie/profilerename.js +0 -27
  268. package/extensions/magpie/purposes.js +0 -2
  269. package/extensions/magpie/quitask.js +0 -79
  270. package/extensions/magpie/quotaall.js +0 -142
  271. package/extensions/magpie/ratewindows.js +0 -123
  272. package/extensions/magpie/registry.js +0 -87
  273. package/extensions/magpie/resetask.js +0 -137
  274. package/extensions/magpie/ruleedit.js +0 -53
  275. package/extensions/magpie/scrollends.js +0 -91
  276. package/extensions/magpie/settingshints.js +0 -75
  277. package/extensions/magpie/signsheets.js +0 -86
  278. package/extensions/magpie/start.js +0 -26
  279. package/extensions/magpie/syncfiles.js +0 -216
  280. package/extensions/magpie/theme.js +0 -29
  281. package/extensions/magpie/traywindows.js +0 -41
  282. package/extensions/magpie/webfonts.js +0 -130
  283. package/extensions/magpie/whatsnew.js +0 -252
  284. package/extensions/magpie.zip +0 -0
  285. package/lib/canvas-app.html +0 -442
  286. package/lib/mobile/canvas-store.js +0 -365
  287. package/lib/mobile/magpie-web.js +0 -425
  288. package/lib/routes/canvas-desktop.js +0 -196
@@ -1,385 +0,0 @@
1
- /* Insights › Masking (page.js): what masking kept from vendors, in a
2
- short band over the requests it changed, and one request opened. Flat
3
- only: hairlines, one thin number, the accent kept for what left this
4
- computer as placeholders */
5
- #view-masking { container-type: inline-size; }
6
- #view-masking .grow { flex: 1; }
7
- .msk-card { position: relative; padding: 16px 20px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
8
- .msk-card[hidden], .msk-list[hidden], .msk-one[hidden] { display: none; }
9
- .msk-head { display: flex; align-items: flex-start; gap: 12px; }
10
- .msk-title { min-width: 0; }
11
- .msk-title h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--fg); }
12
- .msk-sub { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--muted); }
13
- .msk-band { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 12px; }
14
- .msk-sk-num { height: 92px; border-radius: 10px; }
15
- .msk-sk-flow { height: 102px; border-radius: 10px; }
16
- .msk-num { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 52px; font-weight: 100; line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--fg); }
17
- .msk-unit { margin-top: 6px; font-size: 12.5px; color: var(--fg-2); }
18
- .msk-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
19
- .msk-stats b { margin-right: 4px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
20
- .msk-stats .held b { color: var(--red); }
21
- .msk-days { position: relative; height: 40px; margin-top: 10px; display: flex; flex-direction: column; }
22
- .msk-bars { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 4px; }
23
- .msk-bars.many { gap: 2px; }
24
- .msk-day { flex: 1 1 0; min-width: 3px; display: flex; align-items: flex-end; }
25
- .msk-day i { display: block; width: 100%; border-radius: 1.5px; background: color-mix(in srgb, var(--fg) 24%, transparent); transform-origin: bottom; transition: background-color .15s; }
26
- .msk-day:hover i { background: color-mix(in srgb, var(--fg) 42%, transparent); }
27
- .msk-day.now i, .msk-day.now:hover i { background: var(--accent); }
28
- .msk-day.zero i { height: 2px; background: var(--line); }
29
- .msk-axis { display: flex; justify-content: space-between; padding-top: 4px; font-size: 10.5px; line-height: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
30
- .msk-axis span:last-child { color: var(--accent); }
31
- .msk-ctip { position: absolute; top: -4px; transform: translate(-50%, -100%); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); font-size: 11px; white-space: nowrap; color: var(--fg); font-variant-numeric: tabular-nums; pointer-events: none; z-index: 2; }
32
- .msk-ctip[hidden] { display: none; }
33
- .msk-flow-none { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
34
-
35
- /* agents → this computer → providers: hairlines on a faint grid, magpie's
36
- bird where they cross the line (the lines' svg is the middle's own child;
37
- the bird's, inside .msk-hub, is centred by it) */
38
- .msk-fl { min-width: 0; }
39
- .mo-flow { position: relative; display: grid; grid-template-columns: minmax(0, 140px) minmax(80px, 1fr) minmax(0, 140px); gap: 14px; }
40
- .mo-col { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
41
- /* the agents' nodes as one block against the lines, as wide as the widest,
42
- so their logos make one column and their names one edge, as the
43
- providers' do */
44
- .mo-col.agent { display: grid; grid-template-columns: minmax(0, max-content); justify-content: end; align-content: center; }
45
- .mo-node { display: flex; align-items: center; gap: 8px; height: 34px; min-width: 0; padding: 0 10px 0 6px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: default; }
46
- .mo-node .tx { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
47
- /* each logo on the same disc: a logo's own drawing fills its box or not
48
- (Pi's edge to edge, Codex's a tile of its own), and bare they read as
49
- three sizes */
50
- .mo-node .ic { box-sizing: border-box; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
51
- .mo-node .ic > svg { width: 14px; height: 14px; }
52
- .mo-node:disabled .ic { visibility: hidden; }
53
- .mo-node:not(:disabled):hover { background: var(--pill); }
54
- .mo-node:disabled { color: var(--muted); }
55
- .mo-node .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
56
- .mo-node .ct { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
57
- .mo-col.provider .ct { color: var(--accent); }
58
- .mo-mid { position: relative; min-width: 0; }
59
- .mo-mid > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
60
- .mo-mid::before { content: ""; position: absolute; inset: 0; background: var(--fg); opacity: .07; pointer-events: none;
61
- -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1' cy='1' r='.6'/%3E%3C/svg%3E") 0 0 / 14px 14px;
62
- mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1' cy='1' r='.6'/%3E%3C/svg%3E") 0 0 / 14px 14px; }
63
- .mo-th { fill: none; stroke: var(--fg); stroke-width: .6; stroke-dasharray: 1 1; }
64
- .mo-th.out { stroke: var(--accent); }
65
- .mo-th.one { stroke-width: .9; }
66
- .mo-mem { stroke: var(--accent); stroke-opacity: .55; stroke-width: 1; }
67
- .mo-tick { stroke: var(--accent); stroke-opacity: .35; stroke-width: .6; }
68
- .mo-scan { fill: var(--accent); opacity: 0; animation: mo-scan 5.5s cubic-bezier(.45, 0, .55, 1) 2; }
69
- @keyframes mo-scan { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(var(--h)); opacity: 0; } }
70
- .mo-dot { fill: var(--fg); opacity: 0; }
71
- .mo-dot.out { fill: var(--accent); }
72
- .mo-cap { margin-top: 8px; text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
73
- .mo-node.on { background: var(--accent-soft); }
74
- .mo-node .nm { line-height: 16px; }
75
- .mo-node .ct { line-height: 13px; }
76
- .msk-hub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 5px var(--card); color: var(--accent); }
77
- .msk-hub svg { width: 20px; height: 20px; }
78
-
79
- /* the masking off, nothing ever masked: what it would do */
80
- .msk-card.off { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 24px; text-align: center; }
81
- .msk-card.off h2 { margin: 0; font-size: 16px; font-weight: 600; }
82
- .msk-card.off p { margin: 0; max-width: 420px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
83
- .msk-off-ic { width: 44px; height: 44px; color: var(--accent); }
84
- .msk-off-ic path { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
85
- .msk-also { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); }
86
-
87
- /* the list: a bar, facets that narrow it, a day at a time */
88
- .msk-list { margin-top: 14px; }
89
- .msk-prefs { margin-top: 14px; border-radius: 14px; }
90
- .msk-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
91
- .msk-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
92
- .msk-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green, var(--accent)); animation: msk-live 2.4s ease-in-out; }
93
- @keyframes msk-live { 50% { opacity: .35; } }
94
- .msk-facets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
95
- .msk-facet { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--fg-2); font: inherit; font-size: 12px; cursor: default; white-space: nowrap; }
96
- .msk-facet:hover { background: var(--pill); }
97
- .msk-facet[aria-pressed="true"] { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
98
- .msk-facet b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
99
- .msk-facet[aria-pressed="true"] b { color: inherit; }
100
- .msk-facet .x { color: var(--muted); }
101
- .msk-fdot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
102
- .msk-facet.secret .msk-fdot { background: var(--c1); }
103
- .msk-facet.rule .msk-fdot { background: var(--fg-2); }
104
- .msk-facet.model .msk-fdot { background: var(--c6); }
105
- .msk-facet.blocked .msk-fdot { background: var(--red); }
106
- .msk-group { margin-top: 10px; }
107
- .msk-gday { margin: 0 2px 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
108
- .msk-group .list { overflow: hidden; }
109
- .msk-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px 6px 12px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; cursor: default; }
110
- .msk-row + .msk-row { border-top: 1px solid var(--line); }
111
- .msk-row:hover { background: var(--pill); }
112
- .msk-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft); }
113
- .msk-time { flex: none; width: 40px; color: var(--muted); font-variant-numeric: tabular-nums; }
114
- .msk-route { flex: 0 1 auto; display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
115
- .msk-route .ic, .msk-who .ic { flex: none; width: 14px; height: 14px; }
116
- .msk-route .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
117
- .msk-route .arrow, .msk-who .arrow { flex: none; color: var(--faint); }
118
- .msk-model { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
119
- .msk-kinds { flex: none; display: flex; gap: 4px; }
120
- .msk-kind { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line); background: var(--card-2); font-size: 11px; color: var(--fg-2); white-space: nowrap; }
121
- .msk-kind b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
122
- .msk-kind.more { color: var(--muted); }
123
- .msk-held, .msk-what { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; white-space: nowrap; }
124
- .msk-held { color: var(--red); background: var(--red-soft); }
125
- .msk-what { color: var(--muted); background: var(--pill); }
126
- .msk-n { flex: none; min-width: 22px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
127
- .msk-chev { flex: none; display: inline-flex; color: var(--faint); }
128
- .msk-none { padding: 26px 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
129
- .msk-none.err { color: var(--red); }
130
- .msk-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 0 2px; font-size: 11.5px; color: var(--muted); }
131
- .msk-foot > span { flex: 1; min-width: 0; }
132
- .msk-vhead { display: flex; align-items: baseline; gap: 10px; margin: 12px 2px 5px; font-size: 11.5px; color: var(--muted); }
133
- .msk-vhead span:first-child { font-weight: 600; }
134
- .msk-vals { overflow: hidden; }
135
- .msk-vrow { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; border: 0; background: none; color: var(--fg); font: inherit; font-size: 12.5px; text-align: left; cursor: default; outline: none; }
136
- .msk-vrow + .msk-vrow { border-top: 1px solid var(--line); }
137
- .msk-vrow:hover, .msk-vrow:focus-visible { background: var(--pill); }
138
- .msk-vrow .i { flex: none; width: 16px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
139
- .msk-vrow .sh { flex: 0 1 150px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--code); font-size: 12px; }
140
- .msk-vrow .k { flex: 0 1 130px; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; color: var(--fg-2); }
141
- .msk-vrow .by { flex: none; width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
142
- .msk-vrow .bar { flex: 1; min-width: 12px; display: flex; }
143
- .msk-vrow .bar i { height: 1px; background: color-mix(in srgb, var(--fg) 24%, transparent); }
144
- .msk-vrow:hover .bar i { background: var(--accent); }
145
- .msk-vrow .x { flex: none; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
146
-
147
- /* one request: back, its route and steps, its text, how each value went */
148
- /* back, when, newer and older stay at the top while a long request
149
- scrolls under them, on the frosted strip Settings' head has */
150
- .msk-onebar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 28px; }
151
- .msk-onebar::before {
152
- content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -6px calc(var(--bar, 0px) - 12px) -6px -12px; /* the bar's room is out of the padding */
153
- background: color-mix(in srgb, var(--bg) 92%, transparent);
154
- -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
155
- }
156
- body.window .msk-onebar { top: -2px; }
157
- body.window .msk-onebar::before { inset: -6px calc(var(--bar, 0px) - 16px) -6px -16px; }
158
- .msk-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; }
159
- .msk-crumb { color: var(--faint); }
160
- .msk-when { font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
161
- .msk-req { margin-top: 8px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
162
- .msk-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; }
163
- .msk-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--pill); font-size: 11.5px; font-weight: 400; color: var(--fg-2); }
164
- .msk-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
165
- .msk-steps li { position: relative; min-width: 0; }
166
- /* the line runs from the step before's number to this one's, 6px clear of
167
- each: the columns are as wide as this one, 10px apart, numbers 20px */
168
- .msk-steps li + li::before { content: ""; position: absolute; left: calc(16px - 100%); top: 10px; width: calc(100% - 22px); height: 1px; background: var(--line-2); }
169
- .msk-sdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
170
- .msk-steps li.held .msk-sdot { background: var(--red-soft); color: var(--red); }
171
- .msk-steps li.none .msk-sdot { background: var(--pill); color: var(--muted); }
172
- .msk-st { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--fg); }
173
- .msk-steps li.held .msk-st { color: var(--red); }
174
- .msk-ss { margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
175
- .msk-blocked { margin-top: 10px; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent); }
176
- .msk-bhead { display: flex; align-items: center; gap: 8px; color: var(--red); }
177
- .msk-bhead svg path:first-child { fill: var(--red-soft); }
178
- .msk-bhead h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--fg); }
179
- .msk-blocked p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--fg-2); }
180
- .msk-btools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
181
- .msk-onegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 14px; align-items: start; margin-top: 12px; }
182
- .msk-content, .msk-how { min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
183
- .msk-chead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 10px; }
184
- .msk-chead h2 { margin: 0; font-size: 13px; font-weight: 600; }
185
- .msk-hint { font-size: 11.5px; color: var(--faint); }
186
- .msk-gone { margin: 0 0 10px; font-size: 12px; line-height: 1.55; color: var(--muted); }
187
- .msk-msgs { display: flex; flex-direction: column; gap: 8px; }
188
- .msk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 11px; color: var(--muted); }
189
- .msk-msg { border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
190
- .msk-mhead { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
191
- .msk-role { font-weight: 600; color: var(--fg-2); }
192
- .msk-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--code); font-size: 11px; color: var(--faint); }
193
- .msk-count { flex: none; color: var(--muted); }
194
- .msk-mbody { display: grid; grid-template-columns: minmax(0, 1fr); }
195
- .msk-msgs.both .msk-mbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
196
- .msk-msgs.both .msk-text + .msk-text { border-left: 1px solid var(--line); }
197
- .msk-text { padding: 9px 12px; font-family: var(--code); font-size: 12px; line-height: 1.75; color: var(--fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
198
- .msk-gap { color: var(--faint); }
199
- .msk-ph, .msk-orig { --k: var(--accent); padding: 1px 4px; border-radius: 4px; font: inherit; color: var(--fg); background: color-mix(in srgb, var(--k) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent); outline: none; cursor: default; transition: opacity .15s, box-shadow .15s; }
200
- .msk-ph:hover, .msk-ph:focus-visible, .msk-orig:hover, .msk-orig:focus-visible { background: color-mix(in srgb, var(--k) 26%, transparent); }
201
- .msk-orig { background: transparent; box-shadow: inset 0 -1.5px 0 var(--k); border-radius: 2px; }
202
- .msk-orig.gone { color: var(--faint); }
203
- .msk-one.picking mark[data-p]:not(.lit) { opacity: .4; }
204
- .msk-one mark.lit { box-shadow: inset 0 0 0 1.5px var(--k); }
205
- .msk-whole { margin: 0 8px 6px; }
206
- .msk-fold { border-radius: 10px; border: 1px dashed var(--line); }
207
- .msk-foldb { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; text-align: left; cursor: default; }
208
- .msk-foldb svg { transition: transform .2s var(--ease); }
209
- .msk-fold.open .msk-foldb svg { transform: rotate(90deg); }
210
- .msk-foldb:hover { color: var(--fg-2); }
211
- .msk-size { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
212
- .msk-same { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 4px; }
213
- .msk-sameline { display: flex; gap: 8px; font-family: var(--code); font-size: 11px; line-height: 1.5; color: var(--muted); }
214
- .msk-sameline > span:last-child { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
215
- .msk-sameline .msk-path { flex: none; max-width: 40%; }
216
- .msk-how { display: flex; flex-direction: column; gap: 8px; }
217
- .msk-how .msk-chead { margin-bottom: 2px; }
218
- .msk-val { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font: inherit; text-align: left; cursor: default; }
219
- .msk-val:hover { background: var(--pill); }
220
- .msk-val[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--k); }
221
- .msk-vtop { display: flex; align-items: center; gap: 6px; font-size: 12px; }
222
- .msk-vk { font-weight: 600; }
223
- .msk-vx { color: var(--muted); font-variant-numeric: tabular-nums; }
224
- .msk-vmid { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--code); font-size: 11.5px; min-width: 0; }
225
- .msk-vmid svg { flex: none; color: var(--faint); }
226
- .msk-vshown, .msk-vph { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
227
- .msk-vph { color: var(--accent); }
228
- .msk-vmeta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 8px 0 0; font-size: 11px; }
229
- .msk-vmeta dt { color: var(--faint); }
230
- .msk-vmeta dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
231
- .msk-note { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--faint); }
232
-
233
- @container (max-width: 760px) {
234
- .msk-onegrid { grid-template-columns: minmax(0, 1fr); }
235
- .msk-steps { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); row-gap: 12px; }
236
- .msk-steps li + li::before { display: none; }
237
- }
238
- /* below this the flow beside the number leaves its middle under ~120px:
239
- the lines bunch up and the providers' names are cut, so it goes under */
240
- @container (max-width: 780px) {
241
- .msk-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
242
- /* under the number the flow has the card's width: the names take what
243
- they need, the middle the rest, not a third of it */
244
- .mo-flow { grid-template-columns: fit-content(150px) minmax(80px, 1fr) fit-content(150px); }
245
- }
246
- @container (max-width: 640px) {
247
- .mo-flow { grid-template-columns: fit-content(120px) minmax(48px, 1fr) fit-content(120px); gap: 4px; }
248
- .msk-model, .msk-kind:not(:first-child), .msk-kind.more { display: none; }
249
- .msk-msgs.both .msk-mbody, .msk-cols { grid-template-columns: minmax(0, 1fr); }
250
- .msk-cols span:last-child { display: none; }
251
- .msk-msgs.both .msk-text + .msk-text { border-left: 0; border-top: 1px solid var(--line); }
252
- .msk-vrow .by, .msk-vrow .bar { display: none; }
253
- }
254
- @media (prefers-reduced-motion: reduce) { .mo-scan, .msk-live i { animation: none; } }
255
-
256
- /* How masking works (demo.js): a row that opens onto 小鹊 taking one request
257
- through. Her video is drawn on the card's colour, one take per theme; the
258
- stage is laid out at 1000×420 and scaled to the card */
259
- .msk-demo { flex: none; margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
260
- .msk-demo[hidden], .md-body[hidden] { display: none; }
261
- .md-row { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 16px 9px 12px; cursor: pointer; }
262
- .md-row:hover { background: var(--pill-hover); }
263
- .md-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
264
- .md-thumb { flex: none; width: 32px; height: 32px; border-radius: 9px; background: url(xq_light.jpg) -33px -5px / 98px auto no-repeat var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
265
- .md-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
266
- .md-name { font-size: 13px; font-weight: 600; color: var(--fg); }
267
- .md-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
268
- .md-len { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
269
- .md-chev { flex: none; color: var(--faint); transition: transform .2s; }
270
- .md-row[aria-expanded="true"] .md-chev { transform: rotate(90deg); }
271
- .md-body { border-top: 1px solid var(--line-2); padding: 10px 12px 12px; }
272
- @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .md-thumb { background-image: url(xq_dark.jpg); } }
273
- :root[data-theme="dark"] .md-thumb { background-image: url(xq_dark.jpg); }
274
-
275
- .xqd { --xq-paper: #fffdf8; --xq-shadow: 0 6px 18px rgba(20, 22, 30, .10), 0 1px 3px rgba(20, 22, 30, .06), 0 0 0 .5px rgba(20, 22, 30, .08); --xq-env-shadow: rgba(20, 22, 30, .10); font-size: 13px; line-height: 1.45; color: var(--fg); }
276
- @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xqd { --xq-paper: #2a2a2f; --xq-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .07); --xq-env-shadow: rgba(0, 0, 0, .35); } }
277
- :root[data-theme="dark"] .xqd { --xq-paper: #2a2a2f; --xq-shadow: 0 6px 18px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .07); --xq-env-shadow: rgba(0, 0, 0, .35); }
278
- .xqd * { box-sizing: border-box; }
279
- .xq-vp { position: relative; width: 100%; aspect-ratio: 1000 / 420; overflow: hidden; }
280
- .xq-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 420px; transform-origin: 0 0; contain: layout; }
281
- .xq-mv { will-change: transform, opacity; }
282
- .xq-lane { position: absolute; top: 6px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
283
- .xq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
284
- .xq-dot.far { background: var(--faint); }
285
- .xq-divider { position: absolute; left: 784px; top: 6px; bottom: 6px; width: 0; border-left: 1px dashed var(--line); }
286
- .xq-divider span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); padding: 2px 8px; border-radius: 6px; background: var(--card); font-size: 10.5px; white-space: nowrap; color: var(--faint); }
287
- .xq-box { position: absolute; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(20, 22, 30, .04); }
288
- .xq-h { display: block; font-size: 12px; line-height: 16px; font-weight: 600; }
289
- .xq-sub { display: block; font-size: 10.5px; line-height: 14px; font-weight: 400; color: var(--muted); }
290
- .xq-bh { display: flex; align-items: center; gap: 8px; padding: 9px 11px 0; }
291
- .xq-bh > div:last-child { min-width: 0; }
292
- .xq-ic { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--pill); color: var(--fg-2); }
293
- .xq-ic.xq-acc { background: var(--accent-soft); color: var(--accent); }
294
- .xq-stage [data-k="req"] { left: 16px; top: 28px; width: 220px; height: 112px; }
295
- .xq-msg { margin: 5px 11px 0; font-size: 12px; line-height: 1.4; color: var(--fg-2); overflow-wrap: anywhere; }
296
- .xq-msg b { font-weight: 600; color: var(--fg); }
297
- .xq-caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--accent); }
298
- .xq-stage [data-k="ledger"] { left: 16px; top: 148px; width: 220px; height: 126px; }
299
- .xq-llist { margin: 6px 11px 0; display: flex; flex-direction: column; gap: 5px; }
300
- .xq-lrow { position: relative; margin: 0 -5px; padding: 0 5px; display: flex; flex-direction: column; gap: 2px; border-radius: 7px; opacity: 0; transition: background-color .2s, box-shadow .2s; }
301
- .xq-lv { padding-left: 1px; font-family: var(--code); font-size: 11px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
302
- .xq-lc { align-self: flex-start; }
303
- .xq-lrow.hot { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
304
- .xq-lempty { position: absolute; left: 11px; right: 11px; top: 68px; text-align: center; font-size: 11px; color: var(--faint); }
305
- .xq-stage [data-k="browser"] { left: 16px; top: 282px; width: 220px; height: 130px; }
306
- .xq-bbar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
307
- .xq-bbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
308
- .xq-url { flex: 1; height: 18px; margin-left: 6px; padding: 0 7px; display: flex; align-items: center; gap: 5px; border-radius: 6px; background: var(--pill); font-size: 10.5px; color: var(--muted); }
309
- .xq-bform { padding: 7px 12px; }
310
- .xq-field { height: 22px; margin-bottom: 5px; padding: 0 7px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; border: 1px solid var(--line); border-radius: 7px; background: var(--card-2); font-family: var(--code); font-size: 11px; color: var(--fg); }
311
- .xq-field.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
312
- .xq-bbtn { height: 22px; margin-top: 4px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); font-size: 11px; font-weight: 600; color: var(--accent-fg); }
313
- .xq-bok { position: absolute; inset: 32px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--card); font-size: 12px; font-weight: 600; text-align: center; opacity: 0; }
314
- .xq-chk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
315
- .xq-her { position: absolute; left: 290px; top: 16px; width: 440px; height: 293.33px; pointer-events: none; }
316
- .xq-her video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.6%, #000 98.4%, transparent), linear-gradient(transparent, #000 4%, #000 98.4%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
317
- .xq-paper { position: absolute; left: 360px; top: 274px; width: 300px; height: 118px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--xq-paper); box-shadow: var(--xq-shadow); transform-origin: 50% 50%; visibility: hidden; }
318
- .xq-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 10.5px; white-space: nowrap; color: var(--muted); }
319
- .xq-ln { display: flex; align-items: center; gap: 8px; height: 26px; font-size: 12px; white-space: nowrap; color: var(--fg-2); }
320
- .xq-k { flex: none; width: 60px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--muted); }
321
- .xq-fn { font-family: var(--code); font-size: 11.5px; font-weight: 600; color: var(--fg); }
322
- .xq-arg { font-family: var(--code); font-size: 11px; color: var(--muted); }
323
- .xq-slot { position: relative; flex: none; display: inline-block; height: 22px; vertical-align: middle; }
324
- .xq-slot > span { position: absolute; left: 0; top: 0; height: 22px; padding: 0 7px; display: flex; align-items: center; border-radius: 7px; white-space: nowrap; font-family: var(--code); font-size: 11px; }
325
- .xq-real { color: var(--fg); }
326
- .xq-real.hl { background: var(--amber-soft); color: var(--amber); }
327
- .xq-real.ok { background: var(--green-soft); color: var(--green); }
328
- .xq-slot > .xq-hole { inset: 0; width: 100%; border: 1px dashed var(--faint); opacity: 0; }
329
- .xq-code, .xq-pillc { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; white-space: nowrap; background: var(--accent-soft); font-family: var(--code); font-size: 11px; font-weight: 600; color: var(--accent); }
330
- .xq-pillc { height: 19px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; }
331
- .xq-code.torn { background: var(--amber-soft); color: var(--amber); }
332
- .xq-code.back { background: var(--green-soft); color: var(--green); }
333
- .xq-stage [data-k="prov"] { left: 800px; top: 28px; width: 186px; height: 384px; }
334
- .xq-psec { margin: 8px 11px 0; padding-top: 8px; border-top: 1px solid var(--line-2); opacity: 0; }
335
- .xq-cap { display: block; margin-bottom: 3px; font-size: 10.5px; color: var(--muted); }
336
- .xq-pline { display: flex; flex-direction: column; gap: 1px; margin-bottom: 3px; font-size: 11.5px; color: var(--fg-2); }
337
- .xq-pline .xq-pillc { align-self: flex-start; }
338
- .xq-pcode { font-family: var(--code); font-size: 10.5px; line-height: 1.45; color: var(--fg); }
339
- .xq-ind { padding-left: 8px; }
340
- .xq-pcode .xq-pillc { margin: 0 0 0 8px; }
341
- .xq-think { display: flex; gap: 4px; padding: 4px 0; }
342
- .xq-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
343
- .xq-pnote { margin: 8px 11px 0; display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.4; color: var(--muted); opacity: 0; }
344
- .xq-pnote svg { flex: none; margin-top: 1px; color: var(--green); }
345
- /* the shadow is drawn in the svg: a filter on a moving layer is redrawn every frame */
346
- .xq-env { position: absolute; left: 0; top: 0; width: 82px; height: 58px; margin: -27px 0 0 -41px; overflow: visible; opacity: 0; }
347
- .xq-flyer { position: absolute; left: 0; top: 0; opacity: 0; }
348
- .xq-flyer .xq-code { box-shadow: var(--xq-shadow); }
349
- .xq-trail { position: absolute; left: 0; top: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; opacity: 0; }
350
- .xq-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
351
- .xq-cap-t { font-size: 13px; font-weight: 600; }
352
- .xq-cap-t .n { margin-right: 6px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
353
- .xq-cap-b { min-height: 18px; margin-top: 1px; font-size: 12px; color: var(--fg-2); }
354
- .xq-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
355
- .xq-play { all: unset; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pill); color: var(--fg); cursor: pointer; }
356
- .xq-play:hover { background: var(--pill-hover); }
357
- .xq-play:focus-visible, .xq-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
358
- .xq-scrub { flex: 1; min-width: 60px; accent-color: var(--accent); }
359
- .xq-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
360
- .xq-steps button { all: unset; padding: 3px 8px; border-radius: 6px; font-size: 11px; color: var(--muted); cursor: pointer; }
361
- .xq-steps button:hover { background: var(--pill); }
362
- .xq-steps button.on { background: var(--accent-soft); font-weight: 600; color: var(--accent); }
363
- .xq-steps button.done { color: var(--fg-2); }
364
- @container (max-width: 560px) { .xq-steps { display: none; } .md-len { display: none; } }
365
- /* Masked words as dots until Show (plugins/redact/settings.js) */
366
- #redactList input.words.words-hidden { -webkit-text-security: disc; }
367
- #redactList .redact-eye { flex: none; }
368
- /* Masked words and Never mask, one row a value (wordList in settings.js):
369
- the row's words, then the list across its width */
370
- .row.pref.word-rows { flex-wrap: wrap; row-gap: 8px; }
371
- .row.pref.word-rows .who { flex: 1 1 0; }
372
- .row.pref.word-rows .sub { white-space: normal; }
373
- .word-list { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
374
- .word-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
375
- .word-line input.words { flex: 1 1 auto; width: auto; min-width: 0; }
376
- .word-line .word-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 6px; font-size: 15px; color: var(--muted); }
377
- .word-line.word-new .text { flex: none; }
378
- /* Import… under a word list: many words pasted at once, a word a line or
379
- split at commas (wordList in settings.js) */
380
- .word-import { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
381
- .word-import textarea.word-import-in { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; font: inherit; font-size: 12px; line-height: 1.5; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
382
- #redactList textarea.word-import-in.words-hidden { -webkit-text-security: disc; }
383
- .word-import-bar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
384
- .word-import-bar .grow { flex: 1; }
385
- .word-import-count { min-width: 0; }
@@ -1,248 +0,0 @@
1
- // Settings › Privacy's Instead of masking, send to, and Masked words and
2
- // Never mask as lists, Masked words as dots until Show (the redact
3
- // plugin's part of Settings). Run after app.js, whose helpers it shares
4
- // (el, icon, openPicker, modelOpt, prefWrite, api), and before start.js
5
- // draws Settings. It wraps renderRedact, so app.js carries none of it: the row
6
- // shows while anything is masked, after the masked-words rows.
7
-
8
- // redactRouteRow: where a request masking would change goes instead
9
- // (redactRouteTo, jessyoungyu on X): Off masks it as before; a model whose
10
- // provider the user set to Send requests unmasked (maskRouteModels, on
11
- // this computer or the network) gets it as written, so 「百度这家公司怎么样」
12
- // is answered about Baidu, not a placeholder. Picked in the app's menu,
13
- // saved on its own (settings/redact-route).
14
- function redactRouteRow(s) {
15
- const models = s.maskRouteModels || [];
16
- const v = s.redactRouteTo || "";
17
- const b = el("button", "rt-cond on");
18
- b.type = "button";
19
- b.setAttribute("aria-label", t("Model for requests masking would change"));
20
- const m = models.find((x) => x.id === v);
21
- if (v) b.append(icon(m?.icon || "generic"), el("span", "", m ? `${m.name || m.id} · ${m.providerName}` : v));
22
- else b.append(el("span", "", t("Off")));
23
- b.disabled = !models.length && !v;
24
- b.onclick = (ev) => openPicker({ id: "", name: "", fields: [] }, { key: "redactRouteTo", label: "model", value: v, options: [
25
- { value: "", label: t("Off"), note: t("Masked and sent to the model asked for, as before"), icon: "generic", reset: true },
26
- ...models.map(modelOpt)],
27
- onPick: (id) => {
28
- if (id === v) return;
29
- prefWrite(api("settings/redact-route", { model: id }));
30
- } }, b, ev);
31
- const sub = models.length || v
32
- ? t("A request masking would change goes as written to this model, which you set to take requests unmasked, so it answers about the real names. If it fails, the request fails: it is never masked and sent elsewhere")
33
- : t("Only a model you set to take requests unmasked can be picked: in the editor of a provider on this computer or your network, turn on Send requests unmasked");
34
- const r = el("div", "row pref"), who = el("div", "who"), val = el("div", "val");
35
- who.append(el("div", "name", t("Instead of masking, send to")), el("div", "sub", sub));
36
- val.append(b);
37
- r.append(who, val);
38
- r.id = "redactRouteRow";
39
- const after = $("#redactWordsWholeRow");
40
- if (after) after.after(r); else $("#redactList").append(r);
41
- }
42
- // wordList: Masked words and Never mask as a list, one row a value
43
- // (noahhrreion on Discord: many words were hard to keep in one small
44
- // box). A row is edited in place and saved on Enter or on leaving it;
45
- // emptied, or its ×, takes it out. The box under them adds one, or
46
- // several split at commas as the one box was, so what is saved is the
47
- // same list of strings. A redraw keeps the box being typed in, and what
48
- // it holds.
49
- let wordsRedrawing = false;
50
- const splitWords = (v) => v.split(/[,,\n]/).map((w) => w.trim()).filter(Boolean);
51
- // Import… takes many words at once (acmilan_ on Discord: adding them one
52
- // by one was slow), pasted a word a line or split at commas; a word the
53
- // list has, or one pasted twice, is passed over, and the status says how
54
- // many were added. The box open, and what it holds, outlive a redraw.
55
- // Copy puts the list on the clipboard a word a line, as Import takes it.
56
- let wordImport = null;
57
- function wordList(key, list, ph, label, save, savedNow) {
58
- const box = el("div", "word-list");
59
- box.dataset.list = key;
60
- let cur = list.map((w) => ({ w }));
61
- const put = (next) => {
62
- if (next.map((o) => o.w).join("\n") === cur.map((o) => o.w).join("\n")) return;
63
- cur = next;
64
- return save(next.map((o) => o.w));
65
- };
66
- const keys = (i, done, back) => {
67
- i.onkeydown = (e) => {
68
- e.stopPropagation();
69
- if (e.isComposing || e.keyCode === 229) return;
70
- if (e.key === "Enter") done(true);
71
- else if (e.key === "Escape") { i.value = back; i.blur(); }
72
- };
73
- // a box a redraw takes away saves nothing: wordFocusBack puts it back
74
- i.onblur = () => { if (!wordsRedrawing && i.isConnected) done(false); };
75
- };
76
- for (const o of cur) {
77
- const line = el("div", "word-line"), i = input(o.w, "");
78
- i.className = "words";
79
- i.dataset.word = o.w;
80
- i.setAttribute("aria-label", label);
81
- keys(i, (enter) => {
82
- if (enter) return i.blur();
83
- if (i.value.trim() === o.w) return;
84
- const n = cur.indexOf(o);
85
- if (n >= 0) put([...cur.slice(0, n), ...splitWords(i.value).map((w) => ({ w })), ...cur.slice(n + 1)]);
86
- }, o.w);
87
- const x = el("button", "text danger word-x", "×");
88
- x.type = "button";
89
- x.title = t("Remove {word}", { word: o.w });
90
- x.setAttribute("aria-label", x.title);
91
- // pressed, the box being edited keeps its focus and its words
92
- x.onmousedown = (e) => e.preventDefault();
93
- x.onclick = () => put(cur.filter((c) => c !== o));
94
- line.append(i, x);
95
- box.append(line);
96
- }
97
- const line = el("div", "word-line word-new"), add = input("", ph);
98
- add.className = "words word-add";
99
- add.setAttribute("aria-label", label);
100
- const go = el("button", "text", t("Add"));
101
- go.type = "button";
102
- const take = () => {
103
- const v = splitWords(add.value);
104
- add.value = "";
105
- if (v.length) put([...cur, ...v.map((w) => ({ w }))]);
106
- };
107
- keys(add, (enter) => { if (enter || add.value.trim()) take(); }, "");
108
- go.onmousedown = (e) => e.preventDefault();
109
- go.onclick = () => { take(); add.focus(NO_SCROLL); };
110
- line.append(add, go);
111
- box.append(line);
112
-
113
- const imp = el("div", "word-import");
114
- imp.hidden = wordImport?.key !== key;
115
- const area = el("textarea", "word-import-in");
116
- area.rows = 5;
117
- area.spellcheck = false;
118
- area.value = wordImport?.key === key ? wordImport.text : "";
119
- area.placeholder = t("Paste words, one a line or separated by commas");
120
- area.setAttribute("aria-label", t("Words to import"));
121
- const count = el("span", "hint word-import-count");
122
- const bring = el("button", "text primary", t("Import"));
123
- bring.type = "button";
124
- const fresh = () => {
125
- const have = new Set(cur.map((o) => o.w));
126
- return [...new Set(splitWords(area.value))].filter((w) => !have.has(w));
127
- };
128
- const counted = () => {
129
- const n = fresh().length;
130
- count.textContent = area.value.trim() ? (n ? t("New words: {n}", { n }) : t("No new words: each is in the list already")) : "";
131
- bring.disabled = !n;
132
- };
133
- const close = () => { wordImport = null; area.value = ""; imp.hidden = true; counted(); };
134
- area.oninput = () => { wordImport = { key, text: area.value }; counted(); };
135
- const bringIn = async () => {
136
- const pasted = new Set(splitWords(area.value)), add = fresh();
137
- if (!add.length) return;
138
- close();
139
- await put([...cur, ...add.map((w) => ({ w }))]);
140
- // said only once the words are saved: a failed save has said why
141
- const now = new Set(savedNow?.() || []);
142
- if (!add.every((w) => now.has(w))) return;
143
- const had = pasted.size - add.length;
144
- status(had ? t("Words added: {n} · already in the list: {m}", { n: add.length, m: had }) : t("Words added: {n}", { n: add.length }), "ok");
145
- };
146
- area.onkeydown = (e) => {
147
- e.stopPropagation();
148
- if (e.isComposing || e.keyCode === 229) return;
149
- if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) { e.preventDefault(); bringIn(); }
150
- else if (e.key === "Escape") close();
151
- };
152
- bring.onclick = bringIn;
153
- const no = el("button", "text", t("Cancel"));
154
- no.type = "button";
155
- no.onclick = close;
156
- const bar = el("div", "word-import-bar");
157
- bar.append(count, el("span", "grow"), no, bring);
158
- imp.append(area, bar);
159
- counted();
160
- box.append(imp);
161
-
162
- const open = el("button", "text word-import-open", t("Import…"));
163
- open.type = "button";
164
- open.title = t("Add many words at once, pasted one a line or separated by commas");
165
- open.onclick = () => {
166
- if (!imp.hidden) return void close();
167
- wordImport = { key, text: "" };
168
- imp.hidden = false;
169
- area.focus(NO_SCROLL);
170
- };
171
- const out = el("button", "text word-copy", t("Copy"));
172
- out.type = "button";
173
- out.title = t("Copy the list, one word a line");
174
- out.disabled = !cur.length;
175
- out.onclick = () => copy(cur.map((o) => o.w).join("\n"), "", out, t("Words copied: {n}", { n: cur.length }));
176
- box.tools = [open, out];
177
- return box;
178
- }
179
- // wordRow: the row a wordList sits under, its words above and the list
180
- // across the row's width
181
- function wordRow(name, sub, list, ...tools) {
182
- const r = el("div", "row pref word-rows"), who = el("div", "who"), val = el("div", "val");
183
- who.append(el("div", "name", name), el("div", "sub", sub));
184
- val.append(...tools);
185
- r.append(who, val, list);
186
- return r;
187
- }
188
- // the box typed in before a redraw, found again after it
189
- function wordFocusOf() {
190
- const i = document.activeElement;
191
- const box = i?.closest?.(".word-list");
192
- if (!box || i.tagName !== "INPUT") return null;
193
- return { key: box.dataset.list, word: i.dataset.word, value: i.value, a: i.selectionStart, b: i.selectionEnd };
194
- }
195
- function wordFocusBack(f) {
196
- if (!f) return;
197
- const box = document.querySelector(`.word-list[data-list="${f.key}"]`);
198
- const i = [...(box?.querySelectorAll("input.words") || [])].find((i) => i.dataset.word === f.word);
199
- if (!i) return;
200
- i.value = f.value;
201
- i.focus(NO_SCROLL);
202
- try { i.setSelectionRange(f.a, f.b); } catch {}
203
- }
204
- // redactWordsHidden: Masked words drawn as dots until Show, as a key is
205
- // (noahhrreion on Discord: a screen share showed the words kept from
206
- // vendors). Still text boxes, so an IME writes 百度; password boxes only
207
- // where the engine has no text security. Show holds until the window
208
- // reloads.
209
- let redactWordsShown = false;
210
- function redactWordsHidden(r) {
211
- const dots = CSS.supports("-webkit-text-security", "disc");
212
- const eye = el("button", "text redact-eye");
213
- eye.type = "button";
214
- const set = () => {
215
- for (const i of r.querySelectorAll("input.words, textarea.word-import-in")) {
216
- if (i.tagName === "TEXTAREA") { if (dots) i.classList.toggle("words-hidden", !redactWordsShown); continue; }
217
- if (dots) i.classList.toggle("words-hidden", !redactWordsShown);
218
- else i.type = redactWordsShown ? "text" : "password";
219
- }
220
- eye.textContent = t(redactWordsShown ? "Hide" : "Show");
221
- eye.setAttribute("aria-pressed", String(redactWordsShown));
222
- };
223
- eye.onclick = () => { redactWordsShown = !redactWordsShown; set(); };
224
- set();
225
- r.querySelector(".val").append(eye);
226
- }
227
- {
228
- const draw = renderRedact;
229
- renderRedact = function (s, keep) {
230
- const f = wordFocusOf();
231
- wordsRedrawing = true;
232
- try { draw(s, keep); } finally { wordsRedrawing = false; }
233
- const wl = wordList("words", s.redactWords || [], t("names, codenames, hosts"), t("Masked words"), (redactWords) => savePrefs({ ...keep, redactWords }), () => prefs?.redactWords);
234
- const words = wordRow(t("Masked words"), t("Your own words to keep from vendors, one on each row"), wl, ...wl.tools);
235
- const at = $("#redactWordsAnyCaseRow");
236
- if (at) at.before(words); else $("#redactList").append(words);
237
- redactWordsHidden(words);
238
- const acts = $("#maskActList");
239
- if (acts) {
240
- const al = wordList("allow", s.redactAllow || [], t("ops@company.com, build-01"), t("Never mask"), (allow) => writingPrefs(api("settings/redact-allow", { allow }))
241
- .then((ns) => { prefs = ns; renderSettings(); status(t("Saved"), "ok", 1500); })
242
- .catch(settingsErr), () => prefs?.redactAllow);
243
- acts.append(wordRow(t("Never mask"), t("Values that always go as written, each whole and in any case, one on each row: a team address, a test key"), al, ...al.tools));
244
- }
245
- wordFocusBack(f);
246
- if (s.redact || s.redactPersonal || (s.redactWords || []).length) redactRouteRow(s);
247
- };
248
- }