mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
hotfix: parsing stops
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="overflow-auto text-center font-bold text-zinc-400 p-1 min-h-full" v-else>
|
||||
<div v-if="globalStore.viewMode == 'active'">
|
||||
<div>{{$t('train-select-info')}}</div>
|
||||
<div>{{ $t('train-select-info') }}</div>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
@@ -83,7 +83,7 @@ const computedTimetableRows = computed(() => {
|
||||
abbrevs = getAbbrevs(currentPath.departureLineData);
|
||||
}
|
||||
|
||||
// console.debug('=========== ' + this.selectedTrain.trainNo + ' ===========');
|
||||
// console.debug('=========== ' + timetableData.trainNo + ' ===========');
|
||||
|
||||
const stopList = parseStopListString(timetableData.stopListString);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ export const useGlobalStore = defineStore('global', {
|
||||
trainMaxSpeed: selectedTrain.timetable.trainMaxSpeed,
|
||||
timetableId: selectedTrain.timetable.timetableId,
|
||||
stopListString: selectedTrain.timetable.stopList
|
||||
.filter((stop) => stop.mainStop || (/^podg|po|pe$/.test(stop.stopNameRAW) && !/^sbl/i.test(stop.stopNameRAW)))
|
||||
.filter((stop) => stop.mainStop || (/^podg|po|pe$/.test(stop.stopNameRAW)))
|
||||
.map(
|
||||
(stop) =>
|
||||
`${stop.arrivalLine ?? ''};${stop.arrivalTimestamp};${stop.stopNameRAW};${stop.stopTime ? stop.stopTime + '_' + stop.stopType : ''};${
|
||||
|
||||
Reference in New Issue
Block a user