status/gui/dashboard/tiles.svelte

18 lines
381 B
Svelte
Raw Normal View History

<script>
import TileRawValue from './tile-rawvalue.svelte';
export let services;
export let color;
export let value;
</script>
{#each Object.entries(services) as [ id, service ] (id)}
<TileRawValue
title={service.name.en}
subtitle={service.cluster}
date={service.lastBeat.date ? new Date(service.lastBeat.date) : false}
{value}
{color}
/>
{/each}