-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
493d2fb
commit 108663b
Showing
15 changed files
with
878 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react' | ||
|
||
import { withStyles } from 'material-ui/styles' | ||
import ListSubheader from 'material-ui/List/ListSubheader' | ||
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' | ||
import Collapse from 'material-ui/transitions/Collapse' | ||
import InboxIcon from 'material-ui-icons/MoveToInbox' | ||
import DraftsIcon from 'material-ui-icons/Drafts' | ||
import SendIcon from 'material-ui-icons/Send' | ||
import ExpandLess from 'material-ui-icons/ExpandLess' | ||
import ExpandMore from 'material-ui-icons/ExpandMore' | ||
import Divider from 'material-ui/Divider' | ||
import StarBorder from 'material-ui-icons/StarBorder' | ||
|
||
import DrawerMD from './_drawerMD' | ||
import DrawerIA from './_drawerIA' | ||
import DrawerIADDNSService from './_drawerIADDNSService' | ||
|
||
const styles = theme => ({ | ||
root: { | ||
width: '100%', | ||
maxWidth: 360, | ||
background: "inherit", | ||
color: "white", | ||
}, | ||
nested: { | ||
paddingLeft: theme.spacing.unit * 4, | ||
}, | ||
}); | ||
|
||
class NestedList extends React.Component { | ||
state = { open: false }; | ||
|
||
handleClick = () => { | ||
this.setState({ open: !this.state.open }); | ||
}; | ||
|
||
render() { | ||
const { classes } = this.props; | ||
return ( | ||
<div> | ||
|
||
<List subheader={<ListSubheader>Motion Detection</ListSubheader>}> | ||
<DrawerMD /> | ||
</List> | ||
|
||
<Divider /> | ||
|
||
<List subheader={<ListSubheader>Remote Access</ListSubheader>}> | ||
<DrawerIA /> | ||
</List> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(NestedList); |
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,66 @@ | ||
import React from 'react' | ||
|
||
import { withStyles } from 'material-ui/styles' | ||
import ListSubheader from 'material-ui/List/ListSubheader' | ||
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' | ||
import Collapse from 'material-ui/transitions/Collapse' | ||
import InboxIcon from 'material-ui-icons/MoveToInbox' | ||
import DraftsIcon from 'material-ui-icons/Drafts' | ||
import SendIcon from 'material-ui-icons/Send' | ||
import ExpandLess from 'material-ui-icons/ExpandLess' | ||
import ExpandMore from 'material-ui-icons/ExpandMore' | ||
import Divider from 'material-ui/Divider' | ||
import StarBorder from 'material-ui-icons/StarBorder' | ||
|
||
import DrawerIADDNSService from './_drawerIADDNSService' | ||
import DrawerIAPortForwarding from './_drawerIAPortForwarding' | ||
import DrawerIAThirdDDNS from './_drawerIAThirdDDNS' | ||
|
||
const styles = theme => ({ | ||
root: { | ||
width: '100%', | ||
maxWidth: 360, | ||
background: "inherit", | ||
color: "white", | ||
}, | ||
nested: { | ||
paddingLeft: theme.spacing.unit * 4, | ||
}, | ||
}); | ||
|
||
class DrawerIA extends React.Component { | ||
state = { open: false }; | ||
|
||
handleClick = () => { | ||
this.setState({ open: !this.state.open }); | ||
}; | ||
|
||
render() { | ||
const { classes } = this.props; | ||
return ( | ||
<div> | ||
<ListItem button> | ||
<ListItemIcon> | ||
<SendIcon /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="The P2P Service" /> | ||
</ListItem> | ||
|
||
<DrawerIADDNSService /> | ||
<DrawerIAPortForwarding /> | ||
|
||
<ListItem button> | ||
<ListItemIcon> | ||
<SendIcon /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Mobile Access" /> | ||
</ListItem> | ||
|
||
<DrawerIAThirdDDNS /> | ||
|
||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(DrawerIA); |
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,58 @@ | ||
import React from 'react' | ||
|
||
import { withStyles } from 'material-ui/styles' | ||
import ListSubheader from 'material-ui/List/ListSubheader' | ||
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' | ||
import Collapse from 'material-ui/transitions/Collapse' | ||
import InboxIcon from 'material-ui-icons/MoveToInbox' | ||
import DraftsIcon from 'material-ui-icons/Drafts' | ||
import SendIcon from 'material-ui-icons/Send' | ||
import ExpandLess from 'material-ui-icons/ExpandLess' | ||
import ExpandMore from 'material-ui-icons/ExpandMore' | ||
import Divider from 'material-ui/Divider' | ||
import StarBorder from 'material-ui-icons/StarBorder' | ||
|
||
const styles = theme => ({ | ||
root: { | ||
width: '100%', | ||
maxWidth: 360, | ||
background: "inherit", | ||
color: "white", | ||
}, | ||
nested: { | ||
paddingLeft: theme.spacing.unit * 4, | ||
}, | ||
}); | ||
|
||
class DrawerIADDNSService extends React.Component { | ||
state = { open: false }; | ||
|
||
handleClick = () => { | ||
this.setState({ open: !this.state.open }); | ||
}; | ||
|
||
render() { | ||
const { classes } = this.props; | ||
return ( | ||
<div> | ||
<ListItem button onClick={this.handleClick}> | ||
<ListItemIcon> | ||
<DraftsIcon /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="The DDNS Service" /> | ||
{this.state.open ? <ExpandLess /> : <ExpandMore />} | ||
</ListItem> | ||
<Collapse in={this.state.open} transitionDuration="auto" unmountOnExit> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="DDNS Testing" /> | ||
</ListItem> | ||
</Collapse> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(DrawerIADDNSService); |
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,88 @@ | ||
import React from 'react' | ||
|
||
import { withStyles } from 'material-ui/styles' | ||
import ListSubheader from 'material-ui/List/ListSubheader' | ||
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' | ||
import Collapse from 'material-ui/transitions/Collapse' | ||
import InboxIcon from 'material-ui-icons/MoveToInbox' | ||
import DraftsIcon from 'material-ui-icons/Drafts' | ||
import SendIcon from 'material-ui-icons/Send' | ||
import ExpandLess from 'material-ui-icons/ExpandLess' | ||
import ExpandMore from 'material-ui-icons/ExpandMore' | ||
import Divider from 'material-ui/Divider' | ||
import StarBorder from 'material-ui-icons/StarBorder' | ||
|
||
const styles = theme => ({ | ||
root: { | ||
width: '100%', | ||
maxWidth: 360, | ||
background: "inherit", | ||
color: "white", | ||
}, | ||
nested: { | ||
paddingLeft: theme.spacing.unit * 4, | ||
}, | ||
}); | ||
|
||
class DrawerIAPortForwarding extends React.Component { | ||
state = { open: false }; | ||
|
||
handleClick = () => { | ||
this.setState({ open: !this.state.open }); | ||
}; | ||
|
||
render() { | ||
const { classes } = this.props; | ||
return ( | ||
<div> | ||
<ListItem button onClick={this.handleClick}> | ||
<ListItemIcon> | ||
<InboxIcon /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Port Forwarding" /> | ||
{this.state.open ? <ExpandLess /> : <ExpandMore />} | ||
</ListItem> | ||
<Collapse in={this.state.open} transitionDuration="auto" unmountOnExit> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Telekom Speedport" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="D-Link" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Netgear" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Vodafon Easybox" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Pirelli Router" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="TP-Link" /> | ||
</ListItem> | ||
</Collapse> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(DrawerIAPortForwarding); |
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,70 @@ | ||
import React from 'react' | ||
|
||
import { withStyles } from 'material-ui/styles' | ||
import ListSubheader from 'material-ui/List/ListSubheader' | ||
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' | ||
import Collapse from 'material-ui/transitions/Collapse' | ||
import InboxIcon from 'material-ui-icons/MoveToInbox' | ||
import DraftsIcon from 'material-ui-icons/Drafts' | ||
import SendIcon from 'material-ui-icons/Send' | ||
import ExpandLess from 'material-ui-icons/ExpandLess' | ||
import ExpandMore from 'material-ui-icons/ExpandMore' | ||
import Divider from 'material-ui/Divider' | ||
import StarBorder from 'material-ui-icons/StarBorder' | ||
|
||
const styles = theme => ({ | ||
root: { | ||
width: '100%', | ||
maxWidth: 360, | ||
background: "inherit", | ||
color: "white", | ||
}, | ||
nested: { | ||
paddingLeft: theme.spacing.unit * 4, | ||
}, | ||
}); | ||
|
||
class DrawerIAThirdDDNS extends React.Component { | ||
state = { open: false }; | ||
|
||
handleClick = () => { | ||
this.setState({ open: !this.state.open }); | ||
}; | ||
|
||
render() { | ||
const { classes } = this.props; | ||
return ( | ||
<div> | ||
<ListItem button onClick={this.handleClick}> | ||
<ListItemIcon> | ||
<DraftsIcon /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Third-party DDNS" /> | ||
{this.state.open ? <ExpandLess /> : <ExpandMore />} | ||
</ListItem> | ||
<Collapse in={this.state.open} transitionDuration="auto" unmountOnExit> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="No-IP" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="Selfhost" /> | ||
</ListItem> | ||
<ListItem button className={classes.nested}> | ||
<ListItemIcon> | ||
<StarBorder /> | ||
</ListItemIcon> | ||
<ListItemText inset primary="DDNSS" /> | ||
</ListItem> | ||
</Collapse> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default withStyles(styles)(DrawerIAThirdDDNS); |
Oops, something went wrong.