From 1b078125438bcf848f140c81a705bb93a7538918 Mon Sep 17 00:00:00 2001
From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com>
Date: Tue, 16 Aug 2022 22:38:43 +0200
Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?=
=?UTF-8?q?=D0=B2=D0=B8=D0=B4=D0=B6=D0=B5=D1=82=20range?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 2 +-
src/App.svelte | 3 ++-
src/pages/Dashboard.svelte | 4 ++++
src/widgets/Range.svelte | 28 ++++++++++++++++++++++++++++
4 files changed, 35 insertions(+), 2 deletions(-)
create mode 100644 src/widgets/Range.svelte
diff --git a/public/index.html b/public/index.html
index 92bec14..4feffb2 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,7 +4,7 @@
-
IoT Manager 4.1.3
+ IoT Manager 4.1.4
diff --git a/src/App.svelte b/src/App.svelte
index 0e192b7..b659303 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -37,6 +37,7 @@
let opened = false;
let preventMove = false;
let devMode = true;
+ let showWidjetJson = false;
//****************************************************variable section**********************************************************/
//******************************************************************************************************************************/
@@ -1122,7 +1123,7 @@
wsPush(ws, topic, status)} />
- {#if devMode}
+ {#if showWidjetJson}
{/if}
diff --git a/src/pages/Dashboard.svelte b/src/pages/Dashboard.svelte
index b1e7c16..352623c 100644
--- a/src/pages/Dashboard.svelte
+++ b/src/pages/Dashboard.svelte
@@ -1,6 +1,7 @@
+
+
+
+
+
+ ((widget.sent = true), wsPush(widget.ws, widget.topic, widget.status))}
+ class="form-range range-secondary w-full h-2 p-0 rounded-lg {widget.sent ? 'bg-red-300' : 'bg-gray-300'}
+ focus:outline-none appearance-none"
+ type="range"
+ min="0"
+ max="1024" />