Compare commits

...

5 Commits

Author SHA1 Message Date
Spythere 4a4304d65f Merge pull request #61 - Wersja 1.18.2
Wersja 1.18.2
2023-11-04 17:03:51 +01:00
Spythere edad5306f2 bump: 1.18.2 2023-11-04 17:01:01 +01:00
Spythere 5b775dfec9 fix: filtry RJ 2023-11-04 17:00:50 +01:00
Spythere a485652ca5 Merge pull request #60 (hotfix)
hotfix: maksymalny timeout dyżurnych (1.18.1)
2023-11-02 22:44:48 +01:00
Spythere ed308246d7 hotfix: maksymalny timeout dyżurnych 2023-11-02 22:42:28 +01:00
3 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "stacjownik", "name": "stacjownik",
"version": "1.18.1", "version": "1.18.2",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+6 -14
View File
@@ -53,28 +53,20 @@ export const sortStations = (
case 'timetableConfirmed': case 'timetableConfirmed':
diff = diff =
(a.onlineInfo?.scheduledTrains (a.onlineInfo?.scheduledTrainCount.confirmed ?? -1) -
? a.onlineInfo.scheduledTrains.filter((train) => train.stopInfo.confirmed).length (b.onlineInfo?.scheduledTrainCount.confirmed ?? -1);
: -1) -
(b.onlineInfo?.scheduledTrains
? b.onlineInfo.scheduledTrains.filter((train) => train.stopInfo.confirmed).length
: -1);
break; break;
case 'timetableUnconfirmed': case 'timetableUnconfirmed':
diff = diff =
(a.onlineInfo?.scheduledTrains (a.onlineInfo?.scheduledTrainCount.unconfirmed ?? -1) -
? a.onlineInfo.scheduledTrains.filter((train) => !train.stopInfo.confirmed).length (b.onlineInfo?.scheduledTrainCount.unconfirmed ?? -1);
: -1) -
(b.onlineInfo?.scheduledTrains
? b.onlineInfo.scheduledTrains.filter((train) => !train.stopInfo.confirmed).length
: -1);
break; break;
case 'timetableAll': case 'timetableAll':
diff = diff =
(a.onlineInfo?.scheduledTrains ? a.onlineInfo.scheduledTrains.length : -1) - (a.onlineInfo?.scheduledTrainCount.all ?? -1) -
(b.onlineInfo?.scheduledTrains ? b.onlineInfo.scheduledTrains.length : -1); (b.onlineInfo?.scheduledTrainCount.all ?? -1);
break; break;
default: default:
+3
View File
@@ -135,6 +135,9 @@ export const useStore = defineStore('store', {
.reduce((list, apiStation) => { .reduce((list, apiStation) => {
if (apiStation.region != state.region.id) return list; if (apiStation.region != state.region.id) return list;
if (apiStation.isOnline !== 1 && Date.now() - apiStation.lastSeen > 1000 * 60 * 3)
return list;
const dispatcherStatus = getDispatcherStatus(state as StoreState, apiStation); const dispatcherStatus = getDispatcherStatus(state as StoreState, apiStation);
if (dispatcherStatus.statusID == DispatcherStatusID.Unknown) return list; if (dispatcherStatus.statusID == DispatcherStatusID.Unknown) return list;