From 41b6caf5dbe951bde693ecdd2bf75cd023d74869 Mon Sep 17 00:00:00 2001 From: Russel Yasol Date: Thu, 9 May 2024 08:46:35 +0800 Subject: [PATCH 1/6] fixed Fetching bands message not showing --- simpleadmin/www/network.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpleadmin/www/network.html b/simpleadmin/www/network.html index dff6e87..8c9cc45 100644 --- a/simpleadmin/www/network.html +++ b/simpleadmin/www/network.html @@ -570,9 +570,9 @@ init() { // Function to populate checkboxes const showPopulateCheckboxes = () => { + this.isGettingBands = true; Promise.all([getSupportedBands(), getLockedBands()]) .then(([supportedBandsData, lockedBandsData]) => { - this.isGettingBands = true; this.lte_bands = supportedBandsData.lte_bands; this.nsa_bands = supportedBandsData.nsa_bands; this.sa_bands = supportedBandsData.sa_bands; From bf156b918171b24e359bdf2b02b85c38e51b7496 Mon Sep 17 00:00:00 2001 From: Russel Yasol Date: Thu, 9 May 2024 19:06:00 +0800 Subject: [PATCH 2/6] improved bw parsing and simple network function queuing --- simpleadmin/www/index.html | 10 +- simpleadmin/www/network.html | 261 ++++++++++++----------------------- 2 files changed, 95 insertions(+), 176 deletions(-) diff --git a/simpleadmin/www/index.html b/simpleadmin/www/index.html index f360642..05b837e 100644 --- a/simpleadmin/www/index.html +++ b/simpleadmin/www/index.html @@ -715,7 +715,7 @@ // Calculate the NR bandwidth this.bandwidth = - this.calculate_nr_bw(nr_bw).toString() + " MHz"; + "NR " + this.calculate_nr_bw(nr_bw).toString() + " MHz"; // Parse the PCIs this.pcc_pci = lines[27].split(",")[7].replace(/"/g, ""); @@ -789,9 +789,9 @@ // Calculate the LTE bandwidth this.bandwidth = - this.calculate_lte_bw(lte_bw_ul) + + "UL " + this.calculate_lte_bw(lte_bw_ul) + " MHz / " + - this.calculate_lte_bw(lte_bw_dl) + + "DL " + this.calculate_lte_bw(lte_bw_dl) + " MHz"; // Get the Cell ID @@ -871,8 +871,8 @@ // Calculate the LTE bandwidth this.bandwidth = this.calculate_lte_bw(lte_bw_ul) + - " MHz / " + - this.calculate_lte_bw(lte_bw_dl) + + " MHz, " + + "NR " + this.calculate_lte_bw(lte_bw_dl) + " MHz"; // Get the RSSI diff --git a/simpleadmin/www/network.html b/simpleadmin/www/network.html index 8c9cc45..7999371 100644 --- a/simpleadmin/www/network.html +++ b/simpleadmin/www/network.html @@ -94,10 +94,10 @@
-
+
Fetching supported bands...
-
+
@@ -404,122 +404,6 @@