mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
fix designu
This commit is contained in:
@@ -1,6 +1,22 @@
|
||||
<template>
|
||||
<div class="stock-list">
|
||||
<ul>
|
||||
<div v-if="tractionOnly">
|
||||
<p>
|
||||
{{ computedStockList[0].split(':')[0].split('_').splice(0, 2).join(' ') }}
|
||||
{{ computedStockList[0].split(':')[1] }}
|
||||
</p>
|
||||
|
||||
<img
|
||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${computedStockList[0].split(':')[0]}${
|
||||
/^EN/.test(computedStockList[0]) ? 'rb' : ''
|
||||
}.png`"
|
||||
@error="onImageError($event, computedStockList[0])"
|
||||
width="400"
|
||||
height="60"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ul v-else>
|
||||
<li v-for="(stockName, i) in computedStockList" :key="i">
|
||||
<p>
|
||||
{{ stockName.split(':')[0].split('_').splice(0, 2).join(' ') }}
|
||||
@@ -17,8 +33,9 @@
|
||||
height="60"
|
||||
/>
|
||||
|
||||
<!-- /// Manualne dodawanie miniaturek członów dla kibelków /// -->
|
||||
<img
|
||||
v-if="/^(EN|2EN)/.test(stockName) && !tractionOnly"
|
||||
v-if="/^(EN|2EN)/.test(stockName)"
|
||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${stockName.split(':')[0]}s.png`"
|
||||
@error="
|
||||
(event) => ((event.target as HTMLImageElement).src = '/images/icon-loco-ezt-s.png')
|
||||
@@ -27,7 +44,7 @@
|
||||
|
||||
<img
|
||||
class="train-thumbnail"
|
||||
v-if="/^EN71/.test(stockName) && !tractionOnly"
|
||||
v-if="/^EN71/.test(stockName)"
|
||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${stockName.split(':')[0]}s.png`"
|
||||
@error="
|
||||
(event) => ((event.target as HTMLImageElement).src = '/images/icon-loco-ezt-s.png')
|
||||
@@ -36,12 +53,13 @@
|
||||
|
||||
<img
|
||||
class="train-thumbnail"
|
||||
v-if="/^(EN|2EN)/.test(stockName) && !tractionOnly"
|
||||
v-if="/^(EN|2EN)/.test(stockName)"
|
||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${stockName.split(':')[0]}ra.png`"
|
||||
@error="
|
||||
(event) => ((event.target as HTMLImageElement).src = '/images/icon-loco-ezt-ra.png')
|
||||
"
|
||||
/>
|
||||
<!-- /// -->
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -99,12 +99,6 @@
|
||||
<section class="train-stats">
|
||||
<StockList :trainStockList="train.stockList" :tractionOnly="true" />
|
||||
|
||||
<div class="text--grayed">
|
||||
<span v-if="train.stockList.length > 1">
|
||||
{{ $t('trains.cars') }}: {{ train.stockList.length - 1 }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span v-for="(stat, i) in STATS.main" :key="stat.name">
|
||||
<span v-if="i > 0"> • </span>
|
||||
@@ -113,6 +107,10 @@
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<span v-if="train.stockList.length > 1" class="text--grayed">
|
||||
{{ $t('trains.cars') }}: {{ train.stockList.length - 1 }}
|
||||
</span>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user