@youtyan/code-viewer 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 +21 -15
- package/dist/code-viewer.js +468 -71
- package/package.json +1 -1
- package/skills/code-viewer-snapshot/SKILL.md +6 -0
- package/web/app.js +3127 -808
- package/web/index.html +46 -15
- package/web/style.css +943 -50
package/web/index.html
CHANGED
|
@@ -31,14 +31,17 @@
|
|
|
31
31
|
<a class="app-menu-item" data-route="database" href="/database">Datastores</a>
|
|
32
32
|
</nav>
|
|
33
33
|
<div class="global-actions">
|
|
34
|
-
<button id="annotations-toggle" class="global-icon-action" title="code annotations" aria-label="code annotations"
|
|
34
|
+
<button id="annotations-toggle" class="global-icon-action" title="code annotations" aria-label="code annotations"><span class="goi-icon" aria-hidden="true"></span><span id="annotations-count" hidden></span></button>
|
|
35
35
|
<button id="viewer-settings" class="global-icon-action" title="viewer settings" aria-label="viewer settings"></button>
|
|
36
|
-
<button id="doctor-btn" class="global-icon-action" title="environment doctor" aria-label="environment doctor"
|
|
37
|
-
<button id="
|
|
38
|
-
<
|
|
39
|
-
<button id="
|
|
40
|
-
<
|
|
36
|
+
<button id="doctor-btn" class="global-icon-action" title="environment doctor" aria-label="environment doctor"><span class="goi-icon" aria-hidden="true"></span><span id="doctor-badge" class="doctor-badge" hidden></span></button>
|
|
37
|
+
<button id="copy-ai-context" class="global-icon-action ai-context-action" title="Copy AI context" aria-label="Copy AI context"><span class="goi-icon" aria-hidden="true"></span><span class="ai-context-label"></span></button>
|
|
38
|
+
<span id="copy-ai-context-feedback" class="goi-feedback" role="status" hidden></span>
|
|
39
|
+
<button id="auto-update" class="global-icon-action active" title="auto update on file change" aria-label="auto update on file change"><span class="goi-icon" aria-hidden="true"></span><span class="auto-update-label"></span></button>
|
|
40
|
+
<button id="cancel-requests" class="global-icon-action" title="no in-flight requests" aria-label="no in-flight requests" disabled><span class="goi-icon" aria-hidden="true"></span></button>
|
|
41
|
+
<button id="theme" title="toggle theme" aria-label="toggle theme"></button>
|
|
42
|
+
<span id="status" class="status" role="status" aria-live="polite"><span class="status-label"></span></span>
|
|
41
43
|
<a id="repo-web-link" class="global-help-link" href="#" target="_blank" rel="noopener" hidden>GitHub</a>
|
|
44
|
+
<button id="quick-help-btn" class="global-icon-action quick-help-btn" title="quick help (shortcuts)" aria-label="quick help (shortcuts)">?</button>
|
|
42
45
|
<a class="global-help-link" data-route="help" href="/help">Help</a>
|
|
43
46
|
<span class="product-label" aria-hidden="true">code viewer</span>
|
|
44
47
|
</div>
|
|
@@ -49,8 +52,8 @@
|
|
|
49
52
|
<span data-ref-selector-mount data-ref-id="ref-from" data-placeholder="from..."></span>
|
|
50
53
|
<span class="ref-dots">…</span>
|
|
51
54
|
<span data-ref-selector-mount data-ref-id="ref-to" data-placeholder="to..."></span>
|
|
52
|
-
<button id="ref-reset" title="reset to HEAD .. worktree"
|
|
53
|
-
<button id="reload-prom" title="reload diff (R)"
|
|
55
|
+
<button id="ref-reset" title="reset to HEAD .. worktree" aria-label="reset to HEAD .. worktree"></button>
|
|
56
|
+
<button id="reload-prom" title="reload diff (R)" aria-label="reload diff (R)"></button>
|
|
54
57
|
</div>
|
|
55
58
|
<div class="spacer"></div>
|
|
56
59
|
<div class="controls">
|
|
@@ -117,6 +120,7 @@
|
|
|
117
120
|
</div>
|
|
118
121
|
<div class="sb-filter-wrap">
|
|
119
122
|
<input id="sb-filter" type="search" placeholder="filter files… / ⌘K" title="Use /pattern/ for regex. Press / to focus this field, Cmd/Ctrl+K for the full-file palette, Ctrl+G for grep, ? for help." autocomplete="off" />
|
|
123
|
+
<button id="sb-filter-clear" type="button" class="sb-filter-clear" title="Clear file filter" aria-label="Clear file filter" hidden>Clear</button>
|
|
120
124
|
</div>
|
|
121
125
|
<ul id="filelist"></ul>
|
|
122
126
|
<div id="sidebar-resizer" aria-hidden="true"></div>
|
|
@@ -200,7 +204,19 @@
|
|
|
200
204
|
</div>
|
|
201
205
|
</div>
|
|
202
206
|
|
|
207
|
+
<div id="quick-help-popover" hidden role="dialog" aria-label="quick help" aria-modal="false">
|
|
208
|
+
<div class="quick-help-head">
|
|
209
|
+
<strong id="quick-help-title">Quick Help</strong>
|
|
210
|
+
<button id="quick-help-close" type="button" aria-label="close quick help">×</button>
|
|
211
|
+
</div>
|
|
212
|
+
<div id="quick-help-groups"></div>
|
|
213
|
+
<div class="quick-help-foot">
|
|
214
|
+
<a id="quick-help-full-link" href="/help?section=keybindings">View all keybindings →</a>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
203
218
|
<aside id="annotation-panel" hidden>
|
|
219
|
+
<div id="annotation-panel-resizer" aria-hidden="true"></div>
|
|
204
220
|
<div class="annotation-panel-head">
|
|
205
221
|
<strong>Code annotations</strong>
|
|
206
222
|
<label class="annotation-follow-label" title="jump to new annotations as they arrive">
|
|
@@ -211,11 +227,11 @@
|
|
|
211
227
|
<button id="annotation-panel-close" type="button">close</button>
|
|
212
228
|
</div>
|
|
213
229
|
<div id="annotation-player" hidden>
|
|
214
|
-
<button id="annotation-player-toggle" type="button" title="Play
|
|
215
|
-
<button id="annotation-player-prev" type="button" title="Previous"
|
|
216
|
-
<button id="annotation-player-next" type="button" title="Next"
|
|
230
|
+
<button id="annotation-player-toggle" type="button" title="Play annotation playback" aria-label="Play annotation playback"></button>
|
|
231
|
+
<button id="annotation-player-prev" type="button" title="Previous annotation" aria-label="Previous annotation"></button>
|
|
232
|
+
<button id="annotation-player-next" type="button" title="Next annotation" aria-label="Next annotation"></button>
|
|
217
233
|
<span id="annotation-player-progress"></span>
|
|
218
|
-
<button id="annotation-player-mute" type="button" title="Mute"
|
|
234
|
+
<button id="annotation-player-mute" type="button" title="Mute annotation playback" aria-label="Mute annotation playback"></button>
|
|
219
235
|
<select id="annotation-player-rate" title="Speed" aria-label="Playback speed">
|
|
220
236
|
<option value="0.5">0.5x</option>
|
|
221
237
|
<option value="0.75">0.75x</option>
|
|
@@ -233,9 +249,10 @@
|
|
|
233
249
|
<div id="annotation-detail" hidden>
|
|
234
250
|
<div class="annotation-detail-head">
|
|
235
251
|
<span id="annotation-detail-session"></span>
|
|
252
|
+
<span id="annotation-detail-time"></span>
|
|
236
253
|
<span id="annotation-detail-step"></span>
|
|
237
|
-
<button id="annotation-detail-prev" type="button" title="previous annotation"
|
|
238
|
-
<button id="annotation-detail-next" type="button" title="next annotation"
|
|
254
|
+
<button id="annotation-detail-prev" class="annotation-icon-btn" type="button" title="previous annotation" aria-label="previous annotation"></button>
|
|
255
|
+
<button id="annotation-detail-next" class="annotation-icon-btn" type="button" title="next annotation" aria-label="next annotation"></button>
|
|
239
256
|
<button id="annotation-detail-close" type="button">close</button>
|
|
240
257
|
</div>
|
|
241
258
|
<a id="annotation-detail-location" href="#"></a>
|
|
@@ -257,7 +274,21 @@
|
|
|
257
274
|
<main id="content">
|
|
258
275
|
<section id="history-commit-info" hidden></section>
|
|
259
276
|
<div id="empty" class="empty hidden">
|
|
260
|
-
<div class="
|
|
277
|
+
<div class="empty-icon" aria-hidden="true">
|
|
278
|
+
<svg
|
|
279
|
+
class="octicon octicon-git-branch"
|
|
280
|
+
viewBox="0 0 16 16"
|
|
281
|
+
width="16"
|
|
282
|
+
height="16"
|
|
283
|
+
fill="currentColor"
|
|
284
|
+
aria-hidden="true"
|
|
285
|
+
>
|
|
286
|
+
<path
|
|
287
|
+
fill="currentColor"
|
|
288
|
+
d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Zm-6 0a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Zm8.25-.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM4.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"
|
|
289
|
+
></path>
|
|
290
|
+
</svg>
|
|
291
|
+
</div>
|
|
261
292
|
<h2>No changes</h2>
|
|
262
293
|
<p>The working tree is clean against this ref.</p>
|
|
263
294
|
</div>
|