Compare commits

..

19 Commits

Author SHA1 Message Date
Spythere 9bb0bcb735 Merge pull request #51 from Spythere/development
v1.9.3
2025-11-05 14:51:56 +01:00
Spythere 56dc42b58e fix: logic for checking if PRSM4 is at the end 2025-11-05 01:33:29 +01:00
Spythere 3a17f7485f chore: warning icon style for stock warnings 2025-11-05 01:28:36 +01:00
Spythere 39b58d6e7c chore: added immediate SW reload 2025-11-05 01:05:20 +01:00
Spythere bd70e0f071 chore: added detecting whether PRSM4 is at the end of a rolling stock 2025-11-04 01:03:23 +01:00
Spythere 32594e2f67 bump: v1.9.3 2025-11-04 00:46:49 +01:00
Spythere 05dbf33b4f chore: added preloading images & fonts 2025-11-03 23:09:47 +01:00
Spythere 4022d2ea2f chore: packages upgrade 2025-11-03 22:59:02 +01:00
Spythere 85fec2f348 Merge branch 'development' into packages-upgrade 2025-11-03 22:57:52 +01:00
Spythere 85f91a59cd Merge pull request #50 from Spythere/development
Updated usage description for a new wagon in the simulator
2025-10-31 20:18:08 +01:00
Spythere 857c176a38 chore: updated usage desc for new wagon 2025-10-31 20:16:17 +01:00
Spythere 7d0070820c Merge pull request #49 from Spythere/development
fix: cargo warnings
2025-06-27 15:46:03 +02:00
Spythere bd1de41764 fix: cargo warnings 2025-06-27 15:40:50 +02:00
Spythere 0799bfd838 Merge pull request #48 from Spythere/development
fix: missing translations
2025-06-04 01:10:36 +02:00
Spythere 730275ea7c fix: missing translations 2025-06-04 01:10:10 +02:00
Spythere a0c578b31b Merge pull request #47 from Spythere/development
hotfix: generator 627Z typo
2025-06-04 01:07:06 +02:00
Spythere d21aec63d0 hotfix: generator 627Z typo 2025-06-04 01:06:46 +02:00
Spythere 80c5194735 Merge pull request #46 from Spythere/development
hotfix: EN category desc typo
2025-06-02 00:43:27 +02:00
Spythere 93bbedf189 hotfix: EN category desc typo 2025-06-02 00:42:55 +02:00
14 changed files with 164 additions and 143 deletions
+50 -49
View File
@@ -1,55 +1,56 @@
<!doctype html> <!doctype html>
<html> <html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Pojazdownik</title> <head>
<meta name="description" content="Edytor składów online dla symulatora Train Driver 2" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" sizes="any" /> <title>Pojazdownik</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" /> <meta name="description" content="Edytor składów online dla symulatora Train Driver 2" />
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="msapplication-TileColor" content="#da532c" /> <link rel="icon" href="/favicon.ico" sizes="any" />
<meta name="theme-color" content="#111" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="manifest" href="/site.webmanifest" />
<!-- Static OpenGraph meta --> <meta name="msapplication-TileColor" content="#da532c" />
<meta name="description" content="Edytor składów online dla symulatora Train Driver 2" /> <meta name="theme-color" content="#111" />
<meta property="og:url" content="https://pojazdownik-td2.web.app/" />
<meta property="og:type" content="website" /> <!-- Static OpenGraph meta -->
<meta property="og:title" content="Pojazdownik" /> <meta name="description" content="Edytor składów online dla symulatora Train Driver 2" />
<meta <meta property="og:url" content="https://pojazdownik-td2.web.app/" />
property="og:description" <meta property="og:type" content="website" />
content="Edytor składów online dla symulatora Train Driver 2" <meta property="og:title" content="Pojazdownik" />
/> <meta property="og:description" content="Edytor składów online dla symulatora Train Driver 2" />
<meta <meta property="og:image"
property="og:image" content="https://raw.githubusercontent.com/Spythere/api/refs/heads/main/thumbnails/pojazdownik-banner.png" />
content="https://raw.githubusercontent.com/Spythere/api/refs/heads/main/thumbnails/pojazdownik-banner.png" <meta property="og:image:width" content="1200" />
/> <meta property="og:image:height" content="630" />
<meta property="og:image:width" content="1200" /> <meta property="og:site_name" content="Pojazdownik" />
<meta property="og:image:height" content="630" />
<meta property="og:site_name" content="Pojazdownik" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Pojazdownik" />
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:description" content="Edytor składów online dla symulatora Train Driver 2" />
<meta name="twitter:title" content="Pojazdownik" /> <meta name="twitter:image"
<meta content="https://raw.githubusercontent.com/Spythere/api/refs/heads/main/thumbnails/pojazdownik-banner.png" />
name="twitter:description"
content="Edytor składów online dla symulatora Train Driver 2" <!-- Preload -->
/> <link rel="preload" href="/fonts/Lato-Bold.woff2" as="font" type="font/woff2" crossorigin />
<meta <link rel="preload" href="/fonts/Lato-Regular.woff2" as="font" type="font/woff2" crossorigin />
name="twitter:image"
content="https://raw.githubusercontent.com/Spythere/api/refs/heads/main/thumbnails/pojazdownik-banner.png" <link rel="preload" as="image" href="/logo-pl.svg" />
/> <link rel="preload" as="image" href="/logo-en.svg" />
</head> </head>
<body>
<noscript> <body>
<strong> We're sorry but Pojazdownik doesn't work properly without JavaScript enabled. Please enable it to continue. </strong> <noscript>
</noscript> <strong> We're sorry but Pojazdownik doesn't work properly without JavaScript enabled. Please enable it to continue.
<div id="app"></div> </strong>
<script type="module" src="/src/main.ts"></script> </noscript>
</body> <div id="app"></div>
</html> <script type="module" src="/src/main.ts"></script>
</body>
</html>
+15 -15
View File
@@ -1,6 +1,6 @@
{ {
"name": "pojazdownik", "name": "pojazdownik",
"version": "1.9.2", "version": "1.9.3",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -13,27 +13,27 @@
}, },
"dependencies": { "dependencies": {
"axios": "^1.4.0", "axios": "^1.4.0",
"lucide-vue-next": "^0.487.0", "lucide-vue-next": "^0.552.0",
"pinia": "^2.0.17", "pinia": "^3.0.3",
"prettier": "^3.0.3", "prettier": "^3.0.3",
"vue": "^3.2.37", "vue": "^3.2.37",
"vue-i18n": "9.11.0", "vue-i18n": "11.1.12",
"vue-router": "4" "vue-router": "4"
}, },
"devDependencies": { "devDependencies": {
"@rushstack/eslint-patch": "^1.3.3", "@rushstack/eslint-patch": "^1.3.3",
"@types/node": "^22.13.9", "@types/node": "^24.10.0",
"@vite-pwa/assets-generator": "^0.2.3", "@vite-pwa/assets-generator": "^1.0.2",
"@vitejs/plugin-vue": "^5.0.3", "@vitejs/plugin-vue": "^6.0.1",
"@vue/eslint-config-prettier": "^9.0.0", "@vue/eslint-config-prettier": "^10.2.0",
"@vue/eslint-config-typescript": "^12.0.0", "@vue/eslint-config-typescript": "^14.6.0",
"@vue/tsconfig": "^0.5.1", "@vue/tsconfig": "^0.8.1",
"eslint": "^8.49.0", "eslint": "^9.39.1",
"eslint-plugin-vue": "^9.17.0", "eslint-plugin-vue": "^10.5.1",
"sass": "^1.59.3", "sass": "^1.59.3",
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vite": "^5.0.12", "vite": "^7.1.12",
"vite-plugin-pwa": "^0.17.5", "vite-plugin-pwa": "^1.1.0",
"vue-tsc": "^2.2.8" "vue-tsc": "^3.1.3"
} }
} }
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9 -4
View File
@@ -11,6 +11,14 @@ import { useStore } from './store';
import ImageFullscreenPreview from './components/utils/ImageFullscreenPreview.vue'; import ImageFullscreenPreview from './components/utils/ImageFullscreenPreview.vue';
import AppContainerView from './views/AppContainerView.vue'; import AppContainerView from './views/AppContainerView.vue';
import AppModals from './components/app/AppModals.vue'; import AppModals from './components/app/AppModals.vue';
import { registerSW } from 'virtual:pwa-register';
registerSW({
immediate: true,
onNeedRefresh() {
console.log('Needs refresh!');
},
});
export default defineComponent({ export default defineComponent({
components: { ImageFullscreenPreview, AppContainerView, AppModals }, components: { ImageFullscreenPreview, AppContainerView, AppModals },
@@ -49,10 +57,7 @@ export default defineComponent({
try { try {
this.store.storageStockData = JSON.parse(savedData); this.store.storageStockData = JSON.parse(savedData);
} catch (error) { } catch (error) {
console.error( console.error('Wystąpił błąd podczas przetwarzania danych o składach z localStorage!', error);
'Wystąpił błąd podczas przetwarzania danych o składach z localStorage!',
error
);
} }
}, },
}, },
@@ -1,23 +1,31 @@
<template> <template>
<div class="stock_warnings" v-if="hasAnyWarnings"> <div class="stock_warnings" v-if="hasAnyWarnings">
<div class="warning" v-if="locoNotSuitable">(!) {{ $t('stocklist.warning-not-suitable') }}</div> <div class="warning" v-if="locoNotSuitable"><TriangleAlertIcon :size="20" :stroke-width="2" /> {{ $t('stocklist.warning-not-suitable') }}</div>
<div class="warning" v-if="lengthExceeded && store.isTrainPassenger">(!) {{ $t('stocklist.warning-passenger-too-long') }}</div> <div class="warning" v-if="lengthExceeded && store.isTrainPassenger">
<TriangleAlertIcon :size="20" :stroke-width="2" /> {{ $t('stocklist.warning-passenger-too-long') }}
</div>
<div class="warning" v-if="lengthExceeded && !store.isTrainPassenger">(!) {{ $t('stocklist.warning-freight-too-long') }}</div> <div class="warning" v-if="lengthExceeded && !store.isTrainPassenger">
<TriangleAlertIcon :size="20" :stroke-width="2" /> {{ $t('stocklist.warning-freight-too-long') }}
</div>
<div class="warning" v-if="teamOnlyVehicles.length > 0"> <div class="warning" v-if="teamOnlyVehicles.length > 0">
(!) <TriangleAlertIcon :size="20" :stroke-width="2" />
{{ $t('stocklist.warning-team-only-vehicle', [teamOnlyVehicles.map((v) => v.vehicleRef.type).join(', ')]) }} {{ $t('stocklist.warning-team-only-vehicle', [teamOnlyVehicles.map((v) => v.vehicleRef.type).join(', ')]) }}
</div> </div>
<div class="warning" v-if="store.cargoWarnings.size > 0"> <div class="warning" v-if="store.cargoWarnings.size > 0">
(!) <b>{{ $t('cargo-warnings.title') }}</b> <TriangleAlertIcon :size="20" :stroke-width="2" /> <b>{{ $t('cargo-warnings.title') }}</b>
{{ [...store.cargoWarnings].map((v) => $t(`cargo-warnings.${v}`)).join('; ') }} {{ [...store.cargoWarnings].map((v) => $t(`cargo-warnings.${v}`)).join('; ') }}
</div> </div>
<div class="warning" v-if="!isRearPRSM4">
<TriangleAlertIcon :size="20" :stroke-width="2" /> {{ $t('stocklist.warning-prsm4-not-at-the-rear') }}
</div>
<div class="warning" v-if="weightExceeded"> <div class="warning" v-if="weightExceeded">
(!) <TriangleAlertIcon :size="20" :stroke-width="2" />
<i18n-t keypath="stocklist.warning-too-heavy"> <i18n-t keypath="stocklist.warning-too-heavy">
<template #href> <template #href>
<a target="_blank" href="https://docs.google.com/spreadsheets/d/1BvTU-U7huIaEheov22TrhTtROUM4MwVfdbq03GVAEM8"> <a target="_blank" href="https://docs.google.com/spreadsheets/d/1BvTU-U7huIaEheov22TrhTtROUM4MwVfdbq03GVAEM8">
@@ -26,10 +34,6 @@
</template> </template>
</i18n-t> </i18n-t>
</div> </div>
<!-- <div class="warning" v-if="locoCountExceeded">
{{ $t('stocklist.warning-too-many-locos') }}
</div> -->
</div> </div>
</template> </template>
@@ -37,8 +41,11 @@
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { useStore } from '../../../store'; import { useStore } from '../../../store';
import { isTractionUnit } from '../../../utils/vehicleUtils'; import { isTractionUnit } from '../../../utils/vehicleUtils';
import { TriangleAlertIcon } from 'lucide-vue-next';
export default defineComponent({ export default defineComponent({
components: { TriangleAlertIcon },
data: () => ({ data: () => ({
store: useStore(), store: useStore(),
}), }),
@@ -68,6 +75,14 @@ export default defineComponent({
this.store.stockList.some((stock) => isTractionUnit(stock.vehicleRef) && stock.vehicleRef.type.startsWith('EP')) this.store.stockList.some((stock) => isTractionUnit(stock.vehicleRef) && stock.vehicleRef.type.startsWith('EP'))
); );
}, },
isRearPRSM4() {
if (this.store.stockList.length <= 1) return true;
const index = this.store.stockList.findIndex((stock) => stock.vehicleRef.type.startsWith('PRSM4'));
return index != -1 ? index == this.store.stockList.length - 1 : true;
},
}, },
}); });
</script> </script>
@@ -81,6 +96,10 @@ export default defineComponent({
font-weight: bold; font-weight: bold;
.lucide {
vertical-align: text-bottom;
}
a { a {
color: black; color: black;
text-decoration: underline; text-decoration: underline;
+44 -44
View File
@@ -43,50 +43,50 @@
"412Z:sc_40_TD2", "412Z:sc_40_TD2",
"412Z:sc_40_Titan", "412Z:sc_40_Titan",
"412Z:sc_40_Toll", "412Z:sc_40_Toll",
"612Z:sc_20", "627Z:sc_20",
"612Z:sc_20_red", "627Z:sc_20_red",
"612Z:sc_20_blue", "627Z:sc_20_blue",
"612Z:sc_20_green", "627Z:sc_20_green",
"612Z:sc_20_APL", "627Z:sc_20_APL",
"612Z:sc_20_CMA", "627Z:sc_20_CMA",
"612Z:sc_20_Cosco", "627Z:sc_20_Cosco",
"612Z:sc_20_Evr1", "627Z:sc_20_Evr1",
"612Z:sc_20_Evr2", "627Z:sc_20_Evr2",
"612Z:sc_20_Finnlines", "627Z:sc_20_Finnlines",
"612Z:sc_20_Hamburg", "627Z:sc_20_Hamburg",
"612Z:sc_20_Hanjin", "627Z:sc_20_Hanjin",
"612Z:sc_20_HapagLloyd", "627Z:sc_20_HapagLloyd",
"612Z:sc_20_HMM", "627Z:sc_20_HMM",
"612Z:sc_20_KLine", "627Z:sc_20_KLine",
"612Z:sc_20_Maersk", "627Z:sc_20_Maersk",
"612Z:sc_20_ONE", "627Z:sc_20_ONE",
"612Z:sc_20_OOCL", "627Z:sc_20_OOCL",
"612Z:sc_20_Schavemaker", "627Z:sc_20_Schavemaker",
"612Z:sc_20_TD2", "627Z:sc_20_TD2",
"612Z:sc_20_Titan", "627Z:sc_20_Titan",
"612Z:sc_20_Toll", "627Z:sc_20_Toll",
"612Z:sc_40_red", "627Z:sc_40_red",
"612Z:sc_40", "627Z:sc_40",
"612Z:sc_40_blue", "627Z:sc_40_blue",
"612Z:sc_40_green", "627Z:sc_40_green",
"612Z:sc_40_APL", "627Z:sc_40_APL",
"612Z:sc_40_CMA", "627Z:sc_40_CMA",
"612Z:sc_40_Cosco", "627Z:sc_40_Cosco",
"612Z:sc_40_Evr1", "627Z:sc_40_Evr1",
"612Z:sc_40_Evr2", "627Z:sc_40_Evr2",
"612Z:sc_40_Finnlines", "627Z:sc_40_Finnlines",
"612Z:sc_40_Hamburg", "627Z:sc_40_Hamburg",
"612Z:sc_40_Hanjin", "627Z:sc_40_Hanjin",
"612Z:sc_40_HapagLloyd", "627Z:sc_40_HapagLloyd",
"612Z:sc_40_HMM", "627Z:sc_40_HMM",
"612Z:sc_40_KLine", "627Z:sc_40_KLine",
"612Z:sc_40_Maersk", "627Z:sc_40_Maersk",
"612Z:sc_40_ONE", "627Z:sc_40_ONE",
"612Z:sc_40_OOCL", "627Z:sc_40_OOCL",
"612Z:sc_40_Schavemaker", "627Z:sc_40_Schavemaker",
"612Z:sc_40_TD2", "627Z:sc_40_TD2",
"612Z:sc_40_Titan", "627Z:sc_40_Titan",
"612Z:sc_40_Toll" "627Z:sc_40_Toll"
], ],
"biomasa": [ "biomasa": [
"412Z:wt_20_biomass", "412Z:wt_20_biomass",
+6 -4
View File
@@ -84,6 +84,7 @@
"warning-too-many-locos": "This train has too many traction units!", "warning-too-many-locos": "This train has too many traction units!",
"warning-too-heavy": "This train is too heavy! Check {href}", "warning-too-heavy": "This train is too heavy! Check {href}",
"warning-team-only-vehicle": "There's at least one vehicle available only for TD2 team members in your stock composition! ({0})", "warning-team-only-vehicle": "There's at least one vehicle available only for TD2 team members in your stock composition! ({0})",
"warning-prsm4-not-at-the-rear": "PRSM4 welding car must be at the end of a train!",
"acceptable-mass-docs": "acceptable rolling stock masses (PL)", "acceptable-mass-docs": "acceptable rolling stock masses (PL)",
"stock-loading-error": "An error occurred: cannot parse data from the file - make sure it's in a proper format!", "stock-loading-error": "An error occurred: cannot parse data from the file - make sure it's in a proper format!",
"stock-clipboard-error": "An error occurred: cannot read data from the clipboard - make sure the site has been granted right permissions for this action!" "stock-clipboard-error": "An error occurred: cannot read data from the clipboard - make sure the site has been granted right permissions for this action!"
@@ -135,7 +136,7 @@
"categories": { "categories": {
"EI": "EI - domestic express", "EI": "EI - domestic express",
"EC": "EC - international express", "EC": "EC - international express",
"EN": "EN - domestic night express", "EN": "EN - international night express",
"MP": "MP - intervoivodeship bullet", "MP": "MP - intervoivodeship bullet",
"MO": "MO - intervoivodeship regio", "MO": "MO - intervoivodeship regio",
"MM": "MM - international bullet", "MM": "MM - international bullet",
@@ -303,6 +304,7 @@
"401Ze_PKESA": "concrete panels, cable reels, steel", "401Ze_PKESA": "concrete panels, cable reels, steel",
"401Zl": "heavy loose cargo", "401Zl": "heavy loose cargo",
"408S": "cement, lime, fly ash, slag", "408S": "cement, lime, fly ash, slag",
"409Va": "loose cargo (sand)",
"412W": "loose cargo, coal", "412W": "loose cargo, coal",
"412Z": "containers", "412Z": "containers",
"413S": "coal, chalk, sand", "413S": "coal, chalk, sand",
@@ -324,15 +326,15 @@
"418Vb_PKPC": "loose cargo (sand, stone)", "418Vb_PKPC": "loose cargo (sand, stone)",
"418Vb_WIEBE": "loose cargo (sand, stone)", "418Vb_WIEBE": "loose cargo (sand, stone)",
"418Vb_ZOS": "loose cargo (sand, stone)", "418Vb_ZOS": "loose cargo (sand, stone)",
"418Vb_ZUE": "loose cargo (sand, stone)" "418Vb_ZUE": "loose cargo (sand, stone)",
"PRSM4": "rail welding car"
}, },
"cargo-warnings": { "cargo-warnings": {
"title": "Rolling stock containing extra cargo warnings:", "title": "Rolling stock containing extra cargo warnings:",
"warning_wt_20_pn": "PN: exceeded gauge (Innofreight - C45)", "warning_wt_20_pn": "PN: exceeded gauge (Innofreight - C45)",
"warning_un1965_twr": "TWR: LPG (UN 1965)", "warning_un1965_twr": "TWR: LPG (UN 1965)",
"warning_un1965_tn": "TN: LPG - empty tank (UN 1965)", "warning_un1965_tn": "TN: LPG - empty tank (UN 1965)",
"warning_un1202_twr": "TWR: diesel fuel (UN 1202)", "warning_un1202_tn": "TN: diesel fuel (UN 1202)",
"warning_un1202_tn": "TN: diesel fuel - empty tank (UN 1202)",
"warning_military_pn": "PN: military transport" "warning_military_pn": "PN: military transport"
} }
} }
+6 -4
View File
@@ -84,6 +84,7 @@
"warning-too-many-locos": "Ten skład posiada za dużo pojazdów trakcyjnych!", "warning-too-many-locos": "Ten skład posiada za dużo pojazdów trakcyjnych!",
"warning-too-heavy": "Ten skład jest za ciężki! Sprawdź {href}", "warning-too-heavy": "Ten skład jest za ciężki! Sprawdź {href}",
"warning-team-only-vehicle": "W zestawieniu znajduje się co najmniej jeden pojazd dostępny tylko dla członków zespołu TD2! ({0})", "warning-team-only-vehicle": "W zestawieniu znajduje się co najmniej jeden pojazd dostępny tylko dla członków zespołu TD2! ({0})",
"warning-prsm4-not-at-the-rear": "Zgrzewarka PRSM4 może znajdować się jedynie na końcu składu w przypadku jazdy pociągowej!",
"acceptable-mass-docs": "dopuszczalne masy składów", "acceptable-mass-docs": "dopuszczalne masy składów",
"stock-loading-error": "Wystąpił błąd: nie można przetworzyć danych ze schowka! Upewnij się, że są one w poprawnym formacie!", "stock-loading-error": "Wystąpił błąd: nie można przetworzyć danych ze schowka! Upewnij się, że są one w poprawnym formacie!",
"stock-clipboard-error": "Wystąpił błąd: nie można odczytać danych ze schowka! Upewnij się, że nadałeś uprawnienia stronie do tej akcji!" "stock-clipboard-error": "Wystąpił błąd: nie można odczytać danych ze schowka! Upewnij się, że nadałeś uprawnienia stronie do tej akcji!"
@@ -135,7 +136,7 @@
"categories": { "categories": {
"EI": "EI - ekspres krajowy", "EI": "EI - ekspres krajowy",
"EC": "EC - ekspres międzynarodowy", "EC": "EC - ekspres międzynarodowy",
"EN": "EN - ekspres krajowy nocny", "EN": "EN - ekspres międzynarodowy nocny",
"MP": "MP - międzywoj. pośpieszny", "MP": "MP - międzywoj. pośpieszny",
"RP": "RP - wojewódzki pośpieszny", "RP": "RP - wojewódzki pośpieszny",
"MO": "MO - międzywoj. osobowy", "MO": "MO - międzywoj. osobowy",
@@ -302,6 +303,7 @@
"401Ze_PKESA": "płyty betonowe, bębny kablowe, stal", "401Ze_PKESA": "płyty betonowe, bębny kablowe, stal",
"401Zl": "ładunki sypkie o dużej masie usypowej", "401Zl": "ładunki sypkie o dużej masie usypowej",
"408S": "cement, wapno, popioły lotne, żużel", "408S": "cement, wapno, popioły lotne, żużel",
"409Va": "drobnica, ładunki sypkie (piasek)",
"412W": "drobnica, kruszywo, węgiel", "412W": "drobnica, kruszywo, węgiel",
"412Z": "kontenery", "412Z": "kontenery",
"413S": "węgiel, kreda, piasek", "413S": "węgiel, kreda, piasek",
@@ -323,15 +325,15 @@
"418Vb_PKPC": "drobnica, ładunki sypkie (piasek, kamień)", "418Vb_PKPC": "drobnica, ładunki sypkie (piasek, kamień)",
"418Vb_WIEBE": "drobnica, ładunki sypkie (piasek, kamień)", "418Vb_WIEBE": "drobnica, ładunki sypkie (piasek, kamień)",
"418Vb_ZOS": "drobnica, ładunki sypkie (piasek, kamień)", "418Vb_ZOS": "drobnica, ładunki sypkie (piasek, kamień)",
"418Vb_ZUE": "drobnica, ładunki sypkie (piasek, kamień)" "418Vb_ZUE": "drobnica, ładunki sypkie (piasek, kamień)",
"PRSM4": "zgrzewarka torowa"
}, },
"cargo-warnings": { "cargo-warnings": {
"title": "Skład z dodatkowymi uwagami przewozowymi:", "title": "Skład z dodatkowymi uwagami przewozowymi:",
"warning_wt_20_pn": "PN: przekroczona skrajnia (Innofreight - C45)", "warning_wt_20_pn": "PN: przekroczona skrajnia (Innofreight - C45)",
"warning_un1965_twr": "TWR: gazy węglowodorowe skroplone (UN 1965)", "warning_un1965_twr": "TWR: gazy węglowodorowe skroplone (UN 1965)",
"warning_un1965_tn": "TN: gazy węglowodorowe skroplone - puste cysterny (UN 1965)", "warning_un1965_tn": "TN: gazy węglowodorowe skroplone - puste cysterny (UN 1965)",
"warning_un1202_twr": "TWR: olej napędowy (UN 1202)", "warning_un1202_tn": "TN: olej napędowy (UN 1202)",
"warning_un1202_tn": "TN: olej napędowy - puste cysterny (UN 1202)",
"warning_military_pn": "PN: transport wojskowy" "warning_military_pn": "PN: transport wojskowy"
} }
} }
+4 -12
View File
@@ -10,16 +10,6 @@ $accentColor: #e4c428;
$sponsorColor: gold; $sponsorColor: gold;
$teamColor: #ff4848; $teamColor: #ff4848;
@font-face {
font-family: 'Lato';
src:
url('/fonts/Lato-Light.woff2') format('woff2'),
url('/fonts/Lato-Light.woff') format('woff');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face { @font-face {
font-family: 'Lato'; font-family: 'Lato';
src: src:
@@ -350,7 +340,7 @@ hr {
outline: none; outline: none;
} }
label > input:checked + span { label>input:checked+span {
color: $accentColor; color: $accentColor;
border-color: $accentColor; border-color: $accentColor;
} }
@@ -358,6 +348,7 @@ hr {
// Vue Transition anims // Vue Transition anims
.slide-top { .slide-top {
&-enter-from, &-enter-from,
&-leave-to { &-leave-to {
transform: translateY(-100%); transform: translateY(-100%);
@@ -370,6 +361,7 @@ hr {
} }
.card-appear { .card-appear {
&-enter-from, &-enter-from,
&-leave-to { &-leave-to {
opacity: 0; opacity: 0;
@@ -379,4 +371,4 @@ hr {
&-leave-active { &-leave-active {
transition: all 100ms ease-in-out; transition: all 100ms ease-in-out;
} }
} }
+1 -1
View File
@@ -110,7 +110,7 @@ export function getCargoWarnings(stockList: IStock[]) {
if (stockVehicle.cargo && stockVehicle.cargo.id.startsWith('wt_20')) warnings.add('warning_wt_20_pn'); if (stockVehicle.cargo && stockVehicle.cargo.id.startsWith('wt_20')) warnings.add('warning_wt_20_pn');
else if (stockVehicle.cargo && /^(tank|vehicles|truck)/.test(stockVehicle.cargo.id)) warnings.add('warning_military_pn'); else if (stockVehicle.cargo && /^(tank|vehicles|truck)/.test(stockVehicle.cargo.id)) warnings.add('warning_military_pn');
else if (stockVehicle.vehicleRef.type.startsWith('WB117')) warnings.add(stockVehicle.cargo ? 'warning_un1965_twr' : 'warning_un1965_tn'); else if (stockVehicle.vehicleRef.type.startsWith('WB117')) warnings.add(stockVehicle.cargo ? 'warning_un1965_twr' : 'warning_un1965_tn');
else if (stockVehicle.vehicleRef.type.startsWith('445Rb')) warnings.add(stockVehicle.cargo ? 'warning_un1202_twr' : 'warning_un1202_tn'); else if (stockVehicle.vehicleRef.type.startsWith('445Rb')) warnings.add('warning_un1202_tn');
} }
}); });