mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-30 03:49:17 +03:00
прогресс
This commit is contained in:
@@ -24,12 +24,6 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"printWidth": 600
|
"printWidth": 600
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": "Cross.svelte",
|
|
||||||
"options": {
|
|
||||||
"printWidth": 50
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
//****************************************************variable section**********************************************************/
|
//****************************************************variable section**********************************************************/
|
||||||
//******************************************************************************************************************************/
|
//******************************************************************************************************************************/
|
||||||
let myip = document.location.hostname;
|
//let myip = document.location.hostname;
|
||||||
//let myip = "192.168.88.235";
|
let myip = "192.168.88.235";
|
||||||
|
|
||||||
//Flags
|
//Flags
|
||||||
let showInput = false;
|
let showInput = false;
|
||||||
|
|||||||
@@ -1,10 +1,22 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import CloudIcon from "../svg/Cloud.svelte";
|
||||||
export let title;
|
export let title;
|
||||||
|
export let cloud = false;
|
||||||
|
export let cloudColor;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="crd">
|
<div class="crd">
|
||||||
{#if title}
|
{#if title && !cloud}
|
||||||
<h1 class="crd-hdr">{title}</h1>
|
<h1 class="crd-hdr">{title}</h1>
|
||||||
|
{:else if title && cloud}
|
||||||
|
<div class="flex items-center">
|
||||||
|
<div class="w-11/12">
|
||||||
|
<h1 class="crd-hdr">{title}</h1>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end w-1/12">
|
||||||
|
<CloudIcon color={cloudColor} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
export let settingsJson;
|
export let settingsJson;
|
||||||
export let errorsJson;
|
export let errorsJson;
|
||||||
export let ssidJson;
|
export let ssidJson;
|
||||||
|
let mqttConnected = true;
|
||||||
export let ssidDropdownClick = () => {};
|
export let ssidDropdownClick = () => {};
|
||||||
export let saveSettings = () => {};
|
export let saveSettings = () => {};
|
||||||
export let rebootEsp = () => {};
|
export let rebootEsp = () => {};
|
||||||
@@ -65,7 +66,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<button class="btn-lg" on:click={() => saveSettings()}>{"Сохранить"}</button>
|
<button class="btn-lg" on:click={() => saveSettings()}>{"Сохранить"}</button>
|
||||||
</Card>
|
</Card>
|
||||||
<Card title="Подключение к MQTT брокеру">
|
<Card title="Подключение к MQTT брокеру" cloud={true} cloudColor={mqttConnected === true ? "text-green-500" : "text-red-500"}>
|
||||||
<div class="crd-itm-psn">
|
<div class="crd-itm-psn">
|
||||||
<div class="wgt-dscr-w">
|
<div class="wgt-dscr-w">
|
||||||
<p class="wgt-dscr-stl">Название сервера</p>
|
<p class="wgt-dscr-stl">Название сервера</p>
|
||||||
|
|||||||
@@ -2,14 +2,6 @@
|
|||||||
export let click = () => {};
|
export let click = () => {};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svg
|
<svg on:click={click()} class="h-6 w-6 text-red-400 cursor-pointer" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
on:click={click()}
|
|
||||||
class="h-6 w-6 text-red-400 cursor-pointer"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="2"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round">
|
|
||||||
<line x1="18" y1="6" x2="6" y2="18" />
|
<line x1="18" y1="6" x2="6" y2="18" />
|
||||||
<line x1="6" y1="6" x2="18" y2="18" /></svg>
|
<line x1="6" y1="6" x2="18" y2="18" /></svg>
|
||||||
|
|||||||
Reference in New Issue
Block a user