mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-25 21:33:48 +03:00
Add coordinator and client versions to Stats for Nerds
This commit is contained in:
parent
ae193f19a4
commit
81c5a3d9f5
@ -664,13 +664,15 @@ class BottomBar extends Component {
|
|||||||
<StatsDialog
|
<StatsDialog
|
||||||
isOpen={this.state.openStatsForNerds}
|
isOpen={this.state.openStatsForNerds}
|
||||||
handleClickCloseStatsForNerds={this.handleClickCloseStatsForNerds}
|
handleClickCloseStatsForNerds={this.handleClickCloseStatsForNerds}
|
||||||
|
coordinatorVersion={this.state.coordinatorVersion}
|
||||||
|
clientVersion={this.state.clientVersion}
|
||||||
lndVersion={this.state.lnd_version}
|
lndVersion={this.state.lnd_version}
|
||||||
network={this.state.network}
|
network={this.state.network}
|
||||||
nodeAlias={this.state.node_alias}
|
nodeAlias={this.state.node_alias}
|
||||||
nodeId={this.state.node_id}
|
nodeId={this.state.node_id}
|
||||||
alternativeName={this.state.alternative_name}
|
alternativeName={this.state.alternative_name}
|
||||||
alternativeSite={this.state.alternative_site}
|
alternativeSite={this.state.alternative_site}
|
||||||
robosatsRunningCommitHash={this.state.robosats_running_commit_hash}
|
commitHash={this.state.robosats_running_commit_hash}
|
||||||
lastDayVolume={this.state.last_day_volume}
|
lastDayVolume={this.state.last_day_volume}
|
||||||
lifetimeVolume={this.state.lifetime_volume}
|
lifetimeVolume={this.state.lifetime_volume}
|
||||||
/>
|
/>
|
||||||
|
@ -21,7 +21,7 @@ import FavoriteIcon from '@mui/icons-material/Favorite';
|
|||||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||||
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
||||||
|
|
||||||
import { AmbossIcon, BitcoinSignIcon } from '../Icons';
|
import { AmbossIcon, BitcoinSignIcon, RoboSatsNoTextIcon } from '../Icons';
|
||||||
|
|
||||||
import { pn } from '../../utils/prettyNumbers';
|
import { pn } from '../../utils/prettyNumbers';
|
||||||
|
|
||||||
@ -29,12 +29,14 @@ interface Props {
|
|||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
handleClickCloseStatsForNerds: () => void;
|
handleClickCloseStatsForNerds: () => void;
|
||||||
lndVersion: string;
|
lndVersion: string;
|
||||||
|
coordinatorVersion: string;
|
||||||
|
clientVersion: string;
|
||||||
network: string;
|
network: string;
|
||||||
nodeAlias: string;
|
nodeAlias: string;
|
||||||
nodeId: string;
|
nodeId: string;
|
||||||
alternativeName: string;
|
alternativeName: string;
|
||||||
alternativeSite: string;
|
alternativeSite: string;
|
||||||
robosatsRunningCommitHash: string;
|
commitHash: string;
|
||||||
lastDayVolume: number;
|
lastDayVolume: number;
|
||||||
lifetimeVolume: number;
|
lifetimeVolume: number;
|
||||||
}
|
}
|
||||||
@ -43,12 +45,14 @@ const StatsDialog = ({
|
|||||||
isOpen,
|
isOpen,
|
||||||
handleClickCloseStatsForNerds,
|
handleClickCloseStatsForNerds,
|
||||||
lndVersion,
|
lndVersion,
|
||||||
|
coordinatorVersion,
|
||||||
|
clientVersion,
|
||||||
network,
|
network,
|
||||||
nodeAlias,
|
nodeAlias,
|
||||||
nodeId,
|
nodeId,
|
||||||
alternativeName,
|
alternativeName,
|
||||||
alternativeSite,
|
alternativeSite,
|
||||||
robosatsRunningCommitHash,
|
commitHash,
|
||||||
lastDayVolume,
|
lastDayVolume,
|
||||||
lifetimeVolume,
|
lifetimeVolume,
|
||||||
}: Props): JSX.Element => {
|
}: Props): JSX.Element => {
|
||||||
@ -69,6 +73,15 @@ const StatsDialog = ({
|
|||||||
<List dense>
|
<List dense>
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
|
<ListItem>
|
||||||
|
<ListItemIcon>
|
||||||
|
<RoboSatsNoTextIcon sx={{width:'1.4em',height:'1.4em',right:'0.2em', position:'relative'}}/>
|
||||||
|
</ListItemIcon>
|
||||||
|
<ListItemText primary={`${t("Client")} ${clientVersion} - ${t("Coordinator")} ${coordinatorVersion}`} secondary={t('RoboSats version')} />
|
||||||
|
</ListItem>
|
||||||
|
|
||||||
|
<Divider />
|
||||||
|
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<BoltIcon />
|
<BoltIcon />
|
||||||
@ -83,7 +96,7 @@ const StatsDialog = ({
|
|||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<DnsIcon />
|
<DnsIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText secondary={nodeAlias}>
|
<ListItemText secondary={`${t("LN Node")}: ${nodeAlias}`}>
|
||||||
<Link
|
<Link
|
||||||
target='_blank'
|
target='_blank'
|
||||||
href={`https://1ml.com/testnet/node/${nodeId}`}
|
href={`https://1ml.com/testnet/node/${nodeId}`}
|
||||||
@ -125,13 +138,13 @@ const StatsDialog = ({
|
|||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<GitHubIcon />
|
<GitHubIcon />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText secondary={t('Currently running commit hash')}>
|
<ListItemText secondary={t('Coordinator commit hash')}>
|
||||||
<Link
|
<Link
|
||||||
target='_blank'
|
target='_blank'
|
||||||
href={`https://github.com/Reckless-Satoshi/robosats/tree/${robosatsRunningCommitHash}`}
|
href={`https://github.com/Reckless-Satoshi/robosats/tree/${commitHash}`}
|
||||||
rel='noreferrer'
|
rel='noreferrer'
|
||||||
>
|
>
|
||||||
{`${robosatsRunningCommitHash.slice(0, 12)}...`}
|
{`${commitHash.slice(0, 12)}...`}
|
||||||
</Link>
|
</Link>
|
||||||
</ListItemText>
|
</ListItemText>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
|
@ -235,6 +235,10 @@
|
|||||||
"On your own sovereign node": "On your own sovereign node",
|
"On your own sovereign node": "On your own sovereign node",
|
||||||
"Simply refresh your Tor Browser tab (or press Ctrl+Shift+R)": "Simply refresh your Tor Browser tab (or press Ctrl+Shift+R)",
|
"Simply refresh your Tor Browser tab (or press Ctrl+Shift+R)": "Simply refresh your Tor Browser tab (or press Ctrl+Shift+R)",
|
||||||
"On remotely served client via web": "On remotely served client via web",
|
"On remotely served client via web": "On remotely served client via web",
|
||||||
|
"Client":"Client",
|
||||||
|
"Coordinator":"Coordinator",
|
||||||
|
"RoboSats version":"RoboSats version",
|
||||||
|
"LN Node":"LN Node",
|
||||||
|
|
||||||
"ORDER PAGE - OrderPage.js": "Order details page",
|
"ORDER PAGE - OrderPage.js": "Order details page",
|
||||||
"Order Box": "Order Box",
|
"Order Box": "Order Box",
|
||||||
|
Loading…
Reference in New Issue
Block a user