прогресс

This commit is contained in:
Dmitry Borisenko
2022-02-10 17:39:50 +01:00
parent 222a8c2dcd
commit 050a813471
5 changed files with 18 additions and 19 deletions

View File

@@ -24,12 +24,6 @@
"options": {
"printWidth": 600
}
},
{
"files": "Cross.svelte",
"options": {
"printWidth": 50
}
}
]
}

View File

@@ -33,8 +33,8 @@
//****************************************************variable section**********************************************************/
//******************************************************************************************************************************/
let myip = document.location.hostname;
//let myip = "192.168.88.235";
//let myip = document.location.hostname;
let myip = "192.168.88.235";
//Flags
let showInput = false;

View File

@@ -1,10 +1,22 @@
<script>
import CloudIcon from "../svg/Cloud.svelte";
export let title;
export let cloud = false;
export let cloudColor;
</script>
<div class="crd">
{#if title}
{#if title && !cloud}
<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}
<slot />
</div>

View File

@@ -5,6 +5,7 @@
export let settingsJson;
export let errorsJson;
export let ssidJson;
let mqttConnected = true;
export let ssidDropdownClick = () => {};
export let saveSettings = () => {};
export let rebootEsp = () => {};
@@ -65,7 +66,7 @@
{/if}
<button class="btn-lg" on:click={() => saveSettings()}>{"Сохранить"}</button>
</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="wgt-dscr-w">
<p class="wgt-dscr-stl">Название сервера</p>

View File

@@ -2,14 +2,6 @@
export let click = () => {};
</script>
<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">
<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">
<line x1="18" y1="6" x2="6" y2="18" />
<line x1="6" y1="6" x2="18" y2="18" /></svg>