From aa67ba1b8016697571854f346f99d54af8cd45e4 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:50:31 +0700 Subject: [PATCH] some changes --- examples/Dashboard.svelte | 1676 ------------------------------------ examples/Setup.svelte | 1696 ------------------------------------- examples/parts.js | 1 - src/App.svelte | 41 +- src/widgets/Input.svelte | 2 +- src/widgets/Toggle.svelte | 18 +- 6 files changed, 26 insertions(+), 3408 deletions(-) delete mode 100644 examples/Dashboard.svelte delete mode 100644 examples/Setup.svelte delete mode 100644 examples/parts.js diff --git a/examples/Dashboard.svelte b/examples/Dashboard.svelte deleted file mode 100644 index e0dfa64..0000000 --- a/examples/Dashboard.svelte +++ /dev/null @@ -1,1676 +0,0 @@ - - - - -{#if connectionType == "MQTT"} - {#if MQTTconnections[1]} -
- {/if} -{:else} -- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} waiting -
- {/if} - {#if NetworkDevice.status == true} -- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} connected -
- {/if} - {#if NetworkDevice.status == false} -- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} disconnected -
- {/if} - {/each} - -- {#each pages as page, i} - - {/each} -
-{#if newPage == 1} -| - {widget.descr} - | - -- - |
- {#if widget.status == "1"}
-
- | {/if}
-
- {#if widget.widget === "anydata"}
-
- {#if widget.descrColor}
-
-
- {!widget.nodeInfo ? "" : widget.nodeInfo}
-
-
- {/if}
- |
- - - | -
-
- {#if Array.isArray(widget.color) && widget.status}
- {#each widget.color as anydataColor, i}
-
- {#if anydataColor.level && widget.status < anydataColor.level && widget.status > widget.color[i - 1].level && i > 0}
- |
- {/if}
-
- {#if widget.widget === "input"}
- {widget.descr} | -- {#if widget.type === "number"} - |
-
-
-
-
-
- |
- {:else if widget.type === "time"}
-
-
-
-
- |
- {:else}
-
-
- |
- {/if}
- {/if}
-
- {#if widget.widget == "btn"}
- {widget.descr} | -- |
- {#if widget.status != 0 && widget.status != 1}
- - {:else} - - {/if} - |
- {/if}
-
- {#if widget.widget === "select"}
- {widget.descr} | -- |
- {#if widget.status == 0}
- - {:else} - - {/if} - |
- {/if}
-
- {#if widget.widget === "chart"}
-
- {#if widget.status}
- {#if widget.topic.includes("_2")}
- |
- {/if}
-
- {#if widget.widget === "range"}
-
-
- {widget.descr}
- {widget.status / 10}
- {widget.after}
-
-
-
- |
- {/if}
- ||||
- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} waiting -
- {/if} - {#if NetworkDevice.status == true} -- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} connected -
- {/if} - {#if NetworkDevice.status == false} -- {NetworkDevice.deviceIP} - {NetworkDevice.deviceName} disconnected -
- {/if} - {/each} - -| IP | - | -Name | - | - |
| IP | - | Name | - | - |
| IP | - | Name | - |
| ESP name | - -- - | - -? | -
| WIFI name | -- | ? | -
| WIFI password | -- | ? | -
| AP name | -- | ? | -
| WEB admin login | -- | ? | -
| WEB admin password | -- | ? | -
| Time Zone | -- | ? | -
| NTP server | -- | ? | -
| MQTT server | -- | ? | -
| MQTT port (TCP) | -- | ? | -
| MQTT wss port (TLS) | -- | ? | -
| mqttPrefix | -- | ? | -
| mqttUser | -- | ? | -
| mqttPass | -- | ? | -
| mqttPath | -- | ? | -
| Web dashbord over MQTT | -- - | -? | -
| MQTT server | -- | ? |
| MQTT port | -- | ? |
| MQTT wss port | -- | ? |
| mqttPrefix | -- | ? | -
| mqttUser | -- | ? |
| mqttPass | -- | ? | -
| mqttPath | -- | ? | -
| Enable Telegram | - -- - - {#if Conf[i]["telegonof"] == 0} - {(Conf[i]["telegonof"] = false)} - {:else} - {(Conf[i]["telegonof"] = true)} - {/if} - | - -? |
| Enable incoming messages | - -- - - {#if Conf[i]["teleginput"] == 0} - {(Conf[i]["teleginput"] = false)} - {:else} - {(Conf[i]["teleginput"] = true)} - {/if} - | -? |
| Auto get chat ID | - -- - {#if Conf[i]["autos"] == 0} - {(Conf[i]["autos"] = false)} - {:else} - {(Conf[i]["autos"] = true)} - {/if} - | -? |
| Telegram API token | -- | ? |
| Telegram chat ID | -- | ? |
| Enable UART | -- - | -? |
| Send all messages to UART | -- | ? |
| UART speed | -- | ? |
| PIN TX | -- | ? |
| PIN RX | -- | ? |
| Update server | -- | ? | -||
| Split point graphs | -- | ? | -||
| Use a dark theme | -- {#if Conf[i]["darktheme"] == "false"} - | - {:else} - | - {/if} - - | ? |
| Console LOG | -- {#if Conf[i]["consolelog"] == "false"} - | - {:else} - | - {/if} - - | ? | -