dsh-concierge 0.0.0-stage → 0.20.4

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.
@@ -0,0 +1,85 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>GitHub Token 卡片预览</title>
6
+ <style>
7
+ :root {
8
+ --dsw-alias-bg-overlay: #ffffff;
9
+ --dsw-alias-bg-layer-1: #f6f7f9;
10
+ --dsw-alias-bg-layer-2: #eef0f4;
11
+ --dsw-alias-border-l1: #e3e6ec;
12
+ --dsw-alias-border-l2: #d5d9e2;
13
+ --dsw-alias-label-primary: #14171c;
14
+ --dsw-alias-label-secondary: #6b7280;
15
+ --dsw-alias-brand-primary: #4f6ef7;
16
+ --dsw-alias-state-success-primary: #16a34a;
17
+ }
18
+ body { margin: 0; padding: 34px; background: #f2f4f8; font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; color: #14171c; }
19
+ h1 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
20
+ .note { font-size: 12px; color: #6b7280; margin: 0 0 20px; }
21
+ .uc-card { max-width: 640px; border: 1px solid #e3e6ec; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 26px; }
22
+ .uc-card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
23
+ .uc-card-title { font-size: 13.5px; font-weight: 600; }
24
+ .uc-chip { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid #e3e6ec; color: #6b7280; }
25
+ .uc-chip-ok { color: #16a34a; border-color: #16a34a; }
26
+ .uc-token-current { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 0 20px 2px; }
27
+ .uc-token-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #14171c; }
28
+ .uc-token-current-hint { color: #6b7280; font-size: 11px; }
29
+ .uc-install { display: flex; gap: 8px; padding: 14px 20px 4px; }
30
+ .uc-install input { flex: 1; box-sizing: border-box; border: 1px solid #d5d9e2; border-radius: 11px; background: #fff; color: #14171c; font-size: 13px; padding: 9px 13px; outline: none; }
31
+ .uc-btn { appearance: none; border: 1px solid #d5d9e2; background: #fff; color: #14171c; border-radius: 10px; padding: 0 14px; min-height: 30px; font-size: 12px; cursor: pointer; }
32
+ .uc-btn-accent { background: #4f6ef7; border-color: #4f6ef7; color: #fff; font-weight: 600; }
33
+ .uc-btn-ghost { border-color: transparent; background: transparent; color: #6b7280; }
34
+ .uc-token-doc { display: flex; flex-direction: column; gap: 5px; padding: 6px 20px 16px; font-size: 11px; line-height: 1.6; color: #6b7280; }
35
+ .uc-token-doc p { margin: 0; }
36
+ .uc-token-links { display: flex; gap: 12px; }
37
+ .uc-token-link { color: #4f6ef7; text-decoration: none; }
38
+ .uc-muted { color: #6b7280; }
39
+ </style>
40
+ </head>
41
+ <body>
42
+ <h1>GitHub Token 卡片 · 已配置状态</h1>
43
+ <p class="note">上面一行是当前保存的 token(掩码),输入框留空只用来粘贴新的。</p>
44
+
45
+ <div class="uc-card">
46
+ <div class="uc-card-head">
47
+ <div class="uc-card-title">GitHub Token</div>
48
+ <span class="uc-chip uc-chip-ok">已配置</span>
49
+ </div>
50
+ <div class="uc-token-current">
51
+ <span class="uc-token-mono">github_pat_…JUxa</span>
52
+ <span class="uc-token-current-hint">保存在 ~/.dsh/update-center/settings.json</span>
53
+ </div>
54
+ <div class="uc-install">
55
+ <input placeholder="粘贴新的 token 以替换">
56
+ <button class="uc-btn uc-btn-accent">保存</button>
57
+ <button class="uc-btn uc-btn-ghost">清除</button>
58
+ </div>
59
+ <div class="uc-token-doc">
60
+ <p>为什么要配:GitHub 对匿名请求按 IP 限流,每小时 60 次;带 token 是每小时 5000 次(按账号)。几条来源就能把匿名额度用完。</p>
61
+ <p>怎么申请:打开下面的页面,</p>
62
+ <div class="uc-token-links">
63
+ <a class="uc-token-link" href="#">细粒度 token(推荐)</a>
64
+ <a class="uc-token-link" href="#">经典 token</a>
65
+ </div>
66
+ <p>Repository access 选 Public repositories (read-only),权限一个都不勾(经典 token 的 Scopes 也不勾)。生成后只显示一次,当场复制。</p>
67
+ <p>插件从哪里读:环境变量 GITHUB_TOKEN → GH_TOKEN → 本机 ~/.dsh/update-center/settings.json,环境变量优先。保存后立即生效。</p>
68
+ </div>
69
+ </div>
70
+
71
+ <div class="uc-card">
72
+ <div class="uc-card-head">
73
+ <div class="uc-card-title">GitHub Token</div>
74
+ <span class="uc-chip">未配置</span>
75
+ </div>
76
+ <div class="uc-install">
77
+ <input placeholder="ghp_… 或 github_pat_…">
78
+ <button class="uc-btn uc-btn-accent">保存</button>
79
+ </div>
80
+ <div class="uc-token-doc">
81
+ <p>为什么要配:GitHub 对匿名请求按 IP 限流,每小时 60 次;带 token 是每小时 5000 次(按账号)。</p>
82
+ </div>
83
+ </div>
84
+ </body>
85
+ </html>
Binary file
package/icon.svg ADDED
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36">
2
+ <g fill="none" stroke="#2f7fd1" stroke-width="2.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M18 7.5v12.5" />
4
+ <path d="M12.8 15.2 18 20.4l5.2-5.2" />
5
+ <path d="M9 24.5v3.2a2.3 2.3 0 0 0 2.3 2.3h13.4a2.3 2.3 0 0 0 2.3-2.3v-3.2" />
6
+ </g>
7
+ </svg>