Skip to content
Open
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,4 +1,5 @@
node_modules/
.DS_Store
site/
.vite
.vite
.env
4 changes: 2 additions & 2 deletions client/src/components/CheckboxComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function CheckboxComponent({ handleCheckboxChange, query }) {
onChange={handleCheckboxChange}
required={!query.regulatory}
/>
 Physical
<span className="search-checkbox-text">Physical</span>
</label>
<label className="search-box-pair">
<input
Expand All @@ -23,7 +23,7 @@ export default function CheckboxComponent({ handleCheckboxChange, query }) {
onChange={handleCheckboxChange}
required={!query.ppi}
/>
&nbsp;Regulatory
<span className="search-checkbox-text">Regulatory</span>
</label>
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion client/src/components/MotifTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default function MotifTable({
);

const getFormatted = (value) => {
if (value === undefined || value === null || isNaN(value)) {
if (value === undefined) {
return 'Loading...'
}
else if (value === null || isNaN(value)) {
return 'N/A';
} else
return value.toFixed(4);
Expand Down
16 changes: 15 additions & 1 deletion client/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { Link } from "react-router-dom";
import { FaInfo, FaHome, FaSearch } from "react-icons/fa";
import { FaInfo, FaHome, FaSearch, FaCloudDownloadAlt} from "react-icons/fa";
import { IconContext } from "react-icons";

export default function NavBar() {
Expand Down Expand Up @@ -50,6 +50,20 @@ export default function NavBar() {
</button>
</Link>
</li>
<li>
<Link to={`/download`}>
<button className="navbar-menu-button">
<IconContext.Provider
value={{
size: "1.5em",
}}
>
<FaCloudDownloadAlt />
</IconContext.Provider>
<div>Data</div>
</button>
</Link>
</li>
</ul>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/Query.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default function Query() {
protein: "",
goTerm: "",
k: [],
ppi: false,
regulatory: false,
ppi: true,
regulatory: true,
});
const [networkResult, setNetworkResult] = useState({});
const cyRef = useRef(cytoscape.Core | undefined);
Expand Down Expand Up @@ -69,8 +69,8 @@ export default function Query() {
protein: "",
goTerm: "",
k: "",
ppi: "",
regulatory: "",
ppi: "true",
regulatory: "true",
});
const [guide, setGuide] = useState(guideConfig);
const [activeModeButton, setActiveModeButton] = useState("");
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/SearchBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export default function SearchBar({
</div>
<div className="search-input-header">
<label className="species-header"
htmlFor="species-input-container">Organism (TXID)</label>
htmlFor="search select">Organism (TXID)</label>
<select
className="species-input-container" // User input for species
className="search-select" // User input for species
name="species" // User input for species
value={query.species}
onChange={handleSpeciesChange}
Expand Down Expand Up @@ -152,7 +152,7 @@ export default function SearchBar({
</div>

<div className="interaction-container">
<h4 className="interaction-title">Network: </h4>
<h4 className="interaction-title">Network:</h4>
<CheckboxComponent
handleCheckboxChange={handleCheckboxChange}
query={query}
Expand Down
Loading