dsh-milestone 0.6.0 → 0.6.2
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/README.md +211 -120
- package/assets/demo.svg +39 -0
- package/assets/logo.svg +22 -0
- package/lib/client.js +2395 -447
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -1,120 +1,211 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<img src="./assets/logo.svg" alt="dsh-milestone" width="112">
|
|
4
|
-
|
|
5
|
-
# dsh-milestone
|
|
6
|
-
|
|
7
|
-
**DeepSeek Harness 的会话里程碑导航条**
|
|
8
|
-
|
|
9
|
-
像 Git 提交图一样,一眼定位每一次提问,一键跳转到任何位置。
|
|
10
|
-
|
|
11
|
-
<p>
|
|
12
|
-
<a href="https://www.npmjs.com/package/dsh-milestone"><img src="https://img.shields.io/npm/v/dsh-milestone?color=2563eb" alt="npm version"></a>
|
|
13
|
-
<a href="https://www.npmjs.com/package/dsh-milestone"><img src="https://img.shields.io/npm/dm/dsh-milestone" alt="npm downloads"></a>
|
|
14
|
-
<a href="./LICENSE"><img src="https://img.shields.io/npm/l/dsh-milestone" alt="license"></a>
|
|
15
|
-
<a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/topic-dsh--plugin-2563eb" alt="dsh-plugin"></a>
|
|
16
|
-
</p>
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 为什么需要它?
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<img src="./assets/demo.svg" alt="dsh-milestone 效果示意图" width="100%">
|
|
29
|
-
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="./assets/logo.svg" alt="dsh-milestone" width="112">
|
|
4
|
+
|
|
5
|
+
# dsh-milestone
|
|
6
|
+
|
|
7
|
+
**DeepSeek Harness 的会话里程碑导航条**
|
|
8
|
+
|
|
9
|
+
像 Git 提交图一样,一眼定位每一次提问,一键跳转到任何位置。
|
|
10
|
+
|
|
11
|
+
<p>
|
|
12
|
+
<a href="https://www.npmjs.com/package/dsh-milestone"><img src="https://img.shields.io/npm/v/dsh-milestone?color=2563eb" alt="npm version"></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/dsh-milestone"><img src="https://img.shields.io/npm/dm/dsh-milestone" alt="npm downloads"></a>
|
|
14
|
+
<a href="./LICENSE"><img src="https://img.shields.io/npm/l/dsh-milestone" alt="license"></a>
|
|
15
|
+
<a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/topic-dsh--plugin-2563eb" alt="dsh-plugin"></a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 为什么需要它?
|
|
23
|
+
|
|
24
|
+
- 上百轮对话之后,想找回「第 17 轮那个提问」?只能不停往上翻,在代码块和思考过程里大海捞针。
|
|
25
|
+
- 右侧挂一条**圆点时间线**:一个提问一个圆点,悬停看内容,点击瞬间跳转——长对话的「导航地图」。
|
|
26
|
+
- 官方 slot 机制挂载,不修改 harness 源码,装完即用。
|
|
27
|
+
|
|
28
|
+
<img src="./assets/demo.svg" alt="dsh-milestone 效果示意图" width="100%">
|
|
29
|
+
|
|
30
|
+
## 快速开始
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
# 从 npm 安装(推荐)
|
|
34
|
+
dsh plugin --profile demo add dsh-milestone
|
|
35
|
+
|
|
36
|
+
# 或从 GitHub 源码安装
|
|
37
|
+
dsh plugin --profile demo add "github:SnowCrescenter-tech/dsh-milestone#main"
|
|
38
|
+
|
|
39
|
+
# 启动 Web UI
|
|
40
|
+
npx @deepseek-ai/dsh web # → http://127.0.0.1:3080
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
打开一个**多轮对话**(至少 2 条提问),会话视图右侧就会出现里程碑条。
|
|
44
|
+
|
|
45
|
+
> 要求 Node.js `>= 24`(harness 官方要求)。
|
|
46
|
+
|
|
47
|
+
## 功能总览
|
|
48
|
+
|
|
49
|
+
按类别分组,一屏扫完所有能力。
|
|
50
|
+
|
|
51
|
+
| 类别 | 功能 · 一句话 | 键位 |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| 定位导航 | 圆点时间线:每问一个圆点,点击平滑跳转 | |
|
|
54
|
+
| 定位导航 | 当前位置高亮:视口最近的提问亮起白环 | |
|
|
55
|
+
| 定位导航 | 加载更早:「···」继续加载历史,提示已显示条数 | |
|
|
56
|
+
| 定位导航 | 全部提问列表:序号 + 轮次 + 预览一次看全,点击直达 | |
|
|
57
|
+
| 定位导航 | 深链接:`#msg=` 锚点,刷新/分享后直达同一条 | |
|
|
58
|
+
| 搜索过滤 | 站内搜索:匹配完整消息内容,实时 N/M 命中 | Enter 下一个 / Esc 清空 |
|
|
59
|
+
| 搜索过滤 | 跨会话搜索:搜所有会话,点击打开对应会话 | |
|
|
60
|
+
| 搜索过滤 | 收藏书签:悬停点星,★ 只看收藏 | |
|
|
61
|
+
| 状态感知 | 轮次健康徽章:出错红 / 上限黄 / 重试橙 / 运行蓝 / 等待脉冲 | |
|
|
62
|
+
| 状态感知 | 悬停元信息:时间 · 轮次 · 用时 · 结束原因 · TTFT · tok/s · 模型 · token 用量 | |
|
|
63
|
+
| 个性化与效率 | 键盘导航:全程不用鼠标 | ↑↓ 移动 · Enter 跳转 · Home/End 首尾 |
|
|
64
|
+
| 个性化与效率 | turn 分组折叠:按轮次成组,长轮次折成一条 | |
|
|
65
|
+
| 个性化与效率 | 复制与 fork:一键复制提问全文 / 从此处分支 | |
|
|
66
|
+
| 个性化与效率 | 聚焦模式:淡化 thinking 区块,悬停或展开恢复 | |
|
|
67
|
+
| 个性化与效率 | 折叠工具栏:功能键默认收起,箭头展开;设置菜单可把常用键钉到折叠外(持久化 + 恢复默认) | |
|
|
68
|
+
| 个性化与效率 | 个性化外观:强调色 / 图标圆点大小 / 距侧边距离 / 位置左右(设置内即调即存) | |
|
|
69
|
+
| 个性化与效率 | 语言切换:跟随系统 / 中文 / English,设置内一键切换 | |
|
|
70
|
+
| 个性化与效率 | 点击外部关闭:搜索 / 列表等浮层自动收起 | |
|
|
71
|
+
| 发布运维 | 更新检测:6h 缓存自动检查,新版徽章,一键去 npm | |
|
|
72
|
+
| 发布运维 | 设置推广区:GitHub / Star / Issue / npm 四入口 | |
|
|
73
|
+
|
|
74
|
+
另:滚轮可在里程碑条上直接滑动选点;圆点的固定间距与蓝色渐变见下方「圆点时间线」一节。
|
|
75
|
+
|
|
76
|
+
## 核心功能详解
|
|
77
|
+
|
|
78
|
+
### 圆点时间线与悬停元信息
|
|
79
|
+
|
|
80
|
+
- 每个提问一个圆点,点击平滑跳转;悬停即看内容与元信息。
|
|
81
|
+
- 圆点等距排列、不随对话长度变形;颜色由浅入深标出先后,同 Git 提交图。
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
┌──────────────────────────────────────────┐
|
|
85
|
+
│ 第 3 / 5 条 · 第 2 轮 ☆ 复制 ✂ │ ← 序号 + 轮次 + 收藏/复制/fork
|
|
86
|
+
│ 帮我优化这段代码的性能 │ ← 消息预览(前 80 字)
|
|
87
|
+
│ 5 分钟前 · 用时 1m30s · 首字 1.2s · 12.4 tok/s │ ← 时间 · 耗时 · TTFT · 吞吐
|
|
88
|
+
│ v4 · continue · 1280 / 2560 tok │ ← 模型 · 用途 · token 用量
|
|
89
|
+
└──────────────────────────────────────────┘
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
元信息全部来自 harness 原生 session 快照(`turnTimings` / `timeline.turns` / `turn-tail`),无额外依赖。
|
|
93
|
+
|
|
94
|
+
### 站内搜索
|
|
95
|
+
|
|
96
|
+
- 搜索框过滤圆点,匹配的是**完整消息内容**(不是 80 字摘要),实时显示命中数 N/M。
|
|
97
|
+
- `Enter` 跳到下一个匹配,`Esc` 一键清空。
|
|
98
|
+
- 范围 = 当前已加载窗口;更早的历史先点「···」加载进来。
|
|
99
|
+
|
|
100
|
+
### 收藏书签
|
|
101
|
+
|
|
102
|
+
- 悬停圆点点星收藏,刷新后仍在(`store.persist`,按会话隔离)。
|
|
103
|
+
- 顶部「★」一键只看收藏,把一次性跳转变反复回访。
|
|
104
|
+
|
|
105
|
+
### 深链接 `#msg=`
|
|
106
|
+
|
|
107
|
+
- 跳转时 URL 带上 `#msg=`,刷新或分享链接后仍回到同一条消息。
|
|
108
|
+
- 目标在已加载窗口外时,自动先加载更早历史再定位(受加载上限约束)。
|
|
109
|
+
|
|
110
|
+
### 跨会话搜索
|
|
111
|
+
|
|
112
|
+
- 一键搜索**所有会话**的消息内容(harness 原生索引)。
|
|
113
|
+
- 点击结果直接打开对应会话;最多 20 条结果,片段 ≤240 字符。
|
|
114
|
+
|
|
115
|
+
### 更新检测
|
|
116
|
+
|
|
117
|
+
- 自动检查 npm 新版本,6 小时缓存,不打扰。
|
|
118
|
+
- 发现新版:功能键亮起提醒徽章;弹窗展示当前/最新版本与**已适配版本线**;一键去 npm 升级。
|
|
119
|
+
|
|
120
|
+
## 工作原理
|
|
121
|
+
|
|
122
|
+
双半边浏览器插件(空 node half + `shell.overlay` slot 挂载的 client half),零侵入:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
shell.overlay (root scope)
|
|
126
|
+
└─ milestone.rail (session scope, 自声明子槽)
|
|
127
|
+
└─ useSession 读取会话快照 → 圆点列表 + 悬停 + 跳转
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
- **注入点**:`shell.overlay` 全框架浮动层,附加式、点击穿透,不碰现有 UI。
|
|
131
|
+
- **数据源**:`chat.order` + `chat.nodes`(user 消息与 `turn-error`/`turn-max-tokens`/`model-retry` 节点)+ `chat.timeline`(turn 元数据)+ `hasMore`/`loadingOlder`(分页)+ `running`/`pending`(徽章)+ `loadOlder`(inject face)。
|
|
132
|
+
- **跳转**:DOM 锚点 `data-chat-anchor-key`,`scrollIntoView` 平滑定位。
|
|
133
|
+
- **持久化**:`store.persist`(每会话 localStorage,key `dsh-milestone.bookmarks.<sessionId>`),经 `defineStore` 引擎读写;工具栏偏好同理。
|
|
134
|
+
- **纯函数分层**:搜索过滤 / 位置计算 / 圆点状态都在 `rail-logic.ts` 纯函数里,单测覆盖。
|
|
135
|
+
|
|
136
|
+
## 版本与兼容
|
|
137
|
+
|
|
138
|
+
- 当前官方支持线:**`0.1.1-rc.2`**(peer/dev 依赖 `^0.1.1-rc.2`,与 `@deepseek-ai/dsh` 最新 `latest` 标签一致)。
|
|
139
|
+
- 官方客户端包(`dsh-client-runtime` 等)在 npm 上走 `next` 标签发布(`latest` 标签仍是远古版本);升级 harness 后若发现插件不匹配,请确认安装的依赖解析到了 `0.1.1-rc.2` 线。
|
|
140
|
+
- 更新检测弹窗内展示本插件声明支持的版本线;harness 当前版本在浏览器端没有可信来源(`host.describe().version` 是占位值),因此不做精确探测,以声明线为准。
|
|
141
|
+
|
|
142
|
+
## 已知限制
|
|
143
|
+
|
|
144
|
+
> ⚠️ **最需要注意**:搜索只覆盖**当前已加载**的消息窗口(初始 50 条)——更早的历史需先点顶部「···」加载进来,才能被搜到。
|
|
145
|
+
|
|
146
|
+
<details>
|
|
147
|
+
<summary>查看更多已知限制(点击展开)</summary>
|
|
148
|
+
|
|
149
|
+
- TTFT / tokens/秒 依赖 turn 位置数据,窗口外或未完成的 turn 不显示(自动隐藏)。
|
|
150
|
+
- 徽章的瞬态状态(运行中/等待输入)只点亮**最新一条可见提问**——若该轮次的提问在窗口外,则无脉冲。
|
|
151
|
+
- 书签按**会话**隔离(不跨会话共享)。
|
|
152
|
+
- 模型 / token 用量依赖该轮 assistant 节点的元数据,部分场景下缺失则自动隐藏该行。
|
|
153
|
+
- fork 从选中消息所在轮次开始分支,不会自动打开子会话(需在会话列表手动打开)。
|
|
154
|
+
- 深链接的目标消息若早于已加载窗口,会先自动加载更早历史再定位(受加载上限约束,极端深的历史可能定位失败)。
|
|
155
|
+
- 跨会话搜索依赖 harness 的消息内容索引(`session.search`),仅返回片段(≤240 字符)、最多 20 条结果;命中过多时请细化关键词。
|
|
156
|
+
- 聚焦模式作用于当前会话视图的思考区块,不影响其他插件或工具的展示。
|
|
157
|
+
- 尚无全局快捷键聚焦里程碑条(需 Tab 键切换到)。
|
|
158
|
+
- 功能键**默认折叠**,首次使用需点箭头展开;可在设置菜单里把常用键钉到折叠外。
|
|
159
|
+
- 更新检测依赖浏览器能访问 npm 镜像(`registry.npmmirror.com` / `registry.npmjs.org`);若页面 CSP 限制 `connect-src` 或离线,检查会静默失败。结果缓存 6 小时。
|
|
160
|
+
- 工具栏固定偏好存于浏览器 localStorage(不跨浏览器/设备同步)。
|
|
161
|
+
|
|
162
|
+
</details>
|
|
163
|
+
|
|
164
|
+
## 更新日志
|
|
165
|
+
|
|
166
|
+
<details>
|
|
167
|
+
<summary>v0.6.2 / v0.6.1 / v0.6.0(点击展开)</summary>
|
|
168
|
+
|
|
169
|
+
**v0.6.2** · 设置模态化 + 个性化 + 语言切换 · 346 项测试
|
|
170
|
+
|
|
171
|
+
- 设置改为**居中模态框**:功能行悬停显示说明、按类别分区。
|
|
172
|
+
- **个性化模块**:强调色(预设 + 自定义)、图标 / 圆点大小、距侧边距离、位置左或右(浮层自动换侧),全部即调即存。
|
|
173
|
+
- **语言切换**:跟随系统 / 中文 / English(zh/en 词典完整,缺译即编译错)。
|
|
174
|
+
- 设置按钮进入展开队列(折叠态更干净);底部推广区改 2×2 卡片网格。
|
|
175
|
+
- 圆点 turn 分隔线移除(改组间距表达);状态徽章改为柔边光晕。
|
|
176
|
+
- npm 包纳入 `assets/*.svg`(npm 页 README 图片恢复显示)。
|
|
177
|
+
|
|
178
|
+
> [GitHub Release v0.6.2](https://github.com/SnowCrescenter-tech/dsh-milestone/releases/tag/v0.6.2)
|
|
179
|
+
|
|
180
|
+
**v0.6.1** · 对齐 `0.1.1-rc.2` 支持线 · 五项新功能 · 292 项测试
|
|
181
|
+
|
|
182
|
+
- 折叠工具栏:功能键默认收起,箭头展开。
|
|
183
|
+
- 设置菜单:常用功能「在折叠外显示」固定自定义;偏好持久化,一键恢复默认。
|
|
184
|
+
- 设置底部推广区:GitHub / Star / Issue / npm 四入口。
|
|
185
|
+
- 更新检测:6h 缓存自动检查、新版徽章、当前/最新版本与已适配版本线、一键去 npm。
|
|
186
|
+
- 点击外部自动关闭各浮层(与官方 capture 阶段 pointerdown 契约一致)。
|
|
187
|
+
|
|
188
|
+
> [GitHub Release v0.6.1](https://github.com/SnowCrescenter-tech/dsh-milestone/releases/tag/v0.6.1)
|
|
189
|
+
|
|
190
|
+
**v0.6.0** · P3 功能
|
|
191
|
+
|
|
192
|
+
- 聚焦模式:淡化思考(thinking)区块,悬停或展开自动恢复。
|
|
193
|
+
- 全部提问列表面板:序号 + 轮次 + 预览一次看全,点击即跳。
|
|
194
|
+
- 深链接:`#msg=` 锚点,刷新或分享后直达同一条消息。
|
|
195
|
+
- 跨会话搜索:搜索所有会话的消息内容,点击结果打开对应会话。
|
|
196
|
+
|
|
197
|
+
> [GitHub Release v0.6.0](https://github.com/SnowCrescenter-tech/dsh-milestone/releases/tag/v0.6.0)
|
|
198
|
+
|
|
199
|
+
</details>
|
|
200
|
+
|
|
201
|
+
维护者:发布清单见 [RELEASING.md](./RELEASING.md)。
|
|
202
|
+
|
|
203
|
+
## License
|
|
204
|
+
|
|
205
|
+
[MIT](./LICENSE)
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
<p align="center">
|
|
210
|
+
觉得好用?给个 star 支持一下,或把它推荐给正在 DeepSeek Harness 里挣扎的开发者吧。
|
|
211
|
+
</p>
|
package/assets/demo.svg
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="760" height="400" viewBox="0 0 760 400" font-family="system-ui, -apple-system, 'Segoe UI', sans-serif">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="dotGrad" x1="0" y1="0" x2="0" y2="1">
|
|
4
|
+
<stop offset="0" stop-color="#b9d4ff"/>
|
|
5
|
+
<stop offset="0.5" stop-color="#5d8ffd"/>
|
|
6
|
+
<stop offset="1" stop-color="#2f5fd8"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
|
|
10
|
+
<!-- 会话区 -->
|
|
11
|
+
<rect x="36" y="28" width="500" height="344" rx="12" fill="#f7f8fb" stroke="#e3e6ee"/>
|
|
12
|
+
<!-- 消息气泡(user 白色 / assistant 浅蓝) -->
|
|
13
|
+
<rect x="60" y="60" width="300" height="26" rx="7" fill="#ffffff" stroke="#dde2ea"/>
|
|
14
|
+
<rect x="60" y="108" width="360" height="44" rx="7" fill="#eef2ff" stroke="#dde2ea"/>
|
|
15
|
+
<rect x="60" y="176" width="280" height="26" rx="7" fill="#ffffff" stroke="#dde2ea"/>
|
|
16
|
+
<rect x="60" y="224" width="380" height="44" rx="7" fill="#eef2ff" stroke="#dde2ea"/>
|
|
17
|
+
<rect x="60" y="292" width="260" height="26" rx="7" fill="#ffffff" stroke="#dde2ea"/>
|
|
18
|
+
|
|
19
|
+
<!-- 里程碑条背景 -->
|
|
20
|
+
<rect x="560" y="52" width="24" height="296" rx="12" fill="#eef1f7"/>
|
|
21
|
+
|
|
22
|
+
<!-- 圆点(蓝色渐变,从上到下变深) -->
|
|
23
|
+
<circle cx="572" cy="88" r="7" fill="#b9d4ff"/>
|
|
24
|
+
<circle cx="572" cy="140" r="7" fill="#8fb8ff"/>
|
|
25
|
+
<circle cx="572" cy="192" r="7" fill="#5d8ffd"/>
|
|
26
|
+
<circle cx="572" cy="244" r="7" fill="#2f5fd8"/>
|
|
27
|
+
<!-- 悬停圆点高亮圈 -->
|
|
28
|
+
<circle cx="572" cy="192" r="11" fill="none" stroke="#4d7cfe" stroke-opacity="0.35" stroke-width="3"/>
|
|
29
|
+
|
|
30
|
+
<!-- tooltip -->
|
|
31
|
+
<rect x="300" y="150" width="236" height="84" rx="9" fill="#141820"/>
|
|
32
|
+
<text x="314" y="172" fill="#9aa4b8" font-size="12">第 3 / 5 条 · 第 2 轮</text>
|
|
33
|
+
<text x="314" y="194" fill="#e6e8ee" font-size="13">帮我优化这段代码的性能</text>
|
|
34
|
+
<text x="314" y="216" fill="#8b96ab" font-size="11">5 分钟前 · 用时 1m30s · 首字 1.2s</text>
|
|
35
|
+
|
|
36
|
+
<!-- 图例 -->
|
|
37
|
+
<text x="640" y="96" fill="#5b6472" font-size="12">最早</text>
|
|
38
|
+
<text x="640" y="236" fill="#5b6472" font-size="12">最新</text>
|
|
39
|
+
</svg>
|
package/assets/logo.svg
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="dsh-milestone logo">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
+
<stop offset="0" stop-color="#0a1128"/>
|
|
5
|
+
<stop offset="1" stop-color="#12224a"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
|
|
9
|
+
<!-- 圆角方形背景 -->
|
|
10
|
+
<rect width="256" height="256" rx="58" fill="url(#bg)"/>
|
|
11
|
+
|
|
12
|
+
<!-- 时间线连接线 -->
|
|
13
|
+
<line x1="128" y1="80" x2="128" y2="178" stroke="#5d8ffd" stroke-opacity="0.22" stroke-width="5" stroke-linecap="round"/>
|
|
14
|
+
|
|
15
|
+
<!-- 里程碑圆点(蓝色渐变,上浅下深 = 早到新) -->
|
|
16
|
+
<circle cx="128" cy="80" r="13" fill="#a9caff"/>
|
|
17
|
+
<circle cx="128" cy="129" r="15" fill="#5d8ffd"/>
|
|
18
|
+
<circle cx="128" cy="178" r="13" fill="#2f5fd8"/>
|
|
19
|
+
|
|
20
|
+
<!-- 定位环(导航/跳转意象) -->
|
|
21
|
+
<circle cx="128" cy="129" r="32" fill="none" stroke="#4d7cfe" stroke-opacity="0.45" stroke-width="4"/>
|
|
22
|
+
</svg>
|