-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from MichaelPesce/build
0.9.0rc0 build updates
- Loading branch information
Showing
19 changed files
with
255 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
electron/ui/src/components/FilterDropdown/WaterQualityFilterDropdown.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React from 'react'; | ||
import {useState} from 'react'; | ||
import Grid from '@mui/material/Grid'; | ||
import Accordion from '@mui/material/Accordion'; | ||
import AccordionSummary from '@mui/material/AccordionSummary'; | ||
import AccordionDetails from '@mui/material/AccordionDetails'; | ||
import ListItemText from '@mui/material/ListItemText'; | ||
import Checkbox from '@mui/material/Checkbox'; | ||
import ListItemIcon from '@mui/material/ListItemIcon'; | ||
import Button from '@mui/material/Button'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
|
||
export default function FilterDropdown(props) { | ||
const styles = { | ||
iconSelected: { | ||
backgroundColor:'#6094bc', | ||
color: 'white', | ||
borderRadius: 10, | ||
}, | ||
iconUnselected: { | ||
borderRadius: 10, | ||
color:'black', | ||
} | ||
} | ||
|
||
|
||
return ( | ||
<Accordion style={{minWidth:props.width }} sx={{minWidth:props.width, zIndex: 2}}> | ||
<AccordionSummary sx={{marginBottom: 0, paddingBottom:0}} style={{justifyContent:"center"}}> | ||
<Typography noWrap align="center" sx={{width: '100%',fontWeight: "bold", color: "#0884b4"}}>Node Filters</Typography> | ||
</AccordionSummary> | ||
<AccordionDetails sx={{ maxHeight:props.maxHeight, overflow: "scroll", marginTop:0, paddingTop:0}}> | ||
<MenuItem value="all" onClick={()=> props.handleFilter("all")}> | ||
<ListItemIcon> | ||
<Checkbox | ||
checked={props.isAllSelected} | ||
indeterminate={ | ||
props.filtered.length > 0 && props.filtered.length < props.total.length | ||
} | ||
/> | ||
</ListItemIcon> | ||
<ListItemText | ||
primary="Select All" | ||
/> | ||
</MenuItem> | ||
{ | ||
Object.entries(props.filtered).map(([key,value]) => ( | ||
<MenuItem key={key} value={key} onClick={()=> props.handleFilter(key)}> | ||
<ListItemIcon> | ||
<Checkbox checked={value} /> | ||
</ListItemIcon> | ||
<ListItemText primary={key} /> | ||
</MenuItem> | ||
))} | ||
|
||
|
||
|
||
</AccordionDetails> | ||
</Accordion> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.