From 4fc5a693374eefd3972ac3e39dcf965212c7e14e Mon Sep 17 00:00:00 2001 From: ppodsednik Date: Mon, 5 Jan 2026 11:10:33 +0100 Subject: [PATCH 1/2] translate dashboards --- process-manager/src/main/webapp/index.html | 317 ++++++-------- process-worker/src/main/webapp/index.html | 475 +++++++++------------ 2 files changed, 323 insertions(+), 469 deletions(-) diff --git a/process-manager/src/main/webapp/index.html b/process-manager/src/main/webapp/index.html index f34c45e..66eed74 100644 --- a/process-manager/src/main/webapp/index.html +++ b/process-manager/src/main/webapp/index.html @@ -1,5 +1,5 @@ - + @@ -14,7 +14,8 @@ .status-planned { color: #ffc107; } .status-finished { color: #198754; } .status-error { color: #dc3545; } - /* Styly pro tabulku Workerů */ + + /* Styles for Worker table */ .worker-tag { margin-right: 5px; } @@ -29,7 +30,7 @@

Process Manager Overview

-
Celkem Workerů
+
Total Workers

...

@@ -37,7 +38,7 @@

...

-
Práce ve Frontě (PLANNED)
+
Queued Work (PLANNED)

...

@@ -45,7 +46,7 @@

...

-
Aktivní Procesy (RUNNING)
+
Active Processes (RUNNING)

...

@@ -55,26 +56,26 @@

...


-

👷 Registrované Worker Nody

+

👷 Registered Worker Nodes

-
Seznam Worker Nódů (Typ: WORKER)
+
Worker Node List (Type: WORKER)
- - - - - + + + + + - +
ID WorkeruURL APIPopisPodporované Profily (Tagy)AkceWorker IDAPI URLDescriptionSupported Profiles (Tags)Actions
Načítám data...
Loading data...
@@ -83,27 +84,27 @@
Seznam Worker Nódů (Typ: WORKER)

-

⚙️ Aktivní Procesy

+

⚙️ Active Processes

-
Aktivní a Plánované Procesy (Posledních 50 dávek)
+
Active and Planned Processes (Last 50 Batches)
- - + + - - - + + + - +
StavID ProcesuStatusProcess ID Worker IDProfilVlastníkPopisProfileOwnerDescription
Načítám data...
Loading data...
@@ -115,16 +116,20 @@
Aktivní a Plánované Procesy (Posledních 50 dávek)
@@ -138,29 +143,33 @@
' - ].join(''); + wrapper.innerHTML = ` + + `; alertPlaceholder.prepend(wrapper); + setTimeout(() => { - const alert = bootstrap.Alert.getOrCreateInstance(wrapper.querySelector('.alert')); - if(alert) alert.close(); + const alert = bootstrap.Alert.getOrCreateInstance( + wrapper.querySelector('.alert') + ); + if (alert) alert.close(); }, 5000); } /** - * Získá celkový počet Worker nodů a zároveň je vypíše. + * Fetches all worker nodes and displays them. */ async function fetchWorkers() { const workerTableBody = document.getElementById('workerTableBody'); - workerTableBody.innerHTML = 'Načítám data...'; + workerTableBody.innerHTML = + 'Loading data...'; try { const response = await fetch(`${API_BASE_URL}/node`); - if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); + if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`); const nodes = await response.json(); const workerNodes = nodes.filter(node => node.type === 'WORKER'); @@ -169,213 +178,147 @@