-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject_map.html
More file actions
256 lines (237 loc) · 10.1 KB
/
project_map.html
File metadata and controls
256 lines (237 loc) · 10.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project Map - context-protocol</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #1a1a2e;
color: #eee;
min-height: 100vh;
padding: 20px;
}
h1 {
text-align: center;
margin-bottom: 20px;
color: #fff;
}
.map-container {
position: relative;
width: 100%;
min-height: 800px;
}
svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: visible;
}
.module-box {
position: absolute;
z-index: 10;
width: 160px;
background: #16213e;
border: 2px solid #0f3460;
border-radius: 8px;
padding: 12px;
cursor: pointer;
transition: all 0.2s;
}
.module-box:hover {
border-color: #e94560;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}
.module-box.monolith {
border-color: #ff6b6b;
}
.module-box.full-docs {
border-color: #4ecdc4;
}
.module-name {
font-weight: bold;
font-size: 14px;
margin-bottom: 6px;
color: #fff;
}
.module-lines {
font-size: 12px;
color: #888;
margin-bottom: 8px;
}
.module-lines.warning {
color: #ff6b6b;
}
.doc-coverage {
display: flex;
gap: 2px;
flex-wrap: wrap;
}
.doc-badge {
font-size: 10px;
padding: 2px 4px;
border-radius: 3px;
background: #0f3460;
color: #666;
}
.doc-badge.present {
background: #4ecdc4;
color: #000;
}
.doc-badge.missing {
background: #333;
color: #555;
}
.legend {
position: fixed;
bottom: 20px;
right: 20px;
background: #16213e;
padding: 16px;
border-radius: 8px;
font-size: 12px;
}
.legend h3 {
margin-bottom: 8px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
margin: 4px 0;
}
.legend-color {
width: 20px;
height: 12px;
border-radius: 2px;
}
.summary {
position: fixed;
top: 20px;
right: 20px;
background: #16213e;
padding: 16px;
border-radius: 8px;
font-size: 13px;
}
.layer-label {
position: absolute;
left: 10px;
font-size: 11px;
color: #666;
text-transform: uppercase;
letter-spacing: 1px;
}
</style>
</head>
<body>
<h1>Project Map: context-protocol</h1>
<div class="map-container">
<svg id="arrows" style="height: 740px;"></svg>
<div class="layer-label" style="top: 70px">Foundation</div>
<div class="layer-label" style="top: 250px">Layer 1</div>
<div class="layer-label" style="top: 430px">Layer 2</div>
<div class="module-box" style="left: 50px; top: 460px" data-module="cli">
<div class="module-name">cli</div>
<div class="module-lines ">174 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box full-docs" style="left: 50px; top: 280px" data-module="doctor">
<div class="module-name">doctor</div>
<div class="module-lines ">698 lines</div>
<div class="doc-coverage"><span class="doc-badge present">P</span><span class="doc-badge present">B</span><span class="doc-badge present">A</span><span class="doc-badge present">V</span><span class="doc-badge present">T</span><span class="doc-badge present">S</span></div>
</div>
<div class="module-box" style="left: 250px; top: 280px" data-module="validate">
<div class="module-name">validate</div>
<div class="module-lines ">578 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box" style="left: 50px; top: 100px" data-module="context">
<div class="module-name">context</div>
<div class="module-lines ">451 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box" style="left: 450px; top: 280px" data-module="init">
<div class="module-name">init</div>
<div class="module-lines ">94 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box" style="left: 650px; top: 280px" data-module="prompt">
<div class="module-name">prompt</div>
<div class="module-lines ">64 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box" style="left: 250px; top: 100px" data-module="utils">
<div class="module-name">utils</div>
<div class="module-lines ">87 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
<div class="module-box" style="left: 450px; top: 100px" data-module="project_map">
<div class="module-name">project_map</div>
<div class="module-lines ">539 lines</div>
<div class="doc-coverage"><span class="doc-badge missing">P</span><span class="doc-badge missing">B</span><span class="doc-badge missing">A</span><span class="doc-badge missing">V</span><span class="doc-badge missing">T</span><span class="doc-badge missing">S</span></div>
</div>
</div>
<div class="summary">
<strong>Summary</strong><br>
Modules: 8<br>
Files: 8<br>
Lines: 2685<br>
</div>
<div class="legend">
<h3>Legend</h3>
<div class="legend-item">
<div class="legend-color" style="background: #4ecdc4"></div>
<span>Full documentation</span>
</div>
<div class="legend-item">
<div class="legend-color" style="background: #ff6b6b"></div>
<span>Monolith (>1000L)</span>
</div>
<div class="legend-item">
<div class="legend-color" style="background: #0f3460"></div>
<span>Normal module</span>
</div>
</div>
<script>
// Draw arrows
const edges = [["cli", "doctor"], ["cli", "validate"], ["cli", "context"], ["cli", "init"], ["cli", "prompt"], ["doctor", "utils"], ["validate", "utils"], ["init", "utils"], ["prompt", "context"]];
const positions = {"context": {"x": 50, "y": 100}, "utils": {"x": 250, "y": 100}, "project_map": {"x": 450, "y": 100}, "doctor": {"x": 50, "y": 280}, "validate": {"x": 250, "y": 280}, "init": {"x": 450, "y": 280}, "prompt": {"x": 650, "y": 280}, "cli": {"x": 50, "y": 460}};
const svg = document.getElementById('arrows');
const ns = 'http://www.w3.org/2000/svg';
// Add arrow marker
const defs = document.createElementNS(ns, 'defs');
defs.innerHTML = `
<marker id="arrowhead" markerWidth="10" markerHeight="7" refX="0" refY="3.5" orient="auto">
<polygon points="0 0, 10 3.5, 0 7" fill="#4a5568" />
</marker>
`;
svg.appendChild(defs);
edges.forEach(([from, to]) => {
const fromPos = positions[from];
const toPos = positions[to];
if (!fromPos || !toPos) return;
// Draw curved path from bottom of 'from' box to top of 'to' box
const x1 = fromPos.x + 80;
const y1 = fromPos.y + 90; // bottom of from box
const x2 = toPos.x + 80;
const y2 = toPos.y; // top of to box
const path = document.createElementNS(ns, 'path');
const midY = (y1 + y2) / 2;
const d = `M ${x1} ${y1} C ${x1} ${midY}, ${x2} ${midY}, ${x2} ${y2}`;
path.setAttribute('d', d);
path.setAttribute('stroke', '#4a5568');
path.setAttribute('stroke-width', '2');
path.setAttribute('fill', 'none');
path.setAttribute('marker-end', 'url(#arrowhead)');
svg.appendChild(path);
});
</script>
</body>
</html>