From ed3dd387697b2ce20fae24ce5afadef27844ff03 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 16 Jun 2023 22:55:18 +0100 Subject: [PATCH] Componentisation of LDB --- src/lib/ldb/public-ldb.svelte | 60 +++++++++++++++++++++++++++++++++++ src/routes/ldb/+page.svelte | 41 +++++++----------------- 2 files changed, 71 insertions(+), 30 deletions(-) create mode 100644 src/lib/ldb/public-ldb.svelte diff --git a/src/lib/ldb/public-ldb.svelte b/src/lib/ldb/public-ldb.svelte new file mode 100644 index 0000000..02e374d --- /dev/null +++ b/src/lib/ldb/public-ldb.svelte @@ -0,0 +1,60 @@ + + +

{requestedStation.toUpperCase()}

+ +

+ {#each services as service} + {service.origin?.location?.locationName || 'Unknown'} + {/each} +

+ + + + + + + + + + + + {#each services as service} + + + + + + {/each} +
FromToPlat.Sch Arr.Exp Arr.Sch Dep.Exp Dep.
{service.origin?.location?.locationName || ''}{service.destination?.location?.locationName || ''}{service.platform || ''}
+ + \ No newline at end of file diff --git a/src/routes/ldb/+page.svelte b/src/routes/ldb/+page.svelte index 14536d2..9d5e13f 100644 --- a/src/routes/ldb/+page.svelte +++ b/src/routes/ldb/+page.svelte @@ -1,44 +1,25 @@
-

Station:

-

-{#each services as service} - {service.origin?.location?.locationName || 'Unknown'} -{/each} -

-

{JSON.stringify(jsonData)}

+ + - -