mirror of
https://github.com/zoriya/flood.git
synced 2025-12-19 21:55:15 +00:00
34 lines
978 B
JavaScript
34 lines
978 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import Application from './components/layout/Application';
|
|
import ApplicationContent from './components/layout/ApplicationContent';
|
|
import ApplicationLoadingIndicator from './components/layout/ApplicationLoadingIndicator';
|
|
import Modals from './components/modals/Modals';
|
|
import Sidebar from './components/panels/Sidebar';
|
|
import SettingsStore from './stores/SettingsStore';
|
|
import TorrentActions from './actions/TorrentActions';
|
|
import TorrentListView from './components/panels/TorrentListView';
|
|
|
|
class FloodApp extends React.Component {
|
|
componentDidMount() {
|
|
SettingsStore.fetchSettings();
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Application>
|
|
<ApplicationLoadingIndicator />
|
|
<Sidebar />
|
|
<ApplicationContent>
|
|
<TorrentListView />
|
|
</ApplicationContent>
|
|
<Modals />
|
|
</Application>
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
ReactDOM.render(<FloodApp />, document.getElementById('app'));
|