From f73c3f4aec8cd63601577e1ba24ccf2fd31035ef Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 2 May 2025 02:36:19 +0200 Subject: [PATCH 01/14] chore: added links to other external tools; changed design of the donation button --- public/images/icon-gnr.svg | 47 ++++++++ public/images/icon-pojazdownik.svg | 24 +++++ .../StationsView/StationFilterCard.vue | 15 ++- src/components/StationsView/StationStats.vue | 6 +- src/locales/en.json | 5 +- src/locales/pl.json | 6 +- src/views/StationsView.vue | 101 ++++++++++++------ 7 files changed, 160 insertions(+), 44 deletions(-) create mode 100644 public/images/icon-gnr.svg create mode 100644 public/images/icon-pojazdownik.svg diff --git a/public/images/icon-gnr.svg b/public/images/icon-gnr.svg new file mode 100644 index 0000000..f1d6b83 --- /dev/null +++ b/public/images/icon-gnr.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/icon-pojazdownik.svg b/public/images/icon-pojazdownik.svg new file mode 100644 index 0000000..9c15565 --- /dev/null +++ b/public/images/icon-pojazdownik.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index d714262..42c039a 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -411,11 +411,6 @@ h3.section-header { .card_controls { display: flex; gap: 0.5em; - - input { - border-radius: 0.5em 0.5em 0 0; - height: 100%; - } } .card_content { @@ -606,7 +601,7 @@ h3.section-header { border: 3px solid var(--clr-primary); background-color: #333; - @include responsive.smallScreen{ + @include responsive.smallScreen { width: 15px; height: 15px; margin-top: -5px; @@ -625,7 +620,7 @@ h3.section-header { cursor: pointer; - @include responsive.smallScreen{ + @include responsive.smallScreen { width: 1em; height: 1em; border: 3px solid var(--clr-primary); @@ -658,7 +653,7 @@ h3.section-header { } } -@include responsive.smallScreen{ +@include responsive.smallScreen { .slider { display: flex; flex-wrap: wrap; @@ -672,5 +667,9 @@ h3.section-header { text-align: center; } } + + .card_controls > button > p { + display: none; + } } diff --git a/src/components/StationsView/StationStats.vue b/src/components/StationsView/StationStats.vue index d55d625..e232f03 100644 --- a/src/components/StationsView/StationStats.vue +++ b/src/components/StationsView/StationStats.vue @@ -8,7 +8,7 @@ @@ -282,5 +282,9 @@ h1.stats-title img { h1.stats-title { text-align: center; } + + .filter-button > span { + display: none; + } } diff --git a/src/locales/en.json b/src/locales/en.json index 4f6cdba..b007a78 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -50,7 +50,9 @@ "migration-confirm": "Roger that!", "offline": "App is in the offline mode!", "tooltip-driver-offline": "Driver is offline", - "tooltip-scenery-offline": "Scenery is offline" + "tooltip-scenery-offline": "Scenery is offline", + "pojazdownik-link-content": "POJAZDOWNIK", + "gnr-link-content": "WRITTEN ORDERS" }, "footer": { "discord": "Stacjownik Discord server" @@ -399,7 +401,6 @@ "number-propositions": "PROPOSE NUMBER", "stock-clipboard-success": "Successfully copied the railway stock in a text form to your clipboard!", "stock-clipboard-failure": "Oops! Something happened and the railway stock couldn't be copied to your clipboard! :/", - "number-propositions-header": "Generate number examples for selected category:", "number-propositions-third-number": "Third digit:", "number-propositions-last-nums": "{count} last digits from the range of:", diff --git a/src/locales/pl.json b/src/locales/pl.json index 76b5a44..9c67d45 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -47,7 +47,9 @@ "no-result": "Brak wyników o podanych kryteriach!", "offline": "Aplikacja w trybie offline!", "tooltip-driver-offline": "Maszynista offline", - "tooltip-scenery-offline": "Sceneria offline" + "tooltip-scenery-offline": "Sceneria offline", + "pojazdownik-link-content": "POJAZDOWNIK", + "gnr-link-content": "ROZKAZY PISEMNE" }, "footer": { "discord": "Serwer Discord Stacjownika" @@ -386,13 +388,11 @@ "number-propositions": "ZAPROPONUJ NUMER", "stock-clipboard-success": "Pomyślnie skopiowano skład w postaci tekstowej do schowka!", "stock-clipboard-failure": "Ups! Nie udało się skopiować składu do schowka! :/", - "number-propositions-header": "Wygeneruj propozycje numerów dla kategorii pociągu:", "number-propositions-third-number": "Trzecia cyfra:", "number-propositions-last-nums": "{count} ostatnie cyfry z przedziału:", "number-propositions-title": "Propozycje:", "number-propositions-empty": "Brak propozycji dla wybranej kategorii! :/" - }, "train-stats": { "stats-button": "STATYSTYKI", diff --git a/src/views/StationsView.vue b/src/views/StationsView.vue index c7ade83..d0dbb8d 100644 --- a/src/views/StationsView.vue +++ b/src/views/StationsView.vue @@ -1,24 +1,46 @@