diff --git a/src/assets/icon-offline.svg b/src/assets/icon-offline.svg new file mode 100644 index 0000000..12bbee1 --- /dev/null +++ b/src/assets/icon-offline.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/TrainsView/TrainInfoExtended.vue b/src/components/TrainsView/TrainInfoExtended.vue index 8417c23..e8b2c2a 100644 --- a/src/components/TrainsView/TrainInfoExtended.vue +++ b/src/components/TrainsView/TrainInfoExtended.vue @@ -31,6 +31,8 @@ {{ train.driverName }} + offline + {{ isInfoShown ? 'Ukryj' : 'Pokaż' }} informacje @@ -73,10 +75,15 @@
- + {{ $t('trains.current-scenery') }} {{ train['currentStationName'] }}  + + {{ $t('trains.current-scenery') }} + {{ train['currentStationName'].replace(/.[a-zA-Z0-9]+.sc/, '') }} (offline)  + + {{ $t('trains.current-signal') }} {{ train['signal'] }}  @@ -133,6 +140,7 @@ export default defineComponent({ icons: { warning: require('@/assets/icon-warning.svg'), ascArrow: require('@/assets/icon-arrow-asc.svg'), + offline: require('@/assets/icon-offline.svg'), }, isInfoShown: true, @@ -147,11 +155,12 @@ export default defineComponent({ diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index 154815a..32dc7a6 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -196,8 +196,6 @@ img.train-image { .train { &-list { - max-height: 100vh; - min-height: 550px; overflow: auto; padding-right: 0.5em; diff --git a/src/data/trainOptions.ts b/src/data/trainOptions.ts new file mode 100644 index 0000000..bd9ec72 --- /dev/null +++ b/src/data/trainOptions.ts @@ -0,0 +1,60 @@ +import { TrainFilterType } from "@/scripts/enums/TrainFilterType"; +import { TrainFilter } from "vue"; + +export const trainFilters: TrainFilter[] = [ + { + id: TrainFilterType.twr, + isActive: true, + }, + { + id: TrainFilterType.skr, + isActive: true, + }, + { + id: TrainFilterType.passenger, + isActive: true, + }, + { + id: TrainFilterType.freight, + isActive: true, + }, + { + id: TrainFilterType.other, + isActive: true, + }, + { + id: TrainFilterType.comments, + isActive: true, + }, + { + id: TrainFilterType.noTimetable, + isActive: true, + }, +]; + +export const sorterOptions = [ + { + id: 'distance', + value: 'kilometraż', + }, + { + id: 'progress', + value: 'przebyta trasa', + }, + { + id: 'delay', + value: 'opóźnienie', + }, + { + id: 'mass', + value: 'masa', + }, + { + id: 'speed', + value: 'prędkość', + }, + { + id: 'length', + value: 'długość', + } +]; \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index 2bf4c0e..9498162 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -123,6 +123,7 @@ "trains": { "no-trains": "No trains to show here!", "loading": "Loading train data...", + "offline": "Offline ride", "stats": "TRAFFIC STATISTICS", "stats-speed": "TRAINS SPEED (MIN, AVG, MAX) [km/h]", diff --git a/src/locales/pl.json b/src/locales/pl.json index e604d1a..0b9e4b3 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -124,6 +124,7 @@ "trains": { "no-trains": "Brak pociągów do wyświetlenia!", "loading": "Pobieranie danych o pociągach...", + "offline": "Przejazd offline", "stats": "STATYSTYKI RUCHU", "stats-speed": "PRĘDKOŚCI POCIĄGÓW (MIN, ŚR, MAX) [km/h]", diff --git a/src/styles/card.scss b/src/styles/card.scss index aa8cbdc..aafa33e 100644 --- a/src/styles/card.scss +++ b/src/styles/card.scss @@ -14,6 +14,8 @@ overflow: auto; background: $primaryCol; + outline: 2px solid white; + box-shadow: 0 0 15px 5px #292929; width: 650px; diff --git a/src/views/TrainsView.vue b/src/views/TrainsView.vue index 4b9b78e..8cbbc09 100644 --- a/src/views/TrainsView.vue +++ b/src/views/TrainsView.vue @@ -4,7 +4,7 @@
- +
@@ -15,16 +15,15 @@