Files
smarthome/src/libs/DeviceDetails.svelte
2024-03-25 00:41:57 +03:00

36 lines
907 B
Svelte
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script>
export let deviceLog;
</script>
<div class="table-wrapper">
<!-- Tablo başlıkları -->
<div class="table table-head">
<div class="table-row">
<div class="table-head-item">Name</div>
<div class="table-head-item">Type</div>
<div class="table-head-item">Manufacturer</div>
<div class="table-head-item">Serial Number</div>
<div class="table-head-item">Model</div>
<div class="table-head-item">Version</div>
<div class="table-head-item">IP Address</div>
</div>
<div class="divider"></div>
</div>
<!-- Cihaz bilgileri -->
<div class="table table-body">
{#each $deviceLog as log}
{#if log.sensor_value != undefined}
<div>{log.sensor_value}</div>
<div>{log.battery_life}</div>
{:else}
<div>door switch</div>
{/if}
{/each}
<div class="divider"></div>
</div>
</div>
<style>
</style>