mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 22:08:12 +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[];
|
scheduledTrains: ScheduledTrain[];
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
stops: string[] | null;
|
|
||||||
|
|
||||||
online: boolean;
|
online: boolean;
|
||||||
statusTimestamp: number;
|
statusTimestamp: number;
|
||||||
|
|||||||
+4
-5
@@ -264,12 +264,11 @@ export const store = createStore<State>({
|
|||||||
noCatenary: station[13] as number
|
noCatenary: station[13] as number
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkpoints: station[14] ? (station[14] as string[]).map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
|
checkpoints: station[14] ? (station[14] as string).split(";").map(sub => ({ checkpointName: sub, scheduledTrains: [] })) : [],
|
||||||
stops: station[15] as string[],
|
|
||||||
|
|
||||||
default: station[16] as boolean,
|
default: station[15] as boolean,
|
||||||
nonPublic: station[17] as boolean,
|
nonPublic: station[16] as boolean,
|
||||||
unavailable: station[18] as boolean,
|
unavailable: station[17] as boolean,
|
||||||
|
|
||||||
stationHash: "",
|
stationHash: "",
|
||||||
maxUsers: 0,
|
maxUsers: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user