diff --git a/src/App.svelte b/src/App.svelte index 0749902..746aa10 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,6 +1,6 @@ @@ -15,7 +15,7 @@ import Myinput from "./Myinput.svelte"; onMount(async () => { - WSpush("mounted"); + console.log("mounted"); }); const syntaxHighlight = (json) => { @@ -45,7 +45,7 @@ page: "", order: "1", descr: "Boiler temperature", - topic: "/prefix/00000-00000/temp1", + topic: "/prefix/00000-00001/temp1", }, { widget: "input", @@ -54,7 +54,7 @@ page: "", order: "1", descr: "Room temperature", - topic: "/prefix/00000-00000/temp2", + topic: "/prefix/00000-00002/temp2", }, { widget: "input", @@ -63,7 +63,7 @@ page: "", order: "1", descr: "Body temperature", - topic: "/prefix/00000-00000/temp3", + topic: "/prefix/00000-00003/temp3", }, ]; @@ -113,7 +113,7 @@ {#each wigets as widget, i} {#if widget.widget === "input"} - + {/if} {/each} diff --git a/src/Myinput.svelte b/src/Myinput.svelte index 14d9040..e50ddda 100644 --- a/src/Myinput.svelte +++ b/src/Myinput.svelte @@ -5,6 +5,8 @@
@@ -14,10 +16,11 @@
- + +
- +