From 2b6c71c0bb5284990f041795930d107bae885c3b Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Thu, 12 Jun 2025 23:19:58 +0200 Subject: [PATCH] add page for network test --- app/src/web/pages.py | 7 +++++ app/src/web/templates/base.html.j2 | 1 + .../web/templates/page_network_tests.html.j2 | 30 +++++++++++++++++++ app/translations/de/LC_MESSAGES/messages.po | 16 +++++++++- 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 app/src/web/templates/page_network_tests.html.j2 diff --git a/app/src/web/pages.py b/app/src/web/pages.py index 49d720a..72053e5 100644 --- a/app/src/web/pages.py +++ b/app/src/web/pages.py @@ -30,3 +30,10 @@ async def logging(): return await render_template( 'page_logging.html.j2', fetch_url=url_for('.file_fetch')) + + +@web.route('/network_tests') +async def network_tests(): + return await render_template( + 'page_network_tests.html.j2', + fetch_url=url_for('.file_fetch')) diff --git a/app/src/web/templates/base.html.j2 b/app/src/web/templates/base.html.j2 index 51268af..28daaf8 100644 --- a/app/src/web/templates/base.html.j2 +++ b/app/src/web/templates/base.html.j2 @@ -59,6 +59,7 @@   MQTT   {{_('Important Messages')}}   {{_('Log Files')}} +   {{_('Network Tests')}} diff --git a/app/src/web/templates/page_network_tests.html.j2 b/app/src/web/templates/page_network_tests.html.j2 new file mode 100644 index 0000000..a4e5357 --- /dev/null +++ b/app/src/web/templates/page_network_tests.html.j2 @@ -0,0 +1,30 @@ +{% extends 'base.html.j2' %} + +{% block title %}{{_("TSUN Proxy - Network Tests")}}{% endblock title %} +{% block menu5_class %}w3-blue{% endblock %} +{% block headline %}  {{_('Network Tests')}}{% endblock headline %} +{% block content %} +
+
+
+

{{_('Do you really want to delete the log file:
%(file)s ?', file='')}}

+
+ + +
+
+
+
+ +
+ + +{% endblock content%} + +{% block footer %}{% endblock footer %} diff --git a/app/translations/de/LC_MESSAGES/messages.po b/app/translations/de/LC_MESSAGES/messages.po index da4c5b2..8b5e01f 100644 --- a/app/translations/de/LC_MESSAGES/messages.po +++ b/app/translations/de/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: tsun-gen3-proxy 0.14.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-05-13 22:34+0200\n" +"POT-Creation-Date: 2025-06-01 00:59+0200\n" "PO-Revision-Date: 2025-04-18 16:24+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -75,6 +75,11 @@ msgstr "Wichtige Hinweise" msgid "Log Files" msgstr "Log Dateien" +#: src/web/templates/base.html.j2:62 +#: src/web/templates/page_network_tests.html.j2:5 +msgid "Network Tests" +msgstr "" + #: src/web/templates/page_index.html.j2:3 msgid "TSUN Proxy - Connections" msgstr "TSUN Proxy - Verbindungen" @@ -120,14 +125,18 @@ msgid "TSUN Proxy - Log Files" msgstr "TSUN Proxy - Log Dateien" #: src/web/templates/page_logging.html.j2:10 +#: src/web/templates/page_network_tests.html.j2:10 +#, python-format msgid "Do you really want to delete the log file:
%(file)s ?" msgstr "Soll die Datei:
%(file)s
wirklich gelöscht werden?" #: src/web/templates/page_logging.html.j2:12 +#: src/web/templates/page_network_tests.html.j2:12 msgid "Delete File" msgstr "Datei löschen" #: src/web/templates/page_logging.html.j2:13 +#: src/web/templates/page_network_tests.html.j2:13 msgid "Abort" msgstr "Abbruch" @@ -163,6 +172,11 @@ msgstr "Empfangene Topics" msgid "Number of topics received" msgstr "Anzahl der empfangenen Topics" +#: src/web/templates/page_network_tests.html.j2:3 +#, fuzzy +msgid "TSUN Proxy - Network Tests" +msgstr "TSUN Proxy - Verbindungen" + #: src/web/templates/page_notes.html.j2:3 msgid "TSUN Proxy - Important Messages" msgstr "TSUN Proxy - Wichtige Hinweise"