mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1723a1b0bd | |||
| 86ba9112de | |||
| cd41e46ef5 | |||
| 32d5f0269b | |||
| 1750e406e0 | |||
| 7457d59dea | |||
| 2578f5c8d4 | |||
| 6af6764c30 |
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pojazdownik",
|
"name": "pojazdownik",
|
||||||
"version": "1.8.7",
|
"version": "1.8.8",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vue-tsc --noEmit && vite build",
|
||||||
"preview": "yarn build && vite preview --port 4174",
|
"preview": "yarn build && vite preview",
|
||||||
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||||
"format": "prettier --write src/"
|
"format": "prettier --write src/"
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<div class="thumbnail-container">
|
<div class="thumbnail-container">
|
||||||
<div>{{ stockType }}</div>
|
<div>{{ stockType }}</div>
|
||||||
<img
|
<img
|
||||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${stockType}.png`"
|
:src="`https://static.spythere.eu/thumbnails/${stockType}.png`"
|
||||||
:title="stockType"
|
:title="stockType"
|
||||||
style="opacity: 0"
|
style="opacity: 0"
|
||||||
@error="(e) => onStockItemError(e, stockType)"
|
@error="(e) => onStockItemError(e, stockType)"
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
<template #href>
|
<template #href>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="https://docs.google.com/spreadsheets/d/1KVa5vn2d8XGkXQFwbavVudwKqUQxbLOucHWs2VYqAUE"
|
href="https://docs.google.com/spreadsheets/d/1BvTU-U7huIaEheov22TrhTtROUM4MwVfdbq03GVAEM8"
|
||||||
>
|
>
|
||||||
{{ $t('stocklist.acceptable-mass-docs') }}
|
{{ $t('stocklist.acceptable-mass-docs') }}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<img
|
<img
|
||||||
draggable="false"
|
draggable="false"
|
||||||
:src="`https://rj.td2.info.pl/dist/img/thumbnails/${stock.vehicleRef.type}.png`"
|
:src="`https://static.spythere.eu/thumbnails/${stock.vehicleRef.type}.png`"
|
||||||
:alt="stock.vehicleRef.type"
|
:alt="stock.vehicleRef.type"
|
||||||
:title="stock.vehicleRef.type"
|
:title="stock.vehicleRef.type"
|
||||||
@error="stockImageError($event, stock)"
|
@error="stockImageError($event, stock)"
|
||||||
|
|||||||
@@ -47,6 +47,26 @@
|
|||||||
"cargo": null,
|
"cargo": null,
|
||||||
"none": 160
|
"none": 160
|
||||||
},
|
},
|
||||||
|
"ET22": {
|
||||||
|
"passenger": {
|
||||||
|
"650000": 125
|
||||||
|
},
|
||||||
|
"cargo": {
|
||||||
|
"1200000": 100,
|
||||||
|
"3100000": 70
|
||||||
|
},
|
||||||
|
"none": 125
|
||||||
|
},
|
||||||
|
"201E": {
|
||||||
|
"passenger": {
|
||||||
|
"650000": 125
|
||||||
|
},
|
||||||
|
"cargo": {
|
||||||
|
"1200000": 100,
|
||||||
|
"3100000": 70
|
||||||
|
},
|
||||||
|
"none": 125
|
||||||
|
},
|
||||||
"ET41": {
|
"ET41": {
|
||||||
"passenger": {
|
"passenger": {
|
||||||
"700000": 125
|
"700000": 125
|
||||||
|
|||||||
+6
-18
@@ -8,6 +8,9 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 2138,
|
port: 2138,
|
||||||
},
|
},
|
||||||
|
preview: {
|
||||||
|
port: 4138,
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
@@ -25,25 +28,10 @@ export default defineConfig({
|
|||||||
|
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: new RegExp('^https://rj.td2.info.pl/dist/img/thumbnails/*', 'i'),
|
urlPattern: /^https:\/\/.*\.spythere\.eu\/.*/i,
|
||||||
handler: 'CacheFirst',
|
handler: 'StaleWhileRevalidate',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'swdr-images-cache',
|
cacheName: 'spythere-cache',
|
||||||
expiration: {
|
|
||||||
maxEntries: 50,
|
|
||||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
|
||||||
},
|
|
||||||
cacheableResponse: {
|
|
||||||
statuses: [200],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
urlPattern: new RegExp('^https://stacjownik.spythere.eu/vehicles', 'i'),
|
|
||||||
handler: 'NetworkFirst',
|
|
||||||
options: {
|
|
||||||
cacheName: 'vehicles-cache',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user