dsh-mobile-plugin 0.5.28 → 0.5.29
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/extensions/catalog.json +10 -1
- package/extensions/magpie/agentcompact.js +104 -0
- package/extensions/magpie/app.css +4902 -0
- package/extensions/magpie/app.js +24474 -0
- package/extensions/magpie/autobackup.js +185 -0
- package/extensions/magpie/autoresetown.js +151 -0
- package/extensions/magpie/balfound.js +38 -0
- package/extensions/magpie/boot.js +23 -0
- package/extensions/magpie/cfgblocked.js +39 -0
- package/extensions/magpie/checkinnow.js +111 -0
- package/extensions/magpie/claudemode.js +92 -0
- package/extensions/magpie/compat.js +41 -0
- package/extensions/magpie/context.css +433 -0
- package/extensions/magpie/context.js +1576 -0
- package/extensions/magpie/ctxtext.js +223 -0
- package/extensions/magpie/fonts.js +42 -0
- package/extensions/magpie/i18n.js +18942 -0
- package/extensions/magpie/icons/ai21.svg +1 -0
- package/extensions/magpie/icons/ai302-color.svg +1 -0
- package/extensions/magpie/icons/ai360-color.svg +1 -0
- package/extensions/magpie/icons/aihubmix-color.svg +1 -0
- package/extensions/magpie/icons/aionui.svg +1 -0
- package/extensions/magpie/icons/air.svg +4 -0
- package/extensions/magpie/icons/alibaba-color.svg +1 -0
- package/extensions/magpie/icons/alibabacloud-color.svg +1 -0
- package/extensions/magpie/icons/alma.png +0 -0
- package/extensions/magpie/icons/anthropic.svg +1 -0
- package/extensions/magpie/icons/antigravity-color.svg +1 -0
- package/extensions/magpie/icons/anyscale-color.svg +1 -0
- package/extensions/magpie/icons/app-alma.png +0 -0
- package/extensions/magpie/icons/app-cc-switch.png +0 -0
- package/extensions/magpie/icons/apple-touch-icon.png +0 -0
- package/extensions/magpie/icons/aside.svg +28 -0
- package/extensions/magpie/icons/astrbot.svg +1 -0
- package/extensions/magpie/icons/atomcode.png +0 -0
- package/extensions/magpie/icons/aws.svg +1 -0
- package/extensions/magpie/icons/azure-color.svg +1 -0
- package/extensions/magpie/icons/azureai-color.svg +1 -0
- package/extensions/magpie/icons/baichuan-color.svg +1 -0
- package/extensions/magpie/icons/baidu-color.svg +1 -0
- package/extensions/magpie/icons/baiducloud-color.svg +1 -0
- package/extensions/magpie/icons/bailian-color.svg +1 -0
- package/extensions/magpie/icons/baseten.svg +1 -0
- package/extensions/magpie/icons/bedrock-color.svg +1 -0
- package/extensions/magpie/icons/burncloud-color.svg +1 -0
- package/extensions/magpie/icons/bytedance-color.svg +1 -0
- package/extensions/magpie/icons/cerebras.svg +1 -0
- package/extensions/magpie/icons/chatglm-color.svg +1 -0
- package/extensions/magpie/icons/cherryin-color.svg +1 -0
- package/extensions/magpie/icons/chutes.svg +1 -0
- package/extensions/magpie/icons/cindy.png +0 -0
- package/extensions/magpie/icons/claude-color.svg +1 -0
- package/extensions/magpie/icons/claudecode-color.svg +1 -0
- package/extensions/magpie/icons/cline.svg +1 -0
- package/extensions/magpie/icons/cloudflare-color.svg +1 -0
- package/extensions/magpie/icons/codebuddy-color.svg +1 -0
- package/extensions/magpie/icons/codex-color.svg +1 -0
- package/extensions/magpie/icons/cohere-color.svg +1 -0
- package/extensions/magpie/icons/cometapi-color.svg +1 -0
- package/extensions/magpie/icons/commandcode.svg +1 -0
- package/extensions/magpie/icons/copilot-color.svg +1 -0
- package/extensions/magpie/icons/coze.svg +1 -0
- package/extensions/magpie/icons/crush.png +0 -0
- package/extensions/magpie/icons/curl.svg +1 -0
- package/extensions/magpie/icons/cursor.svg +1 -0
- package/extensions/magpie/icons/deepinfra-color.svg +1 -0
- package/extensions/magpie/icons/deepmind-color.svg +1 -0
- package/extensions/magpie/icons/deepseek-color.svg +1 -0
- package/extensions/magpie/icons/deveco-color.svg +12 -0
- package/extensions/magpie/icons/devin.svg +1 -0
- package/extensions/magpie/icons/doubao-color.svg +1 -0
- package/extensions/magpie/icons/empryo-color.svg +1 -0
- package/extensions/magpie/icons/factory.svg +1 -0
- package/extensions/magpie/icons/favicon.svg +1 -0
- package/extensions/magpie/icons/featherless-color.svg +1 -0
- package/extensions/magpie/icons/fireworks-color.svg +1 -0
- package/extensions/magpie/icons/friendli.svg +1 -0
- package/extensions/magpie/icons/fx.svg +1 -0
- package/extensions/magpie/icons/gemini-color.svg +1 -0
- package/extensions/magpie/icons/geminicli-color.svg +1 -0
- package/extensions/magpie/icons/gemma-color.svg +1 -0
- package/extensions/magpie/icons/giteeai.svg +1 -0
- package/extensions/magpie/icons/github.svg +1 -0
- package/extensions/magpie/icons/githubcopilot.svg +1 -0
- package/extensions/magpie/icons/glama.svg +1 -0
- package/extensions/magpie/icons/gmicloud.svg +1 -0
- package/extensions/magpie/icons/google-color.svg +1 -0
- package/extensions/magpie/icons/googlecloud-color.svg +1 -0
- package/extensions/magpie/icons/goose.svg +1 -0
- package/extensions/magpie/icons/grok.svg +1 -0
- package/extensions/magpie/icons/groq.svg +1 -0
- package/extensions/magpie/icons/hanako.png +0 -0
- package/extensions/magpie/icons/hermes.svg +1 -0
- package/extensions/magpie/icons/huawei-color.svg +1 -0
- package/extensions/magpie/icons/huaweicloud-color.svg +1 -0
- package/extensions/magpie/icons/huggingface-color.svg +1 -0
- package/extensions/magpie/icons/hunyuan-color.svg +1 -0
- package/extensions/magpie/icons/hyperbolic-color.svg +1 -0
- package/extensions/magpie/icons/icon-512.png +0 -0
- package/extensions/magpie/icons/iflytekcloud-color.svg +1 -0
- package/extensions/magpie/icons/inference.svg +1 -0
- package/extensions/magpie/icons/infinigence-color.svg +1 -0
- package/extensions/magpie/icons/internlm-color.svg +1 -0
- package/extensions/magpie/icons/jcode.svg +1 -0
- package/extensions/magpie/icons/jina.svg +1 -0
- package/extensions/magpie/icons/kilo.svg +1 -0
- package/extensions/magpie/icons/kilocode.svg +1 -0
- package/extensions/magpie/icons/kimi-code-desktop.png +0 -0
- package/extensions/magpie/icons/kimi.svg +1 -0
- package/extensions/magpie/icons/kiro-color.svg +1 -0
- package/extensions/magpie/icons/kling-color.svg +1 -0
- package/extensions/magpie/icons/lambda.svg +1 -0
- package/extensions/magpie/icons/leptonai-color.svg +1 -0
- package/extensions/magpie/icons/liquid.svg +1 -0
- package/extensions/magpie/icons/liveagent-color.svg +1 -0
- package/extensions/magpie/icons/llmapi.svg +1 -0
- package/extensions/magpie/icons/lmstudio.svg +1 -0
- package/extensions/magpie/icons/lody.png +0 -0
- package/extensions/magpie/icons/longcat.svg +1 -0
- package/extensions/magpie/icons/magpie.svg +1 -0
- package/extensions/magpie/icons/meta-color.svg +1 -0
- package/extensions/magpie/icons/metaai-color.svg +1 -0
- package/extensions/magpie/icons/microsoft-color.svg +1 -0
- package/extensions/magpie/icons/mimocode.svg +1 -0
- package/extensions/magpie/icons/minimax-color.svg +1 -0
- package/extensions/magpie/icons/mistermorph-color.svg +1 -0
- package/extensions/magpie/icons/mistral-color.svg +1 -0
- package/extensions/magpie/icons/mlx-serve.png +0 -0
- package/extensions/magpie/icons/modelscope-color.svg +1 -0
- package/extensions/magpie/icons/monica-color.svg +1 -0
- package/extensions/magpie/icons/moonshot.svg +1 -0
- package/extensions/magpie/icons/morph-color.svg +1 -0
- package/extensions/magpie/icons/mothx.png +0 -0
- package/extensions/magpie/icons/nebius.svg +1 -0
- package/extensions/magpie/icons/newapi-color.svg +1 -0
- package/extensions/magpie/icons/nousresearch.svg +1 -0
- package/extensions/magpie/icons/nova-color.svg +1 -0
- package/extensions/magpie/icons/novita-color.svg +1 -0
- package/extensions/magpie/icons/nvidia-color.svg +1 -0
- package/extensions/magpie/icons/ollama.svg +1 -0
- package/extensions/magpie/icons/omlx.svg +1 -0
- package/extensions/magpie/icons/omo.svg +1 -0
- package/extensions/magpie/icons/omp.svg +1 -0
- package/extensions/magpie/icons/openai.svg +1 -0
- package/extensions/magpie/icons/openchamber.svg +11 -0
- package/extensions/magpie/icons/openclaw.svg +1 -0
- package/extensions/magpie/icons/opencode.svg +1 -0
- package/extensions/magpie/icons/openmausbot.svg +1 -0
- package/extensions/magpie/icons/openrouter.svg +1 -0
- package/extensions/magpie/icons/openwebui.svg +1 -0
- package/extensions/magpie/icons/parasail.svg +1 -0
- package/extensions/magpie/icons/penguin-color.svg +1 -0
- package/extensions/magpie/icons/perplexity-color.svg +1 -0
- package/extensions/magpie/icons/phala-color.svg +1 -0
- package/extensions/magpie/icons/pi.svg +1 -0
- package/extensions/magpie/icons/pipellm-color.svg +5 -0
- package/extensions/magpie/icons/poe.svg +1 -0
- package/extensions/magpie/icons/ppio-color.svg +1 -0
- package/extensions/magpie/icons/prime-agent.svg +1 -0
- package/extensions/magpie/icons/qiniu-color.svg +1 -0
- package/extensions/magpie/icons/qoder.svg +1 -0
- package/extensions/magpie/icons/qwen-color.svg +1 -0
- package/extensions/magpie/icons/qwenpaw.svg +1 -0
- package/extensions/magpie/icons/raycast.svg +1 -0
- package/extensions/magpie/icons/reasonix-color.svg +48 -0
- package/extensions/magpie/icons/reka.svg +1 -0
- package/extensions/magpie/icons/replicate.svg +1 -0
- package/extensions/magpie/icons/roocode.svg +1 -0
- package/extensions/magpie/icons/rtk.png +0 -0
- package/extensions/magpie/icons/sambanova-color.svg +1 -0
- package/extensions/magpie/icons/sensenova-color.svg +1 -0
- package/extensions/magpie/icons/siliconcloud-color.svg +1 -0
- package/extensions/magpie/icons/snow.png +0 -0
- package/extensions/magpie/icons/snowflake-color.svg +1 -0
- package/extensions/magpie/icons/sophnet-color.svg +1 -0
- package/extensions/magpie/icons/spark-color.svg +1 -0
- package/extensions/magpie/icons/stepfun-color.svg +1 -0
- package/extensions/magpie/icons/straico-color.svg +1 -0
- package/extensions/magpie/icons/submodel-color.svg +1 -0
- package/extensions/magpie/icons/t3code.svg +4 -0
- package/extensions/magpie/icons/targon-color.svg +1 -0
- package/extensions/magpie/icons/tencent-color.svg +1 -0
- package/extensions/magpie/icons/tencentcloud-color.svg +1 -0
- package/extensions/magpie/icons/tiangong-color.svg +1 -0
- package/extensions/magpie/icons/together-color.svg +1 -0
- package/extensions/magpie/icons/trae.svg +1 -0
- package/extensions/magpie/icons/typesafe.png +0 -0
- package/extensions/magpie/icons/upstage-color.svg +1 -0
- package/extensions/magpie/icons/venice-color.svg +1 -0
- package/extensions/magpie/icons/vercel.svg +1 -0
- package/extensions/magpie/icons/vertexai-color.svg +1 -0
- package/extensions/magpie/icons/vllm-color.svg +1 -0
- package/extensions/magpie/icons/volcengine-color.svg +1 -0
- package/extensions/magpie/icons/voyage-color.svg +1 -0
- package/extensions/magpie/icons/vscode.svg +1 -0
- package/extensions/magpie/icons/wenxin-color.svg +1 -0
- package/extensions/magpie/icons/windsurf.svg +1 -0
- package/extensions/magpie/icons/workbuddy-color.svg +1 -0
- package/extensions/magpie/icons/workersai-color.svg +1 -0
- package/extensions/magpie/icons/xai.svg +1 -0
- package/extensions/magpie/icons/xiaomimimo.svg +1 -0
- package/extensions/magpie/icons/xinference-color.svg +1 -0
- package/extensions/magpie/icons/yi.svg +1 -0
- package/extensions/magpie/icons/yuanbao-color.svg +1 -0
- package/extensions/magpie/icons/yylx.svg +5 -0
- package/extensions/magpie/icons/zai.svg +1 -0
- package/extensions/magpie/icons/zcode.png +0 -0
- package/extensions/magpie/icons/zed.svg +1 -0
- package/extensions/magpie/icons/zenmux.svg +1 -0
- package/extensions/magpie/icons/zeroone.svg +1 -0
- package/extensions/magpie/icons/zhipu-color.svg +1 -0
- package/extensions/magpie/icons/zoo-code.png +0 -0
- package/extensions/magpie/index.html +572 -0
- package/extensions/magpie/kernel.js +274 -0
- package/extensions/magpie/keyspend.js +63 -0
- package/extensions/magpie/layout.js +26 -0
- package/extensions/magpie/manifest.json +37 -0
- package/extensions/magpie/navlamp.js +47 -0
- package/extensions/magpie/omarchy.css +72 -0
- package/extensions/magpie/omarchy.js +46 -0
- package/extensions/magpie/passerrors.js +21 -0
- package/extensions/magpie/pluginpages.js +405 -0
- package/extensions/magpie/plugins/gateway/client.js +1194 -0
- package/extensions/magpie/plugins/gateway/keys.js +972 -0
- package/extensions/magpie/plugins/gateway/settings.js +459 -0
- package/extensions/magpie/plugins/library/client.js +6788 -0
- package/extensions/magpie/plugins/library/i18n.js +3228 -0
- package/extensions/magpie/plugins/library/library.css +848 -0
- package/extensions/magpie/plugins/otel/i18n.js +48 -0
- package/extensions/magpie/plugins/otel/page.js +189 -0
- package/extensions/magpie/plugins/redact/client.js +46 -0
- package/extensions/magpie/plugins/redact/demo.js +461 -0
- package/extensions/magpie/plugins/redact/i18n.js +432 -0
- package/extensions/magpie/plugins/redact/page.js +985 -0
- package/extensions/magpie/plugins/redact/redact.css +385 -0
- package/extensions/magpie/plugins/redact/settings.js +248 -0
- package/extensions/magpie/plugins/redact/xq_dark.jpg +0 -0
- package/extensions/magpie/plugins/redact/xq_dark.webm +0 -0
- package/extensions/magpie/plugins/redact/xq_light.jpg +0 -0
- package/extensions/magpie/plugins/redact/xq_light.webm +0 -0
- package/extensions/magpie/plugins/routing/client.js +8593 -0
- package/extensions/magpie/plugins/routing/i18n.js +2696 -0
- package/extensions/magpie/plugins/routing/routing.css +1111 -0
- package/extensions/magpie/plugins/search/settings.js +460 -0
- package/extensions/magpie/plugins/sessions/client.js +1622 -0
- package/extensions/magpie/plugins/sessions/i18n.js +360 -0
- package/extensions/magpie/plugins/sessions/sessions.css +181 -0
- package/extensions/magpie/plugins/sessions/settings.js +100 -0
- package/extensions/magpie/plugins/usage/client.js +150 -0
- package/extensions/magpie/plugins/usage/i18n.js +984 -0
- package/extensions/magpie/plugins/usage/page.js +4307 -0
- package/extensions/magpie/plugins.css +319 -0
- package/extensions/magpie/plugins.js +1926 -0
- package/extensions/magpie/profilerename.js +27 -0
- package/extensions/magpie/purposes.js +2 -0
- package/extensions/magpie/quitask.js +79 -0
- package/extensions/magpie/quotaall.js +142 -0
- package/extensions/magpie/ratewindows.js +123 -0
- package/extensions/magpie/registry.js +87 -0
- package/extensions/magpie/resetask.js +137 -0
- package/extensions/magpie/ruleedit.js +53 -0
- package/extensions/magpie/scrollends.js +91 -0
- package/extensions/magpie/settingshints.js +75 -0
- package/extensions/magpie/signsheets.js +86 -0
- package/extensions/magpie/start.js +26 -0
- package/extensions/magpie/syncfiles.js +216 -0
- package/extensions/magpie/theme.js +29 -0
- package/extensions/magpie/traywindows.js +41 -0
- package/extensions/magpie/webfonts.js +130 -0
- package/extensions/magpie/whatsnew.js +252 -0
- package/extensions/magpie.zip +0 -0
- package/knowledge/apps/baijiahao.md +30 -0
- package/knowledge/apps/bilibili.md +1 -0
- package/knowledge/apps/dedao.md +33 -0
- package/knowledge/apps/feishu.md +35 -0
- package/knowledge/apps/gmail.md +33 -0
- package/knowledge/apps/jike.md +31 -0
- package/knowledge/apps/kuaishou.md +34 -0
- package/knowledge/apps/linkedin.md +33 -0
- package/knowledge/apps/qqmail.md +30 -0
- package/knowledge/apps/telegram.md +27 -0
- package/knowledge/apps/toutiao.md +32 -0
- package/knowledge/apps/uber-eats.md +26 -0
- package/knowledge/apps/uber.md +27 -0
- package/knowledge/apps/whatsapp.md +27 -0
- package/knowledge/apps/x.md +32 -0
- package/knowledge/apps/xiaohongshu.md +1 -0
- package/knowledge/apps/zhihu.md +1 -0
- package/knowledge/sites/bilibili.com/SITE.md +50 -0
- package/knowledge/sites/bilibili.com/references/view-fields.md +17 -0
- package/knowledge/sites/github.com/SITE.md +51 -0
- package/knowledge/sites/github.com/references/repo-fields.md +13 -0
- package/knowledge/sites/x.com/SITE.md +47 -0
- package/knowledge/sites/xiaohongshu.com/SITE.md +48 -0
- package/knowledge/sites/xiaohongshu.com/references/note-fields.md +18 -0
- package/knowledge/sites/youtube.com/SITE.md +49 -0
- package/knowledge/sites/youtube.com/references/innertube-fields.md +14 -0
- package/knowledge/sites/zhihu.com/SITE.md +47 -0
- package/knowledge/sites/zhihu.com/references/api-fields.md +21 -0
- package/lib/mobile/extension-catalog.js +41 -1
- package/lib/mobile/extension-data.js +224 -0
- package/lib/mobile/extension-dev.js +3 -1
- package/lib/mobile/file-ops.js +252 -0
- package/lib/mobile/history-derive.js +80 -4
- package/lib/mobile/host-bridge/endpoints.js +48 -6
- package/lib/mobile/host-bridge/event-synthesis.js +33 -6
- package/lib/mobile/jobs-control.js +118 -0
- package/lib/mobile/memory.js +635 -0
- package/lib/mobile/model-badges.js +77 -0
- package/lib/mobile/pet-tools.js +50 -4
- package/lib/mobile/pets.js +214 -18
- package/lib/mobile/phone/access.js +85 -0
- package/lib/mobile/phone/evidence.js +228 -0
- package/lib/mobile/phone/gate.js +290 -0
- package/lib/mobile/phone/grounding.js +314 -0
- package/lib/mobile/phone/guard.js +465 -0
- package/lib/mobile/phone/irreversible.js +88 -8
- package/lib/mobile/phone/knowledge-tools.js +665 -0
- package/lib/mobile/phone/learn.js +329 -0
- package/lib/mobile/phone/redact.js +237 -0
- package/lib/mobile/phone/risk.js +95 -0
- package/lib/mobile/phone/routes.js +28 -1
- package/lib/mobile/phone/service.js +23 -0
- package/lib/mobile/phone/site-commands.js +271 -0
- package/lib/mobile/phone/step-summary.js +201 -0
- package/lib/mobile/phone/stop-summary.js +235 -0
- package/lib/mobile/phone/tool-groups.js +125 -0
- package/lib/mobile/phone/tools.js +589 -0
- package/lib/mobile/phone/untrusted.js +65 -0
- package/lib/mobile/phone-knowledge.js +20 -4
- package/lib/mobile/schedule-edit.js +500 -0
- package/lib/mobile/schedule.js +5 -0
- package/lib/mobile/send-continuation.js +52 -0
- package/lib/mobile/session-models.js +27 -31
- package/lib/mobile/session-send.js +12 -12
- package/lib/mobile/skill-import.js +338 -0
- package/lib/mobile/skill-store.js +524 -0
- package/lib/routes/mobile-api.js +42 -0
- package/package.json +7 -6
- package/skills/skill-authoring/SKILL.md +46 -0
- package/skills/skill-authoring/references/examples.md +82 -0
- package/skills/skill-authoring/references/frontmatter-and-fields.md +46 -0
- package/skills/skill-authoring/scripts/check_skill.py +167 -0
- package/skills/skill-authoring/scripts/manifest.json +3 -0
- package/knowledge/sites/bilibili.com.md +0 -27
- package/knowledge/sites/github.com.md +0 -27
- package/knowledge/sites/x.com.md +0 -28
- package/knowledge/sites/xiaohongshu.com.md +0 -27
- package/knowledge/sites/youtube.com.md +0 -28
- package/knowledge/sites/zhihu.com.md +0 -27
|
@@ -0,0 +1,385 @@
|
|
|
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; }
|
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
}
|
|
Binary file
|
|
Binary file
|