From eac9d2bff7fce711207fbd9d21880acf97133492 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 14 Aug 2023 22:00:26 +0100 Subject: [PATCH] Preparatory work for update StaffLdb API Response --- src/lib/ldb/staff/staff-ldb-dev.svelte | 133 ++++++++++++++++++ .../staff/table/table-generator_dev.svelte | 3 +- 2 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 src/lib/ldb/staff/staff-ldb-dev.svelte diff --git a/src/lib/ldb/staff/staff-ldb-dev.svelte b/src/lib/ldb/staff/staff-ldb-dev.svelte new file mode 100644 index 0000000..f88c046 --- /dev/null +++ b/src/lib/ldb/staff/staff-ldb-dev.svelte @@ -0,0 +1,133 @@ + + +{#key detail} + {#if detail.show} + + {/if} +{/key} + +{#if isLoading} + +{:else if isErr} + +

{errMsg}

+
+{:else} + {#if alerts.length} + + {/if} +

Data from: {dataAge.toLocaleString([])}

+ {#if trainServices && trainServices.length} + + {:else} +

There are no scheduled train services in the next two hours

+ {/if} + {#if busServices && busServices.length} + +
+ Bus Services + + {/if} + {#if ferryServices && ferryServices.length} + +
+ Ferry Services + + {/if} +{/if} + + diff --git a/src/lib/ldb/staff/table/table-generator_dev.svelte b/src/lib/ldb/staff/table/table-generator_dev.svelte index 4c276a6..70dc656 100644 --- a/src/lib/ldb/staff/table/table-generator_dev.svelte +++ b/src/lib/ldb/staff/table/table-generator_dev.svelte @@ -2,8 +2,7 @@ import Reason from '$lib/raw-fetchers/reason.svelte'; import { tocs as tocMap } from '$lib/stores/tocMap'; - import type { StaffLdb, NrccMessage, TrainServices, - ServiceLocation } from '@owlboard/ts-types'; + import type { TrainServices, ServiceLocation } from '@owlboard/ts-types'; export let services; export let click;