-
+
{{ train.speed }}km/h
diff --git a/src/composables/time.ts b/src/composables/time.ts
index edb1eba..0bdbd25 100644
--- a/src/composables/time.ts
+++ b/src/composables/time.ts
@@ -35,3 +35,10 @@ export function dateToLocaleString(date: Date, dateOptions: Intl.DateTimeFormatO
return date.toLocaleString(locale.value == 'pl' ? 'pl-PL' : 'en-GB', dateOptions);
}
+
+export function timestampToTimeString(timestamp: number) {
+ return new Date(timestamp).toLocaleTimeString('pl-PL', {
+ hour: '2-digit',
+ minute: '2-digit'
+ });
+}
diff --git a/src/locales/en.json b/src/locales/en.json
index 65e8495..ed11cc4 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -23,15 +23,6 @@
"bottom-text": "Enjoy!\n~Spythere",
"button-confirm": "Start using the app!"
},
- "migrate-info": {
- "tooltip-content": "Information about migration of\nStacjownik site!",
- "header-text": "Attention!",
- "paragraph-1-html": "Due to the growing interest in Stacjownik and other applications I have made, as of January 1, 2026, Stacjownik will be permanently moved to a new dedicated domain:",
- "paragraph-2-link-text": "https://stacjownik-td2.spythere.eu",
- "paragraph-3-text": "This website will no longer receive future updates and after the New Year it will only redirect to the address above.",
- "paragraph-4-italic-text": "\"Why are you messing this up? It's been fine for so long!\"",
- "paragraph-4-html": "\"Why are you messing this up? It's been fine for so long!\"
The change is mainly caused by the growing website interest and exceeding the free limit plan of the current Google hosting, which forces additional fees for each use of the service above a certain threshold (or otherwise blocks access to it). By moving the site to a dedicated domain (which has already been purchased and is maintained with the financial help of Supporters), I will get rid of unnecessary expenses for a large corporation that can shut down my application at any given time."
- },
"donations": {
"button-title": "TOSS A COIN",
"header": "Toss a coin to Stacjownik!",
@@ -65,7 +56,7 @@
"refresh": "REFRESH"
},
"update": {
- "title": "Stacjownik update!",
+ "title": "Stacjownik has been updated!",
"confirm": "ROGER THAT!",
"no-data": "No data about the latest app update has been found",
"info-1": "This changelog will be available to see once again after clicking the version number in the footer",
@@ -258,7 +249,9 @@
"blockades": "BLOCK SIGNALLING",
"status": "ONLINE STATUS",
"timetables": "ACTIVE TIMETABLES",
- "spawns": "OPEN SPAWNS"
+ "spawns": "OPEN SPAWNS",
+ "externalRoutes": "EXTERNAL ROUTES",
+ "internalRoutes": "INTERNAL ROUTES"
},
"changed-filters-count": "Changed filters:",
"no-changed-filters": "No changed filters",
@@ -302,19 +295,27 @@
"withoutActiveTimetables": "NO ACTIVE",
"junction": "JUNCTIONS",
"nonJunction": "OTHER",
+
+ "oneWay": "OTHER SINGLE TRACK",
+ "oneWayCatenary": "CATENARY SINGLE TRACK",
+ "twoWayCatenary": "CATENARY DOUBLE TRACK",
+ "twoWay": "OTHER DOUBLE TRACK",
+ "oneWayCatenaryInt": "CATENARY SINGLE TRACK",
+ "oneWayInt": "OTHER SINGLE TRACK",
+ "twoWayCatenaryInt": "CATENARY DOUBLE TRACK",
+ "twoWayInt": "OTHER DOUBLE TRACK",
+
"sliders": {
- "minLevel": "MIN. REQUIRED DISPATCHER LEVEL",
- "maxLevel": "MAX. REQUIRED DISPATCHER LEVEL",
- "minVmax": "MIN. SCENERY ROUTE SPEED",
- "maxVmax": "MAX. SCENERY ROUTE SPEED",
- "minOneWayCatenary": "MIN. CATENARY SINGLE TRACK ROUTES",
- "minOneWay": "MIN. OTHER SINGLE TRACK ROUTES",
- "minTwoWayCatenary": "MIN. CATENARY DOUBLE TRACK ROUTES",
- "minTwoWay": "MIN. OTHER DOUBLE TRACK ROUTES",
- "minOneWayCatenaryInt": "MIN. INTERNAL CATENARY SINGLE TRACK ROUTES",
- "minOneWayInt": "MIN. INTERNAL OTHER SINGLE TRACK ROUTES",
- "minTwoWayCatenaryInt": "MIN. INTERNAL CATENARY DOUBLE TRACK ROUTES",
- "minTwoWayInt": "MIN. INTERNAL OTHER DOUBLE TRACK ROUTES"
+ "vMax": "ROUTE SPEED",
+ "level": "REQUIRED DISPATCHER LEVEL",
+ "routeOneWay": "SINGLE TRACK ROUTES (OTHER)",
+ "routeOneWayCatenary": "SINGLE TRACK ROUTES (CATENARY)",
+ "routeTwoWayCatenary": "DOUBLE TRACK ROUTES (CATENARY)",
+ "routeTwoWay": "DOUBLE TRACK ROUTES (OTHER)",
+ "routeOneWayInternalCatenary": "INTERNAL SINGLE TRACK ROUTES (CATENARY)",
+ "routeOneWayInternal": "INTERNAL SINGLE TRACK ROUTES (OTHER)",
+ "routeTwoWayInternalCatenary": "INTERNAL DOUBLE TRACK ROUTES (CATENARY)",
+ "routeTwoWayInternal": "INTERNAL DOUBLE TRACK ROUTES (OTHER)"
},
"sceneries-placeholder": "Search for scenery",
"line-numbers-placeholder": "Line numbers (separated by commas)",
@@ -325,7 +326,6 @@
"now": "NOW",
"hour": "h",
"no-limit": "NO LIMIT",
- "include-selected": "INCLUDE SELECTED",
"save": "REMEMBER FILTERS",
"reset": "RESET FILTERS",
"close": "CLOSE FILTERS"
@@ -558,7 +558,7 @@
"no-users": "NO ACTIVE PLAYERS",
"no-spawns": "NO OPEN SPAWNS",
"no-scenery": "Oops! This scenery doesn't exist!",
- "return-btn": "BACK TO THE LAST SITE",
+ "return-btn": "BACK TO THE MAIN SITE",
"history-btn": "View the dispatcher history",
"info-btn": "Return to the scenery view",
"authors-title": "Scenery author | Scenery authors",
@@ -572,6 +572,8 @@
"option-active-timetables": "Active timetables",
"option-timetables-history": "Timetables history PL1",
"option-dispatchers-history": "Dispatchers history PL1",
+ "btn-show-timetable-thumbnails": "Show rolling stock thumbnails",
+ "btn-hide-timetable-thumbnails": "Hide rolling stock thumbnails",
"timetable-includesScenery": "ALL TIMETABLES",
"timetable-via": "PASSES THROUGH",
"timetable-issuedFrom": "BEGINS HERE",
@@ -583,7 +585,7 @@
"dispatcher-status-changes": "Status changes:",
"req-level": "all dispatcher levels | dispatcher level {lvl} required | dispatcher level {lvl} required",
"history-list-empty": "No recorded scenery history!",
- "forum-topic": "Official {name} forum topic",
+ "forum-topic": "Scenery's forum topic",
"gnr-link": "Train orders generator",
"pragotron-link": "Timetable pallet board",
"tablice-link": "Timetable summary board
(by Thundo)",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index adce89b..7b7190d 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -23,14 +23,6 @@
"bottom-text": "Miłego korzystania\n~Spythere",
"button-confirm": "Zacznij korzystać z aplikacji!"
},
- "migrate-info": {
- "tooltip-content": "Informacja o migracji\nstrony Stacjownika!",
- "header-text": "Uwaga!",
- "paragraph-1-html": "Ze względu na coraz większe zainteresowanie Stacjownikiem oraz innymi aplikacjami mojego autorstwa z dniem 1 stycznia 2026r. Stacjownik zostaje permamentnie przeniesiony na nową dedykowaną domenę:",
- "paragraph-2-link-text": "https://stacjownik-td2.spythere.eu",
- "paragraph-3-text": "Obecna strona nie będzie otrzymywać już przyszłych aktualizacji, a po Nowym Roku będzie jedynie przenosić na powyższy adres.",
- "paragraph-4-html": "\"Po co psujesz? Przecież było dobrze tyle czasu!\"
Zmiana podyktowana jest głównie wzrostem zainteresowania stroną i przekraczaniem darmowego limitu obecnego hostingu Google'a, który wymusza płatność za każde użycie serwisu ponad określoną wartość (lub w przeciwnym wypadku blokuje do niego dostęp). Przenosząc stronę na dedykowaną domenę (która jest już wykupiona i utrzymywana dzięki pomocy Wspierających), pozbędę się niepotrzebnego wydatku dla wielkiej korporacji, która w każdej chwili może mi wyłączyć aplikację."
- },
"donations": {
"button-title": "GROSZA DAJ",
"header": "Grosza daj Stacjownikowi!",
@@ -64,7 +56,7 @@
"refresh": "ODŚWIEŻ"
},
"update": {
- "title": "Aktualizacja Stacjownika!",
+ "title": "Stacjownik został zaktualizowany!",
"confirm": "PRZYJĄŁEM!",
"no-data": "Nie znaleziono informacji o ostatnich zmianach w aplikacji",
"info-1": "Ten changelog będzie zawsze dostępny po kliknięciu numeru wersji w stopce strony",
@@ -255,7 +247,9 @@
"blockades": "BLOKADY LINIOWE",
"status": "STATUS ONLINE",
"timetables": "AKTYWNE ROZKŁADY JAZDY",
- "spawns": "OTWARTE SPAWNY"
+ "spawns": "OTWARTE SPAWNY",
+ "externalRoutes": "SZLAKI ZEWNĘTRZNE",
+ "internalRoutes": "SZLAKI WEWNĘTRZNE"
},
"changed-filters-count": "Zmienione filtry:",
"no-changed-filters": "Brak zmienionych filtrów",
@@ -299,19 +293,27 @@
"withoutActiveTimetables": "BEZ AKTYWNYCH",
"junction": "WĘZŁOWE",
"nonJunction": "INNE",
+
+ "oneWay": "JEDNOTOROWE NIEZELEKTRYFIKOWANE",
+ "oneWayCatenary": "JEDNOTOROWE ZELEKTRYFIKOWANE",
+ "twoWayCatenary": "DWUTOROWE ZELEKTRYFIKOWANE",
+ "twoWay": "DWUTOROWE NIEZELEKTRYFIKOWANE",
+ "oneWayCatenaryInt": "JEDNOTOROWE ZELEKTRYFIKOWANE",
+ "oneWayInt": "JEDNOTOROWE NIEZELEKTRYFIKOWANE",
+ "twoWayCatenaryInt": "DWUTOROWE ZELEKTRYFIKOWANE",
+ "twoWayInt": "DWUTOROWE NIEZELEKTRYFIKOWANE",
+
"sliders": {
- "minLevel": "MIN. WYMAGANY POZIOM DYŻURNEGO",
- "maxLevel": "MAKS. WYMAGANY POZIOM DYŻURNEGO",
- "minVmax": "MIN. PRĘDKOŚĆ SZLAKOWA",
- "maxVmax": "MAKS. PRĘDKOŚĆ SZLAKOWA",
- "minOneWayCatenary": "SZLAKI JEDNOTOROWE ZELEKTR. (MINIMUM)",
- "minOneWay": "SZLAKI JEDNOTOROWE NIEZELEKTR. (MINIMUM)",
- "minTwoWayCatenary": "SZLAKI DWUTOROWE ZELEKTR. (MINIMUM)",
- "minTwoWay": "SZLAKI DWUTOROWE NIEZELEKTR. (MINIMUM)",
- "minOneWayCatenaryInt": "SZLAKI JEDNOTOROWE ZELEKTR. WEWNĘTRZNE (MINIMUM)",
- "minOneWayInt": "SZLAKI JEDNOTOROWE NIEZELEKTR. WEWNĘTRZNE (MINIMUM)",
- "minTwoWayCatenaryInt": "SZLAKI DWUTOROWE ZELEKTR. WEWNĘTRZNE (MINIMUM)",
- "minTwoWayInt": "SZLAKI DWUTOROWE NIEZELEKTR. WEWNĘTRZNE (MINIMUM)"
+ "vMax": "PRĘDKOŚĆ SZLAKOWA",
+ "level": "WYMAGANY POZIOM DYŻURNEGO",
+ "routeOneWay": "SZLAKI 1-TOROWE NIEZELEKTR.",
+ "routeOneWayCatenary": "SZLAKI 1-TOROWE ZELEKTR.",
+ "routeTwoWayCatenary": "SZLAKI 2-TOROWE ZELEKTR.",
+ "routeTwoWay": "SZLAKI 2-TOROWE NIEZELEKTR.",
+ "routeOneWayInternalCatenary": "SZLAKI WEWN. 1-TOROWE ZELEKTR.",
+ "routeOneWayInternal": "SZLAKI WEWN. 1-TOROWE NIEZELEKTR.",
+ "routeTwoWayInternalCatenary": "SZLAKI WEWN. 2-TOROWE ZELEKTR.",
+ "routeTwoWayInternal": "SZLAKI WEWN. 2-TOROWE NIEZELEKTR."
},
"sceneries-placeholder": "Wyszukaj scenerię",
"line-numbers-placeholder": "Numery linii (oddzielone przecinkami)",
@@ -322,7 +324,6 @@
"now": "TERAZ",
"hour": " godz.",
"no-limit": "BEZ LIMITU",
- "include-selected": "POKAŻ ZAZNACZONE",
"save": "ZAPAMIĘTAJ FILTRY",
"reset": "RESETUJ FILTRY",
"close": "ZAMKNIJ FILTRY"
@@ -543,7 +544,7 @@
"no-users": "BRAK AKTYWNYCH GRACZY",
"no-spawns": "BRAK OTWARTYCH SPAWNÓW",
"no-scenery": "Ups! Ta sceneria nie istnieje!",
- "return-btn": "POWRÓT DO POPRZEDNIEJ STRONY",
+ "return-btn": "POWRÓT DO STRONY GŁÓWNEJ",
"history-btn": "Przejdź do widoku historii dyżurnych ruchu",
"info-btn": "Wróć do widoku scenerii",
"authors-title": "Autor scenerii | Autorzy scenerii",
@@ -557,6 +558,8 @@
"option-active-timetables": "Aktywne rozkłady jazdy",
"option-timetables-history": "Historia rozkładów PL1",
"option-dispatchers-history": "Historia dyżurów PL1",
+ "btn-show-timetable-thumbnails": "Pokazuj podglądy składów",
+ "btn-hide-timetable-thumbnails": "Ukrywaj podglądy składów",
"timetable-includesScenery": "WSZYSTKIE RJ",
"timetable-via": "PRZEJEŻDŻA",
"timetable-issuedFrom": "ROZPOCZYNA BIEG",
@@ -568,7 +571,7 @@
"dispatcher-status-changes": "Zmiany statusów:",
"req-level": "ogólnodostępna | minimum {lvl} poziom dyżurnego | minimum {lvl} poziom dyżurnego",
"history-list-empty": "Brak historii dla tej scenerii!",
- "forum-topic": "Oficjalny wątek scenerii {name}",
+ "forum-topic": "Wątek scenerii",
"gnr-link": "Generator rozkazów pisemnych",
"pragotron-link": "Paletowa tablica informacyjna",
"tablice-link": "Tablica informacyjna zbiorcza
(autorstwa Thundo)",
diff --git a/src/managers/stationFilterManager.ts b/src/managers/stationFilterManager.ts
index dac2b8c..c64de5a 100644
--- a/src/managers/stationFilterManager.ts
+++ b/src/managers/stationFilterManager.ts
@@ -1,5 +1,24 @@
import StorageManager from './storageManager';
+export type SliderGroup =
+ | 'vMax'
+ | 'level'
+ | 'routeOneWay'
+ | 'routeOneWayCatenary'
+ | 'routeOneWayInternal'
+ | 'routeOneWayInternalCatenary'
+ | 'routeTwoWay'
+ | 'routeTwoWayCatenary'
+ | 'routeTwoWayInternal'
+ | 'routeTwoWayInternalCatenary';
+
+export interface SliderOptions {
+ id: string;
+ minRange: number;
+ maxRange: number;
+ step: number;
+}
+
export const sections = [
'status',
'timetables',
@@ -10,7 +29,9 @@ export const sections = [
'control',
'blockades',
'signals',
- 'addons'
+ 'addons',
+ 'externalRoutes',
+ 'internalRoutes'
] as const;
export const initFilters = {
@@ -38,9 +59,6 @@ export const initFilters = {
mixed: false,
SBL: false,
PBL: false,
- 'include-selected': false,
- 'no-1track': false,
- 'no-2track': false,
free: true,
occupied: false,
nonPublic: false,
@@ -60,34 +78,111 @@ export const initFilters = {
onlineFromHours: 0,
minLevel: 0,
maxLevel: 20,
+ oneWay: false,
+ oneWayCatenary: false,
+ twoWay: false,
+ twoWayCatenary: false,
+ oneWayCatenaryInt: false,
+ oneWayInt: false,
+ twoWayInt: false,
+ twoWayCatenaryInt: false,
minOneWay: 0,
minOneWayCatenary: 0,
- minOneWayInt: 0,
minOneWayCatenaryInt: 0,
+ minOneWayInt: 0,
minTwoWay: 0,
minTwoWayCatenary: 0,
minTwoWayInt: 0,
minTwoWayCatenaryInt: 0,
+ maxOneWay: 5,
+ maxOneWayCatenary: 5,
+ maxOneWayInt: 5,
+ maxOneWayCatenaryInt: 5,
+ maxTwoWay: 5,
+ maxTwoWayCatenary: 5,
+ maxTwoWayInt: 5,
+ maxTwoWayCatenaryInt: 5,
authors: '',
projects: '',
lines: ''
};
-export const sliderStates = [
- { id: 'maxVmax', minRange: 0, maxRange: 200, step: 10 },
- { id: 'minVmax', minRange: 0, maxRange: 200, step: 10 },
- { id: 'minLevel', minRange: 0, maxRange: 20, step: 1 },
- { id: 'maxLevel', minRange: 0, maxRange: 20, step: 1 },
- { id: 'minOneWay', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minOneWayCatenary', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minOneWayInt', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minOneWayCatenaryInt', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minTwoWay', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minTwoWayCatenary', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minTwoWayInt', minRange: 0, maxRange: 5, step: 1 },
- { id: 'minTwoWayCatenaryInt', minRange: 0, maxRange: 5, step: 1 }
+export const sliderGroups: SliderGroup[] = [
+ 'vMax',
+ 'level',
+ 'routeOneWayCatenary',
+ 'routeOneWay',
+ 'routeTwoWayCatenary',
+ 'routeTwoWay',
+ 'routeOneWayInternalCatenary',
+ 'routeOneWayInternal',
+ 'routeTwoWayInternalCatenary',
+ 'routeTwoWayInternal'
];
+export const sliderGroupsOptions: Record = {
+ vMax: [
+ { id: 'minVmax', minRange: 0, maxRange: 200, step: 10 },
+ { id: 'maxVmax', minRange: 0, maxRange: 200, step: 10 }
+ ],
+ level: [
+ { id: 'minLevel', minRange: 0, maxRange: 20, step: 1 },
+ { id: 'maxLevel', minRange: 0, maxRange: 20, step: 1 }
+ ],
+ routeOneWay: [
+ { id: 'minOneWay', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxOneWay', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeOneWayCatenary: [
+ { id: 'minOneWayCatenary', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxOneWayCatenary', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeOneWayInternal: [
+ { id: 'minOneWayInt', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxOneWayInt', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeOneWayInternalCatenary: [
+ {
+ id: 'minOneWayCatenaryInt',
+ minRange: 0,
+ maxRange: 5,
+ step: 1
+ },
+ {
+ id: 'maxOneWayCatenaryInt',
+ minRange: 0,
+ maxRange: 5,
+ step: 1
+ }
+ ],
+ routeTwoWay: [
+ { id: 'minTwoWay', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxTwoWay', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeTwoWayCatenary: [
+ { id: 'minTwoWayCatenary', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxTwoWayCatenary', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeTwoWayInternal: [
+ { id: 'minTwoWayInt', minRange: 0, maxRange: 5, step: 1 },
+ { id: 'maxTwoWayInt', minRange: 0, maxRange: 5, step: 1 }
+ ],
+ routeTwoWayInternalCatenary: [
+ {
+ id: 'minTwoWayCatenaryInt',
+ minRange: 0,
+ maxRange: 5,
+ step: 1
+ },
+ {
+ id: 'maxTwoWayCatenaryInt',
+ minRange: 0,
+ maxRange: 5,
+ step: 1
+ }
+ ]
+};
+
export type StationFilter = keyof typeof initFilters;
export type StationFilterSection = (typeof sections)[number];
@@ -112,7 +207,9 @@ export const filtersSections: Record = {
'manual'
],
blockades: ['SBL', 'PBL'],
- signals: ['modern', 'semaphores', 'mixed', 'historical']
+ signals: ['modern', 'semaphores', 'mixed', 'historical'],
+ externalRoutes: ['oneWayCatenary', 'oneWay', 'twoWayCatenary', 'twoWay'],
+ internalRoutes: ['oneWayCatenaryInt', 'oneWayInt', 'twoWayCatenaryInt', 'twoWayInt']
};
export function setupFilters(currentFilters: Record) {
@@ -135,7 +232,8 @@ export function getChangedFilters(currentFilters: Record): string[]
return (
Object.keys(currentFilters).filter(
(filterKey) =>
- currentFilters[filterKey] !== initFilters[filterKey as keyof typeof initFilters]
+ currentFilters[filterKey].toString() !==
+ initFilters[filterKey as keyof typeof initFilters].toString()
) ?? []
);
}
diff --git a/src/store/apiStore.ts b/src/store/apiStore.ts
index 0404bdd..05a2b9c 100644
--- a/src/store/apiStore.ts
+++ b/src/store/apiStore.ts
@@ -7,6 +7,7 @@ import axios, { AxiosInstance } from 'axios';
export const useApiStore = defineStore('apiStore', {
state: () => ({
dataStatuses: {
+ allData: Status.Data.Loading,
connection: Status.Data.Loading,
sceneries: Status.Data.Loading,
vehicles: Status.Data.Loading,
@@ -55,19 +56,21 @@ export const useApiStore = defineStore('apiStore', {
window.requestAnimationFrame(this.updateTick);
},
- updateTick(t: number) {
+ async updateTick(t: number) {
// Static data refresh
if (t >= this.nextDataCheckTime) {
- this.fetchDonatorsData();
- this.fetchVehiclesInfo();
- this.fetchStationsGeneralInfo();
+ await Promise.all([
+ this.fetchStationsGeneralInfo(),
+ this.fetchVehiclesInfo(),
+ this.fetchDonatorsData()
+ ]);
this.nextDataCheckTime = t + 3600000;
}
// Active data fefresh
if (t >= this.nextUpdateTime) {
- this.fetchActiveData();
+ await this.fetchActiveData();
this.nextUpdateTime = t + 31000;
}
@@ -75,6 +78,7 @@ export const useApiStore = defineStore('apiStore', {
},
async fetchActiveData() {
+ if (this.dataStatuses.connection == Status.Data.Offline) return;
if (!this.activeData) this.dataStatuses.connection = Status.Data.Loading;
try {
diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts
index d863e9c..8adc36d 100644
--- a/src/store/mainStore.ts
+++ b/src/store/mainStore.ts
@@ -29,9 +29,7 @@ export const useMainStore = defineStore('mainStore', {
chosenModalTrainId: undefined,
modalLastClickedTarget: null,
- currentLocale: 'pl',
-
- isMigrateInfoCardOpen: false
+ currentLocale: 'pl'
}) as MainStoreState,
actions: {
@@ -393,11 +391,13 @@ export const useMainStore = defineStore('mainStore', {
const tracksKey = route.routeTracks == 2 ? 'double' : 'single';
const isElectric = route.isElectric;
+
const routesKey: keyof StationRoutes = `${tracksKey}${
!isElectric ? 'Other' : 'Electrified'
- }Names`;
+ }${route.isInternal ? 'Internal' : ''}Names`;
+
+ acc[routesKey].push(route.routeName);
- if (!route.isInternal) acc[routesKey].push(route.routeName);
if (route.isRouteSBL) acc['sblNames'].push(route.routeName);
acc.minRouteSpeed =
@@ -412,14 +412,21 @@ export const useMainStore = defineStore('mainStore', {
return acc;
},
{
+ all: [],
single: [],
+ double: [],
+
singleElectrifiedNames: [],
singleOtherNames: [],
- double: [],
doubleElectrifiedNames: [],
doubleOtherNames: [],
+
+ singleElectrifiedInternalNames: [],
+ singleOtherInternalNames: [],
+ doubleElectrifiedInternalNames: [],
+ doubleOtherInternalNames: [],
+
sblNames: [],
- all: [],
minRouteSpeed: 0,
maxRouteSpeed: 0
} as StationRoutes
diff --git a/src/store/typings.ts b/src/store/typings.ts
index e7e9305..1a56d88 100644
--- a/src/store/typings.ts
+++ b/src/store/typings.ts
@@ -8,7 +8,6 @@ export interface MainStoreState {
chosenModalTrainId?: string;
modalLastClickedTarget: EventTarget | null;
currentLocale: string;
- isMigrateInfoCardOpen: boolean;
}
export interface StationJSONData {
diff --git a/src/styles/_animations.scss b/src/styles/_animations.scss
index f9db750..f93c46b 100644
--- a/src/styles/_animations.scss
+++ b/src/styles/_animations.scss
@@ -1,4 +1,4 @@
-$animDuration: 95ms;
+$animDuration: 120ms;
$animType: ease-in-out;
// List animation
diff --git a/src/styles/_dropdown-filters.scss b/src/styles/_dropdown-filters.scss
index 8234875..6bcbb4f 100644
--- a/src/styles/_dropdown-filters.scss
+++ b/src/styles/_dropdown-filters.scss
@@ -78,7 +78,7 @@ h1.option-title {
display: flex;
gap: 0.5em;
width: 100%;
- margin-top: 1em;
+ margin-top: 0.5em;
button {
width: 100%;
diff --git a/src/styles/_dropdown.scss b/src/styles/_dropdown.scss
index 9e75477..3199222 100644
--- a/src/styles/_dropdown.scss
+++ b/src/styles/_dropdown.scss
@@ -40,10 +40,3 @@
padding: 1em;
z-index: 100;
}
-
-@include responsive.smallScreen {
- .dropdown_wrapper {
- font-size: 1.1em;
- max-width: 100%;
- }
-}
diff --git a/src/typings/common.ts b/src/typings/common.ts
index 684c030..ea98611 100644
--- a/src/typings/common.ts
+++ b/src/typings/common.ts
@@ -130,6 +130,12 @@ export interface StationRoutes {
singleOtherNames: string[];
doubleElectrifiedNames: string[];
doubleOtherNames: string[];
+
+ singleElectrifiedInternalNames: string[];
+ singleOtherInternalNames: string[];
+ doubleElectrifiedInternalNames: string[];
+ doubleOtherInternalNames: string[];
+
sblNames: string[];
minRouteSpeed: number;
@@ -241,4 +247,4 @@ export interface TooltipTrainInfo {
headVehicleName: string;
stockCount: number;
trainTimetableCategory?: string;
-}
\ No newline at end of file
+}
diff --git a/src/views/SceneryView.vue b/src/views/SceneryView.vue
index 767e293..3afd75a 100644
--- a/src/views/SceneryView.vue
+++ b/src/views/SceneryView.vue
@@ -184,7 +184,7 @@ function setViewMode(componentName: string) {
background-color: #181818;
border-radius: 0.5em;
- padding: 1em 0.5em;
+ padding: 0.5em;
}
.scenery-left {
@@ -239,7 +239,7 @@ function setViewMode(componentName: string) {
.scenery-view {
height: auto;
}
-
+
.scenery-wrapper {
grid-template-columns: 1fr;
gap: 0;
diff --git a/src/views/StationsView.vue b/src/views/StationsView.vue
index 0f8717f..eb7ccc0 100644
--- a/src/views/StationsView.vue
+++ b/src/views/StationsView.vue
@@ -13,16 +13,6 @@
-
-