From 6d8a28e82c593b0d27a080d36aebfb7fb6899ebf Mon Sep 17 00:00:00 2001 From: Yurii Date: Thu, 3 Dec 2026 09:25:37 +0300 Subject: [PATCH] feat: rework the network settings page --- src_data/locales/cn.json | 16 +- src_data/locales/en.json | 16 +- src_data/locales/it.json | 22 +- src_data/locales/nl.json | 12 +- src_data/locales/ru.json | 22 +- src_data/pages/network.html | 612 ++++++++++++++++++++++-------------- src_data/scripts/utils.js | 174 ---------- src_data/styles/app.css | 22 +- 8 files changed, 454 insertions(+), 442 deletions(-) diff --git a/src_data/locales/cn.json b/src_data/locales/cn.json index 116a442..1b28434 100644 --- a/src_data/locales/cn.json +++ b/src_data/locales/cn.json @@ -29,6 +29,8 @@ "save": "保存", "saved": "已保存", "refresh": "刷新", + "search": "搜索", + "close": "关闭", "restore": "恢复", "restored": "已恢复", "backup": "备份", @@ -154,23 +156,27 @@ "ethernet": "以太网", "wifi": "Wi-Fi", "availableNetworks": "可用网络", - "staSettings": "WiFi 设置", - "apSettings": "AP 设置" + "staSettings": "连接到 Wi-Fi", + "apSettings": "备用接入点" }, "scan": { "pos": "#", "info": "Info", + "hiddenSsid": "请输入隐藏网络的名称", + "empty": "未找到网络", + "failed": "无法获取网络列表。", "unavailable": "仅在 Wi-Fi 模式下可扫描网络。" }, "ethernet": { + "unavailable": "此固件版本不支持以太网。", "notConfigured": "配置全部六个 GPIO 引脚以使用以太网。", - "clk": "SPI 时钟 GPIO", + "clk": "SPI clock GPIO", "mosi": "SPI MOSI GPIO", "miso": "SPI MISO GPIO", "cs": "SPI CS GPIO", - "irq": "中断 GPIO", - "rst": "复位 GPIO", + "irq": "Interrupt GPIO", + "rst": "Reset GPIO", "note": "W5500 SPI 接线" }, "wifi": { diff --git a/src_data/locales/en.json b/src_data/locales/en.json index 80b5f71..49e9a14 100644 --- a/src_data/locales/en.json +++ b/src_data/locales/en.json @@ -29,6 +29,8 @@ "save": "Save", "saved": "Saved", "refresh": "Refresh", + "search": "Search", + "close": "Close", "restore": "Restore", "restored": "Restored", "backup": "Backup", @@ -154,23 +156,27 @@ "ethernet": "Ethernet", "wifi": "Wi-Fi", "availableNetworks": "Available networks", - "staSettings": "WiFi settings", - "apSettings": "AP settings" + "staSettings": "Connect to Wi-Fi", + "apSettings": "Fallback access point" }, "scan": { "pos": "#", "info": "Info", + "hiddenSsid": "Enter the hidden network name", + "empty": "No networks found", + "failed": "Could not retrieve the list of networks.", "unavailable": "Network scanning is available only in Wi-Fi mode." }, "ethernet": { + "unavailable": "This firmware build does not support Ethernet.", "notConfigured": "Configure all six GPIOs to use Ethernet.", - "clk": "SPI clock GPIO", + "clk": "SPI CLK GPIO", "mosi": "SPI MOSI GPIO", "miso": "SPI MISO GPIO", "cs": "SPI CS GPIO", - "irq": "Interrupt GPIO", - "rst": "Reset GPIO", + "irq": "IRQ GPIO", + "rst": "RST GPIO", "note": "W5500 SPI wiring" }, "wifi": { diff --git a/src_data/locales/it.json b/src_data/locales/it.json index a7fd682..c6e7924 100644 --- a/src_data/locales/it.json +++ b/src_data/locales/it.json @@ -29,6 +29,8 @@ "save": "Salva", "saved": "Salvato", "refresh": "Ricarica", + "search": "Cerca", + "close": "Chiudi", "restore": "Recupera", "restored": "Recuperato", "backup": "Backup", @@ -154,23 +156,27 @@ "ethernet": "Ethernet", "wifi": "Wi-Fi", "availableNetworks": "Reti disponibili", - "staSettings": "Impostazioni WiFi", - "apSettings": "Impostazioni AP" + "staSettings": "Connessione al Wi-Fi", + "apSettings": "Punto di accesso di riserva" }, "scan": { "pos": "#", "info": "Info", + "hiddenSsid": "Inserisci il nome della rete nascosta", + "empty": "Nessuna rete trovata", + "failed": "Impossibile recuperare la lista delle reti.", "unavailable": "La ricerca delle reti è disponibile solo in modalità Wi-Fi." }, "ethernet": { + "unavailable": "Questa versione del firmware non supporta Ethernet.", "notConfigured": "Configura tutti e sei i GPIO per utilizzare Ethernet.", - "clk": "GPIO clock SPI", - "mosi": "GPIO MOSI SPI", - "miso": "GPIO MISO SPI", - "cs": "GPIO CS SPI", - "irq": "GPIO interrupt", - "rst": "GPIO reset", + "clk": "SPI clock GPIO", + "mosi": "SPI MOSI GPIO", + "miso": "SPI MISO GPIO", + "cs": "SPI CS GPIO", + "irq": "Interrupt GPIO", + "rst": "Reset GPIO", "note": "Cablaggio SPI del W5500" }, "wifi": { diff --git a/src_data/locales/nl.json b/src_data/locales/nl.json index 4d58b12..005059b 100644 --- a/src_data/locales/nl.json +++ b/src_data/locales/nl.json @@ -29,6 +29,8 @@ "save": "Opslaan", "saved": "Opgeslagen", "refresh": "Vernieuwen", + "search": "Zoeken", + "close": "Sluiten", "restore": "Herstellen", "restored": "Hersteld", "backup": "Back-up", @@ -154,18 +156,22 @@ "ethernet": "Ethernet", "wifi": "Wi-Fi", "availableNetworks": "Beschikbare netwerken", - "staSettings": "WiFi-instellingen", - "apSettings": "AP-instellingen" + "staSettings": "Verbinden met wifi", + "apSettings": "Reservetoegangspunt" }, "scan": { "pos": "#", "info": "Info", + "hiddenSsid": "Voer de naam van het verborgen netwerk in", + "empty": "Geen netwerken gevonden", + "failed": "De lijst met netwerken kon niet worden opgehaald.", "unavailable": "Netwerken zoeken is alleen beschikbaar in de Wi-Fi-modus." }, "ethernet": { + "unavailable": "Deze firmwarebuild ondersteunt geen Ethernet.", "notConfigured": "Configureer alle zes GPIO's om Ethernet te gebruiken.", - "clk": "SPI-klok GPIO", + "clk": "SPI clock GPIO", "mosi": "SPI MOSI GPIO", "miso": "SPI MISO GPIO", "cs": "SPI CS GPIO", diff --git a/src_data/locales/ru.json b/src_data/locales/ru.json index 1fb38c9..7247a63 100644 --- a/src_data/locales/ru.json +++ b/src_data/locales/ru.json @@ -29,6 +29,8 @@ "save": "Сохранить", "saved": "Сохранено", "refresh": "Обновить", + "search": "Поиск", + "close": "Закрыть", "restore": "Восстановить настройки", "restored": "Восстановлено", "backup": "Сохранить настройки", @@ -154,23 +156,27 @@ "ethernet": "Ethernet", "wifi": "Wi-Fi", "availableNetworks": "Доступные сети", - "staSettings": "Настройки подключения", - "apSettings": "Настройки точки доступа" + "staSettings": "Подключение к Wi-Fi", + "apSettings": "Резервная точка доступа" }, "scan": { "pos": "#", "info": "Инфо", + "hiddenSsid": "Введите имя скрытой сети", + "empty": "Сети не найдены", + "failed": "Не удалось получить список сетей.", "unavailable": "Поиск сетей доступен только в режиме Wi-Fi." }, "ethernet": { + "unavailable": "Эта сборка прошивки не поддерживает Ethernet.", "notConfigured": "Для подключения через Ethernet настройте все шесть GPIO.", - "clk": "GPIO тактирования SPI", - "mosi": "GPIO MOSI SPI", - "miso": "GPIO MISO SPI", - "cs": "GPIO CS SPI", - "irq": "GPIO прерывания", - "rst": "GPIO сброса", + "clk": "SPI clock GPIO", + "mosi": "SPI MOSI GPIO", + "miso": "SPI MISO GPIO", + "cs": "SPI CS GPIO", + "irq": "Interrupt GPIO", + "rst": "Reset GPIO", "note": "Подключение W5500 по SPI" }, "wifi": { diff --git a/src_data/pages/network.html b/src_data/pages/network.html index 9945a25..fb5741c 100644 --- a/src_data/pages/network.html +++ b/src_data/pages/network.html @@ -41,47 +41,128 @@
@@ -91,147 +172,65 @@
-

network.section.wifi

+

network.section.staSettings

-
-

network.section.availableNetworks

-

-
- -
-
-
- - - - - - - - - -
network.scan.posnetwork.wifi.ssidnetwork.scan.info
+
+ + +
+ +
- - -
-
+
+ -
-
-
-

network.section.staSettings

-

-
- -
-
+
- -
-
-
-

network.section.apSettings

-

-
- -
- -
-
-
- - + +
+
+ +

network.section.availableNetworks

+
+ +
+ + + + + + + + + +
network.scan.posnetwork.wifi.ssidnetwork.scan.info
+
+
+
+ +
+
+
+