mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawki z wyglądem
This commit is contained in:
@@ -16,12 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="option-list" :class="{ open: listOpen }">
|
<ul class="option-list" :class="{ open: listOpen }">
|
||||||
<li
|
<li class="option-item" v-for="(cp, i) in stationInfo.checkpoints" :key="i" @click="() => chooseOption(cp.checkpointName)">
|
||||||
class="option-item"
|
|
||||||
v-for="(cp, i) in stationInfo.checkpoints"
|
|
||||||
:key="i"
|
|
||||||
@click="() => chooseOption(cp.checkpointName)"
|
|
||||||
>
|
|
||||||
<input type="option-radio" name="sort" />
|
<input type="option-radio" name="sort" />
|
||||||
<label :id="cp.checkpointName">{{ cp.checkpointName }}</label>
|
<label :id="cp.checkpointName">{{ cp.checkpointName }}</label>
|
||||||
</li>
|
</li>
|
||||||
@@ -31,35 +26,27 @@
|
|||||||
|
|
||||||
<span class="timetable-item loading" v-if="dataStatus == 0">Ładowanie...</span>
|
<span class="timetable-item loading" v-if="dataStatus == 0">Ładowanie...</span>
|
||||||
|
|
||||||
<span
|
<span class="timetable-item empty" v-else-if="computedScheduledTrains.length == 0">Brak aktywnych rozkładów!</span>
|
||||||
class="timetable-item empty"
|
|
||||||
v-else-if="computedScheduledTrains.length == 0"
|
|
||||||
>Brak aktywnych rozkładów!</span>
|
|
||||||
|
|
||||||
<transition-group name="list-anim">
|
<transition-group name="list-anim">
|
||||||
<div class="timetable-item" v-for="(scheduledTrain, i) in computedScheduledTrains" :key="i+1">
|
<div class="timetable-item" v-for="(scheduledTrain, i) in computedScheduledTrains" :key="i+1">
|
||||||
<span class="timetable-general">
|
<span class="timetable-general">
|
||||||
<span class="general-info">
|
<span class="general-info">
|
||||||
<router-link
|
<router-link :to="{
|
||||||
:to="{
|
|
||||||
name: 'TrainsView',
|
name: 'TrainsView',
|
||||||
params: {
|
params: {
|
||||||
passedSearchedTrain: scheduledTrain.trainNo.toString(),
|
passedSearchedTrain: scheduledTrain.trainNo.toString(),
|
||||||
},
|
},
|
||||||
}"
|
}">
|
||||||
>
|
|
||||||
<span>
|
<span>
|
||||||
<strong>{{ scheduledTrain.category }}</strong>
|
<strong>{{ scheduledTrain.category }}</strong>
|
||||||
{{ scheduledTrain.trainNo }}
|
{{ scheduledTrain.trainNo }}
|
||||||
</span>
|
</span>
|
||||||
</router-link>|
|
</router-link>|
|
||||||
<span>
|
<span>
|
||||||
<a
|
<a :href="
|
||||||
:href="
|
|
||||||
'https://td2.info.pl/profile/?u=' + scheduledTrain.driverId
|
'https://td2.info.pl/profile/?u=' + scheduledTrain.driverId
|
||||||
"
|
" target="_blank">{{ scheduledTrain.driverName }}</a>
|
||||||
target="_blank"
|
|
||||||
>{{ scheduledTrain.driverName }}</a>
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="info-route">
|
<div class="info-route">
|
||||||
@@ -93,10 +80,7 @@
|
|||||||
<span class="stop-arrow arrow"></span>
|
<span class="stop-arrow arrow"></span>
|
||||||
</span>
|
</span>
|
||||||
<span class="schedule-departure">
|
<span class="schedule-departure">
|
||||||
<span
|
<span class="departure-time terminates" v-if="scheduledTrain.stopInfo.terminatesHere">KOŃCZY BIEG</span>
|
||||||
class="departure-time terminates"
|
|
||||||
v-if="scheduledTrain.stopInfo.terminatesHere"
|
|
||||||
>KOŃCZY BIEG</span>
|
|
||||||
<span class="departure-time" v-else>
|
<span class="departure-time" v-else>
|
||||||
{{ scheduledTrain.stopInfo.departureTimeString }} ({{
|
{{ scheduledTrain.stopInfo.departureTimeString }} ({{
|
||||||
scheduledTrain.stopInfo.departureDelay
|
scheduledTrain.stopInfo.departureDelay
|
||||||
|
|||||||
@@ -24,8 +24,9 @@
|
|||||||
|
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="list_wrapper">
|
<div class="list_wrapper">
|
||||||
<div class="list_loading" v-if="dataLoading">POBIERANIE DANYCH...</div>
|
<!-- <div class="list_loading" v-if="dataLoading">POBIERANIE DANYCH...</div> -->
|
||||||
<ul class="list_content" v-else-if="computedHistoryList.length != 0">
|
<transition name="list-anim" :key="inputStationName" mode="out-in">
|
||||||
|
<ul class="list_content" v-if="!dataLoading && computedHistoryList.length != 0">
|
||||||
<li v-if="currentDispatcherFrom != -1" class="current">
|
<li v-if="currentDispatcherFrom != -1" class="current">
|
||||||
<div class="dispatcher-name">{{ currentDispatcher }}</div>
|
<div class="dispatcher-name">{{ currentDispatcher }}</div>
|
||||||
<div class="dispatcher-date">
|
<div class="dispatcher-date">
|
||||||
@@ -33,7 +34,6 @@
|
|||||||
{{ new Date(currentDispatcherFrom).toLocaleTimeString('pl-PL', { hour: '2-digit', minute: '2-digit' })}}
|
{{ new Date(currentDispatcherFrom).toLocaleTimeString('pl-PL', { hour: '2-digit', minute: '2-digit' })}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li v-for="(history, i) in computedHistoryList" :key="i">
|
<li v-for="(history, i) in computedHistoryList" :key="i">
|
||||||
<div class="dispatcher-name">{{history.dispatcherName }}</div>
|
<div class="dispatcher-name">{{history.dispatcherName }}</div>
|
||||||
<div class="dispatcher-date">
|
<div class="dispatcher-date">
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div v-if="!dataLoading && inputStationName != ''" class="list_no-info">BRAK ZEBRANYCH DANYCH O RUCHU!</div>
|
||||||
<div v-else-if="inputStationName != ''" class="list_no-info">BRAK ZEBRANYCH DANYCH O RUCHU!</div>
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -154,7 +154,7 @@ export default class HistoryView extends Vue {
|
|||||||
|
|
||||||
.history {
|
.history {
|
||||||
&_view {
|
&_view {
|
||||||
font-size: 1.5em;
|
font-size: 1.2em;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,6 +166,23 @@ export default class HistoryView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-anim {
|
||||||
|
&-enter-active,
|
||||||
|
&-leave-active {
|
||||||
|
transition: all 150ms ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-enter,
|
||||||
|
&-leave-to {
|
||||||
|
opacity: 0.1;
|
||||||
|
transform: scale(0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
&-move {
|
||||||
|
transition: transform 100ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.disclaimer {
|
.disclaimer {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
@@ -243,12 +260,19 @@ export default class HistoryView extends Vue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&_content {
|
||||||
|
max-height: 550px;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
padding: 0.2em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
&_content > li {
|
&_content > li {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
|
||||||
background: #222;
|
background: #222;
|
||||||
padding: 0.5em 0.8em;
|
padding: 0.3em 0.8em;
|
||||||
margin: 0.3em 0;
|
margin: 0.3em 0;
|
||||||
|
|
||||||
gap: 10em;
|
gap: 10em;
|
||||||
@@ -269,6 +293,9 @@ export default class HistoryView extends Vue {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
font-size: 1.1em;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user