Skip to content

Commit

Permalink
docs: add missing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
christophertorres1 committed Mar 16, 2024
1 parent f4bfd34 commit 5d8294f
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 109 deletions.
33 changes: 0 additions & 33 deletions src/app/collectionsPage/page.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/dummyPage/page.tsx

This file was deleted.

8 changes: 4 additions & 4 deletions src/app/featuredToursPage/[tourId]/[displayId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import { fetchImagesForDisplay } from '../../../../supabase/media/queries';
import Carousel from '../../../../components/userComponents/ImageScroller/ImageScroller';

/**
* The page that displays a tour stop.
* Displays a stop page for the current tour
* @param params -
* @param params.params -
* @param params.params.tourId - The tour ID.
* @param params.params.displayId - The display ID.
* @returns The tour stop page.
* @param params.params.tourId - The tour ID
* @param params.params.displayId - The display ID
* @returns The tour stop page
*/
export default function TourStopPage({
params,
Expand Down
6 changes: 3 additions & 3 deletions src/app/featuredToursPage/[tourId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { fetchTourDisplays } from '../../../supabase/tour_displays/queries';
import { fetchAllDisplays } from '../../../supabase/displays/queries';

/**
* The page that displays the start of a tour.
* Displays the start page for a tour
* @param params -
* @param params.params -
* @param params.params.tourId - The tour ID.
* @returns The tour start page.
* @param params.params.tourId - The tour ID
* @returns The tour start page
*/
export default function TourStartPage({
params,
Expand Down
6 changes: 3 additions & 3 deletions src/app/featuredToursPage/[tourId]/tourEndPage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { fetchTour } from '../../../../supabase/tours/queries';
import { fetchTourMedia } from '../../../../supabase/tour_media/queries';

/**
* The page that displays the end of a tour.
* Displays end page for a tour
* @param params -
* @param params.params -
* @param params.params.tourId - The tour ID.
* @returns The tour end page.
* @param params.params.tourId - The tour ID
* @returns The tour end page
*/
export default function TourEndPage({
params,
Expand Down
4 changes: 2 additions & 2 deletions src/app/featuredToursPage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import NavBar from '../../components/userComponents/navBar/navBar';
import { TourRow } from '../../types/types';

/**
* The page that displays all the featured tours.
* @returns The featured tours page.
* Displays a list of all featured tours
* @returns The featured tours page
*/
export default function FeaturedToursPage() {
const [tours, setTours] = useState<TourRow[]>([]);
Expand Down
3 changes: 3 additions & 0 deletions src/app/hoursAdmissionPage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import React from 'react';
import Link from 'next/link';
import NavBar from '../../components/userComponents/navBar/navBar';

/**
* @returns The hours and admission page
*/
function App() {
return (
<div style={{ backgroundColor: '#ebf0e4', height: '100vh' }}>
Expand Down
3 changes: 3 additions & 0 deletions src/app/newsFeedPage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import React from 'react';
import NavBar from '../../components/userComponents/navBar/navBar';

/**
* @returns The news feed page
*/
function App() {
return (
<div style={{ backgroundColor: '#ebf0e4', height: '100vh' }}>
Expand Down
30 changes: 0 additions & 30 deletions src/app/qrCodeScanner/page.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions src/app/qrCodeTourPage/page.tsx

This file was deleted.

7 changes: 3 additions & 4 deletions src/components/userComponents/navBar/navBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ import React, { useState } from 'react';
import Link from 'next/link';

/**
*
* @returns The navigation bar for the web app
*/
function NavBar() {
const [showMenu, setShowMenu] = useState(false);

/**
*
* Toggles the side menu
*/
function handleClick() {
setShowMenu(!showMenu);
}

/**
*
* @param event
* @param event - Close the side menu when the escape key is pressed
*/
function handleKeyDown(event: React.KeyboardEvent<HTMLButtonElement>) {
if (event.key === 'Escape') {
Expand Down
3 changes: 1 addition & 2 deletions src/supabase/tour_displays/queries.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import supabase from '../client';
import { TourDisplaysRow, DisplayRow, TourRow } from '../../types/types';
import { TourDisplaysRow, DisplayRow } from '../../types/types';
import { fetchDisplaysfromIds } from '../displays/queries';

/**
Expand Down Expand Up @@ -33,7 +33,6 @@ export async function fetchMatchingTourDisplayIdsfromSpotlight(tourId: string) {
);
}
const displayIds = data.map(item => item.display_id);
console.log('hello?');
return displayIds;
}

Expand Down

0 comments on commit 5d8294f

Please sign in to comment.