This commit is contained in:
Dmitry Borisenko
2021-09-15 03:47:44 +08:00
parent fc1c76fb6b
commit bd3bdd1c84

View File

@@ -38,6 +38,15 @@
let wigets = []; let wigets = [];
wigets = [ wigets = [
{
widget: "input",
type: "time",
status: "12:00",
page: "",
order: "3",
descr: "Switch on boiler time",
topic: "/prefix/00000-00003/temp3",
},
{ {
widget: "input", widget: "input",
type: "number", type: "number",
@@ -62,18 +71,9 @@
status: "2021.09.15", status: "2021.09.15",
page: "", page: "",
order: "2", order: "2",
descr: "Switch on boiled date", descr: "Switch on boiler date",
topic: "/prefix/00000-00002/temp2", topic: "/prefix/00000-00002/temp2",
}, },
{
widget: "input",
type: "time",
status: "12:00",
page: "",
order: "3",
descr: "Switch on boiler time",
topic: "/prefix/00000-00003/temp3",
},
]; ];
</script> </script>
@@ -116,9 +116,6 @@
<ul class="menu__main"> <ul class="menu__main">
<div class="bg-cover bg-gray-50 pt-16"> <div class="bg-cover bg-gray-50 pt-16">
<Route path="/"> <Route path="/">
<Card title="Редактор JSON">
<textarea on:input={SuperDuperFunction} rows="10" class="input-indigo" id="text1">{syntaxHighlight(JSON.stringify(wigets))}</textarea>
</Card>
<Card title="Inputs"> <Card title="Inputs">
{#each wigets as widget, i} {#each wigets as widget, i}
{#if widget.widget === "input"} {#if widget.widget === "input"}
@@ -126,6 +123,9 @@
{/if} {/if}
{/each} {/each}
</Card> </Card>
<Card title="Редактор JSON">
<textarea on:input={SuperDuperFunction} rows="10" class="input-indigo" id="text1">{syntaxHighlight(JSON.stringify(wigets))}</textarea>
</Card>
</Route> </Route>
<Route path="/config"> <Route path="/config">