diff --git a/package.json b/package.json index bc7a229..8248d86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stacjownik", - "version": "1.16.3", + "version": "1.17.0", "private": true, "scripts": { "dev": "vite", diff --git a/src/App.scss b/src/App.scss index 49e4daf..8ceb3e8 100644 --- a/src/App.scss +++ b/src/App.scss @@ -1,7 +1,6 @@ @import './styles/responsive.scss'; @import './styles/variables.scss'; @import './styles/global.scss'; -@import './styles/scenery_status.scss'; // VUE ROUTE CHANGE ANIMATION .view-anim { diff --git a/src/components/Global/ProgressBar.vue b/src/components/Global/ProgressBar.vue new file mode 100644 index 0000000..211d228 --- /dev/null +++ b/src/components/Global/ProgressBar.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/components/Global/StationStatusBadge.vue b/src/components/Global/StationStatusBadge.vue new file mode 100644 index 0000000..eb54033 --- /dev/null +++ b/src/components/Global/StationStatusBadge.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/components/JournalView/DailyStats.vue b/src/components/JournalView/DailyStats.vue index 22b85d6..caa5911 100644 --- a/src/components/JournalView/DailyStats.vue +++ b/src/components/JournalView/DailyStats.vue @@ -119,7 +119,7 @@ {{ stats.mostActiveDrivers[0].name }} diff --git a/src/components/JournalView/JournalDispatchersList.vue b/src/components/JournalView/JournalDispatchersList.vue index c3e3209..9c5713d 100644 --- a/src/components/JournalView/JournalDispatchersList.vue +++ b/src/components/JournalView/JournalDispatchersList.vue @@ -1,57 +1,106 @@ @@ -104,3 +98,4 @@ export default defineComponent({ } } + diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue index e9ac04f..a920397 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoUserList.vue @@ -1,133 +1,131 @@ - - - - - - + + + + + diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue index d4179e0..82f1a36 100644 --- a/src/components/SceneryView/SceneryTimetable.vue +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -67,8 +67,8 @@ v-for="(scheduledTrain, i) in computedScheduledTrains" :key="scheduledTrain.trainId" tabindex="0" - @click.prevent.stop="selectModalTrain(scheduledTrain.trainId)" - @keydown.enter.prevent="selectModalTrain(scheduledTrain.trainId)" + @click.prevent.stop="selectModalTrain(scheduledTrain.trainId, $event.currentTarget)" + @keydown.enter.prevent="selectModalTrain(scheduledTrain.trainId, $event.currentTarget)" > @@ -121,25 +121,17 @@ - - - {{ scheduledTrain.stopInfo.stopTime }} - {{ scheduledTrain.stopInfo.stopType || 'pt' }} - - -   + + {{ scheduledTrain.arrivingLine }} - + + {{ scheduledTrain.stopInfo.stopTime || '' }} + {{ scheduledTrain.stopInfo.stopTime ? scheduledTrain.stopInfo.stopType || 'pt' : '' }} + - - - {{ scheduledTrain.arrivingLine }} - - - - {{ scheduledTrain.departureLine }} - + + {{ scheduledTrain.departureLine }} @@ -341,8 +333,8 @@ export default defineComponent({ max-width: 1100px; display: grid; - grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); - gap: 2em 0.5em; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 1.2em 0.5em; overflow: hidden; @@ -368,7 +360,9 @@ export default defineComponent({ &-schedule { display: grid; - grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); + grid-template-columns: repeat(3, 1fr); + gap: 0.2em; + align-items: center; width: 100%; max-width: 400px; @@ -400,33 +394,6 @@ export default defineComponent({ } } -.arrow { - border: solid white; - border-width: 0 2px 2px 0; - display: inline-block; - padding: 2px; - margin-left: 50px; - - position: relative; - - transform: rotate(-45deg); - - &::before { - content: ''; - position: absolute; - display: block; - width: 55px; - height: 3px; - top: 4px; - left: 4px; - - transform: translate(-100%, -1px) rotate(45deg); - transform-origin: right bottom; - - background: white; - } -} - .general-info { display: flex; flex-wrap: wrap; @@ -453,47 +420,34 @@ export default defineComponent({ .schedule { &-arrival, - &-stop, &-departure { - display: flex; - justify-content: center; - align-items: center; - - margin: 0 0.3rem; font-size: 1.15em; } &-stop { - position: relative; - display: flex; - flex-direction: column; - font-size: 0.9em; + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 0.5em; + align-items: end; - padding: 0.3em 0; - - .stop-line { - display: flex; - position: absolute; - - span { - width: 65px; - word-break: break-all; - } - - span:first-child { - text-align: right; - } - - span:last-child { - text-align: left; - } + .stop-connection { + font-size: 0.95em; } .stop-time { - position: absolute; - transform: translateY(-15px); + position: relative; + inline-size: max-content; + align-self: center; + font-size: 0.9em; color: $accentCol; + + &::after { + content: '\027F6'; + display: block; + font-size: 2.2em; + line-height: 0.65em; + } } } } diff --git a/src/components/StationsView/FilterOption.vue b/src/components/StationsView/FilterOption.vue index 2dc6af9..c924eb5 100644 --- a/src/components/StationsView/FilterOption.vue +++ b/src/components/StationsView/FilterOption.vue @@ -1,13 +1,10 @@ diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index 5504862..67d21f3 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -4,6 +4,7 @@