Compare commits

...

6 Commits

Author SHA1 Message Date
Spythere d5d008f43f Wersja 1.3.1
Wersja 1.3.1
2023-03-03 13:27:21 +01:00
Spythere f92c47447e bump: wersja 1.3.1 2023-03-03 13:26:25 +01:00
Spythere 65701bee74 feature: oznaczenie pojazdów dla sponsorów 2023-03-03 13:25:52 +01:00
Spythere 76912ceacb Merge branch 'main' into development 2023-03-02 00:15:47 +01:00
Spythere 839ce80a62 hotfix 2023-03-02 00:14:55 +01:00
Spythere 8a87842e0b hotfix 2023-03-02 00:14:29 +01:00
7 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pojazdownik",
"version": "1.3.0",
"version": "1.3.1",
"private": true,
"scripts": {
"dev": "vite",
+2 -2
View File
@@ -25,7 +25,7 @@
>
<option :value="null" disabled>Wybierz pojazd trakcyjny</option>
<option v-for="loco in locoOptions" :value="loco" :key="loco.type">
{{ loco.type }}
{{ loco.type }}<b v-if="loco.supportersOnly">*</b>
</option>
</select>
</div>
@@ -53,7 +53,7 @@
<option :value="null" disabled>Wybierz wagon</option>
<option v-for="car in carOptions" :value="car" :key="car.type">
{{ car.type }}
{{ car.type }}<b v-if="car.supportersOnly">*</b>
</option>
</select>
</div>
+2 -2
View File
@@ -31,8 +31,8 @@ type SectionMode = typeof store.stockSectionMode;
const sectionModes: { [key: string]: SectionMode } = {
SKŁAD: 'stock-list',
'GNR. NUMERU': 'number-generator',
'GNR. SKŁADU': 'stock-generator',
'GNR NUMERU': 'number-generator',
'GNR SKŁADU': 'stock-generator',
};
const chosenSectionComponent = computed(() => {
@@ -1,7 +1,7 @@
<template>
<section class="train-image-section">
<div class="train-image__wrapper">
<div class="train-image__content">
<div class="train-image__content" :class="{'supporter': store.chosenVehicle?.supportersOnly}">
<transition name="img-message-anim">
<div class="empty-message" v-if="store.imageLoading && store.chosenVehicle?.imageSrc">
ŁADOWANIE OBRAZU...
@@ -44,6 +44,8 @@
: 'Typ konstrukcji: ' + store.chosenVehicle.constructionType
}}
</div>
<b style="color: salmon;" v-if="store.chosenVehicle.supportersOnly">* TYLKO DLA SPONSORÓW</b>
</div>
</div>
+5 -1
View File
@@ -127,7 +127,7 @@
{{ i + 1 }}.
</span>
<span class="stock-info__type">
<span class="stock-info__type" :class="{ supporter: stock.supportersOnly }">
{{ stock.isLoco ? stock.type : getCarSpecFromType(stock.type) }}
</span>
@@ -525,6 +525,10 @@ li > .stock-info {
margin: 0.5em 0;
}
.supporter {
color: salmon;
}
.stock-info {
&__no,
&__type {
+5 -1
View File
@@ -9,7 +9,7 @@
@dragover="allowDrop"
>
<span @click="onListItemClick(stockIndex)" :key="stock.id">
<b>
<b :class="{ supporter: stock.supportersOnly }">
{{ stock.type }}
</b>
@@ -120,5 +120,9 @@ const allowDrop = (e: DragEvent) => {
max-height: 60px;
}
}
.supporter {
color: salmon;
}
</style>
+1 -1
View File
@@ -29,7 +29,7 @@ export default defineComponent({
count,
imgSrc: vehicle.imageSrc,
useType: isLoco ? vehicle.power : vehicle.useType,
supportersOnly: false,
supportersOnly: vehicle.supportersOnly,
};
},