mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
chore: added station filters (scenery types); pwa adjustments
This commit is contained in:
@@ -30,12 +30,6 @@ const filterInitStates: Filter = {
|
||||
mieszana: false,
|
||||
SBL: false,
|
||||
PBL: false,
|
||||
minLevel: 0,
|
||||
maxLevel: 20,
|
||||
minOneWayCatenary: 0,
|
||||
minOneWay: 0,
|
||||
minTwoWayCatenary: 0,
|
||||
minTwoWay: 0,
|
||||
'include-selected': false,
|
||||
'no-1track': false,
|
||||
'no-2track': false,
|
||||
@@ -52,10 +46,20 @@ const filterInitStates: Filter = {
|
||||
unsignedStatus: false,
|
||||
withActiveTimetables: false,
|
||||
withoutActiveTimetables: false,
|
||||
|
||||
junction: false,
|
||||
nonJunction: false,
|
||||
|
||||
maxVmax: 200,
|
||||
minVmax: 0,
|
||||
authors: '',
|
||||
onlineFromHours: 0
|
||||
onlineFromHours: 0,
|
||||
minLevel: 0,
|
||||
maxLevel: 20,
|
||||
minOneWayCatenary: 0,
|
||||
minOneWay: 0,
|
||||
minTwoWayCatenary: 0,
|
||||
minTwoWay: 0
|
||||
};
|
||||
|
||||
export const useStationFiltersStore = defineStore('stationFiltersStore', {
|
||||
|
||||
@@ -9,12 +9,6 @@ import {
|
||||
ScenerySpawnType
|
||||
} from '../typings/common';
|
||||
|
||||
export function getLocoURL(locoType: string): string {
|
||||
return `https://rj.td2.info.pl/dist/img/thumbnails/${
|
||||
locoType.includes('EN') ? locoType + 'rb' : locoType
|
||||
}.png`;
|
||||
}
|
||||
|
||||
export function getStatusTimestamp(stationStatus: any): number {
|
||||
if (!stationStatus) return -2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user