mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 23:12:34 +03:00
changes
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user