From 4b10fffc88698c11b3993ea1608ca5edfc32b41c Mon Sep 17 00:00:00 2001
From: Dmitry Borisenko <67171972+IoTManagerProject@users.noreply.github.com>
Date: Tue, 22 Nov 2022 15:07:41 +0100
Subject: [PATCH] 123
---
public/index.html | 2 +-
src/App.svelte | 17 +++++-----
src/pages/Connection.svelte | 24 +++++++-------
src/pages/Dashboard.svelte | 17 ++++++++--
src/pages/System.svelte | 64 ++++++++++++++++++++++++-------------
5 files changed, 78 insertions(+), 46 deletions(-)
diff --git a/public/index.html b/public/index.html
index 9f21ca7..f58d837 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,7 +4,7 @@
-
{#if !socketConnected && currentPageName != "/|"}
-
+
{:else}
wsPush(ws, topic, status)} />
@@ -1379,10 +1380,10 @@
@apply table-fixed w-full select-none my-2;
}
.tbl-hd {
- @apply text-center px-1 break-words text-gray-500 font-bold;
+ @apply text-center px-1 break-words text-gray-500 font-bold truncate;
}
.tbl-bdy-lg {
- @apply text-center px-1 break-words;
+ @apply text-center px-1 break-words truncate;
}
.tbl-bdy-sm {
@apply px-1 break-words;
@@ -1412,7 +1413,7 @@
}
/*====================================================buttons=====================================================*/
.btn-lg {
- @apply flex justify-center break-words content-center bg-blue-100 hover:bg-blue-200 text-gray-500 font-bold text-sm sm:text-base md:text-base lg:text-base xl:text-base 2xl:text-base h-6 sm:h-8 md:h-8 lg:h-8 xl:h-8 2xl:h-8 w-full mt-0 border border-gray-300 rounded;
+ @apply flex justify-center break-words content-center bg-blue-100 hover:bg-blue-200 text-gray-500 font-bold text-sm sm:text-base md:text-base lg:text-base xl:text-base 2xl:text-base h-6 sm:h-8 md:h-8 lg:h-8 xl:h-8 2xl:h-8 w-full mt-0 border border-gray-300 rounded truncate;
}
.btn-tbl {
@apply flex justify-center content-center text-gray-500 font-bold w-6 h-auto border border-gray-300;
diff --git a/src/pages/Connection.svelte b/src/pages/Connection.svelte
index 4b3cac8..58241a2 100644
--- a/src/pages/Connection.svelte
+++ b/src/pages/Connection.svelte
@@ -19,7 +19,7 @@
-
Название устройства
+
Название устройства
@@ -27,7 +27,7 @@
-
Точка доступа
+
Точка доступа
@@ -35,7 +35,7 @@
-
Пароль точки доступа
+
Пароль точки доступа
@@ -43,7 +43,7 @@
-
Название wifi сети
+
Название wifi сети
@@ -65,7 +65,7 @@
-
Сервер обновления
+
Сервер обновления
@@ -83,7 +83,7 @@
-
Состояние подключения
+
Состояние подключения
{#if errorsJson.mqtt === "e5"}
@@ -99,7 +99,7 @@
-
Название сервера
+
Название сервера
@@ -107,7 +107,7 @@
@@ -115,7 +115,7 @@
@@ -123,7 +123,7 @@
-
Имя пользователя
+
Имя пользователя
@@ -131,7 +131,7 @@
diff --git a/src/pages/Dashboard.svelte b/src/pages/Dashboard.svelte
index 37e2cde..213c070 100644
--- a/src/pages/Dashboard.svelte
+++ b/src/pages/Dashboard.svelte
@@ -1,4 +1,5 @@
{#if show}
-
- {#if layoutJson.length === 0}
+
+ {#if empty}
{/if}
diff --git a/src/pages/System.svelte b/src/pages/System.svelte
index dab1640..b224658 100644
--- a/src/pages/System.svelte
+++ b/src/pages/System.svelte
@@ -337,10 +337,26 @@
+
+
+
+
Прием событий с других устройств
+
+
+
+
+
+
-
Расширение i2c
+
Перенаправление i2c
@@ -353,31 +369,32 @@
-
-
-
-
i2c SCL gpio
+ {#if settingsJson.i2c === true}
+
+
+
+ (reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
+
-
-
(reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
+
+
+
+ (reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
+
-
-
-
-
i2c SDA gpio
+
+
+
+ (reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
+
-
- (reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
-
-
-
-
-
- (reboot = true)} class="ipt-rnd h-7 text-center focus:border-indigo-500" type="number" />
-
-
+ {/if}
@@ -390,6 +407,7 @@
+