import lbry from '../lbry.js'; import React from 'react'; import FormField from '../component/form.js'; const DeveloperPage = React.createClass({ getInitialState: function() { return { debugMode: lbry.getClientSetting('debug'), useCustomLighthouseServers: lbry.getClientSetting('useCustomLighthouseServers'), customLighthouseServers: lbry.getClientSetting('customLighthouseServers').join('\n'), }; }, handleDebugModeChange: function(event) { lbry.setClientSetting('debug', event.target.checked); this.setState({ debugMode: event.target.checked, }); }, handleUseCustomLighthouseServersChange: function(event) { lbry.setClientSetting('useCustomLighthouseServers', event.target.checked); this.setState({ useCustomLighthouseServers: event.target.checked, }); }, handleCustomLighthouseServersChange: function(event) { lbry.setClientSetting('customLighthouseServers', event.target.value.trim().split('\n')); this.setState({ customLighthouseServers: event.target.value, }); }, render: function() { return (

Developer Settings

{this.state.useCustomLighthouseServers ?
: null}
); } }); export default DeveloperPage;