claude-opencode-viewer 2.6.40 → 2.6.41
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/index-pc.html +26 -1
- package/index.html +26 -1
- package/package.json +1 -1
package/index-pc.html
CHANGED
|
@@ -2220,7 +2220,32 @@
|
|
|
2220
2220
|
var docsLoading = false;
|
|
2221
2221
|
|
|
2222
2222
|
function preloadData() {
|
|
2223
|
-
|
|
2223
|
+
if (!gitStatusLoading) {
|
|
2224
|
+
gitStatusLoading = true;
|
|
2225
|
+
fetch(basePath + '/api/git-status')
|
|
2226
|
+
.then(function(r) { return r.json(); })
|
|
2227
|
+
.then(function(data) {
|
|
2228
|
+
cachedGitStatus = data;
|
|
2229
|
+
gitStatusLoading = false;
|
|
2230
|
+
if (diffBarVisible) {
|
|
2231
|
+
diffChanges = data.changes || [];
|
|
2232
|
+
document.getElementById('git-diff-count').textContent = diffChanges.length;
|
|
2233
|
+
renderDiffFileList();
|
|
2234
|
+
}
|
|
2235
|
+
})
|
|
2236
|
+
.catch(function() { gitStatusLoading = false; });
|
|
2237
|
+
}
|
|
2238
|
+
if (!docsLoading) {
|
|
2239
|
+
docsLoading = true;
|
|
2240
|
+
fetch(basePath + '/api/docs')
|
|
2241
|
+
.then(function(r) { return r.json(); })
|
|
2242
|
+
.then(function(data) {
|
|
2243
|
+
cachedDocs = data;
|
|
2244
|
+
docsLoading = false;
|
|
2245
|
+
if (docsBarVisible) renderDocsList(data);
|
|
2246
|
+
})
|
|
2247
|
+
.catch(function() { docsLoading = false; });
|
|
2248
|
+
}
|
|
2224
2249
|
}
|
|
2225
2250
|
|
|
2226
2251
|
var STATUS_COLORS = {
|
package/index.html
CHANGED
|
@@ -2475,7 +2475,32 @@
|
|
|
2475
2475
|
var docsLoading = false;
|
|
2476
2476
|
|
|
2477
2477
|
function preloadData() {
|
|
2478
|
-
|
|
2478
|
+
if (!gitStatusLoading) {
|
|
2479
|
+
gitStatusLoading = true;
|
|
2480
|
+
fetch(basePath + '/api/git-status')
|
|
2481
|
+
.then(function(r) { return r.json(); })
|
|
2482
|
+
.then(function(data) {
|
|
2483
|
+
cachedGitStatus = data;
|
|
2484
|
+
gitStatusLoading = false;
|
|
2485
|
+
if (diffBarVisible) {
|
|
2486
|
+
diffChanges = data.changes || [];
|
|
2487
|
+
document.getElementById('git-diff-count').textContent = diffChanges.length;
|
|
2488
|
+
renderDiffFileList();
|
|
2489
|
+
}
|
|
2490
|
+
})
|
|
2491
|
+
.catch(function() { gitStatusLoading = false; });
|
|
2492
|
+
}
|
|
2493
|
+
if (!docsLoading) {
|
|
2494
|
+
docsLoading = true;
|
|
2495
|
+
fetch(basePath + '/api/docs')
|
|
2496
|
+
.then(function(r) { return r.json(); })
|
|
2497
|
+
.then(function(data) {
|
|
2498
|
+
cachedDocs = data;
|
|
2499
|
+
docsLoading = false;
|
|
2500
|
+
if (docsBarVisible) renderDocsList(data);
|
|
2501
|
+
})
|
|
2502
|
+
.catch(function() { docsLoading = false; });
|
|
2503
|
+
}
|
|
2479
2504
|
}
|
|
2480
2505
|
|
|
2481
2506
|
var STATUS_COLORS = {
|