2016-10-17 10:39:11 +13:00
|
|
|
|
|
|
|
|
import React, { PropTypes } from 'react'
|
|
|
|
|
import FontAwesome from 'react-fontawesome'
|
2017-08-04 09:19:19 +12:00
|
|
|
import { Link } from 'react-router'
|
2016-11-29 15:36:01 +13:00
|
|
|
|
2016-10-23 23:48:06 +13:00
|
|
|
import Header from '../components/Header'
|
2017-08-04 16:08:57 +12:00
|
|
|
import Parallax from '../components/Parallax'
|
2017-08-04 09:19:19 +12:00
|
|
|
import System from '../components/Settings/System'
|
|
|
|
|
import Services from '../components/Settings/Services'
|
|
|
|
|
import Debug from '../components/Settings/Debug'
|
2016-10-17 10:39:11 +13:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
export default class Settings extends React.Component {
|
2017-06-27 09:07:25 +12:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
renderSubViewMenu(){
|
2017-06-27 09:07:25 +12:00
|
|
|
return (
|
2017-08-04 09:19:19 +12:00
|
|
|
<div className="sub-views">
|
|
|
|
|
<Link className="option" activeClassName="active" to={global.baseURL+'settings/'}><h4>System</h4></Link>
|
|
|
|
|
<Link className="option" activeClassName="active" to={global.baseURL+'settings/services'}><h4>Services</h4></Link>
|
|
|
|
|
<Link className="option" activeClassName="active" to={global.baseURL+'settings/debug'}><h4>Debug</h4></Link>
|
|
|
|
|
<Link className="option" activeClassName="active" to={global.baseURL+'settings/about'}><h4>About</h4></Link>
|
2017-06-27 09:07:25 +12:00
|
|
|
</div>
|
|
|
|
|
)
|
2017-02-21 08:35:24 +13:00
|
|
|
}
|
|
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
renderSubView(){
|
|
|
|
|
switch (this.props.params.sub_view){
|
2016-10-18 21:57:29 +13:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
case 'services':
|
|
|
|
|
return (
|
|
|
|
|
<div className="body related-artists">
|
|
|
|
|
<Services />
|
2017-02-21 08:35:24 +13:00
|
|
|
</div>
|
2017-08-04 09:19:19 +12:00
|
|
|
)
|
2017-02-21 08:35:24 +13:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
case 'debug':
|
|
|
|
|
return (
|
|
|
|
|
<div className="body debug">
|
|
|
|
|
<Debug />
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2016-10-27 16:58:11 +13:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
case 'about':
|
|
|
|
|
return (
|
|
|
|
|
<div className="body about">
|
2016-11-14 11:20:02 +13:00
|
|
|
<div className="field">
|
2017-08-04 09:19:19 +12:00
|
|
|
<div>
|
|
|
|
|
<em><a href="https://github.com/jaedb/Iris" target="_blank">Iris</a></em> is an open-source project by <a href="https://github.com/jaedb" target="_blank">James Barnsley</a>. It is provided free and with absolutely no warranty. If you paid someone for this software, please let me know.
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
Google Analytics is used to help trace issues and provide valuable insight into how we can continue to make improvements.
|
|
|
|
|
<br />
|
2016-10-28 09:14:29 +13:00
|
|
|
</div>
|
2017-08-04 09:19:19 +12:00
|
|
|
<br /><br />
|
|
|
|
|
<div>
|
|
|
|
|
<a className="button" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=james%40barnsley%2enz&lc=NZ&item_name=James%20Barnsley¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted" target="_blank">
|
|
|
|
|
<FontAwesome name="paypal" /> Donate
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a className="button" href="https://github.com/jaedb/Iris" target="_blank">
|
|
|
|
|
<FontAwesome name="github" /> GitHub
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/" target="_blank" style={{display: 'inline-block', verticalAlign: 'middle'}}><img alt="Creative Commons License" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a>
|
2016-11-29 15:36:01 +13:00
|
|
|
</div>
|
2017-08-04 09:19:19 +12:00
|
|
|
</div>
|
2016-12-12 09:07:47 +13:00
|
|
|
</div>
|
2017-08-04 09:19:19 +12:00
|
|
|
)
|
2016-10-25 14:09:53 +13:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
default:
|
|
|
|
|
return (
|
|
|
|
|
<div className="body system">
|
|
|
|
|
<System />
|
2017-06-28 08:36:09 +12:00
|
|
|
</div>
|
2017-08-04 09:19:19 +12:00
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-28 08:36:09 +12:00
|
|
|
|
2017-08-04 09:19:19 +12:00
|
|
|
render(){
|
|
|
|
|
return (
|
|
|
|
|
<div className="view settings-view">
|
2017-08-04 16:08:57 +12:00
|
|
|
<Header className="overlay" icon="cog" title="Settings" />
|
2016-10-29 22:40:02 +13:00
|
|
|
|
2017-08-04 16:08:57 +12:00
|
|
|
<div className="intro">
|
|
|
|
|
<div className="liner">
|
|
|
|
|
<Parallax image="/iris/assets/backgrounds/settings.jpg" />
|
|
|
|
|
{this.renderSubViewMenu()}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-01-04 16:14:10 +13:00
|
|
|
|
2017-08-04 16:08:57 +12:00
|
|
|
<section className="content-wrapper">
|
2017-08-04 09:19:19 +12:00
|
|
|
{this.renderSubView()}
|
2016-10-25 14:09:53 +13:00
|
|
|
</section>
|
2017-01-04 16:14:10 +13:00
|
|
|
|
2016-10-17 10:39:11 +13:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2017-08-04 09:19:19 +12:00
|
|
|
}
|