mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: omitting "po" stops in timetable progress bar
This commit is contained in:
@@ -414,7 +414,7 @@ export default defineComponent({
|
|||||||
$rowCol: #424242;
|
$rowCol: #424242;
|
||||||
|
|
||||||
.station_table {
|
.station_table {
|
||||||
height: 85vh;
|
height: 90vh;
|
||||||
max-height: 2000px;
|
max-height: 2000px;
|
||||||
min-height: 700px;
|
min-height: 700px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<span
|
<span
|
||||||
class="stop-label"
|
class="stop-label"
|
||||||
:data-minor="stop.isSBL || (stop.nameRaw.endsWith(', po.') && !stop.duration)"
|
:data-minor="stop.isSBL || (stop.nameRaw.endsWith(', po') && !stop.duration)"
|
||||||
>
|
>
|
||||||
<router-link :to="`/scenery?station=${stop.sceneryName}`" @click="closeModal">
|
<router-link :to="`/scenery?station=${stop.sceneryName}`" @click="closeModal">
|
||||||
<span class="name" v-html="stop.nameHtml"></span>
|
<span class="name" v-html="stop.nameHtml"></span>
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ export default defineComponent({
|
|||||||
i < this.train.timetableData!.followingStops.length;
|
i < this.train.timetableData!.followingStops.length;
|
||||||
i++
|
i++
|
||||||
) {
|
) {
|
||||||
if (/po\.|sbl/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
if (/(, po|sbl|, pe)/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
||||||
activeMinorStopList.push(i);
|
activeMinorStopList.push(i);
|
||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,13 +80,13 @@ export default defineComponent({
|
|||||||
|
|
||||||
return stops
|
return stops
|
||||||
.reduce((acc: string[], stop: TrainStop, i: number) => {
|
.reduce((acc: string[], stop: TrainStop, i: number) => {
|
||||||
if (stop.stopType.includes('ph') && !stop.stopNameRAW.includes('po.'))
|
if (stop.stopType.includes('ph') && !stop.stopNameRAW.includes(', po'))
|
||||||
acc.push(
|
acc.push(
|
||||||
`<strong style='color:${stop.confirmed ? 'springgreen' : 'white'}'>${
|
`<strong style='color:${stop.confirmed ? 'springgreen' : 'white'}'>${
|
||||||
stop.stopName
|
stop.stopName
|
||||||
}</strong>`
|
}</strong>`
|
||||||
);
|
);
|
||||||
else if (i > 0 && i < stops.length - 1 && !/po\.|sbl/gi.test(stop.stopNameRAW))
|
else if (i > 0 && i < stops.length - 1 && !/(, po|sbl)/gi.test(stop.stopNameRAW))
|
||||||
acc.push(
|
acc.push(
|
||||||
`<span style='color:${stop.confirmed ? 'springgreen' : 'lightgray'}'>${
|
`<span style='color:${stop.confirmed ? 'springgreen' : 'lightgray'}'>${
|
||||||
stop.stopName
|
stop.stopName
|
||||||
|
|||||||
Reference in New Issue
Block a user