2020-12-15 10:23:20 +01:00
|
|
|
<script>
|
2020-12-25 09:59:13 +01:00
|
|
|
import InputContainer from './InputContainer.svelte'
|
2020-12-15 22:42:56 +01:00
|
|
|
import EventList from './EventList.svelte'
|
2020-12-20 14:29:21 +01:00
|
|
|
import Status from './Status.svelte'
|
|
|
|
import TrackingPanel from './TrackingPanel.svelte'
|
2020-12-15 10:23:20 +01:00
|
|
|
|
2020-12-15 22:42:56 +01:00
|
|
|
import { configStore, eventStore } from '../stores'
|
2020-12-15 10:23:20 +01:00
|
|
|
|
|
|
|
$: showTrackingPanel = $configStore.track === undefined
|
2020-12-15 22:56:39 +01:00
|
|
|
$: showEventList = $eventStore.events.length > 0
|
2020-12-15 10:23:20 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if showTrackingPanel}
|
|
|
|
<TrackingPanel />
|
|
|
|
{/if}
|
|
|
|
|
2020-12-25 09:59:13 +01:00
|
|
|
<InputContainer />
|
2020-12-15 22:42:56 +01:00
|
|
|
{#if showEventList}
|
|
|
|
<EventList />
|
|
|
|
{/if}
|
|
|
|
|