2020-06-19 06:57:57 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Strings from "~/common/strings";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
import * as System from "~/components/system";
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-19 06:57:57 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-06-19 06:57:57 +03:00
|
|
|
import { LineChart } from "~/vendor/react-chartkick";
|
|
|
|
import Section from "~/components/core/Section";
|
|
|
|
import ScenePage from "~/components/core/ScenePage";
|
2020-04-09 00:29:13 +03:00
|
|
|
|
|
|
|
const STYLES_ROW = css`
|
|
|
|
padding: 24px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_LEFT = css`
|
|
|
|
font-size: ${Constants.typescale.lvl2};
|
|
|
|
padding-right: 24px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_RIGHT = css`
|
2020-07-02 11:24:14 +03:00
|
|
|
font-family: ${Constants.font.semiBold};
|
2020-04-09 00:29:13 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
|
|
|
color: ${Constants.system.brand};
|
|
|
|
min-width: 10%;
|
|
|
|
width: 100%;
|
|
|
|
padding-left: 24px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_TEXT_CTA = css`
|
|
|
|
text-decoration: underline;
|
|
|
|
color: ${Constants.system.brand};
|
|
|
|
font-weight: 400;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: 200ms ease all;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.green};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_GRAPH_OBJECT = css`
|
|
|
|
border-radius: 4px;
|
|
|
|
background: ${Constants.system.brand};
|
|
|
|
padding: 8px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_GRAPH_ROW = css`
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-bottom: 48px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_GRAPH_ROW_LEFT = css`
|
|
|
|
width: 50%;
|
|
|
|
padding: 16px 8px 16px 24px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_GRAPH_ROW_RIGHT = css`
|
|
|
|
width: 50%;
|
|
|
|
padding: 16px 24px 16px 8px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_OPTION = css`
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
margin-left: 24px;
|
2020-07-02 11:24:14 +03:00
|
|
|
font-family: ${Constants.font.semiBold};
|
2020-04-09 00:29:13 +03:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 0.2px;
|
|
|
|
text-transform: uppercase;
|
|
|
|
border-radius: 4px;
|
|
|
|
transition: 200ms ease all;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
color: ${Constants.system.green};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_OPTIONS = css`
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
padding: 24px 12px 24px 12px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_ITEM_GROUP = css`
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: flex-start;
|
|
|
|
padding: 0 8px 0 8px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_ITEM = css`
|
|
|
|
margin-top: 24px;
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-width: 144px;
|
|
|
|
margin-right: 24px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_FOCUS = css`
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
2020-07-02 11:24:14 +03:00
|
|
|
font-family: ${Constants.font.medium};
|
2020-04-09 00:29:13 +03:00
|
|
|
overflow-wrap: break-word;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
strong {
|
2020-07-02 11:24:14 +03:00
|
|
|
font-family: ${Constants.font.semiBold};
|
2020-04-09 00:29:13 +03:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SUBTEXT = css`
|
|
|
|
margin-top: 8px;
|
|
|
|
font-size: 12px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default class SceneStats extends React.Component {
|
|
|
|
state = {};
|
|
|
|
|
|
|
|
_handleChange = (e) => {
|
|
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ScenePage>
|
|
|
|
<System.H1>Stats</System.H1>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Wallet"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Reset",
|
|
|
|
type: "ACTION",
|
|
|
|
value: "ACTION_RESET_STATS_WALLET",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_STATS_WALLET",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Total FIL Balance</div>
|
2020-06-04 09:26:20 +03:00
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOFIL)</div>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Lifetime FIL Balance</div>
|
2020-06-04 09:26:20 +03:00
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOFIL)</div>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>FIL spent today</div>
|
2020-06-04 09:26:20 +03:00
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOFIL)</div>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Total FIL spent</div>
|
2020-06-04 09:26:20 +03:00
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOFIL)</div>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Total FIL received</div>
|
2020-06-04 09:26:20 +03:00
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOFIL)</div>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
2020-06-19 06:57:57 +03:00
|
|
|
Total wallet addresses{" "}
|
2020-07-02 13:54:33 +03:00
|
|
|
<strong css={STYLES_TEXT_CTA} onClick={() => this.props.onNavigateTo({ id: 2 })}>
|
2020-04-09 00:29:13 +03:00
|
|
|
(view)
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (Number)</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
2020-06-19 06:57:57 +03:00
|
|
|
Total payment channels{" "}
|
2020-07-02 13:54:33 +03:00
|
|
|
<strong css={STYLES_TEXT_CTA} onClick={() => this.props.onNavigateTo({ id: 3 })}>
|
2020-04-09 00:29:13 +03:00
|
|
|
(view)
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (Number)</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
2020-06-19 06:57:57 +03:00
|
|
|
Total FIL in payment channels{" "}
|
2020-07-02 13:54:33 +03:00
|
|
|
<strong css={STYLES_TEXT_CTA} onClick={() => this.props.onNavigateTo({ id: 3 })}>
|
2020-04-09 00:29:13 +03:00
|
|
|
(view)
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (FIL/ATTOLFIL)</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Node"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Reset",
|
|
|
|
type: "ACTION",
|
|
|
|
value: "ACTION_RESET_STATS_NODE",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_STATS_NODE",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_GRAPH_ROW}>
|
|
|
|
<div css={STYLES_GRAPH_ROW_LEFT}>
|
|
|
|
<div css={STYLES_GRAPH_OBJECT}>
|
|
|
|
<div css={STYLES_OPTIONS}>
|
|
|
|
<span css={STYLES_OPTION}>1 Day</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Week</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>6 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Year</span>
|
|
|
|
</div>
|
|
|
|
<LineChart
|
|
|
|
data={[
|
2020-06-19 06:57:57 +03:00
|
|
|
["2017-01-01 00:00:00 UTC", 1],
|
|
|
|
["2018-01-01 00:00:00 UTC", 5],
|
|
|
|
["2019-01-01 00:00:00 UTC", 25],
|
|
|
|
["2020-01-01 00:00:00 UTC", 200],
|
2020-04-09 00:29:13 +03:00
|
|
|
[new Date(), 400],
|
|
|
|
]}
|
|
|
|
library={{
|
|
|
|
backgroundColor: Constants.system.brand,
|
|
|
|
scales: {
|
|
|
|
xAxes: [
|
|
|
|
{
|
|
|
|
gridLines: { color: Constants.system.white },
|
|
|
|
ticks: {
|
|
|
|
fontColor: Constants.system.white,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
yAxes: [
|
|
|
|
{
|
|
|
|
gridLines: { color: Constants.system.white },
|
|
|
|
display: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
dataset={{ lineTension: 0, pointRadius: 0, borderWidth: 1 }}
|
|
|
|
width="100%"
|
|
|
|
height="640px"
|
|
|
|
colors={[Constants.system.white]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ITEM_GROUP}>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>12 kb/s</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Current incoming</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>14 kb/s</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Average incoming</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_GRAPH_ROW_RIGHT}>
|
|
|
|
<div css={STYLES_GRAPH_OBJECT}>
|
|
|
|
<div css={STYLES_OPTIONS}>
|
|
|
|
<span css={STYLES_OPTION}>1 Day</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Week</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>6 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Year</span>
|
|
|
|
</div>
|
|
|
|
<LineChart
|
|
|
|
data={[
|
2020-06-19 06:57:57 +03:00
|
|
|
["2017-01-01 00:00:00 UTC", 1],
|
|
|
|
["2018-01-01 00:00:00 UTC", 2],
|
|
|
|
["2019-01-01 00:00:00 UTC", 4],
|
|
|
|
["2020-01-01 00:00:00 UTC", 5],
|
2020-04-09 00:29:13 +03:00
|
|
|
[new Date(), 4],
|
|
|
|
]}
|
|
|
|
library={{
|
|
|
|
backgroundColor: Constants.system.brand,
|
|
|
|
scales: {
|
|
|
|
xAxes: [
|
|
|
|
{
|
|
|
|
gridLines: { color: Constants.system.white },
|
|
|
|
ticks: {
|
|
|
|
fontColor: Constants.system.white,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
yAxes: [
|
|
|
|
{
|
|
|
|
display: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
dataset={{ lineTension: 0, pointRadius: 0, borderWidth: 1 }}
|
|
|
|
width="100%"
|
|
|
|
height="640px"
|
|
|
|
colors={[Constants.system.white]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ITEM_GROUP}>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>11 kb/s</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Current outgoing</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>23 kb/s</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Average outgoing</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Node start date</div>
|
|
|
|
<div css={STYLES_RIGHT}>March, 20th, 2020</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
2020-06-19 06:57:57 +03:00
|
|
|
Favorite peers{" "}
|
2020-07-02 13:54:33 +03:00
|
|
|
<strong css={STYLES_TEXT_CTA} onClick={() => this.props.onNavigateTo({ id: 8 })}>
|
2020-04-09 00:29:13 +03:00
|
|
|
(view)
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_RIGHT}>42 peers</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Your location</div>
|
|
|
|
<div css={STYLES_RIGHT}>Norway</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Data"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Reset",
|
|
|
|
type: "ACTION",
|
|
|
|
value: "ACTION_RESET_STATS_DATA",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_STATS_DATA",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_GRAPH_ROW}>
|
|
|
|
<div css={STYLES_GRAPH_ROW_LEFT}>
|
|
|
|
<div css={STYLES_GRAPH_OBJECT}>
|
|
|
|
<div css={STYLES_OPTIONS}>
|
|
|
|
<span css={STYLES_OPTION}>1 Day</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Week</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>6 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Year</span>
|
|
|
|
</div>
|
|
|
|
<LineChart
|
|
|
|
data={[
|
2020-06-19 06:57:57 +03:00
|
|
|
["2017-01-01 00:00:00 UTC", 1],
|
|
|
|
["2018-01-01 00:00:00 UTC", 5],
|
|
|
|
["2019-01-01 00:00:00 UTC", 25],
|
|
|
|
["2020-01-01 00:00:00 UTC", 200],
|
2020-04-09 00:29:13 +03:00
|
|
|
[new Date(), 400],
|
|
|
|
]}
|
|
|
|
library={{
|
|
|
|
backgroundColor: Constants.system.brand,
|
|
|
|
scales: {
|
|
|
|
xAxes: [
|
|
|
|
{
|
|
|
|
gridLines: { color: Constants.system.white },
|
|
|
|
ticks: {
|
|
|
|
fontColor: Constants.system.white,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
yAxes: [
|
|
|
|
{
|
|
|
|
display: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
dataset={{ lineTension: 0, pointRadius: 0, borderWidth: 1 }}
|
|
|
|
width="100%"
|
|
|
|
height="640px"
|
|
|
|
colors={[Constants.system.white]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ITEM_GROUP}>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>55 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Currently stored</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>5 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Stored per day</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>200 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Total</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_GRAPH_ROW_RIGHT}>
|
|
|
|
<div css={STYLES_GRAPH_OBJECT}>
|
|
|
|
<div css={STYLES_OPTIONS}>
|
|
|
|
<span css={STYLES_OPTION}>1 Day</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Week</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>6 Month</span>
|
|
|
|
<span css={STYLES_OPTION}>1 Year</span>
|
|
|
|
</div>
|
|
|
|
<LineChart
|
|
|
|
data={[
|
2020-06-19 06:57:57 +03:00
|
|
|
["2017-01-01 00:00:00 UTC", 1],
|
|
|
|
["2018-01-01 00:00:00 UTC", 5],
|
|
|
|
["2019-01-01 00:00:00 UTC", 25],
|
|
|
|
["2020-01-01 00:00:00 UTC", 200],
|
2020-04-09 00:29:13 +03:00
|
|
|
[new Date(), 400],
|
|
|
|
]}
|
|
|
|
library={{
|
|
|
|
backgroundColor: Constants.system.brand,
|
|
|
|
scales: {
|
|
|
|
xAxes: [
|
|
|
|
{
|
|
|
|
gridLines: { color: Constants.system.white },
|
|
|
|
ticks: {
|
|
|
|
fontColor: Constants.system.white,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
yAxes: [
|
|
|
|
{
|
|
|
|
display: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
dataset={{ lineTension: 0, pointRadius: 0, borderWidth: 1 }}
|
|
|
|
width="100%"
|
|
|
|
height="640px"
|
|
|
|
colors={[Constants.system.white]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM_GROUP}>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>7 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Currently retrieved</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>20 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Retrieved per day</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ITEM}>
|
|
|
|
<div css={STYLES_FOCUS}>300 items</div>
|
|
|
|
<div css={STYLES_SUBTEXT}>Total</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Data shared today</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (GB)</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Total amount of data stored</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (GB)</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Data retrieved today</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (GB)</div>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Total amount of data retrieved</div>
|
|
|
|
<div css={STYLES_RIGHT}>Value (GB)</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Most commonly retrieved CIDs"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_MOST_COMMON_CIDS",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<System.Table
|
|
|
|
data={{
|
|
|
|
columns: [
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
key: "deal-cid",
|
|
|
|
name: "Deal CID",
|
2020-04-09 00:29:13 +03:00
|
|
|
copyable: true,
|
2020-06-19 06:57:57 +03:00
|
|
|
tooltip: "Deal CID explainer",
|
|
|
|
width: "100%",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
key: "data-cid",
|
|
|
|
name: "Data CID",
|
2020-04-09 00:29:13 +03:00
|
|
|
copyable: true,
|
2020-06-19 06:57:57 +03:00
|
|
|
tooltip: "Data CID explainer",
|
|
|
|
width: "296px",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-06-19 06:57:57 +03:00
|
|
|
{ key: "miner", name: "Miner", width: "228px" },
|
2020-04-09 00:29:13 +03:00
|
|
|
],
|
|
|
|
rows: [
|
|
|
|
{
|
|
|
|
id: 1,
|
2020-06-19 06:57:57 +03:00
|
|
|
"data-cid": "44Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
"deal-cid": "55Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
miner: "Example Miner A",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
2020-06-19 06:57:57 +03:00
|
|
|
"data-cid": "14Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
"deal-cid": "23Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
miner: "Example Miner B",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
2020-06-19 06:57:57 +03:00
|
|
|
"data-cid": "88Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
"deal-cid": "89Y7Yh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
miner: "Example Miner C",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 4,
|
2020-06-19 06:57:57 +03:00
|
|
|
"data-cid": "AAAAYh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
"deal-cid": "BBBBYh4UquoXHLPFo2XbhXkhBvFoPwmQUSa92pxnxjQuPU",
|
|
|
|
miner: "Example Miner D",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}}
|
|
|
|
selectedRowId={this.state.table_stats_common}
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
onChange={this._handleChange}
|
|
|
|
name="table_stats_common"
|
|
|
|
/>
|
|
|
|
</Section>
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Top storage deals by GB"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_TOP_STORAGE_DEALS_GB",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<System.Table
|
|
|
|
data={{
|
|
|
|
columns: [
|
2020-06-19 06:57:57 +03:00
|
|
|
{ key: "file", name: "File", type: "FILE_LINK" },
|
|
|
|
{ key: "miner", name: "Miner", width: "228px" },
|
|
|
|
{ key: "size", name: "Size" },
|
2020-04-09 00:29:13 +03:00
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
key: "date",
|
|
|
|
name: "Date uploaded",
|
|
|
|
width: "168px",
|
2020-07-02 13:54:33 +03:00
|
|
|
tooltip: "This date represents when the file was first uploaded to the network.",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
rows: [],
|
|
|
|
}}
|
|
|
|
selectedRowId={this.state.table_storage_deals_gb}
|
|
|
|
onChange={this._handleChange}
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
name="table_storage_deals_db"
|
|
|
|
/>
|
|
|
|
</Section>
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Top storage deals by FIL"
|
|
|
|
buttons={[
|
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
name: "Export",
|
|
|
|
type: "DOWNLOAD",
|
|
|
|
value: "CSV_TOP_STORAGE_DEALS_FIL",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<System.Table
|
|
|
|
data={{
|
|
|
|
columns: [
|
2020-06-19 06:57:57 +03:00
|
|
|
{ key: "file", name: "File", type: "FILE_LINK" },
|
|
|
|
{ key: "miner", name: "Miner", width: "228px" },
|
|
|
|
{ key: "amount", name: "Amount" },
|
2020-04-09 00:29:13 +03:00
|
|
|
{
|
2020-06-19 06:57:57 +03:00
|
|
|
key: "date",
|
|
|
|
name: "Date uploaded",
|
|
|
|
width: "168px",
|
2020-07-02 13:54:33 +03:00
|
|
|
tooltip: "This date represents when the file was first uploaded to the network.",
|
2020-04-09 00:29:13 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
rows: [],
|
|
|
|
}}
|
|
|
|
selectedRowId={this.state.table_storage_deals_fil}
|
|
|
|
onChange={this._handleChange}
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
name="table_storage_deals_fil"
|
|
|
|
/>
|
|
|
|
</Section>
|
|
|
|
</ScenePage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|