fix admin

This commit is contained in:
tdurieux
2026-05-03 22:29:01 +02:00
parent 6096cb0744
commit db2ac5307d
6 changed files with 429 additions and 114 deletions
+17
View File
@@ -1,3 +1,20 @@
function loadFilterPrefs(key) {
try {
const raw = localStorage.getItem(key);
return raw ? JSON.parse(raw) : null;
} catch (e) {
return null;
}
}
function saveFilterPrefs(key, value) {
try {
localStorage.setItem(key, JSON.stringify(value));
} catch (e) {
/* localStorage unavailable or quota exceeded */
}
}
function humanFileSize(bytes, si = false, dp = 1) {
const thresh = si ? 1000 : 1024;