From db6360922f5e934fcd621169d6c9a5d69e904382 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:38:39 +0200 Subject: [PATCH] UI performance fix 5 --- web/inc/main.php | 2 +- web/js/fix.js | 19 ++++-------------- web/templates/admin/list_backup_detail.html | 20 ++++++++++++------- web/templates/admin/panel.html | 6 ++++-- web/templates/header.html | 22 ++++++++++++++++++++- web/templates/right.html | 19 +++++++----------- web/templates/scripts.html | 2 +- web/templates/user/panel.html | 4 ++-- 8 files changed, 53 insertions(+), 41 deletions(-) diff --git a/web/inc/main.php b/web/inc/main.php index 34483025..26df863e 100644 --- a/web/inc/main.php +++ b/web/inc/main.php @@ -8,7 +8,7 @@ if (file_exists("/usr/local/vesta/web/inc/switch_to_vesta_port") && isset($_SERV session_start(); define('VESTA_CMD', '/usr/bin/sudo /usr/local/vesta/bin/'); -define('JS_LATEST_UPDATE', '1491697870'); +define('JS_LATEST_UPDATE', '1491697871'); $i = 0; diff --git a/web/js/fix.js b/web/js/fix.js index e1bdbb34..aaf0fa05 100644 --- a/web/js/fix.js +++ b/web/js/fix.js @@ -54,15 +54,13 @@ function hideIoLog(animate){ $(".to-top").css("right", 85); $(".to-shortcuts").css("right", 130); $(".right_sidebar").css("right", -200); - //$(".io-log2").css("right", -200); - $("#myvesta_float").css("margin-right", 100); + //$("#myvesta_float").css("margin-right", 100); } else { $(".l-content .l-center").animate({"margin-right": 40}); $(".to-top").animate({"right": 85}); $(".to-shortcuts").animate({"right": 130}); $(".right_sidebar").animate({"right": -200}); - //$(".io-log2").animate({"right": -200}); - $("#myvesta_float").animate({"margin-right": 100}); + //$("#myvesta_float").animate({"margin-right": 100}); } } @@ -91,25 +89,16 @@ var iohtml = '
\n' + $(document).ready(function(){ //var sys_height=$(".io-log").height(); //$(".io-log2").css("top", sys_height+50); + /* setTimeout(function() { iolog = getCookie("iolog"); - /* //console.log('cookie: "'+iolog+'"'); - if (iolog === '1') { - showIoLog(0); - return 1; - }*/ if (iolog === '0') { //setCookie("iolog", 0, 365); hideIoLog(0); return 0; } - /*if (iolog == '') { - //console.log('cookie is empty'); - //setCookie("iolog", 1, 365); - showIoLog(0); - return ''; - }*/ }, 1); + */ //if (GLOBAL.CURRENT_USER_FINAL == 'admin') $(".body-user .l-content > .l-center.units").first().prepend( iohtml ); diff --git a/web/templates/admin/list_backup_detail.html b/web/templates/admin/list_backup_detail.html index 289d9b2f..0d583536 100644 --- a/web/templates/admin/list_backup_detail.html +++ b/web/templates/admin/list_backup_detail.html @@ -3,6 +3,12 @@ input[type="checkbox"] { display: block; margin-top: 26px; } + +.backup-items { + background-color: #f8f8f8; + margin: 10px 33px; + border-radius: 10px; +}

@@ -48,7 +54,7 @@ input[type="checkbox"] { ++$i; ?> -
+
@@ -99,7 +105,7 @@ input[type="checkbox"] { if (!empty($key)) { ?> -
+
@@ -147,7 +153,7 @@ input[type="checkbox"] { if (!empty($key)) { ?> -
+
@@ -194,7 +200,7 @@ input[type="checkbox"] { if (!empty($key)) { ?> -
+
@@ -242,7 +248,7 @@ input[type="checkbox"] { if (!empty($key)) { ?> -
+
@@ -290,7 +296,7 @@ input[type="checkbox"] { if (!empty($key)) { ?> -
+
@@ -329,7 +335,7 @@ input[type="checkbox"] { -
+
diff --git a/web/templates/admin/panel.html b/web/templates/admin/panel.html index 7eb5bab1..c181903b 100644 --- a/web/templates/admin/panel.html +++ b/web/templates/admin/panel.html @@ -1,8 +1,8 @@ - + - + @@ -129,9 +129,11 @@ $debian_ver=file_get_contents('/etc/debian_version'); Build date:
Debian
+
diff --git a/web/templates/header.html b/web/templates/header.html index 848f9a64..810657d8 100644 --- a/web/templates/header.html +++ b/web/templates/header.html @@ -16,6 +16,23 @@ var GLOBAL = {}; GLOBAL.FTP_USER_PREFIX = 'admin_'; @@ -23,8 +40,11 @@ GLOBAL.DB_DBNAME_PREFIX = 'admin_'; GLOBAL.CURRENT_USER = ''; GLOBAL.CURRENT_USER_LOOK = ''; - GLOBAL.CURRENT_USER_FINAL = ''; + GLOBAL.CURRENT_USER_FINAL = ''; GLOBAL.AJAX_URL = ''; + diff --git a/web/templates/right.html b/web/templates/right.html index 2a699668..88e1f5f0 100644 --- a/web/templates/right.html +++ b/web/templates/right.html @@ -1,20 +1,15 @@ - - -