ssb: prettier.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 30m51s

This commit is contained in:
Cory McWilliams 2025-02-27 20:17:24 -05:00
parent f500e14aa3
commit bc70e41b7c

View File

@ -218,9 +218,7 @@ class TfTabConnectionsElement extends LitElement {
valid_broadcasts() { valid_broadcasts() {
return this.broadcasts return this.broadcasts
.filter((x) => x.address) .filter((x) => x.address)
.filter( .filter((x) => this.connections.map((c) => c.id).indexOf(x.pubkey) == -1);
(x) => this.connections.map((c) => c.id).indexOf(x.pubkey) == -1
);
} }
render() { render() {
@ -237,20 +235,32 @@ class TfTabConnectionsElement extends LitElement {
> >
Connect Connect
</button> </button>
<h2 class="w3-button w3-block w3-theme-d1" @click=${() => self.toggle_accordian('connections')}>Connections (${this.valid_connections().length})</h2> <h2
class="w3-button w3-block w3-theme-d1"
@click=${() => self.toggle_accordian('connections')}
>
Connections (${this.valid_connections().length})
</h2>
<ul class="w3-ul w3-border" id="connections"> <ul class="w3-ul w3-border" id="connections">
${this.valid_connections() ${this.valid_connections().map(
.map( (x) => html` <li class="w3-bar">${this.render_connection(x)}</li> `
(x) => html` )}
<li class="w3-bar">${this.render_connection(x)}</li>
`
)}
</ul> </ul>
<h2 class="w3-button w3-block w3-theme-d1" @click=${() => self.toggle_accordian('broadcasts')}>Broadcasts (${this.valid_broadcasts().length})</h2> <h2
class="w3-button w3-block w3-theme-d1"
@click=${() => self.toggle_accordian('broadcasts')}
>
Broadcasts (${this.valid_broadcasts().length})
</h2>
<ul class="w3-ul w3-border w3-hide" id="broadcasts"> <ul class="w3-ul w3-border w3-hide" id="broadcasts">
${this.valid_broadcasts().map((x) => self.render_broadcast(x))} ${this.valid_broadcasts().map((x) => self.render_broadcast(x))}
</ul> </ul>
<h2 class="w3-button w3-block w3-theme-d1" @click=${() => self.toggle_accordian('stored_connections')}>Stored Connections (${this.stored_connections.length})</h2> <h2
class="w3-button w3-block w3-theme-d1"
@click=${() => self.toggle_accordian('stored_connections')}
>
Stored Connections (${this.stored_connections.length})
</h2>
<ul class="w3-ul w3-border w3-hide" id="stored_connections"> <ul class="w3-ul w3-border w3-hide" id="stored_connections">
${this.stored_connections.map( ${this.stored_connections.map(
(x) => html` (x) => html`
@ -278,7 +288,12 @@ class TfTabConnectionsElement extends LitElement {
` `
)} )}
</ul> </ul>
<h2 class="w3-button w3-block w3-theme-d1" @click=${() => self.toggle_accordian('local_accounts')}>Local Accounts (${this.identities.length})</h2> <h2
class="w3-button w3-block w3-theme-d1"
@click=${() => self.toggle_accordian('local_accounts')}
>
Local Accounts (${this.identities.length})
</h2>
<div class="w3-container w3-hide" id="local_accounts"> <div class="w3-container w3-hide" id="local_accounts">
${this.identities.map( ${this.identities.map(
(x) => (x) =>