From fca5a173dceeab2628d418d565e84e48c460b49f Mon Sep 17 00:00:00 2001 From: hael Date: Thu, 24 Jul 2025 17:42:30 +0000 Subject: [PATCH] changes, fixes --- common.js | 16 +++++++-- manage.html | 98 ++++++++++++++++++++++++++++++++++++++--------------- scan.php | 34 ++++++++++++------- 3 files changed, 104 insertions(+), 44 deletions(-) diff --git a/common.js b/common.js index 450dd11..aaac50f 100644 --- a/common.js +++ b/common.js @@ -90,7 +90,7 @@ function get_repositories() { console.log('repositories: '+data); if (data=="OK") { setTimeout(check_repositories, 500); - get_deployments(); + //get_deployments(); } else alert(data); }); @@ -110,7 +110,15 @@ function check_vpn() { var url = 'scan.php?op=check_vpn'; jQuery.get(url, function(data) { console.log('check_vpn: '+data); - if (data=="2") { + if (data=="1") { // save_vpn has finished + const vpn_div = document.getElementById("vpn"); + console.log(vpn_div); + if (vpn_div) { + vpn_div.innerHTML = 'VPN start process has finished'; + //document.getElementById('installAppsBtn').click(); + } + } + else if (data=="2") { document.getElementById('vpnToggle').checked = true; document.querySelector(".switch-label").textContent = "ON"; $('#vpn_off').hide(); @@ -136,6 +144,7 @@ function save_vpn() { jQuery.get(url, function(data) { console.log('save_vpn: '+data); if (data=="OK") { + check_vpn(); } //get_vpn(); }); @@ -443,7 +452,7 @@ function get_proxy_html() { jQuery('#vpn_save_btn').click(function() { console.log('vpn save'); save_vpn(); - jQuery('#vpn').html('Loading...'); + jQuery('#vpn').html('VPN start process in progress. Please wait...'); }); `; @@ -474,6 +483,7 @@ function get_containers() { jQuery(document).ready(function(){ get_repositories(); + get_deployments(); get_system(); check_vpn(); diff --git a/manage.html b/manage.html index 67e612a..8bb7a5d 100644 --- a/manage.html +++ b/manage.html @@ -104,13 +104,44 @@ color: black; border-radius: 10px; font-weight: bold; - margin: 4px; } .menu-item.active:hover { color: black; } +.menu-item span.arrow { + margin-left: auto; + color: gray; + font-size: 20px; + transition: transform 0.3s ease; +} + +.menu-item.open .arrow { + transform: rotate(180deg); +} + +.submenu { + display: none; + margin-left: 40px; + flex-direction: column; + margin-bottom: 10px; +} + +.submenu-item { + padding: 5px 14px; + font-size: 14px; + color: #ffffff; + cursor: pointer; + border-radius: 10px; +} + +.submenu-item:hover { + color: #000000; + background-color: var(--highlight-color); +} + + /* Switch container */ .switch { position: relative; @@ -343,21 +374,22 @@ } .title { - font-size: 26px; + font-size: 28px; font-weight: bold; margin: 0; } .subtitle { - font-size: 16px; + font-size: 20px; margin: 4px 0; color: #999; } .description { - font-size: 14px; + font-size: 16px; margin: 20px 0 0; color: #999; + line-height: 1.5; } .notification-btn { @@ -654,11 +686,16 @@ --> - - - - - + + + + + +
@@ -684,7 +721,7 @@
- Loading applications... + Loading applications. Please wait...