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