chore: formatting
This commit is contained in:
parent
f147edd03c
commit
0239db393f
@ -74,34 +74,43 @@ function RelayCacheStats() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{Object.entries(counts).sort(([, a], [, b]) => a > b ? -1 : 1).map(([k, v]) => {
|
||||
return (
|
||||
<tr key={k}>
|
||||
<td><FormattedNumber value={Number(k)} /></td>
|
||||
<td><FormattedNumber value={v} /></td>
|
||||
</tr>
|
||||
);
|
||||
})}
|
||||
{Object.entries(counts)
|
||||
.sort(([, a], [, b]) => (a > b ? -1 : 1))
|
||||
.map(([k, v]) => {
|
||||
return (
|
||||
<tr key={k}>
|
||||
<td>
|
||||
<FormattedNumber value={Number(k)} />
|
||||
</td>
|
||||
<td>
|
||||
<FormattedNumber value={v} />
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
})}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div className="flex flex-col gap-2">
|
||||
<AsyncButton onClick={() => { }}>
|
||||
<AsyncButton onClick={() => {}}>
|
||||
<FormattedMessage defaultMessage="Clear" id="/GCoTA" />
|
||||
</AsyncButton>
|
||||
<AsyncButton onClick={async () => {
|
||||
const data = await Relay.dump();
|
||||
const url = URL.createObjectURL(new File([data], "snort.db", {
|
||||
type: "application/octet-stream"
|
||||
}));
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
a.download = "snort.db";
|
||||
a.click();
|
||||
}}>
|
||||
<AsyncButton
|
||||
onClick={async () => {
|
||||
const data = await Relay.dump();
|
||||
const url = URL.createObjectURL(
|
||||
new File([data], "snort.db", {
|
||||
type: "application/octet-stream",
|
||||
}),
|
||||
);
|
||||
const a = document.createElement("a");
|
||||
a.href = url;
|
||||
a.download = "snort.db";
|
||||
a.click();
|
||||
}}>
|
||||
<FormattedMessage defaultMessage="Dump" id="f2CAxA" />
|
||||
</AsyncButton>
|
||||
</div>
|
||||
</div >
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -362,6 +362,9 @@
|
||||
"defaultMessage": "Non-Zap",
|
||||
"description": "Non-Zap, Regular LN payment"
|
||||
},
|
||||
"Aujn2T": {
|
||||
"defaultMessage": "Count"
|
||||
},
|
||||
"Awq32I": {
|
||||
"defaultMessage": "Push notifications"
|
||||
},
|
||||
@ -597,9 +600,6 @@
|
||||
"I1AoOu": {
|
||||
"defaultMessage": "Last post {time}"
|
||||
},
|
||||
"I97cCX": {
|
||||
"defaultMessage": "{n} kind {k} events"
|
||||
},
|
||||
"IEwZvs": {
|
||||
"defaultMessage": "Are you sure you want to unpin this note?"
|
||||
},
|
||||
@ -1187,6 +1187,9 @@
|
||||
"dmsiLv": {
|
||||
"defaultMessage": "A default Zap Pool split of {n} has been configured for {site} developers, you can disable it at any time in {link}"
|
||||
},
|
||||
"e5x8FT": {
|
||||
"defaultMessage": "Kind"
|
||||
},
|
||||
"e61Jf3": {
|
||||
"defaultMessage": "Coming soon"
|
||||
},
|
||||
@ -1217,6 +1220,9 @@
|
||||
"f1OxTe": {
|
||||
"defaultMessage": "Community leaders are individuals who grow the nostr ecosystem by being active in their local communities and helping onboard new users. Anyone can become a community leader, but few hold the current honorary title."
|
||||
},
|
||||
"f2CAxA": {
|
||||
"defaultMessage": "Dump"
|
||||
},
|
||||
"fBI91o": {
|
||||
"defaultMessage": "Zap"
|
||||
},
|
||||
@ -1334,9 +1340,6 @@
|
||||
"iXPL0Z": {
|
||||
"defaultMessage": "Can't login with private key on an insecure connection, please use a Nostr key manager extension instead"
|
||||
},
|
||||
"iYc3Ld": {
|
||||
"defaultMessage": "Payments"
|
||||
},
|
||||
"ieGrWo": {
|
||||
"defaultMessage": "Follow"
|
||||
},
|
||||
|
@ -119,6 +119,7 @@
|
||||
"AkCxS/": "Reason",
|
||||
"Am8glJ": "Game",
|
||||
"AnLrRC": "Non-Zap",
|
||||
"Aujn2T": "Count",
|
||||
"Awq32I": "Push notifications",
|
||||
"AxDOiG": "Months",
|
||||
"AyGauy": "Login",
|
||||
@ -197,7 +198,6 @@
|
||||
"HhcAVH": "You don't follow this person, click here to load media from <i>{link}</i>, or update <a><i>your preferences</i></a> to always load media from everybody.",
|
||||
"HqRNN8": "Support",
|
||||
"I1AoOu": "Last post {time}",
|
||||
"I97cCX": "{n} kind {k} events",
|
||||
"IEwZvs": "Are you sure you want to unpin this note?",
|
||||
"IKKHqV": "Follows",
|
||||
"IOu4Xh": "You must be a {tier} subscriber to access {app} deck",
|
||||
@ -391,6 +391,7 @@
|
||||
"djLctd": "Amount in sats",
|
||||
"djNL6D": "Read-only",
|
||||
"dmsiLv": "A default Zap Pool split of {n} has been configured for {site} developers, you can disable it at any time in {link}",
|
||||
"e5x8FT": "Kind",
|
||||
"e61Jf3": "Coming soon",
|
||||
"e7VmYP": "Enter pin to unlock your private key",
|
||||
"e7qqly": "Mark All Read",
|
||||
@ -401,6 +402,7 @@
|
||||
"eXT2QQ": "Group Chat",
|
||||
"egib+2": "{n,plural,=1{& {n} other} other{& {n} others}}",
|
||||
"f1OxTe": "Community leaders are individuals who grow the nostr ecosystem by being active in their local communities and helping onboard new users. Anyone can become a community leader, but few hold the current honorary title.",
|
||||
"f2CAxA": "Dump",
|
||||
"fBI91o": "Zap",
|
||||
"fBlba3": "Thanks for using {site}, please consider donating if you can.",
|
||||
"fOksnD": "Can't vote because LNURL service does not support zaps",
|
||||
@ -440,7 +442,6 @@
|
||||
"iICVoL": "{x} follows ({y} duplicates)",
|
||||
"iNWbVV": "Handle",
|
||||
"iXPL0Z": "Can't login with private key on an insecure connection, please use a Nostr key manager extension instead",
|
||||
"iYc3Ld": "Payments",
|
||||
"ieGrWo": "Follow",
|
||||
"ipHVx5": "Generate Invoice",
|
||||
"itPgxd": "Profile",
|
||||
|
Loading…
x
Reference in New Issue
Block a user