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