From 5b79a697b549f92e05f4a0628031817ee93002e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 07:03:10 +0400 Subject: [PATCH] =?UTF-8?q?v2.0.6:=20=D1=81=D1=87=D1=91=D1=82=D1=87=D0=B8?= =?UTF-8?q?=D0=BA=20=D1=87=D0=B0=D0=BD=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B5,=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B5=D1=80=D0=B6=D0=BA=D0=B0=202.5=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/templates/upload.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site/templates/upload.html b/site/templates/upload.html index 6bf8883..bdadc7f 100644 --- a/site/templates/upload.html +++ b/site/templates/upload.html @@ -60,7 +60,7 @@
Nubes - Сверка договоров v2.0.5 + Сверка договоров v2.0.6
@@ -207,8 +207,8 @@ }).then(function(data) { if (!data.ok) { reject(new Error(data.error)); return; } done++; - if (onProgress) onProgress(Math.round(done / totalChunks * 100)); - setTimeout(function() { sendChunk(i + 1); }, 3000); // дать HTTP/2 стримам закрыться + if (onProgress) onProgress({pct: Math.round(done / totalChunks * 100), done: done, total: totalChunks}); + setTimeout(function() { sendChunk(i + 1); }, 2500); // дать HTTP/2 стримам закрыться }).catch(function(e) { reject(e); }); } sendChunk(0); @@ -241,8 +241,8 @@ var startTime = Date.now(); try { - var resp = await uploadFileChunked(f, contractId, function(pct) { - fileQueue[rowIdx].status = '↑ ' + pct + '%'; + var resp = await uploadFileChunked(f, contractId, function(info) { + fileQueue[rowIdx].status = '↑ чанк ' + info.done + '/' + info.total + ' (' + info.pct + '%)'; renderTable(); }); // uploadFileChunked10k: прогресс по чанкам