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