From 40f3b08b53c787b3e0a186d3e5ecbc3ddccfa579 Mon Sep 17 00:00:00 2001 From: Dauren777 Date: Thu, 11 Jun 2026 05:50:27 +0000 Subject: [PATCH] fix: doLogin checks ext_users, upFile uses direct IDB, listFiles uses getAll, report shows file metadata --- index.html | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index b63c84e..2eafefb 100644 --- a/index.html +++ b/index.html @@ -1000,9 +1000,12 @@ function deleteFileDB(id,cb){ function listFiles(prefix,cb){ openDB(function(d){ if(!d){cb([]);return} - var tx=d.transaction("files","readonly");var st=tx.objectStore("files"); - var rq=st.openCursor();var res=[]; - rq.onsuccess=function(e){var c=e.target.result;if(c){if(c.value.id.indexOf(prefix)===0)res.push(c.value);c.continue()}else{cb(res)}} + try{ + var tx=d.transaction("files","readonly");var st=tx.objectStore("files"); + var rq=st.getAll(); + rq.onsuccess=function(){var all=rq.result||[];var res=[];for(var i=0;i"; if(reportQty)hh+="
\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E: "+reportQty+"
"; - hh+="
\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u0444\u0430\u0439\u043B\u044B: \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438
"; + var fhtml2="";for(var mi=0;mi=0?"_s"+si:"";for(var bk=0;bk"+esc(ff.n)+" ("+Math.round((ff.s||0)/1024)+" KB)
"}}catch(ex){}}}}}}if(fhtml2)hh+="
\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E\u0449\u0438\u0435 \u0444\u0430\u0439\u043B\u044B:
"+fhtml2+"
"; } hh+="

\u041E\u0442\u0447\u0451\u0442 \u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u043D: "+new Date().toLocaleDateString("ru-RU")+"

"; @@ -1958,6 +1980,6 @@ function dlAnalyticsWord(){ var blob=new Blob([h],{type:"application/msword"});var a=document.createElement("a");a.href=URL.createObjectURL(blob);a.download="analytics.doc";a.click() } - +