mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-26 15:02:21 +03:00
аштфд
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
let myip = document.location.hostname;
|
||||
let showInput = false;
|
||||
|
||||
let showModal = false;
|
||||
let showModalFlag = false;
|
||||
|
||||
//dashboard
|
||||
let wigets = [];
|
||||
@@ -526,6 +526,10 @@
|
||||
//});
|
||||
}
|
||||
|
||||
function showModal() {
|
||||
showModalFlag = !showModalFlag;
|
||||
}
|
||||
|
||||
//initialisation=======================================================================================
|
||||
onMount(async () => {
|
||||
console.log("[i]", "mounted");
|
||||
@@ -538,6 +542,7 @@
|
||||
</script>
|
||||
|
||||
<main>
|
||||
<Modal show={showModalFlag} />
|
||||
<div class="fixed m-0 h-10 w-full bg-gray-100 shadow-md">
|
||||
<div class="flex justify-end content-center">
|
||||
<div class="px-15 py-2">
|
||||
@@ -705,9 +710,7 @@
|
||||
</Card>
|
||||
</Route>
|
||||
<Route path="/about">
|
||||
<!-- Modal toggle -->
|
||||
<button on:click={() => (showModal = !showModal)} type="button"> Toggle modal </button>
|
||||
<Modal show={showModal} />
|
||||
<button on:click={() => showModal()} type="button"> Toggle modal </button>
|
||||
</Route>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<script>
|
||||
export let show;
|
||||
export let header = "header";
|
||||
export let text = "text";
|
||||
</script>
|
||||
|
||||
<div class="modal">
|
||||
@@ -14,9 +16,9 @@
|
||||
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
||||
<div class="sm:flex sm:items-start">
|
||||
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
||||
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">Заголовок</h3>
|
||||
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">{header}</h3>
|
||||
<div class="mt-2">
|
||||
<p class="text-sm text-gray-500">Любой текст</p>
|
||||
<p class="text-sm text-gray-500">{text}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<script>
|
||||
export let widget;
|
||||
export let value;
|
||||
value = value;
|
||||
</script>
|
||||
|
||||
<div class="card-items-psn">
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<script>
|
||||
export let widget;
|
||||
export let wsPushProp = (ws, topic, status) => {};
|
||||
export let value;
|
||||
value = value;
|
||||
</script>
|
||||
|
||||
<div class="card-items-psn">
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<script>
|
||||
export let widget;
|
||||
export let value;
|
||||
value = value;
|
||||
export let wsPushProp = (ws, topic, status) => {};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user