From 5040507750c623b425e64942dd6609c0a853fcfd Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 16 Jul 2025 01:13:23 -0700 Subject: [PATCH] Load scripts from js/vendor for sanity --- includes/dashboard.php | 2 +- includes/data_usage.php | 2 +- includes/networking.php | 2 +- includes/system.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index f0f6e3e8..f01917ca 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -123,7 +123,7 @@ function DisplayDashboard(&$extraFooterScripts): void "status" ) ); - $extraFooterScripts[] = array('src'=>'app/js/dashboardchart.js', 'defer'=>false); + $extraFooterScripts[] = array('src'=>'app/js/vendor/dashboardchart.js', 'defer'=>false); } /** diff --git a/includes/data_usage.php b/includes/data_usage.php index 3c7753bd..8ea698d6 100755 --- a/includes/data_usage.php +++ b/includes/data_usage.php @@ -9,5 +9,5 @@ function DisplayDataUsage(&$extraFooterScripts) echo renderTemplate("data_usage", [ "interfaces" => $interfacesWlo ]); $extraFooterScripts[] = array('src'=>'dist/datatables/jquery.dataTables.min.js', 'defer'=>false); - $extraFooterScripts[] = array('src'=>'app/js/bandwidthcharts.js', 'defer'=>false); + $extraFooterScripts[] = array('src'=>'app/js/vendor/bandwidthcharts.js', 'defer'=>false); } diff --git a/includes/networking.php b/includes/networking.php index 83c587ed..5ebfffe4 100755 --- a/includes/networking.php +++ b/includes/networking.php @@ -23,5 +23,5 @@ function DisplayNetworkingConfig(&$extraFooterScripts) "routeInfoRaw", "bridgedEnabled") ); - $extraFooterScripts[] = array('src'=>'app/js/speedtestUI.js', 'defer'=>false); + $extraFooterScripts[] = array('src'=>'app/js/vendor/speedtestUI.js', 'defer'=>false); } diff --git a/includes/system.php b/includes/system.php index 343e1aab..6bc73875 100755 --- a/includes/system.php +++ b/includes/system.php @@ -122,7 +122,7 @@ function DisplaySystem(&$extraFooterScripts) ]; $selectedTheme = array_search($_COOKIE['theme'], $themeFiles); $extraFooterScripts[] = array('src'=>'dist/huebee/huebee.pkgd.min.js', 'defer'=>false); - $extraFooterScripts[] = array('src'=>'app/js/huebee.js', 'defer'=>false); + $extraFooterScripts[] = array('src'=>'app/js/vendor/huebee.js', 'defer'=>false); $logLimit = isset($_SESSION['log_limit']) ? $_SESSION['log_limit'] : RASPI_LOG_SIZE_LIMIT; $plugins = $pluginInstaller->getUserPlugins();