Skip to content

Commit

Permalink
Showing 19 changed files with 46 additions and 126 deletions.
100 changes: 27 additions & 73 deletions frontend/src/components/Dialogs/Coordinator.tsx
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ import {
AccordionDetails,
AccordionSummary,
AlertTitle,
ListItemButton,
} from '@mui/material';

import {
@@ -42,6 +43,7 @@ import {
Language,
Send,
Tag,
Web,
} from '@mui/icons-material';
import LinkIcon from '@mui/icons-material/Link';

@@ -440,43 +442,29 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
/>
</ListItem>

{coordinator?.mainnetNodesPubkeys?.[0] !== undefined && network === 'mainnet' ? (
<ListItem>
<ListItemIcon>
<AmbossIcon />
</ListItemIcon>
<ListItemText secondary={t('Mainnet LN Node')}>
<Link
target='_blank'
href={`https://amboss.space/node/${coordinator?.mainnetNodesPubkeys[0]}`}
rel='noreferrer'
>
{`${coordinator?.mainnetNodesPubkeys?.[0].slice(0, 12)}... (AMBOSS)`}
</Link>
</ListItemText>
</ListItem>
) : (
<></>
)}

{coordinator?.testnetNodesPubkeys?.[0] !== undefined && network === 'testnet' ? (
<ListItem>
<ListItemIcon>
<Dns />
</ListItemIcon>
<ListItemText secondary={t('Testnet LN Node')}>
<Link
target='_blank'
href={`https://1ml.com/testnet/node/${coordinator?.testnetNodesPubkeys[0]}`}
rel='noreferrer'
>
{`${coordinator?.testnetNodesPubkeys[0].slice(0, 12)}... (1ML)`}
</Link>
</ListItemText>
</ListItem>
) : (
<></>
)}
<ListItemButton
target='_blank'
href={coordinator?.[settings.network][settings.selfhostedClient ? 'onion' : origin]}
rel='noreferrer'
>
<ListItemIcon>
<Web />
</ListItemIcon>
<ListItemText
secondary={t('Coordinator hosted web app')}
primaryTypographyProps={{
style: {
maxWidth: '20em',
wordWrap: 'break-word',
overflowWrap: 'break-word',
},
}}
>
{`${String(
coordinator?.[settings.network][settings.selfhostedClient ? 'onion' : origin],
)}`}
</ListItemText>
</ListItemButton>
</List>

{coordinator?.loadingInfo ? (
@@ -631,40 +619,6 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
</AccordionSummary>
<AccordionDetails>
<List dense>
<ListItem {...listItemProps}>
<ListItemIcon>
<Dns />
</ListItemIcon>
<ListItemText
secondary={t('Coordinator domain')}
primaryTypographyProps={{
style: {
maxWidth: '20em',
wordWrap: 'break-word',
overflowWrap: 'break-word',
},
}}
>
<Link
target='_blank'
href={
coordinator?.[settings.network][
settings.selfhostedClient ? 'onion' : origin
]
}
rel='noreferrer'
>
{`${String(
coordinator?.[settings.network][
settings.selfhostedClient ? 'onion' : origin
],
)}`}
</Link>
</ListItemText>
</ListItem>

<Divider />

<ListItem {...listItemProps}>
<ListItemIcon>
<RoboSatsNoTextIcon
@@ -778,7 +732,7 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
>
{pn(parseFloat(coordinator?.info?.last_day_volume).toFixed(8))}
<BitcoinSignIcon
sx={{ width: '1em', height: '1em' }}
sx={{ width: '0.6em', height: '0.6em' }}
color={'text.secondary'}
/>
</div>
@@ -802,7 +756,7 @@ const CoordinatorDialog = ({ open = false, onClose, network, shortAlias }: Props
>
{pn(parseFloat(coordinator?.info?.lifetime_volume).toFixed(8))}
<BitcoinSignIcon
sx={{ width: '1em', height: '1em' }}
sx={{ width: '0.6em', height: '0.6em' }}
color={'text.secondary'}
/>
</div>
4 changes: 2 additions & 2 deletions frontend/src/components/Dialogs/Exchange.tsx
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ const ExchangeDialog = ({ open = false, onClose }: Props): JSX.Element => {
}}
>
{pn(federation.exchange.info.last_day_volume)}
<BitcoinSignIcon sx={{ width: 14, height: 14 }} color='text.secondary' />
<BitcoinSignIcon sx={{ width: '0.6em', height: '0.6em' }} color='text.secondary' />
</div>
</ListItemText>
</ListItem>
@@ -177,7 +177,7 @@ const ExchangeDialog = ({ open = false, onClose }: Props): JSX.Element => {
}}
>
{pn(federation.exchange.info.lifetime_volume)}
<BitcoinSignIcon sx={{ width: 14, height: 14 }} color='text.secondary' />
<BitcoinSignIcon sx={{ width: '0.6em', height: '0.6em' }} color='text.secondary' />
</div>
</ListItemText>
</ListItem>
4 changes: 1 addition & 3 deletions frontend/static/locales/ca.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Cost actual de rebre onchain",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Volum contractat total",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Comissió del creador",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Comissió del prenedor",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Robots actius avui",
4 changes: 1 addition & 3 deletions frontend/static/locales/cs.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Současný poplatek za vyplacení na onchain ",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Zobchodované množství od spuštění",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Poplatek tvůrce",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Poplatek příjemce",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Dnešní aktivní roboti",
4 changes: 1 addition & 3 deletions frontend/static/locales/de.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Current onchain payout fee",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Handelsvolumen insgesamt",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Makergebühr",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Takergebühr",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Heute aktive Roboter",
4 changes: 1 addition & 3 deletions frontend/static/locales/en.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Current onchain payout fee",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Lifetime contracted volume",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Maker fee",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Taker fee",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Today active robots",
4 changes: 1 addition & 3 deletions frontend/static/locales/es.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Hash de confirmación del coordinador",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Coste actual de recibir onchain",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Volumen de los contratos total",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Comisión del creador",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Comisión del tomador",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Robots activos hoy",
4 changes: 1 addition & 3 deletions frontend/static/locales/eu.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinator commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Oraingo onchain jasotze-kuota",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Guztira kontratatutako bolumena",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Egile kuota",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Hartzaile kuota",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Robot aktiboak gaur",
4 changes: 1 addition & 3 deletions frontend/static/locales/fr.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Coordinateur commit hash",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Frais de paiement actuels de la chaîne",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Volume contracté total",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Frais du createur",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Frais du preneur",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "Robots actifs aujourd'hui",
4 changes: 1 addition & 3 deletions frontend/static/locales/it.json
Original file line number Diff line number Diff line change
@@ -251,7 +251,7 @@
"Coordinator Notice": "Coordinator Notice",
"Coordinator commit hash": "Commit hash del coordinatore",
"Coordinator description": "Coordinator description",
"Coordinator domain": "Coordinator domain",
"Coordinator hosted web app": "Coordinator hosted web app",
"Coordinator offline": "Coordinator offline",
"Current onchain payout fee": "Attuale tariffa di pagamento onchain",
"Development fund supporter: donates {{percent}}% to make RoboSats better.": "Development fund supporter: donates {{percent}}% to make RoboSats better.",
@@ -264,7 +264,6 @@
"Large limits: the coordinator has large trade limits.": "Large limits: the coordinator has large trade limits.",
"Lifetime contracted volume": "Volume scambiato in totale",
"Loved by robots: receives positive comments by robots over the internet.": "Loved by robots: receives positive comments by robots over the internet.",
"Mainnet LN Node": "Mainnet LN Node",
"Maker fee": "Commissione dell'offerente",
"Matrix channel copied! {{matrix}}": "Matrix channel copied! {{matrix}}",
"Not a federation founder": "Not a federation founder",
@@ -279,7 +278,6 @@
"Summary": "Summary",
"Taker fee": "Commissione dell'acquirente",
"Telegram": "Telegram",
"Testnet LN Node": "Testnet LN Node",
"The coordinator does not seem to receive exceptional love from robots over the internet": "The coordinator does not seem to receive exceptional love from robots over the internet",
"The privacy practices of this coordinator could improve": "The privacy practices of this coordinator could improve",
"Today active robots": "I robots attivi oggi",
Loading

0 comments on commit 5dcb6f0

Please sign in to comment.