From 18bab849f770cf254b2f284922c9c2eb8eb5fbe3 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 27 Jan 2025 21:02:15 -0500 Subject: [PATCH] ssb: prettier. --- apps/ssb/tf-tab-news-feed.js | 5 +---- apps/ssb/tf-tab-news.js | 24 +++++++++++++++++------- apps/ssb/tf-user.js | 3 ++- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index a6b6f949..495bc5f7 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -260,10 +260,7 @@ class TfTabNewsFeedElement extends LitElement { let end_time = now + 24 * 60 * 60 * 1000; let messages = []; try { - messages = await this.fetch_messages( - this.time_range[0], - end_time - ); + messages = await this.fetch_messages(this.time_range[0], end_time); messages = await this.decrypt(messages); this.update_time_range_from_messages( messages.filter( diff --git a/apps/ssb/tf-tab-news.js b/apps/ssb/tf-tab-news.js index 5607e69b..5c24931c 100644 --- a/apps/ssb/tf-tab-news.js +++ b/apps/ssb/tf-tab-news.js @@ -1,4 +1,11 @@ -import {LitElement, cache, keyed, html, unsafeHTML, until} from './lit-all.min.js'; +import { + LitElement, + cache, + keyed, + html, + unsafeHTML, + until, +} from './lit-all.min.js'; import * as tfrpc from '/static/tfrpc.js'; import {styles} from './tf-styles.js'; @@ -251,12 +258,15 @@ class TfTabNewsElement extends LitElement { render() { let profile = this.hash.startsWith('#@') && this.hash != '#@' - ? keyed(this.hash.substring(1), html``) + ? keyed( + this.hash.substring(1), + html`` + ) : undefined; let edit_profile; if ( diff --git a/apps/ssb/tf-user.js b/apps/ssb/tf-user.js index 9f4893d3..ffd22fec 100644 --- a/apps/ssb/tf-user.js +++ b/apps/ssb/tf-user.js @@ -20,7 +20,8 @@ class TfUserElement extends LitElement { render() { let user = this.users[this.id]; - let shape = !user?.follow_depth || user.follow_depth >= 2 ? 'w3-circle' : 'w3-round'; + let shape = + !user?.follow_depth || user.follow_depth >= 2 ? 'w3-circle' : 'w3-round'; let image = html`