docs: refresh INTERNALS / README / dashboard after B-fix series

This commit is contained in:
P0luz
2026-04-21 19:05:18 +08:00
parent b318e557b0
commit 2646f8f7d0
3 changed files with 139 additions and 1 deletions

View File

@@ -995,7 +995,11 @@ document.getElementById('search-input').addEventListener('input', (e) => {
async function loadBuckets() {
try {
const res = await fetch(BASE + '/api/buckets');
allBuckets = await res.json();
const data = await res.json();
if (!res.ok || !Array.isArray(data)) {
throw new Error((data && data.error) ? data.error : `HTTP ${res.status}`);
}
allBuckets = data;
updateStats();
buildFilters();
renderBuckets(allBuckets);