diff --git a/client/app/components/admin/torrentTable.jsx b/client/app/components/admin/torrentTable.jsx
deleted file mode 100644
index 94d0f43..0000000
--- a/client/app/components/admin/torrentTable.jsx
+++ /dev/null
@@ -1,85 +0,0 @@
-import React, { Component } from 'react';
-
-import { fetchJSON } from '../http.jsx';
-
-class TorrentTable extends Component {
-
- constructor() {
- super();
- this.state = {
- torrentResponse: '',
- showResults: false,
- }
- }
-
- componentWillReceiveProps(props) {
- if (props.response !== undefined) {
- this.setState({
- torrentResponse: props.response.map((torrent, index) => {
- return (
-
- | {torrent.name} |
- {torrent.size} |
- {torrent.seed} |
- |
-
- )
- }),
- showResults: true,
- })
- }
- else {
- this.setState({
- showResults: false,
- })
- }
- }
-
- sendToDownload(torrent) {
- let data = {magnet: torrent.magnet}
- fetchJSON('https://apollo.kevinmidboe.com/api/v1/pirate/add', 'POST', data)
- .then((response) => {
- // TODO: Show a card with response that the item has been sent, and the status of response.
- console.log(response)
- })
- .catch((error) => {
- console.error(error);
- })
- }
-
- generateTable() {
- let style = {
- table: {
- width: '80%',
- marginRight: 'auto',
- marginLeft: 'auto',
- },
- }
-
- return (
-
-
-
- | Name |
- Size |
- Seed |
- Add |
-
-
-
- { this.state.torrentResponse }
-
-
- );
- }
-
- render() {
- return (
-
- { this.state.showResults ? this.generateTable() : null }
-
- )
- }
-}
-
-export default TorrentTable
\ No newline at end of file
diff --git a/client/app/components/styles/adminComponent.jsx b/client/app/components/styles/adminComponent.jsx
index 9e131aa..721a740 100644
--- a/client/app/components/styles/adminComponent.jsx
+++ b/client/app/components/styles/adminComponent.jsx
@@ -1,8 +1,16 @@
export default {
sidebar: {
- float: 'left',
+ float: 'left',
+ width: '18%',
+ minWidth: '250px',
+ fontFamily: '"Open Sans", sans-serif',
+ fontSize: '14px',
+ borderRight: '2px solid #f2f2f2',
},
selectedObjectPanel: {
- float: 'left',
+ width: '80%',
+ float: 'right',
+ fontFamily: '"Open Sans", sans-serif',
+ marginTop: '1em',
}
}
\ No newline at end of file