diff --git a/src/routes/timetables/[line]/+page.svelte b/src/routes/timetables/[line]/+page.svelte index bf7f3ee..de516b7 100644 --- a/src/routes/timetables/[line]/+page.svelte +++ b/src/routes/timetables/[line]/+page.svelte @@ -1,5 +1,7 @@ + +{#if content === '*'} + + + +{:else if content === '^'} + + + + +{:else if content === 'v'} + + + + +{:else if content === 'o\\'} + + + +{:else if content === 'o/'} + + + +{:else if content === '\\o'} + + + +{:else if content === '/o'} + + + +{:else if content === '\\.'} + + + +{:else if content === '/.'} + + + +{:else if content === '.\\'} + + + +{:else if content === './'} + + + +{/if} + +{#if ['↑', '↓'].includes(content)} + {content} +{/if} + + diff --git a/src/routes/timetables/[line]/LineMapLabel.svelte b/src/routes/timetables/[line]/LineMapLabel.svelte new file mode 100644 index 0000000..e7dc0a9 --- /dev/null +++ b/src/routes/timetables/[line]/LineMapLabel.svelte @@ -0,0 +1,38 @@ + + + + {displayName} + {#if lineConnections} +
+ {#each lineConnections as line} + {line} + {/each} +
+ {/if} +
+ + diff --git a/static/schemas/line-maps/line-maps.d.ts b/static/schemas/line-maps/line-maps.d.ts index 75148e0..3e05011 100644 --- a/static/schemas/line-maps/line-maps.d.ts +++ b/static/schemas/line-maps/line-maps.d.ts @@ -1,15 +1,3 @@ -type StopSlug = string; - -type Stop = { - '#': number; - monitoringRefs: string[]; - isTerminus: boolean; - displayName: string; - prevStops: string[]; - nextStops: string[]; - lineConnections: Array<{ line: string; slugName: string }>; -}; - export type LineMap = Array<{ drawing: string[]; isTerminus?: true;