From ea9e3726daab6346ae6cfccac1f5f9fc04d72b2f Mon Sep 17 00:00:00 2001 From: Edmund Tan Date: Tue, 22 Jul 2025 02:35:23 +0800 Subject: [PATCH] fix install script9 --- UI/install.sh | 4 ++-- UI/{ => public}/assets/css/style.css | 0 UI/{ => public}/assets/js/app.js | 0 UI/public/dashboard.php | 6 +++--- UI/public/index.php | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) rename UI/{ => public}/assets/css/style.css (100%) rename UI/{ => public}/assets/js/app.js (100%) diff --git a/UI/install.sh b/UI/install.sh index 7ef2811..f756ee3 100644 --- a/UI/install.sh +++ b/UI/install.sh @@ -181,8 +181,8 @@ deploy_ui() { error_exit "UI files not found. Please run this script from the UI directory." fi - # Copy main UI files - cp -r public includes assets "$WEB_DIR/" || error_exit "Failed to copy UI files" + # Copy main UI files (assets are now inside public) + cp -r public includes "$WEB_DIR/" || error_exit "Failed to copy UI files" # Copy root-level PHP files for direct access (when document root is main directory) if [[ -f "index.php" ]]; then diff --git a/UI/assets/css/style.css b/UI/public/assets/css/style.css similarity index 100% rename from UI/assets/css/style.css rename to UI/public/assets/css/style.css diff --git a/UI/assets/js/app.js b/UI/public/assets/js/app.js similarity index 100% rename from UI/assets/js/app.js rename to UI/public/assets/js/app.js diff --git a/UI/public/dashboard.php b/UI/public/dashboard.php index 1c11c35..30db07c 100644 --- a/UI/public/dashboard.php +++ b/UI/public/dashboard.php @@ -60,8 +60,8 @@ $systemStatus = $enrollmentManager->getSystemStatus(); <?php echo APP_NAME; ?> - Dashboard - - + +
@@ -305,6 +305,6 @@ $systemStatus = $enrollmentManager->getSystemStatus();
- + diff --git a/UI/public/index.php b/UI/public/index.php index bf4cd61..a99621e 100644 --- a/UI/public/index.php +++ b/UI/public/index.php @@ -48,8 +48,8 @@ if (isset($loginError)) { <?php echo APP_NAME; ?> - Login - - + +