receptor/src/ui/main.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-08-22 21:49:48 +02:00
import React, { Component } from 'react';
2017-08-25 04:49:24 +02:00
import { Route, DefaultRoute } from 'react-router';
import { connect } from 'react-redux';
2017-12-30 18:23:50 +01:00
import Nav from './navigation';
2017-08-22 21:49:48 +02:00
import TorrentTable from './torrent_table';
2017-08-24 14:30:22 +02:00
import AddTorrent from './add_torrent';
import TorrentDetails from './torrent_details';
2017-08-25 04:49:24 +02:00
import Server from './server';
2018-02-11 03:18:29 +01:00
import SearchHelp from './search_help';
import ConnectionOverlay from './connection';
2017-08-22 21:49:48 +02:00
2017-09-08 04:06:49 +02:00
export default class Main extends Component {
2017-08-22 21:49:48 +02:00
render() {
return (
2017-12-30 18:23:50 +01:00
<div>
<Nav />
<div className="container-fluid">
<div className="row">
<div className="col-md-8">
<TorrentTable />
</div>
<div className="col-md-4">
<Route exact path="/add-torrent" component={AddTorrent} />
2018-02-11 03:18:29 +01:00
<Route path="/search-help" component={SearchHelp} />
2017-12-30 18:23:50 +01:00
<Route path="/add-torrent/:magnet" component={AddTorrent} />
<Route path="/torrents/:ids" component={TorrentDetails} />
<Route exact path="/" component={Server} />
</div>
<ConnectionOverlay />
</div>
2017-08-22 21:49:48 +02:00
</div>
</div>
);
}
}