From 763dca8653e14408925a36e072bf2d6febe30924 Mon Sep 17 00:00:00 2001 From: Naeel Date: Sun, 5 Apr 2026 10:35:51 +0300 Subject: [PATCH] =?UTF-8?q?fix(ux):=20credentials=20tab=20=E2=80=94=20copy?= =?UTF-8?q?=20button=20for=20password,=20port=20443=20in=20broker=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/api/ui/iot-console.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/internal/api/ui/iot-console.html b/internal/api/ui/iot-console.html index 75f69a4..6f91e35 100644 --- a/internal/api/ui/iot-console.html +++ b/internal/api/ui/iot-console.html @@ -903,6 +903,7 @@ function credsTab(d) {
Password
••••••••••••••••
+
@@ -913,7 +914,8 @@ function credsTab(d) {
Broker URL
-
${h(S.mqttBase)}
+
${h(S.mqttBase)}  (порт 443)
+

@@ -925,8 +927,9 @@ function credsTab(d) {

1. Запишите параметры в прошивку устройства:

broker    ${h(S.mqttBase)}
+port      443
username  ${h(d.mqtt_username)}
-password  (см. выше)
+password  (кнопка «Копировать» у поля Password выше)
topic     ${h(topic)}

2. Устройство должно публиковать JSON в топик.

@@ -941,6 +944,12 @@ topic     ${h(topic)}
`; } +// copyPw — копировать пароль из S.deviceDetail без показа на экране +function copyPw(btn) { + if (!S.deviceDetail) return; + copyVal(S.deviceDetail.mqtt_password, btn); +} + // togglePw — показать/скрыть пароль (читаем из S.deviceDetail, не из атрибутов) function togglePw() { const el = document.getElementById('pw-display');