var React = require('react') var Link = require('react-router').Link var Icon = require('icon.jsx') module.exports = React.createClass({ getInitialState () { return {} }, componentWillUnmount () { if (this.timer) clearTimeout(this.timer) }, componentWillReceiveProps (props) { this.init(props) }, componentDidMount () { this.init(this.props) }, init (props) { var boards = props.api if (this.timer) clearTimeout(this.timer) if (boards) { boards.getEventEmitter().on('init', (err, limited) => { if (!this.isMounted()) return if (err) { this.setState({ error: true, limited }) } else { this.setState({ connected: true }) } }) if (boards.isInit) { this.setState({ connected: true }) } else if (boards.limited) { this.setState({ error: true, limited: true }) } else this.startTimer() } else this.startTimer() }, startTimer () { console.log('start timer') this.timer = setTimeout(_ => { console.log('Connection to go-ipfs has timed out (probably due to CORS)') if (this.isMounted() && !this.state.connected && !this.state.limited) { this.setState({ long: true }) this.init(this.props) } }, 5000) }, getContent () { if (this.state.limited) { return
Only a few features are available in limited mode.
Tip: you can also run in limited mode by loading the app from an IPFS Gateway.
You don't have an IPFS node running at {opt.addr}:{opt.port}
or it is not reachable.
The IPFS Boards prototype requires a full IPFS node. Please start one by following the
go-ipfs
documentation.
It's probably one of these issues:
{opt.addr}:{opt.port}
. Go to the Settings Page to configure the connection.Still can't fix it? File a issue on GitHub, we'll be happy to help!