mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
hotfix: brak komentarzy dla ostatniej stacji w RJ
This commit is contained in:
@@ -30,19 +30,12 @@
|
|||||||
<StopLabel :stop="stop" />
|
<StopLabel :stop="stop" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="stop_line" v-if="i < scheduleStops.length - 1">
|
<div class="stop_line">
|
||||||
<!-- Grid placeholder -->
|
<!-- Grid placeholder -->
|
||||||
<div>
|
<div></div>
|
||||||
<!-- <div class="speed-departure" v-if="stop.currentDepartureRoute">
|
|
||||||
{{ stop.currentDepartureRoute.routeSpeed }}
|
|
||||||
</div>
|
|
||||||
<div class="speed-next-arrival" v-if="stop.nextArrivalRoute">
|
|
||||||
{{ stop.nextArrivalRoute.routeSpeed }}
|
|
||||||
</div> -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div class="line line_connection"></div>
|
<div class="line line_connection" v-if="i < scheduleStops.length - 1"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bottom-line-info">
|
<div class="bottom-line-info">
|
||||||
@@ -121,13 +114,6 @@ export interface TrainScheduleStop {
|
|||||||
sceneryHash: string;
|
sceneryHash: string;
|
||||||
distance: number;
|
distance: number;
|
||||||
|
|
||||||
// arrivalTrackCount: number;
|
|
||||||
// departureTrackCount: number;
|
|
||||||
|
|
||||||
// currentArrivalRoute?: StationRoutesInfo;
|
|
||||||
// currentDepartureRoute?: StationRoutesInfo;
|
|
||||||
// nextArrivalRoute?: StationRoutesInfo;
|
|
||||||
|
|
||||||
arrivalLine: string | null;
|
arrivalLine: string | null;
|
||||||
departureLine: string | null;
|
departureLine: string | null;
|
||||||
|
|
||||||
@@ -157,8 +143,6 @@ export default defineComponent({
|
|||||||
computed: {
|
computed: {
|
||||||
scheduleStops(): TrainScheduleStop[] {
|
scheduleStops(): TrainScheduleStop[] {
|
||||||
let currentSceneryIndex = 0;
|
let currentSceneryIndex = 0;
|
||||||
// let lastDepartureTrackCount = 2;
|
|
||||||
// let lastArrivalTrackCount = 2;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
this.train.timetableData?.followingStops.map((stop, i, arr) => {
|
this.train.timetableData?.followingStops.map((stop, i, arr) => {
|
||||||
@@ -170,33 +154,6 @@ export default defineComponent({
|
|||||||
)
|
)
|
||||||
currentSceneryIndex++;
|
currentSceneryIndex++;
|
||||||
|
|
||||||
// const sceneryInfo = this.apiStore.sceneryData.find(
|
|
||||||
// (sd) =>
|
|
||||||
// sd.name.toLocaleLowerCase() ==
|
|
||||||
// this.timetableSceneryNames[currentSceneryIndex].toLocaleLowerCase()
|
|
||||||
// );
|
|
||||||
|
|
||||||
// const nextSceneryInfo = this.apiStore.sceneryData.find(
|
|
||||||
// (sd) =>
|
|
||||||
// sd.name.toLocaleLowerCase() ==
|
|
||||||
// this.timetableSceneryNames[currentSceneryIndex + 1]?.toLocaleLowerCase()
|
|
||||||
// );
|
|
||||||
|
|
||||||
// const currentDepartureRoute = sceneryInfo?.routesInfo.find(
|
|
||||||
// (r) => r.routeName == stop.departureLine
|
|
||||||
// );
|
|
||||||
|
|
||||||
// const currentArrivalRoute = sceneryInfo?.routesInfo.find(
|
|
||||||
// (r) => r.routeName == stop.arrivalLine
|
|
||||||
// );
|
|
||||||
|
|
||||||
// const nextArrivalRoute = nextSceneryInfo?.routesInfo.find(
|
|
||||||
// (r) => r.routeName == arr[i + 1]?.arrivalLine
|
|
||||||
// );
|
|
||||||
|
|
||||||
// lastDepartureTrackCount = currentDepartureRoute?.routeTracks ?? lastDepartureTrackCount;
|
|
||||||
// lastArrivalTrackCount = currentArrivalRoute?.routeTracks ?? lastArrivalTrackCount;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
nameHtml: stop.stopName,
|
nameHtml: stop.stopName,
|
||||||
nameRaw: stop.stopNameRAW,
|
nameRaw: stop.stopNameRAW,
|
||||||
@@ -217,16 +174,6 @@ export default defineComponent({
|
|||||||
arrivalLine: stop.arrivalLine,
|
arrivalLine: stop.arrivalLine,
|
||||||
departureLine: stop.departureLine,
|
departureLine: stop.departureLine,
|
||||||
|
|
||||||
// arrivalSpeed: nextArrivalRoute?.routeSpeed ?? null,
|
|
||||||
// departureSpeed: currentDepartureRoute?.routeSpeed ?? null,
|
|
||||||
|
|
||||||
// arrivalTrackCount: currentArrivalRoute?.routeTracks ?? lastArrivalTrackCount,
|
|
||||||
// departureTrackCount: currentDepartureRoute?.routeTracks ?? lastDepartureTrackCount,
|
|
||||||
|
|
||||||
// currentArrivalRoute,
|
|
||||||
// currentDepartureRoute,
|
|
||||||
// nextArrivalRoute,
|
|
||||||
|
|
||||||
type: stop.stopType,
|
type: stop.stopType,
|
||||||
distance: stop.stopDistance,
|
distance: stop.stopDistance,
|
||||||
isActive: this.activeMinorStops.includes(i),
|
isActive: this.activeMinorStops.includes(i),
|
||||||
|
|||||||
@@ -9380,7 +9380,7 @@
|
|||||||
"stopType": "",
|
"stopType": "",
|
||||||
"stopDistance": 123.62,
|
"stopDistance": 123.62,
|
||||||
"pointId": "1663532077406",
|
"pointId": "1663532077406",
|
||||||
"comments": "test123",
|
"comments": "test121",
|
||||||
"mainStop": true,
|
"mainStop": true,
|
||||||
"arrivalLine": "Sk",
|
"arrivalLine": "Sk",
|
||||||
"arrivalTimestamp": 1701889320000,
|
"arrivalTimestamp": 1701889320000,
|
||||||
|
|||||||
Reference in New Issue
Block a user