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