diff --git a/package.json b/package.json index 82276c5..e84f20f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stacjownik", - "version": "1.21.0", + "version": "1.22.0", "private": true, "scripts": { "dev": "vite", diff --git a/public/images/icon-ASDEK.svg b/public/images/icon-ASDEK.svg new file mode 100644 index 0000000..9fc1ac7 --- /dev/null +++ b/public/images/icon-ASDEK.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/App.vue b/src/App.vue index b71478b..2c94aea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -34,7 +34,7 @@ + + diff --git a/src/components/Global/Donation.vue b/src/components/Global/Donation.vue index 14e4b09..87b3fa9 100644 --- a/src/components/Global/Donation.vue +++ b/src/components/Global/Donation.vue @@ -1,129 +1,157 @@ diff --git a/src/components/Global/RegionDropdown.vue b/src/components/Global/RegionDropdown.vue index d515ce1..42fc10b 100644 --- a/src/components/Global/RegionDropdown.vue +++ b/src/components/Global/RegionDropdown.vue @@ -59,8 +59,6 @@ export default defineComponent({ 'store.region.id': { handler(regionId) { this.selectedItemIndex = this.regionList.findIndex((reg) => reg.id == regionId); - - console.log('region id', regionId); } }, '$route.query.region': { diff --git a/src/components/Global/StationStatusBadge.vue b/src/components/Global/StationStatusBadge.vue index 6301d27..7e455a4 100644 --- a/src/components/Global/StationStatusBadge.vue +++ b/src/components/Global/StationStatusBadge.vue @@ -86,7 +86,7 @@ $online: #09a116; $unknown: #b93c3c; .status-badge { - border-radius: 1rem; + border-radius: 1em; font-weight: 500; padding: 0.2em 0.55em; diff --git a/src/components/Global/StockList.vue b/src/components/Global/StockList.vue index 7e49985..256dceb 100644 --- a/src/components/Global/StockList.vue +++ b/src/components/Global/StockList.vue @@ -1,7 +1,23 @@ diff --git a/src/components/SceneryView/SceneryDispatchersHistory.vue b/src/components/SceneryView/SceneryDispatchersHistory.vue index d9d4a04..34a2ea6 100644 --- a/src/components/SceneryView/SceneryDispatchersHistory.vue +++ b/src/components/SceneryView/SceneryDispatchersHistory.vue @@ -79,7 +79,7 @@ import listObserverMixin from '../../mixins/listObserverMixin'; import { ActiveScenery } from '../../store/typings'; import { API } from '../../typings/api'; import { Status } from '../../typings/common'; -import http from '../../http'; +import { useApiStore } from '../../store/apiStore'; export default defineComponent({ name: 'SceneryDispatchersHistory', @@ -98,7 +98,8 @@ export default defineComponent({ return { historyList: [] as API.DispatcherHistory.Response, dataStatus: Status.Data.Loading, - DataStatus: Status.Data + DataStatus: Status.Data, + apiStore: useApiStore() }; }, @@ -127,7 +128,7 @@ export default defineComponent({ }&countFrom=${countFrom}&countLimit=${countLimit}`; const historyAPIData: API.DispatcherHistory.Response = await ( - await http.get(requestString) + await this.apiStore.client!.get(requestString) ).data; this.dataStatus = Status.Data.Loaded; diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue index 231673e..ca5cb42 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoDispatcher.vue @@ -1,15 +1,15 @@ @@ -59,45 +66,46 @@ export default defineComponent({ diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue index e419a3d..b7c23fc 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoIcons.vue @@ -5,7 +5,7 @@ class="icon-info" src="/images/icon-unknown.svg" alt="icon-unknown" - :title="$t('desc.unknown')" + :title="$t('sceneries.info.unknown')" /> @@ -21,25 +21,19 @@ v-if="station?.generalInfo" class="scenery-icon icon-info" :class="station?.generalInfo.controlType.replace('+', '-')" - :title="$t('desc.control-type') + $t(`controls.${station?.generalInfo.controlType}`)" + :title=" + $t('sceneries.info.control-type') + $t(`controls.${station?.generalInfo.controlType}`) + " v-html="getControlTypeAbbrev(station?.generalInfo.controlType)" > - SUP (RASP-UZK) - Non-public scenery Unavailable scenery Abandoned scenery + + SUP (RASP-UZK) + + dSAT ASDEK real scenery diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue index 95cce2b..2b4b0b1 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue @@ -1,11 +1,11 @@