Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #40

Merged
merged 6 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
.env
.env
.DS_Store
2 changes: 2 additions & 0 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import AppBar from "./components/SiteAppBar.js";

const theme = createTheme({
typography: {
fontFamily: '"Open Sans", sans-serif',
button: {
textTransform: "none",
fontSize: "medium",
},
},
palette: {
Expand Down
7 changes: 3 additions & 4 deletions client/src/components/About.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Box, Grid, Paper, Typography, styled } from "@mui/material";
import graphic from "./images/windmills_grid.jpg";

// visualization. will delete later
const Item = styled(Paper)(({ theme }) => ({
Expand Down Expand Up @@ -74,10 +73,10 @@ export default function About() {
</Typography>

<Typography variant="h6" color="common.white" sx={{}}>
Paper citation: DFAT: A Web-Based Demand Flexibility Assessment
Toolkit for Building-to-Grid Integration.{" "}
Paper citation: DFAT: A Web-Based Toolkit for Estimating Demand
Flexibility in Building-to-Grid Integration.{" "}
<a
href="https://doi.org/10.1016/j.buildenv.2023.110663"
href="https://www.softxjournal.com"
target="_blank"
rel="noopener noreferrer"
style={{ color: "#2196f3" }} // Inline styling
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import axios from "axios";
import { useState } from "react";

import { useNavigate } from "react-router-dom";
import { calculations } from "../logic/Advanced_Calculations.js";
import { calculations } from "../logic/AdvancedCalculations.js";
import { createVisualizations } from "./calculator-components/Visualizations.js";

// visualization for boxes. will delete later
Expand Down
18 changes: 2 additions & 16 deletions client/src/components/Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import axios from "axios";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { createCaseIDs, gtaCalculation } from "../logic/DR_Calculations.js";
import { abbreviationToFullName } from "../logic/stateAbbreviations.js";
import { createCaseIDs, gtaCalculation } from "../logic/DRCalculations.js";
import { abbreviationToFullName } from "../logic/StateAbbreviations.js";
import { createVisualizations } from "./calculator-components/Visualizations.js";

export default function Basic() {
Expand Down Expand Up @@ -343,20 +343,6 @@ export default function Basic() {
Basic Calculator
</Typography>

<Button
variant="contained"
color="secondary"
onClick={loadBasicTemplate}
sx={{
marginTop: 2,
marginBottom: 3,
width: "21%",
height: "50px",
}}
>
Load Template
</Button>

<form>
<Typography
variant="h5"
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ export default function Home() {
color="white.main"
sx={{ fontSize: "1.2rem" }}
>
DFAT: A Web-Based Demand Flexibility Assessment Toolkit for
Building-to-Grid Integration.{" "}
DFAT: A Web-Based Toolkit for Estimating Demand Flexibility in
Building-to-Grid Integration{" "}
<a
href="https://doi.org/10.1016/j.buildenv.2023.110663"
href="https://www.softxjournal.com/"
target="_blank"
rel="noopener noreferrer"
style={{ color: "#2196f3" }}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/SiteAppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from "@mui/material";
import { Menu as MenuIcon } from "@mui/icons-material";
import { useNavigate } from "react-router-dom";
import { ReactComponent as Logo } from "./images/lbnlgridintegrationgroup.svg";
import { ReactComponent as Logo } from "./images/5_BL_Horiz_Tile_rgb.svg";

const drawerWidth = 240;
const navItems = ["Calculator", "FAQ", "About"];
Expand Down Expand Up @@ -77,7 +77,7 @@ export default function SiteAppBar(props) {
</IconButton>
<Logo
onClick={() => navigate("/")}
style={{ width: 450, height: 150, cursor: "pointer" }}
style={{ width: 330, height: 90, cursor: "pointer" }}
></Logo>
<Typography
variant="h6"
Expand Down
660 changes: 660 additions & 0 deletions client/src/components/images/5_BL_Horiz_Tile_rgb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed client/src/components/images/berkeleylab.png
Binary file not shown.
Binary file not shown.
Binary file removed client/src/components/images/windmills_grid.jpg
Binary file not shown.
1 change: 1 addition & 0 deletions client/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
File renamed without changes.
Binary file not shown.
Loading
Loading