Compare commits

..

3 Commits

Author SHA1 Message Date
Spythere b746843086 Merge pull request #115 from Spythere/development
v1.28.4
2024-11-15 19:00:00 +01:00
Spythere cbbd06fecd bump: v1.28.4 2024-11-15 18:52:21 +01:00
Spythere 11e99b6af0 hotfix: stations sorting by 'no limit' 2024-11-15 18:51:34 +01:00
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "stacjownik",
"version": "1.28.3",
"version": "1.28.4",
"private": true,
"type": "module",
"scripts": {
+5 -1
View File
@@ -216,16 +216,20 @@ export const useMainStore = defineStore('mainStore', {
return acc;
}, [] as ActiveScenery[]);
const referenceTimestamp = Date.now();
const onlineActiveSceneries = apiStore.activeData?.activeSceneries.reduce((list, scenery) => {
if (scenery.isOnline !== 1 && Date.now() - scenery.lastSeen > 1000 * 60 * 2) return list;
if (scenery.dispatcherStatus == Status.ActiveDispatcher.UNKNOWN) return list;
const dispatcherTimestamp =
scenery.dispatcherStatus == Status.ActiveDispatcher.NO_LIMIT
? Date.now() + 25500000
? referenceTimestamp + 25500000
: scenery.dispatcherStatus > 5
? scenery.dispatcherStatus
: null;
list.push({
name: scenery.stationName,