Skip to content
Snippets Groups Projects
Commit a4adbf15 authored by William Fitzgerald's avatar William Fitzgerald
Browse files

Added comments

parent 1e7216e2
Branches main
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ body, html{
padding:0;
}
/* Layout: App -> html -> body -> main container -> row -> graph column & data column*/
.App-main-container {
background-color: white;
min-height: 70vh;
......
......@@ -9,7 +9,10 @@ import Controller3 from './pages/controller3';
import Controller4 from './pages/controller4';
import Controller5 from './pages/controller5';
import Controller6 from './pages/controller6';
/**
* Entry point for the dashboard page, handles all six routes to controllers
*
*/
function App() {
return (
......
import { FaBars } from "react-icons/fa";
import { NavLink as Link } from "react-router-dom";
import styled from "styled-components";
/**
* This file contians imported styling for the imported navbar component present on each controller page
*/
export const Nav = styled.nav`
background: #214184;
height: 100px;
......
import React from "react";
import { Nav, NavLink, NavMenu }
from "./NavbarElements";
/**
* Imported navbar element that contains routes to each of the six controllers
*
*/
const Navbar = () => {
return (
<>
......
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
/**
* Default index for App.js
*/
ReactDOM.render(
<React.StrictMode>
<App />
......
......@@ -3,6 +3,7 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
......@@ -27,6 +28,10 @@ const data = [
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller1 = () => {
return (
<html>
......
......@@ -3,30 +3,35 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller2 = () => {
return (
<html>
......
......@@ -3,30 +3,35 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller3 = () => {
return (
<html>
......
......@@ -3,30 +3,35 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller4 = () => {
return (
<html>
......
......@@ -3,30 +3,35 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller5 = () => {
return (
<html>
......
......@@ -3,30 +3,35 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsi
import ssec from '../config/ssec-logo.png';
import '../App.css';
// Static data for testing, use msgpack and create vars here
const data = [
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
{
Temp: 240,
},
{
Temp: 139,
},
{
Temp: 980,
},
{
Temp: 390,
},
{
Temp: 480,
},
{
Temp: 380,
},
{
Temp: 322,
},
];
/**
* React and HTML for main container for this controller
* Styled by App.css
*/
const controller6 = () => {
return (
<html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment