@youtyan/code-viewer 0.8.7 → 0.8.8
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 +13 -3
- package/dist/code-viewer.js +1 -1
- package/package.json +1 -1
- package/web/app.js +646 -273
- package/web/index.html +10 -9
- package/web/style.css +1548 -366
package/web/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<a class="brand" href="/" aria-label="Repository home">
|
|
23
23
|
<img class="brand-icon" src="/favicon.png" alt="" width="20" height="20" />
|
|
24
24
|
<span class="title" id="project-title">repository</span>
|
|
25
|
-
<span id="project-branch" class="project-branch" hidden></span>
|
|
25
|
+
<span id="project-branch" class="project-branch" hidden><span class="goi-icon" aria-hidden="true"></span><span class="project-branch-name"></span></span>
|
|
26
26
|
</a>
|
|
27
27
|
<nav class="app-menu" aria-label="Views">
|
|
28
28
|
<a class="app-menu-item active" data-route="repo" href="/">Repository</a>
|
|
@@ -35,23 +35,24 @@
|
|
|
35
35
|
<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>
|
|
36
36
|
<button id="viewer-settings" class="global-icon-action" title="viewer settings" aria-label="viewer settings"></button>
|
|
37
37
|
<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>
|
|
38
|
-
<
|
|
38
|
+
<span class="global-actions-sep" aria-hidden="true"></span>
|
|
39
|
+
<button id="copy-ai-context" class="global-icon-action" title="Copy AI context" aria-label="Copy AI context"><span class="goi-icon" aria-hidden="true"></span></button>
|
|
39
40
|
<span id="copy-ai-context-feedback" class="goi-feedback" role="status" hidden></span>
|
|
40
|
-
<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
|
|
41
|
+
<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></button>
|
|
41
42
|
<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>
|
|
42
43
|
<button id="theme" title="toggle theme" aria-label="toggle theme"></button>
|
|
44
|
+
<span class="global-actions-sep" aria-hidden="true"></span>
|
|
43
45
|
<span id="status" class="status" role="status" aria-live="polite"><span class="status-label"></span></span>
|
|
44
|
-
<a id="repo-web-link" class="global-
|
|
45
|
-
<button id="quick-help-btn" class="global-icon-action
|
|
46
|
-
<a class="global-
|
|
47
|
-
<span class="product-label" aria-hidden="true">code viewer</span>
|
|
46
|
+
<a id="repo-web-link" class="global-icon-link" href="#" target="_blank" rel="noopener" hidden><span class="goi-icon" aria-hidden="true"></span></a>
|
|
47
|
+
<button id="quick-help-btn" class="global-icon-action" title="quick help (shortcuts)" aria-label="quick help (shortcuts)"><span class="goi-icon" aria-hidden="true"></span></button>
|
|
48
|
+
<a class="global-icon-link" data-route="help" href="/help"><span class="goi-icon" aria-hidden="true"></span></a>
|
|
48
49
|
</div>
|
|
49
50
|
</header>
|
|
50
51
|
<header id="topbar">
|
|
51
52
|
<div id="meta"></div>
|
|
52
53
|
<div class="ref-pickers">
|
|
53
54
|
<span data-ref-selector-mount data-ref-id="ref-from" data-placeholder="from..."></span>
|
|
54
|
-
<span class="ref-dots"
|
|
55
|
+
<span class="ref-dots" aria-hidden="true"><span class="goi-icon"></span></span>
|
|
55
56
|
<span data-ref-selector-mount data-ref-id="ref-to" data-placeholder="to..."></span>
|
|
56
57
|
<button id="ref-reset" title="reset to HEAD .. worktree" aria-label="reset to HEAD .. worktree"></button>
|
|
57
58
|
<button id="reload-prom" title="reload diff (R)" aria-label="reload diff (R)"></button>
|
|
@@ -142,7 +143,7 @@
|
|
|
142
143
|
<option value="en">English</option>
|
|
143
144
|
<option value="ja">日本語</option>
|
|
144
145
|
</select>
|
|
145
|
-
<label for="sidebar-font-size">
|
|
146
|
+
<label for="sidebar-font-size">UI font size</label>
|
|
146
147
|
<select id="sidebar-font-size">
|
|
147
148
|
<option value="compact">Small</option>
|
|
148
149
|
<option value="regular">Regular</option>
|