Poprawki struktury projektu

This commit is contained in:
2021-05-03 20:56:47 +02:00
parent b046b12905
commit 98499f1141
14 changed files with 118 additions and 88 deletions
+16 -7
View File
@@ -12,11 +12,16 @@
<span v-else>{{ stationInfo.stationName }}</span>
</div>
<div class="scenery-hash">#{{ stationInfo.stationHash }}</div>
<div class="scenery-hash" v-if="stationInfo.stationHash">
#{{ stationInfo.stationHash }}
</div>
</div>
<section v-if="!timetableOnly">
<div class="info-stats">
<div
class="info-stats"
:class="!stationInfo.stationHash ? 'no-stats' : ''"
>
<span class="likes">
<img :src="likeIcon" alt="icon-like" />
<span>{{ stationInfo.dispatcherRate }}</span>
@@ -106,7 +111,7 @@
</div>
<div class="info-dispatcher">
<div class="dispatcher">
<div class="dispatcher" v-if="stationInfo.stationHash">
<span
class="dispatcher_level"
:style="
@@ -124,12 +129,12 @@
<span class="dispatcher_name">{{ stationInfo.dispatcherName }}</span>
</div>
<span class="status-badge" :class="stationInfo.statusID"
>{{ $t(`status.${stationInfo.statusID}`) }}
<span class="status-badge" :class="stationInfo.statusID">
{{ $t(`status.${stationInfo.statusID}`) }}
{{
stationInfo.statusID == "online" ? stationInfo.statusTimeString : ""
}}</span
>
}}
</span>
</div>
<div class="info-lists">
@@ -276,6 +281,10 @@ h3 {
font-size: 1.65em;
&.no-stats {
opacity: 0.5;
}
& > span {
display: flex;
align-items: center;
+1 -1
View File
@@ -75,7 +75,7 @@ import { Vue, Component, Prop } from "vue-property-decorator";
import inputData from "@/data/options.json";
import StorageManager from "@/scripts/storageManager";
import StorageManager from "@/scripts/managers/storageManager";
import ActionButton from "../Global/ActionButton.vue";
@Component({ components: { ActionButton } })
+1 -6
View File
@@ -281,14 +281,9 @@ export default class StationTable extends styleMixin {
if (!station) return;
if (!station.online) {
window.location.href = station.stationURL;
return;
}
this.$router.push({
name: "SceneryView",
query: { hash: station.stationHash },
query: { station: station.stationName.replaceAll(" ", "_") },
});
}
}