mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
methods: {
|
|
getIconURL(name: string, ext = 'svg'): string {
|
|
return `/images/icon-${name}.${ext}`;
|
|
},
|
|
|
|
getThumbnailURL(vehicleType: string, size: 'small' | 'large') {
|
|
return `https://stacjownik.spythere.eu/static/images/${vehicleType}--${size == 'small' ? 300 : 800}px.jpg`;
|
|
},
|
|
},
|
|
});
|