Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunsinghofficial committed Jul 30, 2024
2 parents aadf828 + d313dcb commit 55b9038
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/navigation/ModalPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<style lang="postcss">
.modal-pane {
@apply absolute bottom-0 left-0 z-40 w-full bg-transparent px-2 shadow-lg md:max-w-prose;
@apply rounded-lg bg-[#F3F2F8] dark:bg-black border-b-[1px] border-[#C6C6C8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15;
@apply rounded-lg border-b-[1px] border-[#C6C6C8] bg-[#F3F2F8] dark:border-[1px] dark:border-[#C6C6C8] dark:border-opacity-15 dark:bg-black;
}
.close-button {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/arrivalsAndDeparturesForStop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { error, json } from '@sveltejs/kit';
import { PUBLIC_OBA_SERVER_URL as baseURL } from '$env/static/public';
import { PRIVATE_OBA_API_KEY as apiKey } from '$env/static/private';

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

Expand Down
2 changes: 1 addition & 1 deletion src/lib/RestAPI/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { error, json } from '@sveltejs/kit';
import { PUBLIC_OBA_SERVER_URL as baseURL } from '$env/static/public';
import { PRIVATE_OBA_API_KEY as apiKey } from '$env/static/private';

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

Expand Down
20 changes: 10 additions & 10 deletions src/routes/stops/[stopID]/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import stopAPI from '$lib/RestAPI/stop.js';
import arrivalDepartureAPI from '$lib/RestAPI/arrivalsAndDeparturesForStop.js';

export async function load({ params }) {
const stopID = params.stopID;
const stopResponse = await stopAPI(stopID);
const stopBody = await stopResponse.json();
const arrivalsAndDeparturesResponse = await arrivalDepartureAPI(stopID)
const arrivalsAndDeparturesResponseJSON = await arrivalsAndDeparturesResponse.json();
const stopID = params.stopID;
const stopResponse = await stopAPI(stopID);
const stopBody = await stopResponse.json();
const arrivalsAndDeparturesResponse = await arrivalDepartureAPI(stopID);
const arrivalsAndDeparturesResponseJSON = await arrivalsAndDeparturesResponse.json();

return {
stopID: params.stopID,
stopData: stopBody.data,
arrivalsAndDeparturesResponse: arrivalsAndDeparturesResponseJSON
}
return {
stopID: params.stopID,
stopData: stopBody.data,
arrivalsAndDeparturesResponse: arrivalsAndDeparturesResponseJSON
};
}
2 changes: 1 addition & 1 deletion src/routes/stops/[stopID]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
const arrivalsAndDeparturesResponse = data.arrivalsAndDeparturesResponse;
</script>

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

0 comments on commit 55b9038

Please sign in to comment.