mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Przystosowanie kodu pod uaktualniony JSON z danymi
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -41,7 +41,6 @@ export default interface Station {
|
||||
scheduledTrains: ScheduledTrain[];
|
||||
}[];
|
||||
|
||||
stops: string[] | null;
|
||||
|
||||
online: boolean;
|
||||
statusTimestamp: number;
|
||||
|
||||
+4
-5
@@ -264,12 +264,11 @@ export const store = createStore<State>({
|
||||
noCatenary: station[13] as number
|
||||
}
|
||||
},
|
||||
checkpoints: station[14] ? (station[14] as string[]).map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
|
||||
stops: station[15] as string[],
|
||||
checkpoints: station[14] ? (station[14] as string).split(";").map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
|
||||
|
||||
default: station[16] as boolean,
|
||||
nonPublic: station[17] as boolean,
|
||||
unavailable: station[18] as boolean,
|
||||
default: station[15] as boolean,
|
||||
nonPublic: station[16] as boolean,
|
||||
unavailable: station[17] as boolean,
|
||||
|
||||
stationHash: "",
|
||||
maxUsers: 0,
|
||||
|
||||
Reference in New Issue
Block a user