mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
eslint & prettier update; api fetching from static server
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { defineComponent } from "vue";
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
methods: {
|
||||
getIconURL(name: string, ext = "svg"): string {
|
||||
getIconURL(name: string, ext = 'svg'): string {
|
||||
return `/images/icon-${name}.${ext}`;
|
||||
},
|
||||
|
||||
getThumbnailURL(vehicleType: string, size: "small" | "large") {
|
||||
getThumbnailURL(vehicleType: string, size: 'small' | 'large') {
|
||||
return `${
|
||||
import.meta.env.VITE_API_DEV === "1"
|
||||
? "http://localhost:5500"
|
||||
: "https://spythere.github.io/api"
|
||||
}/td2/images/${vehicleType}--${size == "small" ? 300 : 800}px.jpg`;
|
||||
import.meta.env.VITE_API_DEV === '1'
|
||||
? 'http://localhost:5500'
|
||||
: 'https://static.spythere.eu'
|
||||
}/images/${vehicleType}--${size == 'small' ? 300 : 800}px.jpg`;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user