mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
real stock card exit btn; hotfixes
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
|
||||||
|
After Width: | Height: | Size: 256 B |
@@ -10,7 +10,7 @@
|
|||||||
<a href="https://td2.info.pl/profile/?u=17708" target="_blank">Railtrains997</a>
|
<a href="https://td2.info.pl/profile/?u=17708" target="_blank">Railtrains997</a>
|
||||||
</h1>
|
</h1>
|
||||||
<button class="btn exit-btn" @click="store.isRealStockListCardOpen = false">
|
<button class="btn exit-btn" @click="store.isRealStockListCardOpen = false">
|
||||||
⨯
|
<img src="/images/icon-exit.svg" alt="" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -100,13 +100,13 @@ import { useStore } from '../../store';
|
|||||||
import imageMixin from '../../mixins/imageMixin';
|
import imageMixin from '../../mixins/imageMixin';
|
||||||
import stockMixin from '../../mixins/stockMixin';
|
import stockMixin from '../../mixins/stockMixin';
|
||||||
|
|
||||||
import { IRealComposition } from '../../types';
|
import { IRealComposition, VehicleGroupType } from '../../types';
|
||||||
|
|
||||||
function getVehicleType(stockType: string) {
|
function getVehicleType(stockType: string): VehicleGroupType {
|
||||||
if (/^E/.test(stockType)) return 'loco-e';
|
if (/^E/.test(stockType)) return 'loco-electric';
|
||||||
if (/^S/.test(stockType)) return 'loco-s';
|
if (/^S/.test(stockType)) return 'loco-diesel';
|
||||||
|
|
||||||
return 'car-passenger';
|
return 'wagon-passenger';
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -223,12 +223,10 @@ export default defineComponent({
|
|||||||
@import '../../styles/global.scss';
|
@import '../../styles/global.scss';
|
||||||
|
|
||||||
.exit-btn {
|
.exit-btn {
|
||||||
font-size: 1.2em;
|
display: flex;
|
||||||
margin: 0.25em 0;
|
background-color: #333;
|
||||||
}
|
border-radius: 0.25em;
|
||||||
|
padding: 0.5em;
|
||||||
.btn {
|
|
||||||
background-color: #444;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card_content {
|
.card_content {
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ export type StockSectionMode = 'STOCK_LIST' | 'STOCK_GENERATOR';
|
|||||||
|
|
||||||
export type LocoGroupType = 'loco-electric' | 'loco-diesel' | 'unit-electric' | 'unit-diesel';
|
export type LocoGroupType = 'loco-electric' | 'loco-diesel' | 'unit-electric' | 'unit-diesel';
|
||||||
export type WagonGroupType = 'wagon-passenger' | 'wagon-freight';
|
export type WagonGroupType = 'wagon-passenger' | 'wagon-freight';
|
||||||
export type VehicleGroupType = LocoGroupType & WagonGroupType;
|
export type VehicleGroupType = LocoGroupType | WagonGroupType;
|
||||||
|
|
||||||
export interface IVehicleProps {
|
export interface IVehicleProps {
|
||||||
type: string;
|
type: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user