@youtyan/code-viewer 0.2.8 → 0.2.10
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 +201 -129
- package/dist/code-viewer.js +904 -694
- package/package.json +2 -1
- package/web/app.js +2775 -433
- package/web/index.html +37 -10
- package/web/style.css +869 -121
package/web/index.html
CHANGED
|
@@ -81,13 +81,21 @@
|
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
83
|
<div id="load-bar" aria-hidden="true"></div>
|
|
84
|
-
<div id="
|
|
85
|
-
<
|
|
86
|
-
<span
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
<div id="banner-stack">
|
|
85
|
+
<div id="watch-limit-banner" class="gdp-banner gdp-banner--warn" role="status" hidden>
|
|
86
|
+
<span class="gdp-banner-copy">
|
|
87
|
+
<span id="watch-limit-text"></span>
|
|
88
|
+
</span>
|
|
89
|
+
<button id="watch-limit-dismiss" class="gdp-banner-dismiss" type="button" aria-label="dismiss">×</button>
|
|
90
|
+
</div>
|
|
91
|
+
<div id="change-banner" class="gdp-banner" hidden>
|
|
92
|
+
<span id="change-banner-copy" class="gdp-banner-copy">
|
|
93
|
+
<span id="change-banner-text"></span>
|
|
94
|
+
<span id="change-banner-age"></span>
|
|
95
|
+
</span>
|
|
96
|
+
<button id="change-banner-reload" type="button"></button>
|
|
97
|
+
<button id="change-banner-dismiss" class="gdp-banner-dismiss" type="button" aria-label="dismiss">×</button>
|
|
98
|
+
</div>
|
|
91
99
|
</div>
|
|
92
100
|
|
|
93
101
|
<aside id="history-panel" aria-label="Commit history" hidden>
|
|
@@ -157,17 +165,36 @@
|
|
|
157
165
|
</select>
|
|
158
166
|
<p id="display-settings-source">Applies to all projects in this browser.</p>
|
|
159
167
|
</div>
|
|
168
|
+
<div class="scope-settings-section">
|
|
169
|
+
<strong id="upload-section-title" class="scope-settings-section-title">Uploads</strong>
|
|
170
|
+
<label class="scope-settings-toggle">
|
|
171
|
+
<input id="upload-enabled" type="checkbox" />
|
|
172
|
+
<span id="upload-enabled-label">Allow file uploads into worktree folders</span>
|
|
173
|
+
</label>
|
|
174
|
+
<p id="upload-help" class="scope-settings-help"></p>
|
|
175
|
+
</div>
|
|
160
176
|
<div class="scope-settings-section">
|
|
161
177
|
<strong class="scope-settings-section-title">Excluded directories</strong>
|
|
162
178
|
<label for="scope-omit-dirs">Skip these directory names while browsing and searching</label>
|
|
163
179
|
<textarea id="scope-omit-dirs" rows="6" spellcheck="false"></textarea>
|
|
180
|
+
<p id="scope-omit-dirs-help" class="scope-settings-help"></p>
|
|
164
181
|
<label for="scope-exclude-names">Hide these file or directory names completely</label>
|
|
165
182
|
<textarea id="scope-exclude-names" rows="4" spellcheck="false"></textarea>
|
|
183
|
+
<p id="scope-exclude-names-help" class="scope-settings-help"></p>
|
|
166
184
|
<p id="scope-omit-source"></p>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
185
|
+
</div>
|
|
186
|
+
<div class="scope-settings-section">
|
|
187
|
+
<strong id="watch-section-title" class="scope-settings-section-title">File change watcher</strong>
|
|
188
|
+
<label for="scope-watch-limit">Maximum directories to watch</label>
|
|
189
|
+
<div class="scope-watch-limit-row">
|
|
190
|
+
<input id="scope-watch-limit-range" type="range" min="16" max="65536" step="16" aria-label="watch limit slider" />
|
|
191
|
+
<input id="scope-watch-limit" type="number" min="16" max="65536" step="1" />
|
|
170
192
|
</div>
|
|
193
|
+
<p id="scope-watch-limit-help" class="scope-settings-help"></p>
|
|
194
|
+
</div>
|
|
195
|
+
<div class="scope-settings-footer">
|
|
196
|
+
<p id="scope-settings-autosave-note" class="scope-settings-help"></p>
|
|
197
|
+
<button id="scope-omit-reset" type="button">Restore defaults</button>
|
|
171
198
|
</div>
|
|
172
199
|
</div>
|
|
173
200
|
|