Skip to content

Commit

Permalink
documentation done
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlerg1224 committed May 3, 2023
1 parent 07aeb62 commit c536dbb
Show file tree
Hide file tree
Showing 72 changed files with 13,014 additions and 253 deletions.
4 changes: 3 additions & 1 deletion client/src/components/AppBarMenuButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import MenuItem from "@mui/material/MenuItem";
import IconButton from "@mui/material/IconButton";
import MenuIcon from "@mui/icons-material/Menu";
import { useNavigate } from "react-router-dom";

/**
* The App bar menu button function creates the app bar nav button and incorporates the other pages into the nav bar.
*/
export default function AppBarMenuButton() {
const [anchorEl, setAnchorEl] = React.useState(null);
const navigate = useNavigate();
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/GoogleTranslateButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useEffect } from "react";

/**
* The GoogleTranslateButton function creates the button at the top of each page that can translate the page that it is on.
*/
const GoogleTranslateButton = () => {
const googleTranslateElementInit = () => {
new window.google.translate.TranslateElement(
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/PendingRestockTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const config = {
}
};

/*
/**
* UI for a material react table populated with restock orders that have not been marked as arrived in the database
*/
export default class PendingRestockTable extends React.Component {
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/ReactWeatherComponent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import ReactWeather, { useVisualCrossing } from 'react-open-weather';

/**
* The react weather component function incorporates the weather api into our project that can be used on necessary pages.
*/
const ReactWeatherComponent = () => {
/*
const { data, isLoading, errorMessage } = useWeatherBit({
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/RestockReportTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const config = {
"Access-Control-Allow-Methods": "GET,PUT,POST,DELETE,PATCH,OPTIONS"
}
};

/**
* The Restock Report Table function builds the table used in the restock report and queries the database for the report.
*/
export default class RestockReportTable extends React.Component {
constructor(props) {
super(props);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/SalesReportTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config = {
}
};
/**
* SalesReportTable class sets up the table of the sales report page.
* @class SalesReportTable class sets up the table of the sales report page.
* This class also queries the database with the values from the date time pickers on the web page.
* It also displays the data.
*/
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/SignIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import React, { useEffect } from 'react';
import { GoogleButton } from 'react-google-button';
import { UserAuth } from '../login/AuthContext';
import { useNavigate } from 'react-router-dom';

/**
* The sign in function creates the sign in functionalities and manages them
*/
const SignIn = () => {
const { googleSignIn, user } = UserAuth();
const navigate = useNavigate();
Expand Down
4 changes: 3 additions & 1 deletion client/src/pages/ErrorPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useRouteError } from "react-router-dom";
import React from 'react';

/**
* The Error Page function builds the error page that shows up when there is an issue with the javascript
*/
export default function ErrorPage() {
const error = useRouteError();
console.error(error);
Expand Down
5 changes: 4 additions & 1 deletion client/src/pages/LoginPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';
import SignIn from '../components/SignIn';

/**
* Login Page function that sets up the login page and incorporates the sign in component
*
*/
export default function LoginPage() {
return (

Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/RestockReportPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const Item = styled(Paper)(({ theme }) => ({
}));

// The grid max xs = 12
/**
* Function that builds the restock report page with grids and incorporates the table, app bar
*/
function RestockReportPage() {
return (
<div className="RestockReportPage">
Expand Down
7 changes: 2 additions & 5 deletions client/src/pages/SalesReportPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ const cfa_theme = createTheme({
});
/**
*
* Sales Report Page function used to build the webpage
* Has setStart, setEnd, and setSubmit vars to help store values from the date time
* selection box
*
*
* Sales Report Page function used to build the sales report page that holds the sales report table
* and the date time pickers used to query for that table.
*/
export default function SalesReportPage(){
const [start, setStart] = useState('');
Expand Down
4 changes: 3 additions & 1 deletion client/src/pages/TestTranslatePage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useEffect } from "react";

/**
* Sets up the google translate component for our project.
*/
const TestTranslatePage = () => {
const googleTranslateElementInit = () => {
new window.google.translate.TranslateElement(
Expand Down
Binary file modified docs/.DS_Store
Binary file not shown.
Loading

0 comments on commit c536dbb

Please sign in to comment.