diff --git a/src/App.scss b/src/App.scss index abba5c4..7764edc 100644 --- a/src/App.scss +++ b/src/App.scss @@ -138,8 +138,6 @@ .info_counter { display: flex; align-items: center; - - color: $accentCol; span { margin: 0 0.15em; diff --git a/src/App.vue b/src/App.vue index 39b68e0..a559d4e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -50,8 +50,9 @@ icon dispatcher - {{ data.activeStationCount }} - {{ data.activeTrainCount }} + {{ data.activeStationCount }} + | + {{ data.activeTrainCount }} icon train @@ -131,6 +132,11 @@ export default defineComponent({ sceneryDataStatus, dispatcherDataStatus: computed(() => data.value.dispatcherDataStatus), + timetableCount: data.value.trainList.filter((train) => train.timetableData).length, + onlineDispatcherCount: data.value.stationList.filter( + (station) => station.onlineInfo && station.onlineInfo.statusTimestamp > 0 + ).length, + openFilterCard() { isFilterCardVisible.value = true; }, @@ -148,8 +154,6 @@ export default defineComponent({ pl: require('@/assets/icon-pl.svg'), error: require('@/assets/icon-error.svg'), }, - - }), created() { @@ -174,7 +178,6 @@ export default defineComponent({ StorageManager.setBooleanValue('version_notes_read', true); }, - changeLang(lang: string) { this.$i18n.locale = lang; this.currentLang = lang; diff --git a/src/assets/icon-track-catenary.svg b/src/assets/icon-track-catenary.svg new file mode 100644 index 0000000..269d00b --- /dev/null +++ b/src/assets/icon-track-catenary.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icon-track-sbl.svg b/src/assets/icon-track-sbl.svg new file mode 100644 index 0000000..0623109 --- /dev/null +++ b/src/assets/icon-track-sbl.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/icon-track-twb.svg b/src/assets/icon-track-twb.svg new file mode 100644 index 0000000..2f7e7e9 --- /dev/null +++ b/src/assets/icon-track-twb.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue index c395402..d554c69 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue @@ -21,7 +21,7 @@ :title="$t('desc.signals-type') + $t(`signals.${station.generalInfo.signalType}`)" /> - sbl icon + /> --> default scenery diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoStats.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoStats.vue index 6b5eafd..6fa26d1 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoStats.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoStats.vue @@ -28,6 +28,33 @@ + +
+
+ + {{ route.name }} + + + + {{ route.tracks }}tor + icon track catenary + icon track twb + icon track sbl + +
+