From bc70e41b7c3b8f92322200fa86fb12ffc37b57e5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 27 Feb 2025 20:17:24 -0500 Subject: [PATCH] ssb: prettier. --- apps/ssb/tf-tab-connections.js | 41 +++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 43f257dc..ee9f6982 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -218,9 +218,7 @@ class TfTabConnectionsElement extends LitElement { valid_broadcasts() { return this.broadcasts .filter((x) => x.address) - .filter( - (x) => this.connections.map((c) => c.id).indexOf(x.pubkey) == -1 - ); + .filter((x) => this.connections.map((c) => c.id).indexOf(x.pubkey) == -1); } render() { @@ -237,20 +235,32 @@ class TfTabConnectionsElement extends LitElement { > Connect -

self.toggle_accordian('connections')}>Connections (${this.valid_connections().length})

+

self.toggle_accordian('connections')} + > + Connections (${this.valid_connections().length}) +

-

self.toggle_accordian('broadcasts')}>Broadcasts (${this.valid_broadcasts().length})

+

self.toggle_accordian('broadcasts')} + > + Broadcasts (${this.valid_broadcasts().length}) +

-

self.toggle_accordian('stored_connections')}>Stored Connections (${this.stored_connections.length})

+

self.toggle_accordian('stored_connections')} + > + Stored Connections (${this.stored_connections.length}) +

-

self.toggle_accordian('local_accounts')}>Local Accounts (${this.identities.length})

+

self.toggle_accordian('local_accounts')} + > + Local Accounts (${this.identities.length}) +

${this.identities.map( (x) =>