Store + display more info form speedtests

This commit is contained in:
Henry Whitaker
2020-06-20 18:18:15 +01:00
parent 91f457c7d1
commit 0027de2f4b
12 changed files with 428 additions and 142607 deletions

View File

@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Axios from 'axios';
import { Container, Row, Table, Col, Collapse, Button } from 'react-bootstrap';
import TableRow from './TableRow';
export default class TestsTable extends Component {
constructor(props) {
@@ -93,18 +94,13 @@ export default class TestsTable extends Component {
<th>Download (Mbit/s)</th>
<th>Upload (Mbit/s)</th>
<th>Ping (ms)</th>
<th>More</th>
</tr>
</thead>
<tbody>
{data.map((e,i) => {
return (
<tr key={e.id}>
<td>{e.id}</td>
<td>{new Date(e.created_at).toLocaleString()}</td>
<td>{e.download}</td>
<td>{e.upload}</td>
<td>{e.ping}</td>
</tr>
<TableRow key={e.id} data={e} />
);
})}
</tbody>