-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-map.html
More file actions
146 lines (146 loc) · 4.22 KB
/
Copy pathstack-map.html
File metadata and controls
146 lines (146 loc) · 4.22 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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stack Map</title>
<style>
:root {
--bg: #161718;
--bg2: #1B1C1D;
--border: #363737;
--text: #EEEEEE;
--text2: #777777;
--accent: #118ab2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
background: var(--bg);
color: var(--text);
display: flex;
flex-direction: column;
}
header {
display: flex;
align-items: center;
gap: 18px;
padding: 0 16px;
height: 48px;
background: var(--bg);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
direction: ltr;
}
header a.back {
color: var(--text2);
text-decoration: none;
font-size: 13px;
}
header a.back:hover { color: var(--text); }
header h1 {
font-size: 14px;
font-weight: 500;
flex: 1;
color: var(--text);
}
header .controls { display: flex; gap: 8px; }
header button {
background: var(--bg2);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 12px;
font-size: 12px;
cursor: pointer;
font-family: inherit;
}
header button:hover { border-color: var(--text2); }
header select {
background: var(--bg2);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 8px;
font-size: 12px;
cursor: pointer;
font-family: inherit;
}
header select:hover { border-color: var(--text2); }
header input[type="search"] {
background: var(--bg2);
color: var(--text);
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 10px;
font-size: 12px;
font-family: inherit;
width: 170px;
direction: rtl;
}
header input[type="search"]:focus { outline: none; border-color: var(--accent); }
main {
flex: 1;
position: relative;
overflow: hidden;
}
canvas {
display: block;
width: 100%;
height: 100%;
cursor: grab;
}
canvas.dragging { cursor: grabbing; }
#status {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: var(--text2);
font-size: 13px;
text-align: center;
}
#tooltip {
position: absolute;
pointer-events: none;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
font-size: 12px;
color: var(--text);
display: none;
z-index: 10;
max-width: 260px;
}
#tooltip .t-path { color: var(--text2); font-size: 11px; margin-top: 2px; }
#tooltip .t-desc { margin-top: 4px; color: var(--text); }
</style>
</head>
<body>
<header>
<a class="back" href="/" data-i18n="stack.back">← Home</a>
<h1 id="title">Stack Map</h1>
<span id="stackAge" style="font-size:12px;color:var(--text2)"></span>
<div class="controls">
<input id="searchBox" type="search" data-i18n-ph="stack.searchPh" placeholder="Search by name…" autocomplete="off"
data-i18n-title="stack.searchTitle" title="Highlights matches and jumps to them — Enter focuses the best one">
<button type="button" id="regenStack" data-i18n-title="stack.regenTitle" title="Regenerate DEVLOG_STACK.md from the current code" style="display:none" data-i18n="stack.regen">Regenerate map</button>
<select id="layoutMode" data-i18n-title="stack.layoutTitle" title="Layout mode">
<option value="radial" data-i18n="stack.layoutRadial">Radial (default)</option>
<option value="force" data-i18n="stack.layoutForce">Force (clusters)</option>
<option value="layered" data-i18n="stack.layoutLayered">Layered (call graph)</option>
</select>
<button type="button" id="toggleActivity" data-i18n="stack.activityOn" data-i18n-title="stack.activityTitle" title="Highlight recently active files">Activity: ON</button>
<button type="button" id="reLayout" data-i18n="stack.relayout">Auto re-layout</button>
</div>
</header>
<main>
<canvas id="map"></canvas>
<div id="status" data-i18n="misc.loading">Loading…</div>
<div id="tooltip"></div>
</main>
<script type="module" src="/assets/stack-map.js"></script>
</body>
</html>