4 Commits

15 changed files with 1056 additions and 453 deletions

954
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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 @@
<dialog bind:this={dialogRef} {onclose} onclick={(e) => e.target === dialogRef && onclose()}>
{#if stationData || error}
<div class="modal-wrapper" in:fly={{ y: 20, duration: 400, easing: quintOut }}>
<div class="modal-wrapper">
<header>
<div class="title-group">
<span class="crs-badge">{crs.toUpperCase()}</span>
@@ -105,11 +105,14 @@
</div>
<span class="length-tag">{platform.platformLength}m</span>
<div class="platform-meta">
{#if platform.stepFree}
<span class="icon-tag" title="Step-free access"
><IconDisabled color="#2563eb" /></span
>
{#if platform.stepFree}
<IconDisabled color="#2563eb" />
{:else}
<IconDisabledOff color="#2563eb55" />
{/if}
</span>
{#if platform.dispatch}
<span class="icon-tag" title="Dispatch staff present"
><IconUserCheck color="#ea580c" /></span
@@ -169,6 +172,7 @@
max-height: 80vh;
display: flex;
flex-direction: column;
font-family: 'urwgothic', sans-serif;
}
dialog::backdrop {
@@ -212,7 +216,7 @@
h2 {
margin: 0;
font-size: 1.1rem;
font-size: 1.4rem;
color: var(--color-title);
}
@@ -311,9 +315,11 @@
.length-tag {
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 0.85rem;
font-weight: 800;
background: var(--color-bg-light);
color: var(--color-title);
padding: 0.25rem 0.6rem;
margin: 0.25rem 0.05rem;
border-radius: 4px;
border: 1px solid #e2e8f0;
}
@@ -343,11 +349,11 @@
}
.door-pattern-kind {
font-size: 0.7rem;
font-size: 0.82rem;
font-weight: 800;
color: #101316;
text-transform: uppercase;
letter-spacing: 0.05em;
letter-spacing: 0.12em;
}
.coach-row {
@@ -368,7 +374,7 @@
height: 20px;
background: var(--color-accent-light);
color: #f8fafc;
font-size: 0.65rem;
font-size: 1rem;
font-weight: 700;
display: flex;
align-items: center;

View File

@@ -154,7 +154,9 @@ routeDetail:
- type: junction
name: Didcot East Jn
description: Up/Dn Didcot Avoiding to Oxforc
description: Up/Dn Didcot Avoiding to Oxford
goto: '0220'
entryPoint: didcot-north-jn
diverges: left
direction: down
elecBranch: none
@@ -172,6 +174,8 @@ routeDetail:
diverges: left
direction: down
description: Up/Dn Oxford to Oxford, Up relief ends
goto: '0220'
entryPoint: chester-line-jn
miles: 53
chains: 12
@@ -185,6 +189,8 @@ routeDetail:
- type: junction
name: Foxhall Jn
diverges: left
goto: '0220'
entryPoint: didcot-west-curve-jn
description: Up/Dn Didcot West Curve to Oxford
direction: up
miles: 53

View File

@@ -44,6 +44,7 @@ routeDetail:
- type: station
name: Reading West
crs: rdw
miles: 36
chains: 75

View File

@@ -0,0 +1,187 @@
routeStart: Chester Line Jn
routeEnd: Oxford Station North Jn
routeId: '0220'
updated: 2026-07-01
checked: 2026-07-01
signallerStart: TVSC Didcot WS
signallerEnd: TVSC Oxford WS
elecStart:
elec: 25kvac
eco: Didcot (TVSC)
elecEnd:
elec: none
routeDetail:
- type: continues
routeName: Reading - Bristol TM
routeId: '0002'
entryPoint: chester-line-jn
- type: junction
miles: 54
chains: 20
name: Chester Line Jn
goto: '0002'
entryPoint: chester-line-jn
description: to Foxhall Jn & Swindon
- type: siteof
name: ""
description: Only Dn Oxford electrified
miles: 54
chains: 40
- type: electrificationChange
miles: 53
chains: 42
from:
elec: 25kvac
eco: Didcot (TVSC)
to:
elec: none
- type: junction
miles: 53
chains: 51
name: Didcot West Curve Jn
description: Up & Dn Didcot West Curve to Foxhall Jn
goto: '0002'
entryPoint: foxhall-jn
diverges: right
direction: up
- type: junction
miles: 54
chains: 0
name: Didcot North Jn
description: Up & Dn Didcot Avoiding to Didcot East Jn
goto: '0002'
entryPoint: didcot-east-jn
diverges: left
direction: up
- type: crossing
kind: CCTV
name: Appleford LC
description: CCTV by TVSC Level Crossings WS
miles: 54
chains: 53
- type: junction
name: Appleford Junction
description: to Appleford Sidings
miles: 54
chains: 54
diverges: right
direction: down
- type: station
name: Appleford
miles: 55
chains: 16
crs: apf
- type: bridge
name: Appleford Viaduct
miles: 55
chains: 43
position: under
description: River Thames
category: waterway
- type: signallerChange
from: TVSC Didcot WS
to: TVSC Oxford WS
miles: 55
chains: 50
- type: station
name: Culham
crs: cum
miles: 56
chains: 17
- type: crossing
kind: foot
name: Nuneham Crossing
miles: 56
chains: 72
- type: bridge
name: Nuneham Viaduct
position: under
category: waterway
description: River Thames
miles: 57
chains: 29
- type: station
name: Radley
miles: 58
chains: 35
crs: rad
- type: crossing
kind: uwc
name: Manor Farm LC
miles: 60
chains: 49
- type: crossing
kind: uwc
name: Kennington LC
miles: 61
chains: 4
- type: junction
name: Kennington Jn
miles: 61
chains: 6
diverges: left
direction: up
description: Up/Dn Cowley to Morris Cowley
- type: loop
name: Up & Dn Kennington Goods Loops
position: both
miles: 61
chains: 23
- type: junction
name: Hinksey South
diverges: right
direction: down
miles: 61
chains: 52
description: to Hinksey Yard
- type: siteof
name: Hinskey Yard
miles: 62
chains: 09
- type: junction
name: Hinksey North
diverges: right
direction: up
description: to Hinksey Yard, Up Oxford Relief commences
miles: 62
chains: 64
- type: crossovers
name: Oxford Station South Jn
miles: 63
chains: 28
- type: station
name: Oxford
crs: oxf
miles: 63
chains: 41
- type: junction
name: Oxford Station North Jn
direction: down
diverges: both
description: to Oxford Down & Oxford Up Sidings
miles: 63
chains: 56

View File

@@ -233,6 +233,7 @@ routeDetail:
- type: station
name: Westbury
crs: wsb
miles: 109
chains: 64

View File

@@ -19,7 +19,7 @@ platforms:
max-car: 5
- platformId: 2Dn
platformLength: 115
signal: false
signal: true
dispatch: false
stepFree: true
doorPattern:

61
static/stations/apf.yaml Normal file
View File

@@ -0,0 +1,61 @@
name: Appleford
crs: apf
updated: 2026-07-01
checked: 2026-07-01
platforms:
- platformId: 1Up
platformLength: 76
signal: false
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 5
- platformId: 2Dn
platformLength: 76
signal: false
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 5
- platformId: 1Dn
platformLength: 76
signal: false
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 5
- platformId: 2Up
platformLength: 76
signal: false
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 5

61
static/stations/cum.yaml Normal file
View File

@@ -0,0 +1,61 @@
name: Culham
crs: cum
updated: 2026-07-01
checked: 2026-07-01
platforms:
- platformId: 1Up
platformLength: 117
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [4, 6]
- kind: IET9
doors: [4, 6]
- kind: IET10
doors: [4, 6]
- kind: DMU
max-car: 5
- platformId: 2Dn
platformLength: 77
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 3
- platformId: 1Dn
platformLength: 117
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 4]
- kind: IET9
doors: [1, 4]
- kind: IET10
doors: [1, 4]
- kind: DMU
max-car: 5
- platformId: 2Up
platformLength: 77
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 3

View File

@@ -67,7 +67,7 @@ platforms:
platformLength: 129
signal: true
dispatch: true
dispatchNote: Staffed 06:00-21:00
dispatchNote: No more than 5-car IET permitted
stepFree: true
doorPattern:
- kind: IET5

View File

@@ -3,6 +3,20 @@ crs: nrc
updated: 2026-03-11
checked: 2026-03-11
platforms:
- platformId: 1Up
platformLength: 89
signal: true
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 6]
- kind: IET9
doors: [1, 6]
- kind: IET10
doors: [1, 6]
- kind: DMU
max-car: 4
- platformId: 1Dn
platformLength: 89
signal: false
@@ -31,6 +45,20 @@ platforms:
doors: [4, 9]
- kind: DMU
max-car: 4
- platformId: 2Dn
platformLength: 74
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [4, 9]
- kind: IET9
doors: [4, 9]
- kind: IET10
doors: [4, 9]
- kind: DMU
max-car: 4
- platformId: 3Up
platformLength: 225
signal: true

61
static/stations/rad.yaml Normal file
View File

@@ -0,0 +1,61 @@
name: Radley
crs: rad
updated: 2026-07-01
checked: 2026-07-01
platforms:
- platformId: 1Up
platformLength: 158
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 11]
- kind: IET10
doors: [1, 11]
- kind: DMU
max-car: 6
- platformId: 2Dn
platformLength: 158
signal: false
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 11]
- kind: IET10
doors: [1, 11]
- kind: DMU
max-car: 6
- platformId: 1Dn
platformLength: 158
signal: true
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 11]
- kind: IET10
doors: [1, 11]
- kind: DMU
max-car: 6
- platformId: 2Up
platformLength: 158
signal: true
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 11]
- kind: IET10
doors: [1, 11]
- kind: DMU
max-car: 6

47
static/stations/rdw.yaml Normal file
View File

@@ -0,0 +1,47 @@
name: Reading West
crs: rdw
updated: 2026-03-12
checked: 2026-03-12
platforms:
- platformId: 1Dn
platformLength: 278
signal: false
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 18]
- kind: IET10
doors: [1, 20]
- kind: DMU
max-car: 12
- platformId: 1Up
platformLength: 278
signal: true
dispatch: false
stepFree: true
doorPattern:
- kind: IET5
doors: [1,10]
- kind: IET9
doors: [1,18]
- kind: IET10
doors: [1,20]
- kind: DMU
max-car: 12
- platformId: 2Up
platformLength: 158
signal: true
dispatch: false
stepFree: false
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 12]
- kind: IET10
doors: [1, 12]
- kind: DMU
max-car: 6

View File

@@ -19,7 +19,7 @@ platforms:
max-car: 7
- platformId: 2Up
platformLength: 168
signal: false
signal: true
dispatch: false
stepFree: true
doorPattern:

64
static/stations/wsb.yaml Normal file
View File

@@ -0,0 +1,64 @@
name: Westbury
crs: wsb
updated: 2026-03-12
checked: 2026-03-12
platforms:
- platformId: 1Up
platformLength: 224
signal: true
dispatch: true
dispatchNote: No dispatch for trains fewer than 5-car
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 17]
- kind: IET10
doors: [1, 17]
- kind: DMU
max-car: 9
- platformId: 1Dn
platformLength: 224
signal: true
dispatch: true
dispatchNote: No dispatch for trains fewer than 5-car
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [2, 18]
- kind: IET10
doors: [2, 18]
- kind: DMU
max-car: 9
- platformId: 2BiDi
platformLength: 315
signal: true
dispatch: true
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 18]
- kind: IET10
doors: [1, 20]
- kind: DMU
max-car: 13
- platformId: 3BiDi
platformLength: 295
signal: true
dispatch: true
stepFree: true
doorPattern:
- kind: IET5
doors: [1, 10]
- kind: IET9
doors: [1, 18]
- kind: IET10
doors: [1, 20]
- kind: DMU
max-car: 12