cleanup: prettier + format.
This commit is contained in:
parent
ef5ce1d6e1
commit
8836c7f0ca
@ -17,8 +17,8 @@ import * as tf_tab_query from './tf-tab-query.js';
|
|||||||
import * as tf_tag from './tf-tag.js';
|
import * as tf_tag from './tf-tag.js';
|
||||||
import * as tf_styles from './tf-styles.js';
|
import * as tf_styles from './tf-styles.js';
|
||||||
|
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function () {
|
||||||
let style = document.createElement('style');
|
let style = document.createElement('style');
|
||||||
style.innerText = tf_styles.styles;
|
style.innerText = tf_styles.styles;
|
||||||
document.body.appendChild(style);
|
document.body.appendChild(style);
|
||||||
});
|
});
|
||||||
|
@ -227,7 +227,9 @@ class TfTabConnectionsElement extends LitElement {
|
|||||||
<ul class="w3-ul w3-border">
|
<ul class="w3-ul w3-border">
|
||||||
${this.broadcasts
|
${this.broadcasts
|
||||||
.filter((x) => x.address)
|
.filter((x) => x.address)
|
||||||
.filter((x) => self.connections.map(c => c.id).indexOf(x.pubkey) == -1)
|
.filter(
|
||||||
|
(x) => self.connections.map((c) => c.id).indexOf(x.pubkey) == -1
|
||||||
|
)
|
||||||
.map((x) => self.render_broadcast(x))}
|
.map((x) => self.render_broadcast(x))}
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Connections</h2>
|
<h2>Connections</h2>
|
||||||
|
@ -6,12 +6,24 @@
|
|||||||
<link type="text/css" rel="stylesheet" href="/static/w3.css" />
|
<link type="text/css" rel="stylesheet" href="/static/w3.css" />
|
||||||
<link type="image/svg+xml" rel="icon" href="/static/tildefriends.svg" />
|
<link type="image/svg+xml" rel="icon" href="/static/tildefriends.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="title" content="Tilde Friends - Make friends and apps from your web browser." />
|
<meta
|
||||||
<meta name="description" content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. " />
|
name="title"
|
||||||
|
content="Tilde Friends - Make friends and apps from your web browser."
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. "
|
||||||
|
/>
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://metatags.io/" />
|
<meta property="og:url" content="https://metatags.io/" />
|
||||||
<meta property="og:title" content="Tilde Friends - Make friends and apps from your web browser." />
|
<meta
|
||||||
<meta property="og:description" content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. " />
|
property="og:title"
|
||||||
|
content="Tilde Friends - Make friends and apps from your web browser."
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. "
|
||||||
|
/>
|
||||||
<meta property="og:image" content="/static/tildefriends.svg" />
|
<meta property="og:image" content="/static/tildefriends.svg" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
30
src/ssb.c
30
src/ssb.c
@ -389,16 +389,26 @@ static const char* _tf_ssb_connection_state_to_string(tf_ssb_state_t state)
|
|||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case k_tf_ssb_state_invalid: return "invalid";
|
case k_tf_ssb_state_invalid:
|
||||||
case k_tf_ssb_state_connected: return "connected";
|
return "invalid";
|
||||||
case k_tf_ssb_state_sent_hello: return "sent hello";
|
case k_tf_ssb_state_connected:
|
||||||
case k_tf_ssb_state_sent_identity: return "sent identity";
|
return "connected";
|
||||||
case k_tf_ssb_state_verified: return "verified";
|
case k_tf_ssb_state_sent_hello:
|
||||||
case k_tf_ssb_state_server_wait_hello: return "server wait hello";
|
return "sent hello";
|
||||||
case k_tf_ssb_state_server_wait_client_identity: return "server wait client identity";
|
case k_tf_ssb_state_sent_identity:
|
||||||
case k_tf_ssb_state_server_verified: return "server verified";
|
return "sent identity";
|
||||||
case k_tf_ssb_state_closing: return "closing";
|
case k_tf_ssb_state_verified:
|
||||||
default: return "unknown";
|
return "verified";
|
||||||
|
case k_tf_ssb_state_server_wait_hello:
|
||||||
|
return "server wait hello";
|
||||||
|
case k_tf_ssb_state_server_wait_client_identity:
|
||||||
|
return "server wait client identity";
|
||||||
|
case k_tf_ssb_state_server_verified:
|
||||||
|
return "server verified";
|
||||||
|
case k_tf_ssb_state_closing:
|
||||||
|
return "closing";
|
||||||
|
default:
|
||||||
|
return "unknown";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user