This commit is contained in:
2020-12-04 19:45:49 +01:00
parent 555384aaec
commit da68b00794
3 changed files with 23 additions and 6 deletions
+4
View File
@@ -23,6 +23,10 @@ pnpm-debug.log*
node_modules
.gitignore
#Firebase
.firebase
.firebaserc
firebase.json
.env
+16 -1
View File
@@ -5,9 +5,24 @@
<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>Stacjownik</title>
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap" rel="stylesheet">
<title>Stacjownik</title>
<script src="https://www.gstatic.com/firebasejs/8.1.1/firebase-app.js"></script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyBI36X2-p7vU1flxoJdCEc0noByyTe1mpw",
authDomain: "stacjownik-td2.firebaseapp.com",
projectId: "stacjownik-td2",
};
firebase.initializeApp(firebaseConfig);
</script>
</head>
<body>
+3 -5
View File
@@ -324,13 +324,11 @@ export default class TimetableView extends Vue {
get stationInfo(): Station | null {
if (!this.$route.query.station) return null;
const info = this.stationList.find(
(station) =>
station.stationName ===
this.$route.query.station.toString().replaceAll("_", " ")
const station = this.stationList.find(
(station) => station.stationHash === this.$route.query.station
);
return info || null;
return station || null;
}
updateRows(info: Station | null = this.stationInfo) {