From 58a7b633dc077390e3698ffcf52c00a03600e784 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 12 Mar 2026 20:16:48 +0000 Subject: [PATCH] Fix platform definitions --- src/lib/components/StationInfo.svelte | 30 ++++++++----- static/mapFiles/yaml/0210.yaml | 1 + static/mapFiles/yaml/0260.yaml | 1 + static/stations/amt.yaml | 2 +- static/stations/nby.yaml | 2 +- static/stations/nrc.yaml | 28 ++++++++++++ static/stations/rdw.yaml | 47 ++++++++++++++++++++ static/stations/tha.yaml | 2 +- static/stations/wsb.yaml | 64 +++++++++++++++++++++++++++ 9 files changed, 162 insertions(+), 15 deletions(-) create mode 100644 static/stations/rdw.yaml create mode 100644 static/stations/wsb.yaml diff --git a/src/lib/components/StationInfo.svelte b/src/lib/components/StationInfo.svelte index 1cce787..75b6534 100644 --- a/src/lib/components/StationInfo.svelte +++ b/src/lib/components/StationInfo.svelte @@ -6,7 +6,7 @@ import { fade, fly } from 'svelte/transition'; import { quintOut } from 'svelte/easing'; - import { IconDisabled, IconUserCheck, IconTrafficLights } from '@tabler/icons-svelte'; + import { IconDisabled, IconDisabledOff, IconUserCheck, IconTrafficLights } from '@tabler/icons-svelte'; let { crs, onclose }: { crs: string; onclose: () => void } = $props(); @@ -41,13 +41,13 @@ console.error(err); }); } else { - error = `Station ${crs} not found in database`; + error = `Station ${crs.toUpperCase()} not found in database`; } }); function parsePlatform(id: string) { id = String(id || ''); - const match = id.match(/^(.*?)(Up|Dn)$/); + const match = id.match(/^(.*?)(Up|Dn|BiDi)$/); if (match) { return { plat: match[1], direction: match[2] }; } @@ -79,7 +79,7 @@ e.target === dialogRef && onclose()}> {#if stationData || error} -