From 25c0b17f91df5b8b3bcd4914bceaa3d750c6eda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 10 Jul 2026 08:29:47 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD,=20favicon=20?= =?UTF-8?q?=D0=B8=D0=B7=20=D0=BA=D0=BE=D1=80=D0=BD=D1=8F,=20=D1=83=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=BB=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D1=83=20?= =?UTF-8?q?=D0=B8=D0=B7=20topbar,=20v1.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 2 +- site/static/app.js | 4 +-- site/static/favicon.svg | 70 ++++++++++++++++++++++++++++++++++++--- site/templates/index.html | 1 - 4 files changed, 69 insertions(+), 8 deletions(-) diff --git a/site/app.py b/site/app.py index 6cbb8d5..6ff152d 100644 --- a/site/app.py +++ b/site/app.py @@ -3,7 +3,7 @@ from flask import Flask, render_template, request app = Flask(__name__) -VERSION = '1.0.1' +VERSION = '1.0.2' @app.route('/') diff --git a/site/static/app.js b/site/static/app.js index e391e23..74210bc 100644 --- a/site/static/app.js +++ b/site/static/app.js @@ -90,7 +90,7 @@ function renderTable() { } else if (f.status === 'ok') { progressHTML = '✓ ' + formatSpeed(f.speed) + ''; } else if (f.status === 'err') { - progressHTML = ''; + progressHTML = '✗ ' + escHtml(f.error || '') + ''; } else { progressHTML = ''; } @@ -102,7 +102,7 @@ function renderTable() { } else if (f.status === 'ok') { statusHTML = '✓ ' + (f.elapsed ? (f.elapsed / 1000).toFixed(1) + 'с' : '') + ''; } else if (f.status === 'err') { - statusHTML = '✗ ошибка'; + statusHTML = '✗ ' + escHtml(f.error || '') + ''; } else { statusHTML = 'ожидает'; } diff --git a/site/static/favicon.svg b/site/static/favicon.svg index 466b140..3a2969d 100644 --- a/site/static/favicon.svg +++ b/site/static/favicon.svg @@ -1,4 +1,66 @@ - - - LT - + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/site/templates/index.html b/site/templates/index.html index b0f0c8a..4c87f1c 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -82,7 +82,6 @@
📦 Loadtest — загрузка файлов - v{{ version }}