mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-02 21:08:12 +00:00
chore: service worker changes, got rid of excessive console logs
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"hosting": {
|
"hosting": {
|
||||||
"public": "dist",
|
"public": "dist",
|
||||||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
"ignore": [],
|
||||||
"rewrites": [
|
"rewrites": [
|
||||||
{
|
{
|
||||||
"source": "**",
|
"source": "**",
|
||||||
@@ -9,4 +9,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ export default defineComponent({
|
|||||||
this.loadStockFromString(stockString);
|
this.loadStockFromString(stockString);
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.onerror = (err) => console.log(err);
|
reader.onerror = (err) => console.error(err);
|
||||||
|
|
||||||
inputEl.value = '';
|
inputEl.value = '';
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -180,10 +180,6 @@ export default defineComponent({
|
|||||||
'src',
|
'src',
|
||||||
entry.target.querySelector('td:first-child > img')!.getAttribute('data-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 (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);
|
this.addVehicle(vehicle, vehicleCargo);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -127,8 +127,6 @@ export const useStore = defineStore({
|
|||||||
try {
|
try {
|
||||||
const vehiclesData = (await http.get<IVehiclesAPI>('/vehiclesData')).data;
|
const vehiclesData = (await http.get<IVehiclesAPI>('/vehiclesData')).data;
|
||||||
this.vehiclesAPIData = vehiclesData;
|
this.vehiclesAPIData = vehiclesData;
|
||||||
|
|
||||||
console.log(vehiclesData);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export function locoDataList(vehiclesData: IVehiclesAPI | undefined) {
|
|||||||
const locoProps = vehiclesData.vehicleProps.find((prop) => constructionType == prop.type);
|
const locoProps = vehiclesData.vehicleProps.find((prop) => constructionType == prop.type);
|
||||||
|
|
||||||
if (!locoProps) {
|
if (!locoProps) {
|
||||||
console.warn('No loco props', type);
|
console.warn('Brak atrybutów dla pojazdu:', type);
|
||||||
return acc;
|
return acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ export function carDataList(vehiclesData: IVehiclesAPI | undefined) {
|
|||||||
const wagonProps = vehiclesData.vehicleProps.find((v) => type.toString().startsWith(v.type));
|
const wagonProps = vehiclesData.vehicleProps.find((v) => type.toString().startsWith(v.type));
|
||||||
|
|
||||||
if (!wagonProps) {
|
if (!wagonProps) {
|
||||||
console.warn('No wagon props', type);
|
console.warn('Brak atrybutów dla pojazdu:', type);
|
||||||
return acc;
|
return acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ export default defineConfig({
|
|||||||
VitePWA({
|
VitePWA({
|
||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
|
|
||||||
|
includeAssets: ['/images/*.{png,svg,jpg}', '/fonts/*.{woff,woff2,ttf}'],
|
||||||
|
|
||||||
devOptions: {
|
devOptions: {
|
||||||
suppressWarnings: true,
|
suppressWarnings: true,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user