animacje statusów listy scenerii; fixy tłumaczeń

This commit is contained in:
2024-03-04 18:06:47 +01:00
parent b4a9d4ca3b
commit 032f82acd2
3 changed files with 288 additions and 284 deletions
+18 -13
View File
@@ -1,6 +1,7 @@
<template> <template>
<section class="station_table"> <section class="station_table">
<div class="table_wrapper"> <transition name="status-anim">
<div class="table_wrapper" :key="apiStore.dataStatuses.connection">
<table> <table>
<thead> <thead>
<tr> <tr>
@@ -141,7 +142,9 @@
) )
" "
> >
{{ station.onlineInfo.dispatcherExp < 2 ? 'L' : station.onlineInfo.dispatcherExp }} {{
station.onlineInfo.dispatcherExp < 2 ? 'L' : station.onlineInfo.dispatcherExp
}}
</span> </span>
</td> </td>
@@ -282,13 +285,14 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<Loading v-if="apiStore.dataStatuses.connection == Status.Loading" /> <Loading v-if="apiStore.dataStatuses.connection == Status.Loading" />
<div class="no-stations" v-else-if="stations.length == 0"> <div class="no-stations" v-else-if="stations.length == 0">
{{ $t('sceneries.no-stations') }} {{ $t('sceneries.no-stations') }}
</div> </div>
</div>
</transition>
</section> </section>
</template> </template>
@@ -400,8 +404,9 @@ $rowCol: #424242;
.table_wrapper { .table_wrapper {
overflow: auto; overflow: auto;
overflow-y: hidden;
font-weight: 500; font-weight: 500;
height: 90vh;
min-height: 550px;
} }
.no-stations { .no-stations {
@@ -430,39 +435,39 @@ table {
top: 0; top: 0;
&.station { &.station {
width: 200px; width: 12em;
} }
&.min-lvl { &.min-lvl {
width: 120px; width: 4em;
} }
&.status { &.status {
width: 140px; width: 10em;
} }
&.dispatcher { &.dispatcher {
width: 230px; width: 12em;
} }
&.dispatcher-lvl { &.dispatcher-lvl {
width: 100px; width: 6em;
} }
&.routes-double, &.routes-double,
&.routes-single { &.routes-single {
width: 80px; width: 7em;
} }
&.general { &.general {
width: 160px; width: 10em;
} }
&.header-image { &.header-image {
width: 60px; width: 3.5em;
&.user { &.user {
width: 75px; width: 5em;
} }
} }
+2 -2
View File
@@ -234,8 +234,8 @@
}, },
"sceneries": { "sceneries": {
"headers": { "headers": {
"station": "Station", "station": "Scenery",
"min-lvl": "Station\nlevel", "min-lvl": "Scenery\nlevel",
"status": "Status", "status": "Status",
"dispatcher": "Dispatcher", "dispatcher": "Dispatcher",
"dispatcher-lvl": "Dispatcher\nlevel", "dispatcher-lvl": "Dispatcher\nlevel",
+2 -3
View File
@@ -225,9 +225,8 @@
}, },
"sceneries": { "sceneries": {
"headers": { "headers": {
"station": "Stacja", "station": "Sceneria",
"abbr": "Skrót\nposterunku", "min-lvl": "Poziom\nscenerii",
"min-lvl": "Poziom\nstacji",
"status": "Status", "status": "Status",
"dispatcher": "Dyżurny", "dispatcher": "Dyżurny",
"dispatcher-lvl": "Poziom\ndyżurnego", "dispatcher-lvl": "Poziom\ndyżurnego",