mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-02 21:08:12 +00:00
Dodano tłumaczenie opisów ikon
This commit is contained in:
@@ -52,49 +52,53 @@
|
||||
v-if="stationInfo.controlType"
|
||||
:src="require(`@/assets/icon-${stationInfo.controlType}.svg`)"
|
||||
:alt="stationInfo.controlType"
|
||||
:title="'Sterowanie ' + stationInfo.controlType"
|
||||
:title="
|
||||
$t('desc.control-type') + $t(`controls.${stationInfo.controlType}`)
|
||||
"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.signalType"
|
||||
:src="require(`@/assets/icon-${stationInfo.signalType}.svg`)"
|
||||
:alt="stationInfo.signalType"
|
||||
:title="'Sygnalizacja ' + stationInfo.signalType"
|
||||
:title="
|
||||
$t('desc.signals-type') + $t(`signals.${stationInfo.signalType}`)
|
||||
"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.SBL && stationInfo.SBL !== ''"
|
||||
:src="require(`@/assets/icon-SBL.svg`)"
|
||||
alt="SBL"
|
||||
title="Sceneria posiada SBL na przynajmniej jednym ze szlaków"
|
||||
:title="$t('desc.SBL') + `${stationInfo.SBL}`"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.default"
|
||||
:src="require(`@/assets/icon-td2.svg`)"
|
||||
alt="default-pack"
|
||||
title="Sceneria domyślnie dostępna w grze"
|
||||
:title="$t('desc.default')"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.nonPublic || !stationInfo.reqLevel"
|
||||
:src="require(`@/assets/icon-lock.svg`)"
|
||||
alt="non-public"
|
||||
title="Sceneria niepubliczna"
|
||||
:title="$t('desc.non-public')"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.unavailable"
|
||||
:src="require(`@/assets/icon-unavailable.svg`)"
|
||||
alt="icon-unavailable"
|
||||
title="Sceneria niedostępna"
|
||||
:title="$t('desc.unavailable')"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="stationInfo.stationLines && stationInfo.stationLines != ''"
|
||||
:src="require('@/assets/icon-real.svg')"
|
||||
alt="real"
|
||||
title="Sceneria realna / półrealna"
|
||||
:title="$t('desc.real')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -169,8 +173,8 @@
|
||||
<span
|
||||
class="spawn none"
|
||||
v-if="!stationInfo.spawns || stationInfo.spawns.length == 0"
|
||||
>{{ $t("scenery.no-spawns") }}</span
|
||||
>
|
||||
>{{ $t("scenery.no-spawns") }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -144,7 +144,10 @@
|
||||
v-if="station.controlType"
|
||||
:src="require(`@/assets/icon-${station.controlType}.svg`)"
|
||||
:alt="station.controlType"
|
||||
:title="'Sterowanie ' + station.controlType"
|
||||
:title="
|
||||
$t('desc.control-type') +
|
||||
$t(`controls.${station.controlType}`)
|
||||
"
|
||||
/>
|
||||
|
||||
<img
|
||||
@@ -152,23 +155,29 @@
|
||||
v-if="station.signalType"
|
||||
:src="require(`@/assets/icon-${station.signalType}.svg`)"
|
||||
:alt="station.signalType"
|
||||
:title="'Sygnalizacja ' + station.signalType"
|
||||
:title="
|
||||
$t('desc.signals-type') + $t(`signals.${station.signalType}`)
|
||||
"
|
||||
/>
|
||||
|
||||
<img
|
||||
class="icon-info"
|
||||
v-if="station.SBL && station.SBL !== ''"
|
||||
:src="require(`@/assets/icon-SBL.svg`)"
|
||||
alt="SBL"
|
||||
title="Sceneria posiada SBL na przynajmniej jednym ze szlaków"
|
||||
:title="$t('desc.SBL') + `${station.SBL}`"
|
||||
/>
|
||||
|
||||
<img
|
||||
class="icon-info"
|
||||
v-if="!station.reqLevel || station.nonPublic"
|
||||
v-if="station.nonPublic || !station.reqLevel"
|
||||
:src="require(`@/assets/icon-lock.svg`)"
|
||||
alt="non-public"
|
||||
title="Sceneria niepubliczna"
|
||||
:title="$t('desc.non-public')"
|
||||
/>
|
||||
|
||||
<img
|
||||
v-if="station.unavailable"
|
||||
:src="require(`@/assets/icon-unavailable.svg`)"
|
||||
alt="icon-unavailable"
|
||||
:title="$t('desc.unavailable')"
|
||||
/>
|
||||
</td>
|
||||
|
||||
|
||||
@@ -87,9 +87,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-property-decorator';
|
||||
|
||||
import Station from "@/scripts/interfaces/Station";
|
||||
import { Component, Vue, Prop } from "vue-property-decorator";
|
||||
|
||||
@Component
|
||||
export default class StationTimetable extends Vue {
|
||||
@@ -99,10 +97,13 @@ export default class StationTimetable extends Vue {
|
||||
get computedScheduledTrains() {
|
||||
return this.scheduledTrains.sort((a, b) => {
|
||||
if (a.stopInfo.arrivalTimestamp > b.stopInfo.arrivalTimestamp) return 1;
|
||||
else if ((a.stopInfo.arrivalTimestamp < b.stopInfo.arrivalTimestamp)) return -1;
|
||||
else if (a.stopInfo.arrivalTimestamp < b.stopInfo.arrivalTimestamp)
|
||||
return -1;
|
||||
|
||||
return a.stopInfo.departureTimestamp > b.stopInfo.departureTimestamp ? 1 : -1;
|
||||
})
|
||||
return a.stopInfo.departureTimestamp > b.stopInfo.departureTimestamp
|
||||
? 1
|
||||
: -1;
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
+14
-14
@@ -29,7 +29,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"Br-Np",
|
||||
"TAK",
|
||||
1,
|
||||
0,
|
||||
@@ -50,7 +50,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"Wr, Wr-SKM, PrG",
|
||||
"TAK",
|
||||
3,
|
||||
0,
|
||||
@@ -113,7 +113,7 @@
|
||||
"NIE",
|
||||
"mieszana",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"ZWk, SBk",
|
||||
"TAK",
|
||||
1,
|
||||
0,
|
||||
@@ -344,7 +344,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SPK",
|
||||
"TAK (szlak Sl)",
|
||||
"Sl",
|
||||
"TAK",
|
||||
1,
|
||||
1,
|
||||
@@ -407,7 +407,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SPK",
|
||||
"TAK (szlak SK)",
|
||||
"SK",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -619,7 +619,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"WW",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -934,7 +934,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"OkL, CzP",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -1207,7 +1207,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SPK",
|
||||
"TAK (szlak BO)",
|
||||
"BO",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -1523,7 +1523,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SPK",
|
||||
"TAK (Szlak Ps)",
|
||||
"Ps",
|
||||
"TAK",
|
||||
2,
|
||||
0,
|
||||
@@ -1544,7 +1544,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK (Szlaki Br oraz GO)",
|
||||
"Br, GO",
|
||||
"TAK",
|
||||
1,
|
||||
0,
|
||||
@@ -1691,7 +1691,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK (szlaki Łk i Fw)",
|
||||
"Łk, Fw",
|
||||
"",
|
||||
2,
|
||||
0,
|
||||
@@ -1859,7 +1859,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK (szlak Mr)",
|
||||
"Mr",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -1880,7 +1880,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK",
|
||||
"Pa, Op",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
@@ -2090,7 +2090,7 @@
|
||||
"NIE",
|
||||
"współczesna",
|
||||
"SCS",
|
||||
"TAK (Szlaki Dw, Pk, Pr-SL)",
|
||||
"Dw, Pk, Pr-SL",
|
||||
"TAK",
|
||||
0,
|
||||
0,
|
||||
|
||||
+26
-1
@@ -6,7 +6,32 @@
|
||||
"loading": "Loading data...",
|
||||
"support": "Support the project"
|
||||
},
|
||||
"descs": {},
|
||||
"desc": {
|
||||
"control-type": "Control type: ",
|
||||
"signals-type": "Signals type: ",
|
||||
"SBL": "This scenery has automatic line blockade system on following routes: ",
|
||||
"default": "This scenery is available by default",
|
||||
"non-public": "This scenery is not public",
|
||||
"unavailable": "This scenery is unavailable",
|
||||
"real": "This scenery is real"
|
||||
},
|
||||
"signals": {
|
||||
"współczesna": "modern",
|
||||
"mieszana": "mixed",
|
||||
"kształtowa": "mechanical",
|
||||
"historyczna": "historyczna"
|
||||
},
|
||||
"controls": {
|
||||
"SPK": "SPK",
|
||||
"SCS": "SCS",
|
||||
"SCS-SPK": "SCS/SPK",
|
||||
"ręczne": "manual",
|
||||
"ręczne+SPK": "manual + SPK",
|
||||
"ręczne+SCS": "manual + SCS",
|
||||
"mechaniczne": "levers (mechanical)",
|
||||
"mechaniczne+SPK": "levers + SPK",
|
||||
"mechaniczne+SCS": "levers + SCS"
|
||||
},
|
||||
"status": {
|
||||
"online": "UNTIL ",
|
||||
"free": "FREE",
|
||||
|
||||
+26
-1
@@ -6,7 +6,32 @@
|
||||
"loading": "Pobieranie danych...",
|
||||
"support": "Wspomóż projekt"
|
||||
},
|
||||
"descs": {},
|
||||
"desc": {
|
||||
"control-type": "Sterowanie: ",
|
||||
"signals-type": "Sygnalizacja: ",
|
||||
"SBL": "Sceneria posiada SBL na szlakach: ",
|
||||
"default": "Sceneria dostępna domyślnie w paczce z grą",
|
||||
"non-public": "Sceneria niepubliczna",
|
||||
"unavailable": "Sceneria niedostępna",
|
||||
"real": "Sceneria realna"
|
||||
},
|
||||
"signals": {
|
||||
"współczesna": "współczesna",
|
||||
"mieszana": "mieszana",
|
||||
"kształtowa": "kształtowa",
|
||||
"historyczna": "historyczna"
|
||||
},
|
||||
"controls": {
|
||||
"SPK": "SPK",
|
||||
"SCS": "SCS",
|
||||
"SCS-SPK": "SCS/SPK",
|
||||
"ręczne": "ręczne",
|
||||
"ręczne+SPK": "ręczne + SPK",
|
||||
"ręczne+SCS": "ręczne + SCS",
|
||||
"mechaniczne": "mechaniczne",
|
||||
"mechaniczne+SPK": "mechaniczne + SPK",
|
||||
"mechaniczne+SCS": "mechaniczne + SCS"
|
||||
},
|
||||
"status": {
|
||||
"online": "DO ",
|
||||
"free": "WOLNA",
|
||||
|
||||
@@ -51,10 +51,6 @@ export default class SceneryView extends Vue {
|
||||
return this.$route.path;
|
||||
}
|
||||
|
||||
// get dataLoaded() {
|
||||
// return this.storeStationList ? true : false;
|
||||
// }
|
||||
|
||||
get stationInfo(): Station | null {
|
||||
if (!this.$route.query.hash || !this.storeStationList) return null;
|
||||
|
||||
@@ -89,8 +85,10 @@ export default class SceneryView extends Vue {
|
||||
|
||||
display: inline-block;
|
||||
|
||||
font-size: 2em;
|
||||
|
||||
.button {
|
||||
margin: 1rem auto;
|
||||
margin: 1em auto;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user