From 873c8851b55948a90fa95e4d8f2a5179b773f3a0 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Thu, 26 Mar 2026 21:34:39 -0600 Subject: [PATCH] cambios y estilos; terminal --- .../dashboard/views/components/app_kiwix.ejs | 2 +- .../dashboard/views/components/app_maps.ejs | 44 ++++++++++++++++--- 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/android/dashboard/views/components/app_kiwix.ejs b/android/dashboard/views/components/app_kiwix.ejs index 9c7029e..bd223ca 100644 --- a/android/dashboard/views/components/app_kiwix.ejs +++ b/android/dashboard/views/components/app_kiwix.ejs @@ -221,7 +221,7 @@ } } - // NEW: Cancel Button + // Cancel Button btnCancelDownload.addEventListener('click', () => { if(confirm('⚠️ Are you completely sure you want to CANCEL the ongoing download?\n\nIncomplete files will be wiped from your hard drive.')) { btnCancelDownload.disabled = true; diff --git a/android/dashboard/views/components/app_maps.ejs b/android/dashboard/views/components/app_maps.ejs index 9157aed..8896366 100644 --- a/android/dashboard/views/components/app_maps.ejs +++ b/android/dashboard/views/components/app_maps.ejs @@ -3,20 +3,30 @@
- -
- +
+
+ +
+
+ +
-
Waiting for commands...
+
+
Waiting for commands...
+ +
+ +
+
⚠️ The system requires your confirmation to continue:
- - + +
@@ -43,6 +53,28 @@ const rawCommandInput = document.getElementById('raw-command'); const controlsYN = document.getElementById('controls-yn'); +// Logic for Hiding/Showing Map Terminal + let mapsTerminalVisible = true; + const btnToggleMapsTerminal = document.getElementById('btn-toggle-maps-terminal'); + + btnToggleMapsTerminal.addEventListener('click', (e) => { + if(mapsTerminalVisible) { + terminal.style.display = 'none'; + e.target.textContent = '▼ Show Terminal'; + } else { + terminal.style.display = 'block'; + e.target.textContent = '▲ Hide Terminal'; + } + mapsTerminalVisible = !mapsTerminalVisible; + }); + + // Extra function to force the display of errors or new processes + function forceShowMapsTerminal() { + terminal.style.display = 'block'; + btnToggleMapsTerminal.textContent = '▲ Hide Terminal'; + mapsTerminalVisible = true; + } + function printToTerminal(text) { terminal.textContent += text; terminal.scrollTop = terminal.scrollHeight;