Repository navigation
Expand file tree
/
Copy pathimplementation-plan-flowchart.html
More file actions
587 lines (500 loc) · 34.8 KB
/
Copy pathimplementation-plan-flowchart.html
File metadata and controls
587 lines (500 loc) · 34.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NetworkTools 实施路线图 — 流程图</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #020617;
color: #e2e8f0;
font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
padding: 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.container { max-width: 1400px; width: 100%; }
h1 {
text-align: center;
font-size: 28px;
font-weight: 600;
color: #f1f5f9;
margin-bottom: 8px;
}
.subtitle {
text-align: center;
color: #64748b;
font-size: 14px;
margin-bottom: 40px;
}
.pulse-dot {
display: inline-block;
width: 10px; height: 10px;
background: #22d3ee;
border-radius: 50%;
margin-right: 10px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; box-shadow: 0 0 4px #22d3ee; }
50% { opacity: 0.5; box-shadow: 0 0 12px #22d3ee; }
}
.diagram-card {
background: #0f172a;
border: 1px solid #1e293b;
border-radius: 16px;
padding: 30px;
margin-bottom: 30px;
overflow-x: auto;
}
svg { display: block; margin: 0 auto; }
/* Summary Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 30px; }
.card {
background: #0f172a;
border: 1px solid #1e293b;
border-radius: 12px;
padding: 20px;
}
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-dot { width: 10px; height: 10px; border-radius: 50%; }
.card-dot.cyan { background: #22d3ee; }
.card-dot.emerald { background: #34d399; }
.card-dot.violet { background: #a78bfa; }
.card-dot.amber { background: #fbbf24; }
.card h3 { font-size: 15px; color: #f1f5f9; }
.card ul { list-style: none; font-size: 12px; color: #94a3b8; line-height: 1.8; }
.card ul li::before { content: '▸ '; color: #475569; }
footer {
text-align: center;
font-size: 11px;
color: #334155;
padding-top: 20px;
border-top: 1px solid #1e293b;
width: 100%;
}
.legend { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 20px 0; font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-box { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid; }
.legend-box.p0 { background: rgba(251, 113, 133, 0.3); border-color: #fb7185; }
.legend-box.p1 { background: rgba(251, 146, 60, 0.3); border-color: #fb923c; }
.legend-box.p2 { background: rgba(251, 191, 36, 0.3); border-color: #fbbf24; }
.legend-box.p3 { background: rgba(148, 163, 184, 0.3); border-color: #94a3b8; }
.legend-box.phase1 { background: rgba(8, 51, 68, 0.4); border-color: #22d3ee; }
.legend-box.phase2 { background: rgba(6, 78, 59, 0.4); border-color: #34d399; }
.legend-box.phase3 { background: rgba(76, 29, 149, 0.4); border-color: #a78bfa; }
.legend-box.phase4 { background: rgba(120, 53, 15, 0.3); border-color: #fbbf24; }
</style>
</head>
<body>
<div class="container">
<h1><span class="pulse-dot"></span>NetworkTools 实施路线图</h1>
<p class="subtitle">基于 project_analysis.artifact.md 建议 · 四阶段分步实施 · 19天预估</p>
<div class="legend">
<span class="legend-item"><span class="legend-box p0"></span>P0 核心</span>
<span class="legend-item"><span class="legend-box p1"></span>P1 重要</span>
<span class="legend-item"><span class="legend-box p2"></span>P2 增强</span>
<span class="legend-item"><span class="legend-box p3"></span>P3 锦上添花</span>
<span class="legend-item" style="margin-left:20px"><span class="legend-box phase1"></span>Phase 1 Foundation</span>
<span class="legend-item"><span class="legend-box phase2"></span>Phase 2 Tooling v2</span>
<span class="legend-item"><span class="legend-box phase3"></span>Phase 3 New Features</span>
<span class="legend-item"><span class="legend-box phase4"></span>Phase 4 Polish</span>
</div>
<div class="diagram-card">
<!-- SVG Flowchart -->
<svg viewBox="0 0 1320 1600" xmlns="http://www.w3.org/2000/svg" style="width:100%;height:auto;">
<defs>
<!-- Background Grid -->
<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
<path d="M 40 0 L 0 0 0 40" fill="none" stroke="#1e293b" stroke-width="0.5"/>
</pattern>
<!-- Arrow markers -->
<marker id="arrow-cyan" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
<path d="M 0 0 L 8 3 L 0 6 Z" fill="#22d3ee"/>
</marker>
<marker id="arrow-emerald" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
<path d="M 0 0 L 8 3 L 0 6 Z" fill="#34d399"/>
</marker>
<marker id="arrow-violet" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
<path d="M 0 0 L 8 3 L 0 6 Z" fill="#a78bfa"/>
</marker>
<marker id="arrow-amber" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
<path d="M 0 0 L 8 3 L 0 6 Z" fill="#fbbf24"/>
</marker>
<marker id="arrow-down" markerWidth="8" markerHeight="6" refX="4" refY="6" orient="auto">
<path d="M 0 0 L 4 6 L 8 0 Z" fill="#475569"/>
</marker>
<!-- Drop shadow -->
<filter id="shadow" x="-10%" y="-10%" width="130%" height="130%">
<feDropShadow dx="0" dy="2" stdDeviation="4" flood-color="#000" flood-opacity="0.4"/>
</filter>
<filter id="glow-cyan">
<feDropShadow dx="0" dy="0" stdDeviation="6" flood-color="#22d3ee" flood-opacity="0.3"/>
</filter>
</defs>
<!-- Background -->
<rect width="1320" height="1600" fill="url(#grid)"/>
<!-- ============================================================ -->
<!-- Phase Header Columns -->
<!-- ============================================================ -->
<!-- Phase 1 column -->
<rect x="40" y="50" width="280" height="1480" rx="10" fill="rgba(8,51,68,0.08)" stroke="#22d3ee" stroke-width="1" stroke-dasharray="6,3" opacity="0.4"/>
<rect x="40" y="50" width="280" height="44" rx="10" fill="rgba(8,51,68,0.5)" stroke="#22d3ee" stroke-width="1.5"/>
<rect x="40" y="72" width="280" height="22" fill="rgba(8,51,68,0.5)" stroke="none"/>
<text x="180" y="80" text-anchor="middle" fill="#22d3ee" font-size="15" font-weight="bold">Phase 1 · 核心架构</text>
<text x="180" y="106" text-anchor="middle" fill="#64748b" font-size="10">Foundation (2-3天)</text>
<!-- Phase 2 column -->
<rect x="350" y="50" width="280" height="1480" rx="10" fill="rgba(6,78,59,0.08)" stroke="#34d399" stroke-width="1" stroke-dasharray="6,3" opacity="0.4"/>
<rect x="350" y="50" width="280" height="44" rx="10" fill="rgba(6,78,59,0.5)" stroke="#34d399" stroke-width="1.5"/>
<rect x="350" y="72" width="280" height="22" fill="rgba(6,78,59,0.5)" stroke="none"/>
<text x="490" y="80" text-anchor="middle" fill="#34d399" font-size="15" font-weight="bold">Phase 2 · 工具增强</text>
<text x="490" y="106" text-anchor="middle" fill="#64748b" font-size="10">Tooling v2 (3-5天)</text>
<!-- Phase 3 column -->
<rect x="660" y="50" width="280" height="1480" rx="10" fill="rgba(76,29,149,0.08)" stroke="#a78bfa" stroke-width="1" stroke-dasharray="6,3" opacity="0.4"/>
<rect x="660" y="50" width="280" height="44" rx="10" fill="rgba(76,29,149,0.5)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="660" y="72" width="280" height="22" fill="rgba(76,29,149,0.5)" stroke="none"/>
<text x="800" y="80" text-anchor="middle" fill="#a78bfa" font-size="15" font-weight="bold">Phase 3 · 新功能</text>
<text x="800" y="106" text-anchor="middle" fill="#64748b" font-size="10">New Features (5-7天)</text>
<!-- Phase 4 column -->
<rect x="970" y="50" width="280" height="1480" rx="10" fill="rgba(120,53,15,0.08)" stroke="#fbbf24" stroke-width="1" stroke-dasharray="6,3" opacity="0.4"/>
<rect x="970" y="50" width="280" height="44" rx="10" fill="rgba(120,53,15,0.5)" stroke="#fbbf24" stroke-width="1.5"/>
<rect x="970" y="72" width="280" height="22" fill="rgba(120,53,15,0.5)" stroke="none"/>
<text x="1110" y="80" text-anchor="middle" fill="#fbbf24" font-size="15" font-weight="bold">Phase 4 · UI/UX</text>
<text x="1110" y="106" text-anchor="middle" fill="#64748b" font-size="10">Polish (3-4天)</text>
<!-- ============================================================ -->
<!-- ROW 1: Phase 1 items -->
<!-- ============================================================ -->
<!-- 1.1 Hilt -->
<rect x="65" y="140" width="230" height="56" rx="6" fill="#0f172a" stroke="#22d3ee" stroke-width="1.5" filter="url(#glow-cyan)"/>
<rect x="65" y="140" width="230" height="56" rx="6" fill="rgba(8,51,68,0.4)" stroke="none"/>
<rect x="65" y="140" width="4" height="56" rx="2" fill="#22d3ee"/>
<text x="180" y="160" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">1.1 Hilt 依赖注入</text>
<text x="180" y="178" text-anchor="middle" fill="#22d3ee" font-size="9">P0 · @AndroidEntryPoint + DI</text>
<!-- 1.2 Room -->
<rect x="65" y="230" width="230" height="56" rx="6" fill="rgba(8,51,68,0.4)" stroke="#22d3ee" stroke-width="1.5"/>
<rect x="65" y="230" width="4" height="56" rx="2" fill="#22d3ee"/>
<text x="180" y="250" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">1.2 Room 数据库</text>
<text x="180" y="268" text-anchor="middle" fill="#22d3ee" font-size="9">P0 · 历史/收藏持久化</text>
<!-- Arrow 1.1 → 1.2 -->
<line x1="180" y1="196" x2="180" y2="224" stroke="#22d3ee" stroke-width="1.5" marker-end="url(#arrow-cyan)" stroke-dasharray="4,3"/>
<!-- 1.3 Retrofit -->
<rect x="65" y="320" width="230" height="56" rx="6" fill="rgba(8,51,68,0.4)" stroke="#22d3ee" stroke-width="1.5"/>
<rect x="65" y="320" width="4" height="56" rx="2" fill="#22d3ee"/>
<text x="180" y="340" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">1.3 Retrofit 网络层</text>
<text x="180" y="358" text-anchor="middle" fill="#22d3ee" font-size="9">P0 · 替代手动 OkHttp</text>
<!-- Arrow 1.2 → 1.3 -->
<line x1="180" y1="286" x2="180" y2="314" stroke="#22d3ee" stroke-width="1.5" marker-end="url(#arrow-cyan)" stroke-dasharray="4,3"/>
<!-- Phase 1 done marker -->
<rect x="100" y="410" width="160" height="30" rx="15" fill="rgba(34,211,238,0.15)" stroke="#22d3ee" stroke-width="1" stroke-dasharray="3,2"/>
<text x="180" y="430" text-anchor="middle" fill="#22d3ee" font-size="10">✓ Phase 1 Complete</text>
<!-- Cross-phase arrow P1 → P2 -->
<line x1="295" y1="170" x2="342" y2="170" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<line x1="295" y1="350" x2="342" y2="350" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<!-- ============================================================ -->
<!-- ROW 2: Phase 2 items -->
<!-- ============================================================ -->
<!-- 2.1 Settings -->
<rect x="375" y="140" width="230" height="56" rx="6" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1.5"/>
<rect x="375" y="140" width="4" height="56" rx="2" fill="#34d399"/>
<text x="490" y="158" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">2.1 设置页面</text>
<text x="490" y="174" text-anchor="middle" fill="#34d399" font-size="9">P1 · 工具参数 + 主题</text>
<text x="490" y="188" text-anchor="middle" fill="#64748b" font-size="8">依赖: Room / DataStore</text>
<!-- 2.2 SpeedTest -->
<rect x="375" y="230" width="230" height="56" rx="6" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1.5"/>
<rect x="375" y="230" width="4" height="56" rx="2" fill="#34d399"/>
<text x="490" y="248" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">2.2 SpeedTest 多线程</text>
<text x="490" y="264" text-anchor="middle" fill="#34d399" font-size="9">P1 · 多线程下载/上传</text>
<text x="490" y="278" text-anchor="middle" fill="#64748b" font-size="8">依赖: Hilt + Settings</text>
<!-- Arrow 2.1 → 2.2 -->
<line x1="490" y1="196" x2="490" y2="224" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" stroke-dasharray="4,3"/>
<!-- 2.3 Ping + Chart -->
<rect x="375" y="320" width="230" height="56" rx="6" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1.5"/>
<rect x="375" y="320" width="4" height="56" rx="2" fill="#34d399"/>
<text x="490" y="338" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">2.3 Ping 持续+图表</text>
<text x="490" y="354" text-anchor="middle" fill="#34d399" font-size="9">P1 · Flow + MPAndroidChart</text>
<text x="490" y="368" text-anchor="middle" fill="#64748b" font-size="8">依赖: Hilt + Settings</text>
<!-- Arrow 2.2 → 2.3 -->
<line x1="490" y1="286" x2="490" y2="314" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" stroke-dasharray="4,3"/>
<!-- 2.4 WHOIS -->
<rect x="375" y="410" width="230" height="56" rx="6" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1.5"/>
<rect x="375" y="410" width="4" height="56" rx="2" fill="#34d399"/>
<text x="490" y="428" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">2.4 WHOIS 增强解析</text>
<text x="490" y="444" text-anchor="middle" fill="#34d399" font-size="9">P1 · 多 TLD + Room 缓存</text>
<text x="490" y="458" text-anchor="middle" fill="#64748b" font-size="8">依赖: Retrofit + Room</text>
<!-- Arrow 2.3 → 2.4 -->
<line x1="490" y1="376" x2="490" y2="404" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" stroke-dasharray="4,3"/>
<!-- 2.5 SSH -->
<rect x="375" y="500" width="230" height="56" rx="6" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1.5"/>
<rect x="375" y="500" width="4" height="56" rx="2" fill="#34d399"/>
<text x="490" y="518" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">2.5 SSH 交互式终端</text>
<text x="490" y="534" text-anchor="middle" fill="#34d399" font-size="9">P1 · ChannelShell + 会话管理</text>
<text x="490" y="548" text-anchor="middle" fill="#64748b" font-size="8">依赖: Hilt + Room</text>
<!-- Arrow 2.4 → 2.5 -->
<line x1="490" y1="466" x2="490" y2="494" stroke="#34d399" stroke-width="1.5" marker-end="url(#arrow-emerald)" stroke-dasharray="4,3"/>
<!-- Phase 2 done marker -->
<rect x="410" y="580" width="160" height="30" rx="15" fill="rgba(52,211,153,0.15)" stroke="#34d399" stroke-width="1" stroke-dasharray="3,2"/>
<text x="490" y="600" text-anchor="middle" fill="#34d399" font-size="10">✓ Phase 2 Complete</text>
<!-- Cross-phase arrow P2 → P3 -->
<line x1="605" y1="170" x2="652" y2="170" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<line x1="605" y1="535" x2="652" y2="535" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<!-- ============================================================ -->
<!-- ROW 3: Phase 3 items -->
<!-- ============================================================ -->
<!-- 3.1 Subnet Calculator -->
<rect x="685" y="140" width="230" height="56" rx="6" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="685" y="140" width="4" height="56" rx="2" fill="#a78bfa"/>
<text x="800" y="158" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">3.1 子网掩码计算器</text>
<text x="800" y="174" text-anchor="middle" fill="#a78bfa" font-size="9">P2 · 纯算法 / 无网络请求</text>
<text x="800" y="188" text-anchor="middle" fill="#64748b" font-size="8">依赖: Settings (默认配置)</text>
<!-- 3.2 MAC OUI -->
<rect x="685" y="230" width="230" height="56" rx="6" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="685" y="230" width="4" height="56" rx="2" fill="#a78bfa"/>
<text x="800" y="248" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">3.2 设备厂商查询</text>
<text x="800" y="264" text-anchor="middle" fill="#a78bfa" font-size="9">P2 · MAC OUI 离线+在线</text>
<text x="800" y="278" text-anchor="middle" fill="#64748b" font-size="8">依赖: Room (OUI缓存)</text>
<!-- Arrow 3.1 → 3.2 -->
<line x1="800" y1="196" x2="800" y2="224" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" stroke-dasharray="4,3"/>
<!-- 3.3 DNS Benchmark -->
<rect x="685" y="320" width="230" height="56" rx="6" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="685" y="320" width="4" height="56" rx="2" fill="#a78bfa"/>
<text x="800" y="338" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">3.3 公共 DNS 测速</text>
<text x="800" y="354" text-anchor="middle" fill="#a78bfa" font-size="9">P3 · dnsjava + 延迟排序</text>
<text x="800" y="368" text-anchor="middle" fill="#64748b" font-size="8">依赖: SpeedTest 基础</text>
<!-- Arrow 3.2 → 3.3 -->
<line x1="800" y1="286" x2="800" y2="314" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" stroke-dasharray="4,3"/>
<!-- 3.4 Wake-on-LAN -->
<rect x="685" y="410" width="230" height="56" rx="6" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="685" y="410" width="4" height="56" rx="2" fill="#a78bfa"/>
<text x="800" y="428" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">3.4 Wake-on-LAN</text>
<text x="800" y="444" text-anchor="middle" fill="#a78bfa" font-size="9">P3 · Magic Packet + 收藏</text>
<text x="800" y="458" text-anchor="middle" fill="#64748b" font-size="8">依赖: Room (收藏)</text>
<!-- Arrow 3.3 → 3.4 -->
<line x1="800" y1="376" x2="800" y2="404" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" stroke-dasharray="4,3"/>
<!-- 3.5 Traceroute Map -->
<rect x="685" y="500" width="230" height="56" rx="6" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1.5"/>
<rect x="685" y="500" width="4" height="56" rx="2" fill="#a78bfa"/>
<text x="800" y="518" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">3.5 路由追踪地图</text>
<text x="800" y="534" text-anchor="middle" fill="#a78bfa" font-size="9">P3 · GeoIP + 半透明地图</text>
<text x="800" y="548" text-anchor="middle" fill="#64748b" font-size="8">依赖: Retrofit + Room</text>
<!-- Arrow 3.4 → 3.5 -->
<line x1="800" y1="466" x2="800" y2="494" stroke="#a78bfa" stroke-width="1.5" marker-end="url(#arrow-violet)" stroke-dasharray="4,3"/>
<!-- Phase 3 done marker -->
<rect x="720" y="580" width="160" height="30" rx="15" fill="rgba(167,139,250,0.15)" stroke="#a78bfa" stroke-width="1" stroke-dasharray="3,2"/>
<text x="800" y="600" text-anchor="middle" fill="#a78bfa" font-size="10">✓ Phase 3 Complete</text>
<!-- Cross-phase arrow P3 → P4 -->
<line x1="915" y1="170" x2="962" y2="170" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<line x1="915" y1="535" x2="962" y2="535" stroke="#475569" stroke-width="1.5" marker-end="url(#arrow-down)"/>
<!-- ============================================================ -->
<!-- ROW 4: Phase 4 items -->
<!-- ============================================================ -->
<!-- 4.1 IP Map -->
<rect x="995" y="140" width="230" height="56" rx="6" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1.5"/>
<rect x="995" y="140" width="4" height="56" rx="2" fill="#fbbf24"/>
<text x="1110" y="158" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">4.1 IP 地图显示</text>
<text x="1110" y="174" text-anchor="middle" fill="#fbbf24" font-size="9">P2 · 首页迷你地图</text>
<text x="1110" y="188" text-anchor="middle" fill="#64748b" font-size="8">依赖: Retrofit (GeoIP)</text>
<!-- 4.2 Animations -->
<rect x="995" y="230" width="230" height="56" rx="6" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1.5"/>
<rect x="995" y="230" width="4" height="56" rx="2" fill="#fbbf24"/>
<text x="1110" y="248" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">4.2 Lottie + 过渡动画</text>
<text x="1110" y="264" text-anchor="middle" fill="#fbbf24" font-size="9">P3 · 替换 ProgressBar</text>
<text x="1110" y="278" text-anchor="middle" fill="#64748b" font-size="8">依赖: Hilt (全局)</text>
<!-- Arrow 4.1 → 4.2 -->
<line x1="1110" y1="196" x2="1110" y2="224" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrow-amber)" stroke-dasharray="4,3"/>
<!-- 4.3 Share -->
<rect x="995" y="320" width="230" height="56" rx="6" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1.5"/>
<rect x="995" y="320" width="4" height="56" rx="2" fill="#fbbf24"/>
<text x="1110" y="338" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">4.3 结果分享功能</text>
<text x="1110" y="354" text-anchor="middle" fill="#fbbf24" font-size="9">P2 · 文本/图片/CSV</text>
<text x="1110" y="368" text-anchor="middle" fill="#64748b" font-size="8">依赖: Room (历史)</text>
<!-- Arrow 4.2 → 4.3 -->
<line x1="1110" y1="286" x2="1110" y2="314" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrow-amber)" stroke-dasharray="4,3"/>
<!-- 4.4 Widget -->
<rect x="995" y="410" width="230" height="56" rx="6" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1.5"/>
<rect x="995" y="410" width="4" height="56" rx="2" fill="#fbbf24"/>
<text x="1110" y="428" text-anchor="middle" fill="#f1f5f9" font-size="12" font-weight="bold">4.4 桌面 Widget</text>
<text x="1110" y="444" text-anchor="middle" fill="#fbbf24" font-size="9">P3 · 快捷磁贴 + Widget</text>
<text x="1110" y="458" text-anchor="middle" fill="#64748b" font-size="8">依赖: Room</text>
<!-- Arrow 4.3 → 4.4 -->
<line x1="1110" y1="376" x2="1110" y2="404" stroke="#fbbf24" stroke-width="1.5" marker-end="url(#arrow-amber)" stroke-dasharray="4,3"/>
<!-- Phase 4 done marker -->
<rect x="1030" y="580" width="160" height="30" rx="15" fill="rgba(251,191,36,0.15)" stroke="#fbbf24" stroke-width="1" stroke-dasharray="3,2"/>
<text x="1110" y="600" text-anchor="middle" fill="#fbbf24" font-size="10">✓ Phase 4 Complete</text>
<!-- ============================================================ -->
<!-- Dependencies: Cross-phase arrows -->
<!-- ============================================================ -->
<!-- Dep line: Retrofit → WHOIS -->
<line x1="295" y1="350" x2="295" y2="438" stroke="#475569" stroke-width="1" stroke-dasharray="3,3"/>
<line x1="295" y1="438" x2="368" y2="438" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)" stroke-dasharray="3,3"/>
<!-- Dep line: Room → Share -->
<line x1="295" y1="260" x2="295" y2="348" stroke="#475569" stroke-width="1" stroke-dasharray="3,3"/>
<line x1="295" y1="348" x2="988" y2="348" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)" stroke-dasharray="3,3"/>
<!-- Dep line: SpeedTest → DNS Bench -->
<line x1="605" y1="265" x2="605" y2="348" stroke="#475569" stroke-width="1" stroke-dasharray="3,3"/>
<line x1="605" y1="348" x2="678" y2="348" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)" stroke-dasharray="3,3"/>
<!-- Dep line: Settings → Subnet Calc -->
<line x1="605" y1="170" x2="678" y2="170" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)" stroke-dasharray="3,3"/>
<!-- ============================================================ -->
<!-- Key: Vertical Time Axis -->
<!-- ============================================================ -->
<line x1="1228" y1="140" x2="1228" y2="610" stroke="#334155" stroke-width="1"/>
<circle cx="1228" cy="140" r="4" fill="#22d3ee"/>
<circle cx="1228" cy="170" r="4" fill="#34d399"/>
<circle cx="1228" cy="535" r="4" fill="#a78bfa"/>
<circle cx="1228" cy="610" r="4" fill="#fbbf24"/>
<text x="1245" y="144" fill="#64748b" font-size="10">开始</text>
<text x="1245" y="174" fill="#64748b" font-size="10">~第3天</text>
<text x="1245" y="539" fill="#64748b" font-size="10">~第13天</text>
<text x="1245" y="614" fill="#64748b" font-size="10">~第19天</text>
<!-- ============================================================ -->
<!-- Architecture Diagram Section (bottom half) -->
<!-- ============================================================ -->
<text x="660" y="710" text-anchor="middle" fill="#f1f5f9" font-size="16" font-weight="bold">目标架构对比 (Before → After)</text>
<line x1="320" y1="720" x2="1000" y2="720" stroke="#1e293b" stroke-width="1"/>
<!-- BEFORE -->
<rect x="180" y="750" width="300" height="28" rx="6" fill="rgba(120,53,15,0.3)" stroke="#fbbf24" stroke-width="1"/>
<text x="330" y="770" text-anchor="middle" fill="#fbbf24" font-size="11" font-weight="bold">BEFORE · 当前架构</text>
<rect x="130" y="810" width="200" height="36" rx="4" fill="rgba(148,163,184,0.15)" stroke="#94a3b8" stroke-width="1"/>
<text x="230" y="832" text-anchor="middle" fill="#94a3b8" font-size="10">MainActivity</text>
<line x1="230" y1="846" x2="230" y2="860" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)"/>
<rect x="130" y="860" width="200" height="36" rx="4" fill="rgba(148,163,184,0.15)" stroke="#94a3b8" stroke-width="1"/>
<text x="230" y="882" text-anchor="middle" fill="#94a3b8" font-size="10">Fragment (手动绑定)</text>
<line x1="230" y1="896" x2="230" y2="910" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)"/>
<rect x="130" y="910" width="200" height="36" rx="4" fill="rgba(148,163,184,0.15)" stroke="#94a3b8" stroke-width="1"/>
<text x="230" y="932" text-anchor="middle" fill="#94a3b8" font-size="10">ViewModel (手动创建)</text>
<line x1="170" y1="946" x2="170" y2="960" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)"/>
<line x1="290" y1="946" x2="290" y2="960" stroke="#475569" stroke-width="1" marker-end="url(#arrow-down)"/>
<rect x="100" y="960" width="140" height="36" rx="4" fill="rgba(148,163,184,0.15)" stroke="#94a3b8" stroke-width="1"/>
<text x="170" y="982" text-anchor="middle" fill="#94a3b8" font-size="9">Util/Tool (手动new)</text>
<rect x="220" y="960" width="140" height="36" rx="4" fill="rgba(148,163,184,0.15)" stroke="#94a3b8" stroke-width="1"/>
<text x="290" y="982" text-anchor="middle" fill="#94a3b8" font-size="9">IpApiService (OkHttp)</text>
<text x="170" y="1010" text-anchor="middle" fill="#dc2626" font-size="9">← 无持久化 · 手动依赖 · 低内聚</text>
<!-- VS -->
<text x="660" y="910" text-anchor="middle" fill="#475569" font-size="24" font-weight="bold">→</text>
<!-- AFTER -->
<rect x="840" y="750" width="300" height="28" rx="6" fill="rgba(52,211,153,0.2)" stroke="#34d399" stroke-width="1"/>
<text x="990" y="770" text-anchor="middle" fill="#34d399" font-size="11" font-weight="bold">AFTER · 目标架构</text>
<rect x="810" y="810" width="220" height="36" rx="4" fill="rgba(8,51,68,0.4)" stroke="#22d3ee" stroke-width="1"/>
<text x="920" y="832" text-anchor="middle" fill="#22d3ee" font-size="10">@HiltAndroidApp</text>
<line x1="920" y1="846" x2="920" y2="860" stroke="#22d3ee" stroke-width="1" marker-end="url(#arrow-cyan)"/>
<rect x="810" y="860" width="220" height="36" rx="4" fill="rgba(8,51,68,0.4)" stroke="#22d3ee" stroke-width="1"/>
<text x="920" y="882" text-anchor="middle" fill="#22d3ee" font-size="10">@AndroidEntryPoint Fragment</text>
<line x1="920" y1="896" x2="920" y2="910" stroke="#22d3ee" stroke-width="1" marker-end="url(#arrow-cyan)"/>
<rect x="810" y="910" width="220" height="36" rx="4" fill="rgba(8,51,68,0.4)" stroke="#22d3ee" stroke-width="1"/>
<text x="920" y="932" text-anchor="middle" fill="#22d3ee" font-size="10">@HiltViewModel</text>
<!-- Hilt injects -->
<line x1="920" y1="946" x2="920" y2="960" stroke="#34d399" stroke-width="1" marker-end="url(#arrow-emerald)"/>
<!-- Repository + DAO + Retrofit -->
<rect x="780" y="960" width="130" height="36" rx="4" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1"/>
<text x="845" y="980" text-anchor="middle" fill="#34d399" font-size="9">Repository (注入)</text>
<rect x="930" y="960" width="130" height="36" rx="4" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1"/>
<text x="995" y="980" text-anchor="middle" fill="#a78bfa" font-size="9">Room DAO</text>
<line x1="920" y1="996" x2="920" y2="1010" stroke="#a78bfa" stroke-width="1" marker-end="url(#arrow-violet)"/>
<rect x="780" y="1010" width="130" height="36" rx="4" fill="rgba(76,29,149,0.4)" stroke="#a78bfa" stroke-width="1"/>
<text x="845" y="1030" text-anchor="middle" fill="#a78bfa" font-size="9">Retrofit API</text>
<rect x="930" y="1010" width="130" height="36" rx="4" fill="rgba(6,78,59,0.4)" stroke="#34d399" stroke-width="1"/>
<text x="995" y="1030" text-anchor="middle" fill="#34d399" font-size="9">Tool (注入)</text>
<text x="920" y="1060" text-anchor="middle" fill="#34d399" font-size="10">✓ 可测试 · 可持久化 · 可配置</text>
<!-- ============================================================ -->
<!-- Dependency matrix -->
<!-- ============================================================ -->
<text x="660" y="1120" text-anchor="middle" fill="#f1f5f9" font-size="16" font-weight="bold">技术栈升级矩阵</text>
<line x1="320" y1="1130" x2="1000" y2="1130" stroke="#1e293b" stroke-width="1"/>
<!-- Table-like layout -->
<text x="200" y="1160" fill="#64748b" font-size="10" font-weight="bold">新增依赖</text>
<text x="600" y="1160" fill="#64748b" font-size="10" font-weight="bold">用途</text>
<text x="1000" y="1160" fill="#64748b" font-size="10" font-weight="bold">建议版本</text>
<line x1="80" y1="1168" x2="1240" y2="1168" stroke="#1e293b" stroke-width="0.5"/>
<text x="200" y="1190" fill="#22d3ee" font-size="10">Hilt</text>
<text x="600" y="1190" fill="#94a3b8" font-size="10">依赖注入 · @HiltViewModel</text>
<text x="1000" y="1190" fill="#64748b" font-size="10">2.51+</text>
<text x="200" y="1215" fill="#22d3ee" font-size="10">Room</text>
<text x="600" y="1215" fill="#94a3b8" font-size="10">本地数据库 · 历史/收藏</text>
<text x="1000" y="1215" fill="#64748b" font-size="10">2.6+</text>
<text x="200" y="1240" fill="#22d3ee" font-size="10">Retrofit</text>
<text x="600" y="1240" fill="#94a3b8" font-size="10">取代手动 OkHttp 调用</text>
<text x="1000" y="1240" fill="#64748b" font-size="10">2.9+</text>
<text x="200" y="1265" fill="#34d399" font-size="10">MPAndroidChart</text>
<text x="600" y="1265" fill="#94a3b8" font-size="10">Ping 实时折线图</text>
<text x="1000" y="1265" fill="#64748b" font-size="10">v3.1+</text>
<text x="200" y="1290" fill="#fbbf24" font-size="10">Lottie</text>
<text x="600" y="1290" fill="#94a3b8" font-size="10">动画替换 ProgressBar</text>
<text x="1000" y="1290" fill="#64748b" font-size="10">6.4+</text>
<text x="200" y="1315" fill="#a78bfa" font-size="10">dnsjava</text>
<text x="600" y="1315" fill="#94a3b8" font-size="10">DNS 查询库</text>
<text x="1000" y="1315" fill="#64748b" font-size="10">3.5+</text>
<text x="200" y="1340" fill="#64748b" font-size="10">DataStore</text>
<text x="600" y="1340" fill="#94a3b8" font-size="10">设置页参数存储</text>
<text x="1000" y="1340" fill="#64748b" font-size="10">1.1+</text>
<text x="200" y="1365" fill="#64748b" font-size="10">OkHttp / Gson / JSch</text>
<text x="600" y="1365" fill="#94a3b8" font-size="10">保持现有版本</text>
<text x="1000" y="1365" fill="#64748b" font-size="10">不变</text>
<!-- Legend Footer -->
<rect x="80" y="1420" width="1160" height="50" rx="8" fill="rgba(30,41,59,0.5)" stroke="#1e293b" stroke-width="1"/>
<text x="660" y="1442" text-anchor="middle" fill="#64748b" font-size="10">
建议实施顺序: Phase 1 → Phase 2 (设置页+SpeedTest) → Phase 3 (Subnet+MAC+WOL+DNS) → Phase 2 (Ping+WHOIS+SSH) → Phase 3 (Traceroute地图) → Phase 4
</text>
<text x="660" y="1460" text-anchor="middle" fill="#475569" font-size="9">
总预估: 13-19天 · Hilt 和 Room 是所有后续功能的基础 · 第二阶段开始可并行推进
</text>
</svg>
</div>
<!-- Summary Cards -->
<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-dot cyan"></div>
<h3>Phase 1 · Foundation</h3>
</div>
<ul>
<li>Hilt 依赖注入 — 全局架构基础</li>
<li>Room 数据库 — 历史/收藏持久化</li>
<li>Retrofit — 网络层现代化</li>
<li>所有现有功能回归测试通过</li>
</ul>
</div>
<div class="card">
<div class="card-header">
<div class="card-dot emerald"></div>
<h3>Phase 2 · Tooling v2</h3>
</div>
<ul>
<li>设置页 — 可配置参数+主题</li>
<li>SpeedTest 多线程 — 实时曲线</li>
<li>Ping 持续模式 — 实时图表</li>
<li>WHOIS 增强 — 多TLD+缓存</li>
<li>SSH 交互式 — 终端模拟</li>
</ul>
</div>
<div class="card">
<div class="card-header">
<div class="card-dot violet"></div>
<h3>Phase 3 · New Features</h3>
</div>
<ul>
<li>子网掩码计算器 — 纯算法</li>
<li>MAC 厂商查询 — OUI 离线库</li>
<li>DNS Benchmark — 多公共 DNS</li>
<li>Wake-on-LAN — 魔术包</li>
<li>Traceroute 地图 — GeoIP 标记</li>
</ul>
</div>
<div class="card">
<div class="card-header">
<div class="card-dot amber"></div>
<h3>Phase 4 · Polish</h3>
</div>
<ul>
<li>IP 地图 — 首页迷你地图</li>
<li>Lottie + 过渡动画</li>
<li>结果分享 — 文本/图片/CSV</li>
<li>桌面 Widget + 快捷磁贴</li>
</ul>
</div>
</div>
<footer>NetworkTools (IPtools) · Implementation Plan · Generated 2026-06-09</footer>
</div>
</body>
</html>