From 7416d7d59f5c686406fde3849fa3b82899c53e45 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 13 May 2024 15:51:48 +0200 Subject: [PATCH 1/4] chore: pwa caching fixes --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index b73537e..1f4b5fe 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,7 +34,7 @@ export default defineConfig({ maxAgeSeconds: 60 * 60 * 24, // <== 1 day }, cacheableResponse: { - statuses: [0, 200, 404], + statuses: [200, 404], }, }, }, From 640c5e262b9e96e14da195f726003c6003260d1a Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 13 May 2024 15:52:06 +0200 Subject: [PATCH 2/4] chore: stock upload fix --- src/mixins/stockMixin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mixins/stockMixin.ts b/src/mixins/stockMixin.ts index 53e850d..0d74582 100644 --- a/src/mixins/stockMixin.ts +++ b/src/mixins/stockMixin.ts @@ -67,7 +67,9 @@ export default defineComponent({ let vehicle: IVehicle | null = null; let vehicleCargo: ICargo | null = null; - const isTractionUnit = /^(EU|EP|ET|SM|EN|2EN|SN)/.test(type); + const isTractionUnit = /^([a-zA-Z\d]{0,}-\d{0,})/.test(type); + + console.log(type, isTractionUnit); if (isTractionUnit) { const [locoType, spawnProps] = type.split(','); From 454ae138f7d899e05032d72d74924f8ef7f89133 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 13 May 2024 15:57:49 +0200 Subject: [PATCH 3/4] chore: config fix --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 1f4b5fe..addfebb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,7 +34,7 @@ export default defineConfig({ maxAgeSeconds: 60 * 60 * 24, // <== 1 day }, cacheableResponse: { - statuses: [200, 404], + statuses: [200], }, }, }, From 4cdd8ea06af896a3c01b78aea9f7fb3f25873227 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 13 May 2024 15:58:39 +0200 Subject: [PATCH 4/4] bump(version): 1.8.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dca231f..01f9533 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pojazdownik", - "version": "1.8.5", + "version": "1.8.6", "private": true, "type": "module", "scripts": {