mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ff9341851 | |||
| f9276f6c71 | |||
| f4f9a4729f | |||
| ed0906b63e | |||
| 2ae19123a3 | |||
| 0c2be7b927 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pojazdownik",
|
"name": "pojazdownik",
|
||||||
"version": "1.8.0",
|
"version": "1.8.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,81 +1,81 @@
|
|||||||
{
|
{
|
||||||
"EU07": {
|
"EU07": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 125
|
"650000": 125
|
||||||
},
|
},
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"2000": 70
|
"2000000": 70
|
||||||
},
|
},
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"4E": {
|
"4E": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 125
|
"650000": 125
|
||||||
},
|
},
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"2000": 70
|
"2000000": 70
|
||||||
},
|
},
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"EU07E": {
|
"EU07E": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 125
|
"650000": 125
|
||||||
},
|
},
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"2000": 70
|
"2000000": 70
|
||||||
},
|
},
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"EP07": {
|
"EP07": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 125
|
"650000": 125
|
||||||
},
|
},
|
||||||
"cargo": null,
|
"cargo": null,
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"EP08": {
|
"EP08": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 140
|
"650000": 140
|
||||||
},
|
},
|
||||||
"cargo": null,
|
"cargo": null,
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"EP09": {
|
"EP09": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"650": 160
|
"650000": 160
|
||||||
},
|
},
|
||||||
"cargo": null,
|
"cargo": null,
|
||||||
"none": 160
|
"none": 160
|
||||||
},
|
},
|
||||||
"ET41": {
|
"ET41": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"700": 125
|
"700000": 125
|
||||||
},
|
},
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"4000": 70
|
"4000000": 70
|
||||||
},
|
},
|
||||||
"none": 110
|
"none": 110
|
||||||
},
|
},
|
||||||
"SM42": {
|
"SM42": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"95": 90,
|
"95000": 90,
|
||||||
"200": 80,
|
"200000": 80,
|
||||||
"300": 70,
|
"300000": 70,
|
||||||
"450": 60,
|
"450000": 60,
|
||||||
"750": 50,
|
"750000": 50,
|
||||||
"1130": 40,
|
"1130000": 40,
|
||||||
"1720": 30,
|
"1720000": 30,
|
||||||
"2400": 20
|
"2400000": 20
|
||||||
},
|
},
|
||||||
"cargo": {
|
"cargo": {
|
||||||
"95": 90,
|
"95000": 90,
|
||||||
"200": 80,
|
"200000": 80,
|
||||||
"300": 70,
|
"300000": 70,
|
||||||
"450": 60,
|
"450000": 60,
|
||||||
"750": 50,
|
"750000": 50,
|
||||||
"1130": 40,
|
"1130000": 40,
|
||||||
"1720": 30,
|
"1720000": 30,
|
||||||
"2400": 20
|
"2400000": 20
|
||||||
},
|
},
|
||||||
"none": 90
|
"none": 90
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-3
@@ -24,7 +24,7 @@ export default defineConfig({
|
|||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: /^https:\/\/rj.td2.info.pl\/dist\/img\/thumbnails\/.*/i,
|
urlPattern: /^https:\/\/rj.td2.info.pl\/dist\/img\/thumbnails\/.*/i,
|
||||||
handler: 'NetworkFirst',
|
handler: 'CacheFirst',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'swdr-images-cache',
|
cacheName: 'swdr-images-cache',
|
||||||
expiration: {
|
expiration: {
|
||||||
@@ -37,10 +37,24 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/.*/i,
|
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/data\/.*/i,
|
||||||
handler: 'NetworkFirst',
|
handler: 'NetworkFirst',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'spythere-api-cache',
|
cacheName: 'spythere-api-data-cache',
|
||||||
|
expiration: {
|
||||||
|
maxEntries: 150,
|
||||||
|
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||||
|
},
|
||||||
|
cacheableResponse: {
|
||||||
|
statuses: [0, 200],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/images\/.*/i,
|
||||||
|
handler: 'CacheFirst',
|
||||||
|
options: {
|
||||||
|
cacheName: 'spythere-api-images-cache',
|
||||||
expiration: {
|
expiration: {
|
||||||
maxEntries: 150,
|
maxEntries: 150,
|
||||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||||
|
|||||||
Reference in New Issue
Block a user