Skip to content

Commit d313dcb

Browse files
Run linter/formatter to appease the CI system
1 parent f8ddfcc commit d313dcb

File tree

7 files changed

+27
-21
lines changed

7 files changed

+27
-21
lines changed

src/components/navigation/ModalPane.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<style lang="postcss">
3434
.modal-pane {
3535
@apply absolute bottom-0 left-0 z-40 w-full bg-transparent px-2 shadow-lg md:max-w-prose;
36-
@apply rounded-lg bg-[#F3F2F8] dark:bg-black border-b-[1px] border-[#C6C6C8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15;
36+
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-[#F3F2F8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-black;
3737
}
3838
3939
.close-button {

src/components/oba/StopPane.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
</button>
141141
</div>
142142
<div
143-
class="flex items-center justify-between rounded-lg bg-[#ffffff] p-4 hover:bg-[#e3e3e3] dark:bg-[#1c1c1c] hover:dark:bg-[#363636]"
143+
class="flex items-center justify-between rounded-lg bg-[#ffffff] p-4 hover:bg-[#e3e3e3] dark:bg-[#1c1c1c] hover:dark:bg-[#363636]"
144144
>
145145
<div>
146146
<h2 class="text-lg font-semibold text-black dark:text-white">
@@ -180,7 +180,7 @@
180180
}
181181
.trip-details-modal {
182182
@apply absolute bottom-0 left-0 z-40 h-full w-full overflow-y-scroll rounded-lg bg-white px-2 shadow-lg md:max-w-prose;
183-
@apply rounded-lg border-b-[1px] border-[#C6C6C8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 bg-white p-4 shadow-lg dark:bg-black;
183+
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-white p-4 shadow-lg dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-black;
184184
}
185185
.close-button {
186186
@apply flex items-center gap-2 rounded px-4 py-2;

src/components/oba/TripDetailsPane.svelte

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,17 @@
111111
class="bg-white text-3xl text-green-500 dark:bg-black"
112112
/>
113113
{#if index === busPosition}
114-
<FontAwesomeIcon icon={faBus} class="bg-white dark:bg-black absolute text-sm text-green-500" />
115-
{/if}
116-
{#if index === currentStopIndex}
117-
<FontAwesomeIcon icon={faLocationDot} class="bg-white dark:bg-black absolute text-sm text-blue-500" />
118-
{/if}
114+
<FontAwesomeIcon
115+
icon={faBus}
116+
class="absolute bg-white text-sm text-green-500 dark:bg-black"
117+
/>
118+
{/if}
119+
{#if index === currentStopIndex}
120+
<FontAwesomeIcon
121+
icon={faLocationDot}
122+
class="absolute bg-white text-sm text-blue-500 dark:bg-black"
123+
/>
124+
{/if}
119125
</div>
120126
<div class="ml-4 flex w-full items-center justify-between">
121127
<div class="text-md font-semibold text-[#000000] dark:text-white">

src/lib/RestAPI/arrivalsAndDeparturesForStop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { error, json } from '@sveltejs/kit';
33
import { PUBLIC_OBA_SERVER_URL as baseURL } from '$env/static/public';
44
import { PRIVATE_OBA_API_KEY as apiKey } from '$env/static/private';
55

6-
export default async function(stopID) {
6+
export default async function (stopID) {
77
const apiURL = `${baseURL}/api/where/arrivals-and-departures-for-stop/${stopID}.json?key=${apiKey}`;
88
const response = await fetch(apiURL);
99

src/lib/RestAPI/stop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { error, json } from '@sveltejs/kit';
33
import { PUBLIC_OBA_SERVER_URL as baseURL } from '$env/static/public';
44
import { PRIVATE_OBA_API_KEY as apiKey } from '$env/static/private';
55

6-
export default async function(stopID) {
6+
export default async function (stopID) {
77
const apiURL = `${baseURL}/api/where/stop/${stopID}.json?key=${apiKey}`;
88
const response = await fetch(apiURL);
99

src/routes/stops/[stopID]/+page.server.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import stopAPI from '$lib/RestAPI/stop.js';
22
import arrivalDepartureAPI from '$lib/RestAPI/arrivalsAndDeparturesForStop.js';
33

44
export async function load({ params }) {
5-
const stopID = params.stopID;
6-
const stopResponse = await stopAPI(stopID);
7-
const stopBody = await stopResponse.json();
8-
const arrivalsAndDeparturesResponse = await arrivalDepartureAPI(stopID)
9-
const arrivalsAndDeparturesResponseJSON = await arrivalsAndDeparturesResponse.json();
5+
const stopID = params.stopID;
6+
const stopResponse = await stopAPI(stopID);
7+
const stopBody = await stopResponse.json();
8+
const arrivalsAndDeparturesResponse = await arrivalDepartureAPI(stopID);
9+
const arrivalsAndDeparturesResponseJSON = await arrivalsAndDeparturesResponse.json();
1010

11-
return {
12-
stopID: params.stopID,
13-
stopData: stopBody.data,
14-
arrivalsAndDeparturesResponse: arrivalsAndDeparturesResponseJSON
15-
}
11+
return {
12+
stopID: params.stopID,
13+
stopData: stopBody.data,
14+
arrivalsAndDeparturesResponse: arrivalsAndDeparturesResponseJSON
15+
};
1616
}

src/routes/stops/[stopID]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
const arrivalsAndDeparturesResponse = data.arrivalsAndDeparturesResponse;
66
</script>
77

8-
<div class='pt-20 px-8 max-w-5xl mx-auto'>
8+
<div class="mx-auto max-w-5xl px-8 pt-20">
99
<StopPane {stop} {arrivalsAndDeparturesResponse} />
1010
</div>

0 commit comments

Comments
 (0)