dsh-remote-plugin 0.8.8 → 0.9.1

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 (66) hide show
  1. package/README.en.md +16 -5
  2. package/README.md +15 -4
  3. package/apk/dsh-remote.apk +0 -0
  4. package/gateway.cjs +583 -84
  5. package/index.mjs +1 -0
  6. package/package.json +8 -3
  7. package/public/activity.js +97 -10
  8. package/public/admin.html +34 -33
  9. package/public/admin.js +10 -2
  10. package/public/announcements.json +36 -0
  11. package/public/app.js +1564 -226
  12. package/public/bc-integration.css +81 -0
  13. package/public/build.json +2 -2
  14. package/public/composer-tools.css +184 -0
  15. package/public/composer-tools.js +888 -0
  16. package/public/desktop/desktop.html +94 -73
  17. package/public/desktop/desktop.js +726 -83
  18. package/public/e2ee-config.js +5 -0
  19. package/public/e2ee-transport.js +23 -4
  20. package/public/file-inbox.js +77 -18
  21. package/public/genui.css +10 -0
  22. package/public/genui.js +22 -4
  23. package/public/history.js +114 -17
  24. package/public/host-queue.js +232 -0
  25. package/public/host-schedule.js +301 -0
  26. package/public/host-state.css +19 -0
  27. package/public/index.html +332 -140
  28. package/public/md.js +21 -1
  29. package/public/network.js +33 -1
  30. package/public/onboarding.js +3 -3
  31. package/public/operations.js +4 -3
  32. package/public/plan-review.css +297 -0
  33. package/public/plan-review.js +642 -0
  34. package/public/plugin.html +29 -28
  35. package/public/relay-autopair.js +30 -10
  36. package/public/relay-devices.js +7 -3
  37. package/public/relay-settings.css +11 -0
  38. package/public/relay-settings.js +372 -30
  39. package/public/session-cache.js +85 -0
  40. package/public/session-management.css +61 -0
  41. package/public/session-management.js +742 -0
  42. package/public/session-search.css +137 -0
  43. package/public/session-search.js +977 -0
  44. package/public/skins/blue-fish/preview.html +3 -3
  45. package/public/skins/bocchi/preview.html +5 -5
  46. package/public/skins/kita/preview.html +6 -6
  47. package/public/skins/miku/SOURCES.json +10 -0
  48. package/public/skins/miku/chibi.png +0 -0
  49. package/public/skins/miku/preview.html +33 -0
  50. package/public/skins/miku/skin.css +82 -0
  51. package/public/skins/nijika/preview.html +6 -6
  52. package/public/skins/penguin/preview.html +3 -3
  53. package/public/skins/ryo/preview.html +6 -6
  54. package/public/slash-suggestions.js +15 -3
  55. package/public/sponsor-entry.js +11 -3
  56. package/public/styles.css +141 -21
  57. package/public/subagents.css +5 -0
  58. package/public/subagents.js +52 -0
  59. package/public/theme-vars.css +65 -1
  60. package/public/theme.js +4 -3
  61. package/public/turn-diff.css +323 -0
  62. package/public/turn-diff.js +778 -0
  63. package/public/update.json +12 -12
  64. package/public/version.json +1 -1
  65. package/public/workflow.css +305 -34
  66. package/public/workflow.js +141 -41
@@ -1,5 +1,5 @@
1
- <!doctype html><html lang="zh-CN" data-theme="fish"><head><meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
2
- <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>蓝色大肥鱼 · 晴空海湾 · 组件预览</title><link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><style>body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-header{margin-bottom:26px}.preview-header h1{font-size:29px;line-height:1.3;margin:10px 0}.preview-header p{font-size:14px;max-width:680px;color:var(--dsr-muted)}.preview-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:26px;align-items:start}iframe{display:block;width:100%;height:844px;border:1px solid var(--dsr-line);border-radius:18px;background:var(--dsr-bg)}.preview-card{padding:22px;margin:0 0 18px;background:var(--dsr-panel);border:1px solid var(--dsr-line);border-radius:12px}.preview-card h2{font-size:17px;margin:0 0 14px}.preview-card p,.preview-card li{font-size:13px;line-height:1.8;color:var(--dsr-muted)}.preview-icons{display:flex;align-items:center;gap:18px}.preview-icons img{width:58px;height:54px;object-fit:contain}.preview-links,.preview-switch{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin:12px 0}.preview-links a{color:var(--dsr-accent-strong)}.preview-switch button{padding:8px 16px;border:1px solid var(--dsr-line);border-radius:8px;background:var(--dsr-panel);color:var(--dsr-text);font:inherit}.preview-switch button[aria-pressed=true]{background:var(--dsr-accent);color:var(--dsr-on-accent)}@media(max-width:760px){.preview-layout{grid-template-columns:minmax(0,390px);justify-content:center}.preview-header h1{font-size:25px}}</style></head><body><main class="preview-shell"><header class="preview-header"><h1>蓝色大肥鱼 · 晴空海湾</h1><p>气泡、爱心、星星与蓝白内容卡。表情导航保留文字,立绘增加柔和贴纸边框。</p><nav class="preview-links"><a href="DESIGN.md">皮肤维护说明</a><a href="../../index.html?layout=mobile">实际手机入口</a><a href="../../desktop/desktop.html">实际桌面入口</a></nav><div class="preview-switch" role="group" aria-label="预览配色"><button type="button" data-preview-theme="fish" aria-pressed="true">蓝色大肥鱼</button></div></header><section class="preview-layout"><iframe id="phone" title="手机组件预览"></iframe><aside><section class="preview-card"><h2>表情导航 · 文字保留</h2><div class="preview-icons"><img src="icon.png" alt="会话表情"><img src="icon-wink.png" alt="文件表情"><img src="icon-star.png" alt="更多表情"></div><p>表情在原有图标位内展示,不向列表上方额外挂一排头像。文字、未读徽标与原有点击区保留。</p></section><section class="preview-card"><h2>角色与阅读层级</h2><p>原有角色图片全部保留,加入眨眼贴纸、粉色导航小圆垫和虚线贴纸框。气泡与星星留在阅读留白处。</p></section><section class="preview-card"><h2>实际界面验收</h2><ol><li>320/390px 手机与桌面布局。</li><li>立绘不压住标题和连接入口。</li><li>导航、输入区保持既有固定定位。</li><li>归档关闭、半滑、展开与确认框。</li></ol><p>此页是无主机连接的静态组件样板;完整交互以实际 WebUI 验收为准。</p></section></aside></section></main><template id="phone-components">
1
+ <!doctype html><html lang="zh-CN" data-theme="fish"><head><meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
2
+ <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>蓝色大肥鱼 · 晴空海湾 · 组件预览</title><link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><style>body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-header{margin-bottom:26px}.preview-header h1{font-size:29px;line-height:1.3;margin:10px 0}.preview-header p{font-size:14px;max-width:680px;color:var(--dsr-muted)}.preview-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:26px;align-items:start}iframe{display:block;width:100%;height:844px;border:1px solid var(--dsr-line);border-radius:18px;background:var(--dsr-bg)}.preview-card{padding:22px;margin:0 0 18px;background:var(--dsr-panel);border:1px solid var(--dsr-line);border-radius:12px}.preview-card h2{font-size:17px;margin:0 0 14px}.preview-card p,.preview-card li{font-size:13px;line-height:1.8;color:var(--dsr-muted)}.preview-icons{display:flex;align-items:center;gap:18px}.preview-icons img{width:58px;height:54px;object-fit:contain}.preview-links,.preview-switch{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin:12px 0}.preview-links a{color:var(--dsr-accent-strong)}.preview-switch button{padding:8px 16px;border:1px solid var(--dsr-line);border-radius:8px;background:var(--dsr-panel);color:var(--dsr-text);font:inherit}.preview-switch button[aria-pressed=true]{background:var(--dsr-accent);color:var(--dsr-on-accent)}@media(max-width:760px){.preview-layout{grid-template-columns:minmax(0,390px);justify-content:center}.preview-header h1{font-size:25px}}</style></head><body><main class="preview-shell"><header class="preview-header"><h1>蓝色大肥鱼 · 晴空海湾</h1><p>气泡、爱心、星星与蓝白内容卡。表情导航保留文字,立绘增加柔和贴纸边框。</p><nav class="preview-links"><a href="DESIGN.md">皮肤维护说明</a><a href="../../index.html?layout=mobile">实际手机入口</a><a href="../../desktop/desktop.html">实际桌面入口</a></nav><div class="preview-switch" role="group" aria-label="预览配色"><button type="button" data-preview-theme="fish" aria-pressed="true">蓝色大肥鱼</button></div></header><section class="preview-layout"><iframe id="phone" title="手机组件预览"></iframe><aside><section class="preview-card"><h2>表情导航 · 文字保留</h2><div class="preview-icons"><img src="icon.png" alt="会话表情"><img src="icon-wink.png" alt="文件表情"><img src="icon-star.png" alt="更多表情"></div><p>表情在原有图标位内展示,不向列表上方额外挂一排头像。文字、未读徽标与原有点击区保留。</p></section><section class="preview-card"><h2>角色与阅读层级</h2><p>原有角色图片全部保留,加入眨眼贴纸、粉色导航小圆垫和虚线贴纸框。气泡与星星留在阅读留白处。</p></section><section class="preview-card"><h2>实际界面验收</h2><ol><li>320/390px 手机与桌面布局。</li><li>立绘不压住标题和连接入口。</li><li>导航、输入区保持既有固定定位。</li><li>归档关闭、半滑、展开与确认框。</li></ol><p>此页是无主机连接的静态组件样板;完整交互以实际 WebUI 验收为准。</p></section></aside></section></main><template id="phone-components">
3
3
  <header class="topbar"><div class="brand"><span class="brand-dot"></span><span>DSH Remote</span></div><span class="pill">未连接</span></header>
4
4
  <main class="main" id="main"><section class="view" id="view-home">
5
5
  <section class="workflow-start"><div class="workflow-page-head"><h1>工作空间</h1><button type="button" class="workflow-connection">工作电脑 · 连接详情</button><button type="button" class="home-doctor"><span>AI 排查问题</span><small>使用你的 DSH 和模型,只读诊断</small><b>›</b></button></div><div class="workspace-nav"><span>DSH Remote</span><button type="button" class="mini-btn">查看文件</button></div><button type="button" id="btn-new-session" class="mini-btn workflow-new-session">+ 新会话</button></section>
@@ -9,4 +9,4 @@
9
9
  <div class="session-swipe"><div class="session-card"><div class="sc-title">准备版本更新说明</div><div class="sc-meta">3 分钟前</div><div class="sc-workspace">⌂ dsh-remote</div></div></div>
10
10
  </section></main>
11
11
  <nav class="bottom-nav"><button type="button" class="nav-btn active" data-view="view-home"><span class="nav-ico">▦</span><span class="nav-label">会话</span></button><button type="button" class="nav-btn" data-view="view-files"><span class="nav-ico">↕</span><span class="nav-label">文件</span></button><button type="button" class="nav-btn" data-view="view-settings"><span class="nav-ico">⚙</span><span class="nav-label">更多</span></button></nav>
12
- </template><script>const base=new URL('../../',location.href).href;const frame=document.getElementById('phone');frame.srcdoc='<!doctype html><html lang="zh-CN" data-theme="fish"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/blue-fish/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>';document.querySelectorAll('[data-preview-theme]').forEach(button=>button.addEventListener('click',()=>{document.documentElement.dataset.theme=button.dataset.previewTheme;if(frame.contentDocument?.documentElement)frame.contentDocument.documentElement.dataset.theme=button.dataset.previewTheme;document.querySelectorAll('[data-preview-theme]').forEach(b=>b.setAttribute('aria-pressed',String(b===button)))}));</script></body></html>
12
+ </template><script>const base=new URL('../../',location.href).href;const frame=document.getElementById('phone');frame.srcdoc='<!doctype html><html lang="zh-CN" data-theme="fish"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/blue-fish/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>';document.querySelectorAll('[data-preview-theme]').forEach(button=>button.addEventListener('click',()=>{document.documentElement.dataset.theme=button.dataset.previewTheme;if(frame.contentDocument?.documentElement)frame.contentDocument.documentElement.dataset.theme=button.dataset.previewTheme;document.querySelectorAll('[data-preview-theme]').forEach(b=>b.setAttribute('aria-pressed',String(b===button)))}));</script></body></html>
@@ -1,13 +1,13 @@
1
1
  <!doctype html>
2
2
  <html lang="zh-CN" data-theme="bocchi">
3
3
  <head>
4
- <meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
4
+ <meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <title>后藤一里 · 皮肤样板预览</title>
8
- <link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
9
- <link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
10
- <link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
8
+ <link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
9
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
10
+ <link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
11
11
  <style>
12
12
  /* 只负责展示页排版;画框内完全复用实际组件样式,不重画玻璃或背景。 */
13
13
  body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-label{font:11px ui-monospace,monospace;letter-spacing:.15em;color:var(--dsr-muted)}
@@ -49,7 +49,7 @@
49
49
  </template>
50
50
  <script>
51
51
  const base=new URL('../../',location.href).href
52
- document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="bocchi"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/bocchi/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
52
+ document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="bocchi"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/bocchi/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
53
53
  </script>
54
54
  </body>
55
55
  </html>
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html lang="zh-CN" data-theme="kita">
3
3
  <head>
4
- <meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
4
+ <meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <title>喜多郁代 · 皮肤样板预览</title>
8
- <link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
9
- <link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
10
- <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
11
- <link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
8
+ <link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
9
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
10
+ <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
11
+ <link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
12
12
  <style>
13
13
  /* 只负责展示页排版;画框内完全复用实际组件样式,不重画玻璃或背景。 */
14
14
  body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-label{font:11px ui-monospace,monospace;letter-spacing:.15em;color:var(--dsr-muted)}
@@ -50,7 +50,7 @@
50
50
  </template>
51
51
  <script>
52
52
  const base=new URL('../../',location.href).href
53
- document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="kita"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/kita/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
53
+ document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="kita"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/kita/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
54
54
  </script>
55
55
  </body>
56
56
  </html>
@@ -0,0 +1,10 @@
1
+ {
2
+ "character": "初音未来 / Hatsune Miku",
3
+ "assets": [
4
+ {
5
+ "file": "chibi.png",
6
+ "source": "Original AI-generated illustration for this skin; no official or fan image was copied",
7
+ "date": "2026-11-15"
8
+ }
9
+ ]
10
+ }
Binary file
@@ -0,0 +1,33 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN" data-theme="miku">
3
+ <head>
4
+ <meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <title>初音未来 · 皮肤预览</title>
8
+ <link rel="stylesheet" href="../../theme-vars.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
9
+ <link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
10
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
11
+ <link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
12
+ <style>
13
+ body { min-height: 100vh; margin: 0; padding: 28px 16px; box-sizing: border-box; color: var(--dsr-text); font-family: system-ui, sans-serif; }
14
+ main { width: min(100%, 740px); margin: auto; }
15
+ h1 { margin: 0 0 8px; }
16
+ p { color: var(--dsr-muted); }
17
+ .preview-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 22px; }
18
+ .preview-links a { color: var(--dsr-accent); }
19
+ .preview-card { padding: 22px; margin: 14px 0; background: #fff; border: 1px solid var(--miku-line); border-radius: 16px; box-shadow: 0 3px 10px var(--miku-shadow); }
20
+ .preview-character { width: min(260px, 70vw); display: block; margin: 0 auto; }
21
+ .preview-button { padding: 12px 18px; background: var(--dsr-accent); color: var(--dsr-on-accent); border: 0; border-radius: 12px; font: inherit; }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <main>
26
+ <h1>初音未来 · 薄荷音符</h1>
27
+ <p>Q 版角色、薄荷绿纸面、深青色操作按钮与少量洋红点缀。</p>
28
+ <nav class="preview-links"><a href="../../index.html?layout=mobile">手机入口</a><a href="../../desktop/desktop.html">桌面入口</a></nav>
29
+ <section class="preview-card"><img class="preview-character" src="chibi.png" alt="挥手的 Q 版初音未来"><p>角色立绘用于皮肤选择卡、空状态与桌面留白;阅读卡片使用不透明背景。</p></section>
30
+ <section class="preview-card"><h2>整理本周任务</h2><p>正文、辅助文字和按钮均保持可读对比度。</p><button class="preview-button" type="button">+ 新会话</button></section>
31
+ </main>
32
+ </body>
33
+ </html>
@@ -0,0 +1,82 @@
1
+ /* 初音未来 · 薄荷音符。装饰只在 miku 主题生效。 */
2
+ html[data-theme="miku"] {
3
+ --miku-paper: #F3FFFC;
4
+ --miku-card: #FFFFFF;
5
+ --miku-line: #BBDDD8;
6
+ --miku-tint: #E2F7F2;
7
+ --miku-shadow: rgba(22, 79, 76, .09);
8
+ --dsr-radius: 16px;
9
+ background: radial-gradient(circle at 88% 12%, #C9F6E9 0, transparent 36%),
10
+ radial-gradient(circle at 7% 72%, #E8F6FF 0, transparent 29%), var(--miku-paper);
11
+ background-attachment: fixed;
12
+ }
13
+ html[data-theme="miku"] body { background: transparent; isolation: isolate; }
14
+ html[data-theme="miku"] body::before {
15
+ content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
16
+ background: url("chibi.png") right 2vw bottom 44px / auto min(76vh, 680px) no-repeat;
17
+ opacity: .32;
18
+ }
19
+ html[data-theme="miku"] body::after {
20
+ content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
21
+ background: radial-gradient(circle, #49C7B528 1.5px, transparent 2px) 0 0 / 28px 28px;
22
+ mask-image: linear-gradient(105deg, #000, transparent 44%);
23
+ }
24
+ html[data-theme="miku"] :is(.topbar, .ds-topbar, .bottom-nav, .composer-wrap, .ds-composer) {
25
+ background: #F9FFFCF2; border-color: var(--miku-line);
26
+ }
27
+ html[data-theme="miku"] :is(.brand-dot, .ds-logo, .plugin-brand-mark) {
28
+ width: 34px; height: 32px; flex: none; border-radius: 50%;
29
+ background: #E2F7F2 url("chibi.png") center 12% / auto 115px no-repeat;
30
+ border: 1px solid var(--miku-line); box-shadow: none;
31
+ }
32
+ html[data-theme="miku"] .ds-logo { font-size: 0; line-height: 0; overflow: hidden; }
33
+ html[data-theme="miku"] .workflow-page-head h1::before,
34
+ html[data-theme="miku"] :is(.section-head > span:first-child, .overview-section-head > span:first-child, .ds-section-label)::before {
35
+ content: '♪'; display: inline-block; margin-right: 8px; color: var(--dsr-accent); font-weight: 800;
36
+ }
37
+ html[data-theme="miku"] .workflow-v8 .ds-main,
38
+ html[data-theme="miku"] .workflow-v8 #view-home .workflow-start { background: transparent; }
39
+ html[data-theme="miku"] :is(.workflow-connection, .home-doctor, .workspace-nav, .workflow-settings-card, .settings-group, .stat, .teams-card, .task-card, .ext-toolbar) {
40
+ background: var(--miku-card); border: 1px solid var(--miku-line);
41
+ border-radius: 16px; box-shadow: 0 3px 10px var(--miku-shadow);
42
+ }
43
+ html[data-theme="miku"] .workflow-v8 .session-swipe {
44
+ margin-bottom: 8px; border: 1px solid var(--miku-line); border-radius: 14px;
45
+ background: var(--miku-card); box-shadow: 0 3px 10px var(--miku-shadow);
46
+ }
47
+ html[data-theme="miku"] .workflow-v8 .session-card { background: var(--miku-card); border-radius: 14px; }
48
+ html[data-theme="miku"] .workflow-v8 #btn-new-session.workflow-new-session {
49
+ background: var(--dsr-accent); color: var(--dsr-on-accent); border-color: var(--dsr-accent);
50
+ border-radius: 12px; box-shadow: 0 4px 12px var(--miku-shadow);
51
+ }
52
+ html[data-theme="miku"] .session-card.current { background: var(--miku-tint); box-shadow: inset 3px 0 var(--dsr-accent); }
53
+ html[data-theme="miku"] .session-swipe .sc-archive-btn { transform: translateX(calc(100% + var(--swipe-x, 0px) + 1px)); transition: transform .18s ease; }
54
+ html[data-theme="miku"] .session-swipe.revealed .sc-archive-btn { transform: translateX(0); }
55
+ html[data-theme="miku"] .workflow-v8 #history { background: #F3FFFCF0; }
56
+ html[data-theme="miku"] .workflow-v8 :is(.msg.assistant, .ds-msg.assistant) {
57
+ background: var(--miku-card); color: var(--dsr-text); border: 1px solid var(--miku-line);
58
+ border-radius: 14px; box-shadow: 0 2px 8px var(--miku-shadow);
59
+ }
60
+ html[data-theme="miku"] .msg.user { background: var(--dsr-accent); color: var(--dsr-on-accent); }
61
+ html[data-theme="miku"] .ds-msg.user { background: var(--miku-tint); color: var(--dsr-text); border-color: var(--dsr-accent-line); }
62
+ html[data-theme="miku"] :is(.msg.assistant, .ds-msg.assistant) .role::before {
63
+ content: ''; display: inline-block; width: 25px; height: 25px; margin-right: 5px;
64
+ vertical-align: -6px; border-radius: 50%; background: #E2F7F2 url("chibi.png") center 12% / auto 86px no-repeat;
65
+ }
66
+ html[data-theme="miku"] :is(.empty, .ds-empty)::before {
67
+ content: ''; display: block; width: 144px; height: 144px; margin: 0 auto 10px;
68
+ background: url("chibi.png") center / contain no-repeat; pointer-events: none;
69
+ }
70
+ html[data-theme="miku"] .ds-sidebar { background: #F9FFFC; border-color: var(--miku-line); }
71
+ html[data-theme="miku"] .ds-session-list::after {
72
+ content: 'MIKU ♪'; display: block; flex: none; min-height: 125px; margin: auto 12px 12px;
73
+ padding-top: 108px; text-align: center; color: var(--dsr-muted); font: 700 10px/1.5 sans-serif;
74
+ background: url("chibi.png") center top / auto 105px no-repeat; pointer-events: none;
75
+ }
76
+ html[data-theme] .theme-option[data-theme="miku"] { background: linear-gradient(135deg, #F3FFFC, #DDF7F2); border-color: #97D6CB; color: #173B3B; }
77
+ html[data-theme] .theme-option[data-theme="miku"] .theme-name { color: #173B3B; }
78
+ html[data-theme] .theme-option[data-theme="miku"] .theme-check { color: #126D69; }
79
+ @media (max-width: 680px) {
80
+ html[data-theme="miku"] body::before { background-position: right -48px bottom 100px; background-size: auto 42vh; opacity: .20; }
81
+ }
82
+ @media (prefers-reduced-motion: reduce) { html[data-theme="miku"] .sc-archive-btn { transition: none; } }
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html lang="zh-CN" data-theme="nijika">
3
3
  <head>
4
- <meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
4
+ <meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <title>伊地知虹夏 · 皮肤样板预览</title>
8
- <link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
9
- <link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
10
- <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
11
- <link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
8
+ <link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
9
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
10
+ <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
11
+ <link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
12
12
  <style>
13
13
  /* 只负责展示页排版;画框内完全复用实际组件样式,不重画玻璃或背景。 */
14
14
  body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-label{font:11px ui-monospace,monospace;letter-spacing:.15em;color:var(--dsr-muted)}
@@ -50,7 +50,7 @@
50
50
  </template>
51
51
  <script>
52
52
  const base=new URL('../../',location.href).href
53
- document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="nijika"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/nijika/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
53
+ document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="nijika"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/nijika/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
54
54
  </script>
55
55
  </body>
56
56
  </html>
@@ -1,5 +1,5 @@
1
- <!doctype html><html lang="zh-CN" data-theme="penguin"><head><meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
2
- <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>企鹅女管 · 黑黄工业终端 · 组件预览</title><link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><style>body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-header{margin-bottom:26px}.preview-header h1{font-size:29px;line-height:1.3;margin:10px 0}.preview-header p{font-size:14px;max-width:680px;color:var(--dsr-muted)}.preview-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:26px;align-items:start}iframe{display:block;width:100%;height:844px;border:1px solid var(--dsr-line);border-radius:18px;background:var(--dsr-bg)}.preview-card{padding:22px;margin:0 0 18px;background:var(--dsr-panel);border:1px solid var(--dsr-line);border-radius:12px}.preview-card h2{font-size:17px;margin:0 0 14px}.preview-card p,.preview-card li{font-size:13px;line-height:1.8;color:var(--dsr-muted)}.preview-icons{display:flex;align-items:center;gap:18px}.preview-icons img{width:58px;height:54px;object-fit:contain}.preview-links,.preview-switch{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin:12px 0}.preview-links a{color:var(--dsr-accent-strong)}.preview-switch button{padding:8px 16px;border:1px solid var(--dsr-line);border-radius:8px;background:var(--dsr-panel);color:var(--dsr-text);font:inherit}.preview-switch button[aria-pressed=true]{background:var(--dsr-accent);color:var(--dsr-on-accent)}@media(max-width:760px){.preview-layout{grid-template-columns:minmax(0,390px);justify-content:center}.preview-header h1{font-size:25px}}</style></head><body><main class="preview-shell"><header class="preview-header"><h1>企鹅女管 · 黑黄工业终端</h1><p>新增官网三角阵列、终末地工业铭牌和帝江/集成工业主题线路图,保留黑黄终端界面。 </p><nav class="preview-links"><a href="DESIGN.md">皮肤维护说明</a><a href="../../index.html?layout=mobile">实际手机入口</a><a href="../../desktop/desktop.html">实际桌面入口</a></nav><div class="preview-switch" role="group" aria-label="预览配色"><button type="button" data-preview-theme="penguin" aria-pressed="true">白昼</button><button type="button" data-preview-theme="penguin-night" aria-pressed="false">极夜</button></div></header><section class="preview-layout"><iframe id="phone" title="手机组件预览"></iframe><aside><section class="preview-card"><h2>表情导航 · 文字保留</h2><div class="preview-icons"><img src="icon.png" alt="会话表情"><img src="icon-dizzy.png" alt="文件表情"><img src="icon-wink.png" alt="更多表情"></div><p>表情在原有图标位内展示,不向列表上方额外挂一排头像。文字、未读徽标与原有点击区保留。</p></section><section class="preview-card"><h2>角色与阅读层级</h2><p>白昼使用冷白与墨黑操作条,极夜使用炭黑与信号黄。三角标记、切角和工程网格在两套中保持一致;线路图为主题装饰示意。</p></section><section class="preview-card"><h2>实际界面验收</h2><ol><li>320/390px 手机与桌面布局。</li><li>立绘不压住标题和连接入口。</li><li>导航、输入区保持既有固定定位。</li><li>归档关闭、半滑、展开与确认框。</li></ol><p>此页是无主机连接的静态组件样板;完整交互以实际 WebUI 验收为准。</p></section></aside></section></main><template id="phone-components">
1
+ <!doctype html><html lang="zh-CN" data-theme="penguin"><head><meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
2
+ <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>企鹅女管 · 黑黄工业终端 · 组件预览</title><link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><style>body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-header{margin-bottom:26px}.preview-header h1{font-size:29px;line-height:1.3;margin:10px 0}.preview-header p{font-size:14px;max-width:680px;color:var(--dsr-muted)}.preview-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:26px;align-items:start}iframe{display:block;width:100%;height:844px;border:1px solid var(--dsr-line);border-radius:18px;background:var(--dsr-bg)}.preview-card{padding:22px;margin:0 0 18px;background:var(--dsr-panel);border:1px solid var(--dsr-line);border-radius:12px}.preview-card h2{font-size:17px;margin:0 0 14px}.preview-card p,.preview-card li{font-size:13px;line-height:1.8;color:var(--dsr-muted)}.preview-icons{display:flex;align-items:center;gap:18px}.preview-icons img{width:58px;height:54px;object-fit:contain}.preview-links,.preview-switch{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;margin:12px 0}.preview-links a{color:var(--dsr-accent-strong)}.preview-switch button{padding:8px 16px;border:1px solid var(--dsr-line);border-radius:8px;background:var(--dsr-panel);color:var(--dsr-text);font:inherit}.preview-switch button[aria-pressed=true]{background:var(--dsr-accent);color:var(--dsr-on-accent)}@media(max-width:760px){.preview-layout{grid-template-columns:minmax(0,390px);justify-content:center}.preview-header h1{font-size:25px}}</style></head><body><main class="preview-shell"><header class="preview-header"><h1>企鹅女管 · 黑黄工业终端</h1><p>新增官网三角阵列、终末地工业铭牌和帝江/集成工业主题线路图,保留黑黄终端界面。 </p><nav class="preview-links"><a href="DESIGN.md">皮肤维护说明</a><a href="../../index.html?layout=mobile">实际手机入口</a><a href="../../desktop/desktop.html">实际桌面入口</a></nav><div class="preview-switch" role="group" aria-label="预览配色"><button type="button" data-preview-theme="penguin" aria-pressed="true">白昼</button><button type="button" data-preview-theme="penguin-night" aria-pressed="false">极夜</button></div></header><section class="preview-layout"><iframe id="phone" title="手机组件预览"></iframe><aside><section class="preview-card"><h2>表情导航 · 文字保留</h2><div class="preview-icons"><img src="icon.png" alt="会话表情"><img src="icon-dizzy.png" alt="文件表情"><img src="icon-wink.png" alt="更多表情"></div><p>表情在原有图标位内展示,不向列表上方额外挂一排头像。文字、未读徽标与原有点击区保留。</p></section><section class="preview-card"><h2>角色与阅读层级</h2><p>白昼使用冷白与墨黑操作条,极夜使用炭黑与信号黄。三角标记、切角和工程网格在两套中保持一致;线路图为主题装饰示意。</p></section><section class="preview-card"><h2>实际界面验收</h2><ol><li>320/390px 手机与桌面布局。</li><li>立绘不压住标题和连接入口。</li><li>导航、输入区保持既有固定定位。</li><li>归档关闭、半滑、展开与确认框。</li></ol><p>此页是无主机连接的静态组件样板;完整交互以实际 WebUI 验收为准。</p></section></aside></section></main><template id="phone-components">
3
3
  <header class="topbar"><div class="brand"><span class="brand-dot"></span><span>DSH Remote</span></div><span class="pill">未连接</span></header>
4
4
  <main class="main" id="main"><section class="view" id="view-home">
5
5
  <section class="workflow-start"><div class="workflow-page-head"><h1>工作空间</h1><button type="button" class="workflow-connection">工作电脑 · 连接详情</button><button type="button" class="home-doctor"><span>AI 排查问题</span><small>使用你的 DSH 和模型,只读诊断</small><b>›</b></button></div><div class="workspace-nav"><span>DSH Remote</span><button type="button" class="mini-btn">查看文件</button></div><button type="button" id="btn-new-session" class="mini-btn workflow-new-session">+ 新会话</button></section>
@@ -9,4 +9,4 @@
9
9
  <div class="session-swipe"><div class="session-card"><div class="sc-title">准备版本更新说明</div><div class="sc-meta">3 分钟前</div><div class="sc-workspace">⌂ dsh-remote</div></div></div>
10
10
  </section></main>
11
11
  <nav class="bottom-nav"><button type="button" class="nav-btn active" data-view="view-home"><span class="nav-ico">▦</span><span class="nav-label">会话</span></button><button type="button" class="nav-btn" data-view="view-files"><span class="nav-ico">↕</span><span class="nav-label">文件</span></button><button type="button" class="nav-btn" data-view="view-settings"><span class="nav-ico">⚙</span><span class="nav-label">更多</span></button></nav>
12
- </template><script>const base=new URL('../../',location.href).href;const frame=document.getElementById('phone');frame.srcdoc='<!doctype html><html lang="zh-CN" data-theme="penguin"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/penguin/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>';document.querySelectorAll('[data-preview-theme]').forEach(button=>button.addEventListener('click',()=>{document.documentElement.dataset.theme=button.dataset.previewTheme;if(frame.contentDocument?.documentElement)frame.contentDocument.documentElement.dataset.theme=button.dataset.previewTheme;document.querySelectorAll('[data-preview-theme]').forEach(b=>b.setAttribute('aria-pressed',String(b===button)))}));</script></body></html>
12
+ </template><script>const base=new URL('../../',location.href).href;const frame=document.getElementById('phone');frame.srcdoc='<!doctype html><html lang="zh-CN" data-theme="penguin"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/penguin/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>';document.querySelectorAll('[data-preview-theme]').forEach(button=>button.addEventListener('click',()=>{document.documentElement.dataset.theme=button.dataset.previewTheme;if(frame.contentDocument?.documentElement)frame.contentDocument.documentElement.dataset.theme=button.dataset.previewTheme;document.querySelectorAll('[data-preview-theme]').forEach(b=>b.setAttribute('aria-pressed',String(b===button)))}));</script></body></html>
@@ -1,14 +1,14 @@
1
1
  <!doctype html>
2
2
  <html lang="zh-CN" data-theme="ryo">
3
3
  <head>
4
- <meta name="dsh-remote-build" content="84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
4
+ <meta name="dsh-remote-build" content="bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
5
5
  <meta charset="utf-8">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
7
  <title>山田凉 · 皮肤样板预览</title>
8
- <link rel="stylesheet" href="../../styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
9
- <link rel="stylesheet" href="../../workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
10
- <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
11
- <link rel="stylesheet" href="skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184">
8
+ <link rel="stylesheet" href="../../styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
9
+ <link rel="stylesheet" href="../../workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
10
+ <link rel="stylesheet" href="../kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
11
+ <link rel="stylesheet" href="skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82">
12
12
  <style>
13
13
  /* 只负责展示页排版;画框内完全复用实际组件样式,不重画玻璃或背景。 */
14
14
  body{padding:28px 20px 40px}.preview-shell{max-width:980px;margin:auto}.preview-label{font:11px ui-monospace,monospace;letter-spacing:.15em;color:var(--dsr-muted)}
@@ -50,7 +50,7 @@
50
50
  </template>
51
51
  <script>
52
52
  const base=new URL('../../',location.href).href
53
- document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="ryo"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="workflow.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"><link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=84d998ae3a1302b3e1d02d3cdde5d8f3ad3f8bd963ec0323fd18a675015e1184"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
53
+ document.getElementById('phone').srcdoc='<!doctype html><html lang="zh-CN" data-theme="ryo"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><base href="'+base+'"><link rel="stylesheet" href="styles.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="workflow.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/kessoku/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"><link rel="stylesheet" href="skins/ryo/skin.css?dsr-build=bf34185cf0d5c5081644cc64dc6d026b2f352209cea43836820bd9eff034dd82"></head><body class="workflow-v8">'+document.getElementById('phone-components').innerHTML+'</body></html>'
54
54
  </script>
55
55
  </body>
56
56
  </html>
@@ -11,7 +11,6 @@
11
11
  menu.hidden = true
12
12
  menu.setAttribute('role', 'listbox')
13
13
  input.setAttribute('aria-autocomplete', 'list')
14
- input.setAttribute('aria-controls', menu.id)
15
14
  input.parentElement.prepend(menu)
16
15
 
17
16
  let catalog = null, matches = [], selected = null
@@ -62,11 +61,18 @@
62
61
  selected = null
63
62
  menu.hidden = true
64
63
  menu.replaceChildren()
65
- input.removeAttribute('aria-activedescendant')
64
+ releaseInputAria()
66
65
  return visible
67
66
  }
68
67
  closeMenu = close
69
68
 
69
+ function releaseInputAria() {
70
+ if (input.getAttribute('aria-controls') !== menu.id) return
71
+ input.setAttribute('aria-expanded', 'false')
72
+ input.removeAttribute('aria-controls')
73
+ input.removeAttribute('aria-activedescendant')
74
+ }
75
+
70
76
  function highlight() {
71
77
  const index = matches.findIndex(item => item.name === selected)
72
78
  for (const [i, option] of [...menu.children].entries()) {
@@ -76,7 +82,7 @@
76
82
  if (option) {
77
83
  input.setAttribute('aria-activedescendant', option.id)
78
84
  option.scrollIntoView({ block: 'nearest' })
79
- } else input.removeAttribute('aria-activedescendant')
85
+ } else if (input.getAttribute('aria-controls') === menu.id) input.removeAttribute('aria-activedescendant')
80
86
  }
81
87
 
82
88
  function render() {
@@ -115,6 +121,12 @@
115
121
  return option
116
122
  }))
117
123
  menu.hidden = !matches.length
124
+ if (menu.hidden) {
125
+ releaseInputAria()
126
+ return
127
+ }
128
+ input.setAttribute('aria-expanded', 'true')
129
+ input.setAttribute('aria-controls', menu.id)
118
130
  highlight()
119
131
  }
120
132
 
@@ -3,19 +3,27 @@
3
3
  'use strict'
4
4
  const applicationUrl='https://relay-pilot.blankalwaysgoeson.site/sponsor/'
5
5
  const entries=new WeakMap()
6
+ let inAppEntry=null
7
+ function openPortal(manage=false) {
8
+ if(manage&&typeof root.NativeBackground?.openCloudRelayManagement==='function')root.NativeBackground.openCloudRelayManagement()
9
+ else if(typeof root.NativeBackground?.openCloudRelay==='function')root.NativeBackground.openCloudRelay()
10
+ else return false
11
+ return true
12
+ }
6
13
  function mount(target) {
7
14
  if(!target)return
8
15
  let entry=entries.get(target)
9
16
  if(!entry){
10
17
  const line=document.createElement('p'),link=document.createElement('a'),note=document.createElement('span')
11
18
  line.className='sponsor-entry';link.href=applicationUrl;link.target='_blank';link.rel='noopener noreferrer'
19
+ link.addEventListener('click',event=>{if(inAppEntry){event.preventDefault();inAppEntry()}})
12
20
  line.append(link,note);target.append(line);entry={line,link,note};entries.set(target,entry)
13
21
  }
14
22
  const en=root.I18N?.lang==='en'
15
- entry.link.textContent=en?'Sponsor ¥1 or more · Apply for one month of basic relay':'赞助 ¥1 及以上 · 申请一个月基础中转'
16
- entry.note.textContent=en?' · Manual payment verification; 5GB per service month, one gateway, no file transfer.':' · 人工核验到账后开通,服务月 5GB,单网关,不含文件传输。'
23
+ entry.link.textContent=en?'Cloud relay · Apply, check status or renew':'云中转 · 开通、查询与续费'
24
+ entry.note.textContent=en?'See the application page for pricing. The base plan includes 5GB per service month for one gateway.':'价格以办理页为准。基础档每服务月 5GB,绑定一台网关。'
17
25
  return entry.line
18
26
  }
19
- root.DshSponsor={applicationUrl,mount}
27
+ root.DshSponsor={applicationUrl,mount,openPortal,setInAppEntry:entry=>{inAppEntry=entry}}
20
28
  for(const body of document.querySelectorAll('.donate-body'))mount(body)
21
29
  })(typeof window!=='undefined'?window:globalThis)