diff --git a/src/App.svelte b/src/App.svelte index 70d07f8..91ea34a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -16,6 +16,7 @@ //}); import Card from "./components/Card.svelte"; + import Alarm from "./components/Alarm.svelte"; import Modal from "./components/Modal.svelte"; import Input from "./widgets/Input.svelte"; import Toggle from "./widgets/Toggle.svelte"; @@ -97,8 +98,8 @@ { name: "Устройство 1", id: "987654321", - ip: myip, - //ip: "192.168.8.196", + //ip: myip, + ip: "192.168.88.235", status: false, }, ]; @@ -234,7 +235,7 @@ socket[ws].addEventListener("message", function (event) { if (typeof event.data === "string") { let data = event.data; - //if (debug) console.log("[i]", getIP(ws), "msg received", data);// + if (debug) console.log("[i]", getIP(ws), "msg received", data); // //сборщик statusJson сообщений====================================== if (data.includes("status")) { if (IsJsonParse(data)) { @@ -963,7 +964,12 @@ - + {#if settingsJson.pass_status === 1} +
+ +
+ {/if} +
@@ -1006,7 +1012,7 @@
- +
@@ -1085,14 +1091,6 @@ @apply grid grid-cols-1 justify-items-center; } /*=============================================card and items inside===============================================*/ - /* 1. paddig and style for card */ - .crd { - @apply w-full p-2 sm:p-2 md:p-2 lg:p-2 xl:px-8 xl:py-4 2xl:px-8 2xl:py-4 bg-white rounded-lg shadow-md lg:shadow-lg border border-gray-100; - } - /* 2. style for card header */ - .crd-hdr { - @apply text-center text-lg text-gray-500 font-bold pb-4; - } /* 3. card items positioning*/ .crd-itm-psn { @apply flex mb-3 h-8 items-center; diff --git a/src/Connection.svelte b/src/Connection.svelte new file mode 100644 index 0000000..e052829 --- /dev/null +++ b/src/Connection.svelte @@ -0,0 +1,109 @@ + + +
+ +
+
+

Название устройства

+
+
+ +
+
+
+
+

Точка доступа

+
+
+ +
+
+
+
+

Пароль точки доступа

+
+
+ +
+
+
+
+

Название wifi сети

+
+
+ +
+
+
+
+

Пароль

+
+
+ +
+
+ {#if settingsJson.pass_status === 1} +
+ +
+ {/if} + +
+ +
+
+

Название сервера

+
+
+ +
+
+
+
+

Порт

+
+
+ +
+
+
+
+

Префикс

+
+
+ +
+
+
+
+

Имя пользователя

+
+
+ +
+
+
+
+

Пароль

+
+
+ +
+
+ +
+
diff --git a/src/components/Alarm.svelte b/src/components/Alarm.svelte new file mode 100644 index 0000000..73a7786 --- /dev/null +++ b/src/components/Alarm.svelte @@ -0,0 +1,25 @@ + + +
+ {#if title} +

{title}

+ {/if} + +
+ + diff --git a/src/components/Card.svelte b/src/components/Card.svelte index 49c0f3e..83d6c3d 100644 --- a/src/components/Card.svelte +++ b/src/components/Card.svelte @@ -8,3 +8,18 @@ {/if} + +