Skip to content

Commit

Permalink
Release 2024.6.15 (#126)
Browse files Browse the repository at this point in the history
* Update manifest & name change (#124)

* fix bookmark direction (#125)
  • Loading branch information
thomassth committed Jun 16, 2024
1 parent 4ae4079 commit a2d9b33
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="TTC Arrivals" />
<meta name="apple-mobile-web-app-title" content="TO bus" />

<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="stylesheet" href="/style.css" />
Expand All @@ -32,7 +32,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>TTC arrivals</title>
<title>TO bus</title>

<script
defer
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "TTC arrival",
"name": "TTC arrival times",
"short_name": "TO bus",
"name": "Toronto bus arrivals",
"description": "Showing arrival times of TTC subways, buses, streetcars.",
"icons": [
{
Expand Down
6 changes: 3 additions & 3 deletions src/components/parser/multiStopParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const parseEtaPredictions = (stop: EtaPredictions, result: LineStopEta[]) => {
direction: stop.dirTitleBecauseNoPredictions
? parseRoute(stop.dirTitleBecauseNoPredictions).prefix
: parseRoute(
Array.isArray(stop.direction)
(Array.isArray(stop.direction)
? stop.direction[0].title
: stop.direction.title
: stop.direction.title) ?? ""
).prefix,
});
if (stop.dirTitleBecauseNoPredictions === undefined) {
Expand Down Expand Up @@ -74,7 +74,7 @@ export function multiStopUnifier(
const matchingStop = unifiedList.findIndex(
(searching) => item.stopTag === searching.ttcId
);
if (unifiedList[matchingStop].direction) {
if (item.direction) {
unifiedList[matchingStop].direction = item.direction;
} else if (
unifiedList[matchingStop].direction?.toLowerCase() !==
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/en/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"home": {
"title": {
"name": "TTC arrivals",
"name": "TO bus",
"tooltip": "Return home"
},
"headline": "You'll see saved stops here.",
Expand All @@ -21,7 +21,7 @@
"lines": {
"ariaLabel": "enter a line number",
"placeholder": "enter a line number",
"browserTitle": "Line {{lineNum}} | TTC arrivals",
"browserTitle": "Line {{lineNum}} | TO bus",
"title": "Enter a line number:",
"number": "Line {{lineNum}}",
"lineAndStopInfo": "Line {{lineNum}} Stop {{stopNum}} =",
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/fr/locales.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"home": {
"title": {
"name": "TTC arrivées",
"name": "TO bus",
"tooltip": "Rentrer à la maison"
},
"headline": "Vous verrez des listes enregistrées ici, dans le FUTUR. <br />",
Expand All @@ -21,7 +21,7 @@
"lines": {
"ariaLabel": "entrer un n° de ligne",
"placeholder": "nombre de lignes",
"browserTitle": "Lignes {{lineNum}} | TTC arrivals",
"browserTitle": "Lignes {{lineNum}} | TO bus",
"title": "Entrer un numéro de ligne:",
"number": "Lignes {{lineNum}}",
"lineAndStopInfo": "Lignes {{lineNum}} Arrêt de {{stopNum}} =",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/RelativeVehiclePosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function RelativeVehiclePosition() {
const [data, setData] = useState({});

useEffect(() => {
document.title = `Stop ID ${stopNum} | TTC arrivals`;
document.title = `Stop ID ${stopNum} | TO bus`;
});

const updateData = (vehicle: number = vehicleId) => {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/StopPrediction.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useEffect } from "react";
import { useParams } from "react-router-dom";

import StopPredictionInfo from "../components/fetch/FetchStop";
import StopPredictionInfo from "../components/fetch/FetchStop.js";

export default function StopPrediction() {
const params = useParams();
const stopNum = parseInt(`${params.stopId}`);

useEffect(() => {
document.title = `Stop ID ${stopNum} | TTC arrivals`;
document.title = `Stop ID ${stopNum} | TO bus`;
});
return (
<main className="stop-prediction-page">
Expand Down

0 comments on commit a2d9b33

Please sign in to comment.