mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Świecące nicki i poziomy sponsorów
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<template>
|
||||
<section class="info-dispatcher">
|
||||
<div class="dispatcher" v-if="station.onlineInfo">
|
||||
<span class="dispatcher_level" :style="calculateExpStyle(station.onlineInfo.dispatcherExp)">
|
||||
<span
|
||||
class="dispatcher_level"
|
||||
:style="calculateExpStyle(station.onlineInfo.dispatcherExp, station.onlineInfo.dispatcherIsSupporter)"
|
||||
>
|
||||
{{ station.onlineInfo.dispatcherExp > 1 ? station.onlineInfo.dispatcherExp : 'L' }}
|
||||
</span>
|
||||
|
||||
|
||||
@@ -100,7 +100,10 @@
|
||||
</td>
|
||||
|
||||
<td class="station_dispatcher-exp">
|
||||
<span v-if="station.onlineInfo" :style="calculateExpStyle(station.onlineInfo.dispatcherExp)">
|
||||
<span
|
||||
v-if="station.onlineInfo"
|
||||
:style="calculateExpStyle(station.onlineInfo.dispatcherExp, station.onlineInfo.dispatcherIsSupporter)"
|
||||
>
|
||||
{{ 2 > station.onlineInfo.dispatcherExp ? 'L' : station.onlineInfo.dispatcherExp }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -4,14 +4,17 @@
|
||||
<div class="train_general">
|
||||
<span>
|
||||
<span class="timetable-id" v-if="train.timetableData">#{{ train.timetableData.timetableId }}</span>
|
||||
|
||||
|
||||
<span class="timetable_warnings">
|
||||
<span class="train-badge twr" v-if="train.timetableData?.TWR">TWR</span>
|
||||
<span class="train-badge skr" v-if="train.timetableData?.SKR">SKR</span>
|
||||
</span>
|
||||
<strong v-if="train.timetableData">{{ train.timetableData.category }} </strong>
|
||||
<strong>{{ train.trainNo }}</strong>
|
||||
<span> | {{ train.driverName }} </span>
|
||||
<strong class="timetable-category" v-if="train.timetableData">
|
||||
{{ train.timetableData.category }}
|
||||
</strong>
|
||||
<strong class="train-number">{{ train.trainNo }}</strong>
|
||||
|
|
||||
<span class="train-driver" :class="{ supporter: train.isSupporter }">{{ train.driverName }}</span>
|
||||
<b class="warning-timeout" v-if="train.isTimeout" :title="$t('trains.timeout')">?</b>
|
||||
</span>
|
||||
</div>
|
||||
@@ -151,10 +154,10 @@ export default defineComponent({
|
||||
|
||||
.warning-timeout {
|
||||
background-color: #be3728;
|
||||
|
||||
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
|
||||
|
||||
width: 1.25em;
|
||||
height: 1.25em;
|
||||
border-radius: 50%;
|
||||
@@ -195,6 +198,13 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
.train-driver {
|
||||
&.supporter {
|
||||
color: orange;
|
||||
text-shadow: orange 0 0 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.timetable_route {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user