diff --git a/package.json b/package.json index e444ffc..faa0726 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stacjownik", - "version": "1.11.1", + "version": "1.11.2", "private": true, "scripts": { "dev": "vite", diff --git a/src/App.scss b/src/App.scss index 5032e35..4fb119d 100644 --- a/src/App.scss +++ b/src/App.scss @@ -46,7 +46,11 @@ font-size: 1rem; @include smallScreen() { - font-size: calc(0.5rem + 1.3vw); + font-size: calc(0.5rem + 1.1vw); + } + + @include screenLandscape() { + font-size: calc(0.45rem + 0.8vw); } } diff --git a/src/App.vue b/src/App.vue index 868938f..2e91da7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,7 +21,8 @@ @@ -86,6 +87,7 @@ export default defineComponent({ currentLang: 'pl', releaseURL: '', + isOnProductionHost: location.hostname == 'stacjownik-td2.web.app', }), created() { diff --git a/src/assets/icon-refresh.svg b/src/assets/icon-refresh.svg new file mode 100644 index 0000000..23b7675 --- /dev/null +++ b/src/assets/icon-refresh.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/components/JournalView/JournalDispatchersList.vue b/src/components/JournalView/JournalDispatchersList.vue index 0f1fb42..68880ac 100644 --- a/src/components/JournalView/JournalDispatchersList.vue +++ b/src/components/JournalView/JournalDispatchersList.vue @@ -1,7 +1,10 @@ diff --git a/src/components/JournalView/JournalOptions.vue b/src/components/JournalView/JournalOptions.vue index 9bc2449..a9766ed 100644 --- a/src/components/JournalView/JournalOptions.vue +++ b/src/components/JournalView/JournalOptions.vue @@ -2,11 +2,18 @@
- +
+ + + +
@@ -99,7 +106,7 @@ import SelectBox from '../Global/SelectBox.vue'; export default defineComponent({ components: { SelectBox, ActionButton }, - emits: ['onSearchConfirm', 'onOptionsReset'], + emits: ['onSearchConfirm', 'onOptionsReset', 'onRefreshData'], mixins: [imageMixin, keyMixin], props: { @@ -206,6 +213,10 @@ export default defineComponent({ } }, + refreshData() { + this.$emit('onRefreshData'); + }, + startSearchTimeout(type: 'driver' | 'dispatcher', value: string) { if (this[`${type}Suggestions`].includes(value)) return; diff --git a/src/components/JournalView/JournalTimetablesList.vue b/src/components/JournalView/JournalTimetablesList.vue index ee08f29..36ad0bd 100644 --- a/src/components/JournalView/JournalTimetablesList.vue +++ b/src/components/JournalView/JournalTimetablesList.vue @@ -1,9 +1,9 @@