mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
chore: service worker changes, got rid of excessive console logs
This commit is contained in:
@@ -431,7 +431,7 @@ export default defineComponent({
|
||||
this.loadStockFromString(stockString);
|
||||
};
|
||||
|
||||
reader.onerror = (err) => console.log(err);
|
||||
reader.onerror = (err) => console.error(err);
|
||||
|
||||
inputEl.value = '';
|
||||
},
|
||||
|
||||
@@ -180,10 +180,6 @@ export default defineComponent({
|
||||
'src',
|
||||
entry.target.querySelector('td:first-child > img')!.getAttribute('data-src')!
|
||||
);
|
||||
// your observer logic
|
||||
console.log(entry.target.textContent, ':D');
|
||||
} else {
|
||||
console.log(entry.target.textContent, ':(');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -91,7 +91,7 @@ export default defineComponent({
|
||||
if (cargo) vehicleCargo = vehicle?.cargoTypes.find((c) => c.id == cargo) || null;
|
||||
}
|
||||
|
||||
if (!vehicle) console.log('Brak pojazdu / rodzaj pojazdu źle wczytany:', type);
|
||||
if (!vehicle) console.warn('Brak pojazdu / rodzaj pojazdu źle wczytany:', type);
|
||||
|
||||
this.addVehicle(vehicle, vehicleCargo);
|
||||
});
|
||||
|
||||
@@ -127,8 +127,6 @@ export const useStore = defineStore({
|
||||
try {
|
||||
const vehiclesData = (await http.get<IVehiclesAPI>('/vehiclesData')).data;
|
||||
this.vehiclesAPIData = vehiclesData;
|
||||
|
||||
console.log(vehiclesData);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export function locoDataList(vehiclesData: IVehiclesAPI | undefined) {
|
||||
const locoProps = vehiclesData.vehicleProps.find((prop) => constructionType == prop.type);
|
||||
|
||||
if (!locoProps) {
|
||||
console.warn('No loco props', type);
|
||||
console.warn('Brak atrybutów dla pojazdu:', type);
|
||||
return acc;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export function carDataList(vehiclesData: IVehiclesAPI | undefined) {
|
||||
const wagonProps = vehiclesData.vehicleProps.find((v) => type.toString().startsWith(v.type));
|
||||
|
||||
if (!wagonProps) {
|
||||
console.warn('No wagon props', type);
|
||||
console.warn('Brak atrybutów dla pojazdu:', type);
|
||||
return acc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user