mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-24 12:52:41 +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
|
||||
isOpen={this.state.openStatsForNerds}
|
||||
handleClickCloseStatsForNerds={this.handleClickCloseStatsForNerds}
|
||||
coordinatorVersion={this.state.coordinatorVersion}
|
||||
clientVersion={this.state.clientVersion}
|
||||
lndVersion={this.state.lnd_version}
|
||||
network={this.state.network}
|
||||
nodeAlias={this.state.node_alias}
|
||||
nodeId={this.state.node_id}
|
||||
alternativeName={this.state.alternative_name}
|
||||
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}
|
||||
lifetimeVolume={this.state.lifetime_volume}
|
||||
/>
|
||||
|
@ -21,7 +21,7 @@ import FavoriteIcon from '@mui/icons-material/Favorite';
|
||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||
import EqualizerIcon from '@mui/icons-material/Equalizer';
|
||||
|
||||
import { AmbossIcon, BitcoinSignIcon } from '../Icons';
|
||||
import { AmbossIcon, BitcoinSignIcon, RoboSatsNoTextIcon } from '../Icons';
|
||||
|
||||
import { pn } from '../../utils/prettyNumbers';
|
||||
|
||||
@ -29,12 +29,14 @@ interface Props {
|
||||
isOpen: boolean;
|
||||
handleClickCloseStatsForNerds: () => void;
|
||||
lndVersion: string;
|
||||
coordinatorVersion: string;
|
||||
clientVersion: string;
|
||||
network: string;
|
||||
nodeAlias: string;
|
||||
nodeId: string;
|
||||
alternativeName: string;
|
||||
alternativeSite: string;
|
||||
robosatsRunningCommitHash: string;
|
||||
commitHash: string;
|
||||
lastDayVolume: number;
|
||||
lifetimeVolume: number;
|
||||
}
|
||||
@ -43,12 +45,14 @@ const StatsDialog = ({
|
||||
isOpen,
|
||||
handleClickCloseStatsForNerds,
|
||||
lndVersion,
|
||||
coordinatorVersion,
|
||||
clientVersion,
|
||||
network,
|
||||
nodeAlias,
|
||||
nodeId,
|
||||
alternativeName,
|
||||
alternativeSite,
|
||||
robosatsRunningCommitHash,
|
||||
commitHash,
|
||||
lastDayVolume,
|
||||
lifetimeVolume,
|
||||
}: Props): JSX.Element => {
|
||||
@ -69,6 +73,15 @@ const StatsDialog = ({
|
||||
<List dense>
|
||||
<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>
|
||||
<ListItemIcon>
|
||||
<BoltIcon />
|
||||
@ -83,7 +96,7 @@ const StatsDialog = ({
|
||||
<ListItemIcon>
|
||||
<DnsIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText secondary={nodeAlias}>
|
||||
<ListItemText secondary={`${t("LN Node")}: ${nodeAlias}`}>
|
||||
<Link
|
||||
target='_blank'
|
||||
href={`https://1ml.com/testnet/node/${nodeId}`}
|
||||
@ -125,13 +138,13 @@ const StatsDialog = ({
|
||||
<ListItemIcon>
|
||||
<GitHubIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText secondary={t('Currently running commit hash')}>
|
||||
<ListItemText secondary={t('Coordinator commit hash')}>
|
||||
<Link
|
||||
target='_blank'
|
||||
href={`https://github.com/Reckless-Satoshi/robosats/tree/${robosatsRunningCommitHash}`}
|
||||
href={`https://github.com/Reckless-Satoshi/robosats/tree/${commitHash}`}
|
||||
rel='noreferrer'
|
||||
>
|
||||
{`${robosatsRunningCommitHash.slice(0, 12)}...`}
|
||||
{`${commitHash.slice(0, 12)}...`}
|
||||
</Link>
|
||||
</ListItemText>
|
||||
</ListItem>
|
||||
|
@ -235,6 +235,10 @@
|
||||
"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)",
|
||||
"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 Box": "Order Box",
|
||||
|
Loading…
Reference in New Issue
Block a user