2020-04-09 00:29:13 +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";
|
|
|
|
|
|
|
|
import { css } from "@emotion/react";
|
|
|
|
|
|
|
|
import Section from "~/components/core/Section";
|
|
|
|
import ScenePage from "~/components/core/ScenePage";
|
|
|
|
|
|
|
|
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;
|
|
|
|
min-width: 228px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
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;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_TEXT_CTA = css`
|
2020-07-02 11:24:14 +03:00
|
|
|
font-family: ${Constants.font.text};
|
2020-04-09 00:29:13 +03:00
|
|
|
text-decoration: underline;
|
|
|
|
color: ${Constants.system.brand};
|
|
|
|
font-weight: 400;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: 200ms ease all;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.green};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default class SceneStatus extends React.Component {
|
|
|
|
state = {};
|
|
|
|
|
|
|
|
_handleChange = (e) => {
|
|
|
|
this.setState({ [e.target.name]: e.target.value });
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<ScenePage>
|
|
|
|
<System.H1>Status</System.H1>
|
|
|
|
|
2020-07-02 13:54:33 +03:00
|
|
|
<Section title="Node" onAction={this.props.onAction} onNavigateTo={this.props.onNavigateTo}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Peer ID</div>
|
|
|
|
<div css={STYLES_RIGHT}>
|
2020-07-02 13:54:33 +03:00
|
|
|
Qma9T5YraSnpRDZqRR4krcSJabThc8nwZuJV3LercPHufi <strong css={STYLES_TEXT_CTA}>(copy)</strong>
|
2020-04-09 00:29:13 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
|
|
|
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}>4</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Version</div>
|
|
|
|
<div css={STYLES_RIGHT}>Lotus Testnet 3</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>
|
|
|
|
Miners{" "}
|
2020-07-02 13:54:33 +03:00
|
|
|
<strong css={STYLES_TEXT_CTA} onClick={() => this.props.onNavigateTo({ id: 11 })}>
|
2020-04-09 00:29:13 +03:00
|
|
|
(view)
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_RIGHT}>1</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Workers</div>
|
|
|
|
<div css={STYLES_RIGHT}>
|
|
|
|
0 <strong css={STYLES_TEXT_CTA}>(copy)</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Network connection"
|
|
|
|
buttons={[
|
|
|
|
{
|
|
|
|
name: "Disconnect",
|
|
|
|
type: "ACTION",
|
|
|
|
value: "ACTION_DISCONNECT",
|
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Network</div>
|
|
|
|
<div css={STYLES_RIGHT}>Mainnet</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Status</div>
|
|
|
|
<div css={STYLES_RIGHT}>Connected</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Genesis</div>
|
|
|
|
<div css={STYLES_RIGHT}>
|
|
|
|
pYqSDLCIthA3CPoVcmwoDOIWyw0pC6uTwDFmNZytEREPLLEV3nOBjnv+yoKqk7nNCgpYAVUwXMv+mcZ2XNusdSWcd6b0HNmeqzQeaB9pZSayy9AV5E2Qp56CGxifRGKC{" "}
|
|
|
|
<strong css={STYLES_TEXT_CTA}>(copy)</strong>{" "}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<Section
|
|
|
|
onAction={this.props.onAction}
|
|
|
|
onNavigateTo={this.props.onNavigateTo}
|
|
|
|
title="Chain sync"
|
|
|
|
buttons={[
|
|
|
|
{
|
|
|
|
name: "Import",
|
|
|
|
type: "ACTION",
|
|
|
|
value: "ACTION_IMPORT_CHAIN_DATA",
|
|
|
|
},
|
2020-07-02 13:54:33 +03:00
|
|
|
]}>
|
2020-04-09 00:29:13 +03:00
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Status</div>
|
|
|
|
<div css={STYLES_RIGHT}>Message Sync 30%</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Head</div>
|
|
|
|
<div css={STYLES_RIGHT}>Tipset hash</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Height</div>
|
|
|
|
<div css={STYLES_RIGHT}>96413</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_ROW}>
|
|
|
|
<div css={STYLES_LEFT}>Timestamp</div>
|
|
|
|
<div css={STYLES_RIGHT}>April 13th, 2020 4:42 PM</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
<System.DescriptionGroup
|
|
|
|
style={{ marginTop: 32 }}
|
|
|
|
label="Reset usage data"
|
|
|
|
tooltip="This action is irreversible."
|
|
|
|
description="Reset your usage data on this Filecoin Node."
|
|
|
|
/>
|
|
|
|
|
2020-07-02 13:54:33 +03:00
|
|
|
<System.ButtonSecondary style={{ marginTop: 16 }}>Reset</System.ButtonSecondary>
|
2020-04-09 00:29:13 +03:00
|
|
|
</ScenePage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|