mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 21:47:58 +00:00
15 lines
325 B
Svelte
15 lines
325 B
Svelte
<script>
|
|
import TileRawValue from './tile-rawvalue.svelte';
|
|
|
|
export let services;
|
|
</script>
|
|
|
|
{#each Object.entries(services) as [ id, service ] (id)}
|
|
{@const isDown = service.lastBeat.down}
|
|
<TileRawValue
|
|
title={service.name.en}
|
|
value={isDown ? 'down' : 'up'}
|
|
color={isDown ? 'red' : 'green'}
|
|
/>
|
|
{/each}
|