Add parsing for StationAlerts, and fetch function for Boards.

This commit is contained in:
2026-05-10 00:15:53 +01:00
parent f3d633e719
commit 909e36ebc2
14 changed files with 979 additions and 623 deletions

View File

@@ -4,12 +4,6 @@
import Button from '$lib/components/ui/Button.svelte';
let { onsearch }: { onsearch: (c: string) => void } = $props();
let codeValue = $state('');
function resetValues(): void {
codeValue = '';
}
</script>
<BaseCard header={'Find by Code'}>
@@ -19,16 +13,13 @@
<Textbox
placeholder={'Code'}
uppercase={true}
type={'number'}
max={9999}
bind:value={codeValue}
type={'text'}
onsubmit={onsearch}
maxLength={4}
inputmode={'numeric'}
/>
</div>
</div>
<div class="button-wrapper">
<Button onclick={() => onsearch(codeValue.toString())}>Search</Button>
<Button onclick={resetValues}>Reset</Button>
</div>
</div>
</BaseCard>
@@ -48,7 +39,7 @@
}
.textbox-item-wrapper {
width: 30%;
width: 60%;
}
.button-wrapper {