forked from cory/tildefriends
ssb: prettier.
This commit is contained in:
parent
04878fcc30
commit
18bab849f7
@ -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(
|
||||
|
@ -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`<tf-profile
|
||||
class="tf-profile"
|
||||
id=${this.hash.substring(1)}
|
||||
whoami=${this.whoami}
|
||||
.users=${this.users}
|
||||
></tf-profile>`)
|
||||
? keyed(
|
||||
this.hash.substring(1),
|
||||
html`<tf-profile
|
||||
class="tf-profile"
|
||||
id=${this.hash.substring(1)}
|
||||
whoami=${this.whoami}
|
||||
.users=${this.users}
|
||||
></tf-profile>`
|
||||
)
|
||||
: undefined;
|
||||
let edit_profile;
|
||||
if (
|
||||
|
@ -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`<span
|
||||
class=${'w3-theme-l4 ' + shape}
|
||||
style="display: inline-block; width: 2em; height: 2em; text-align: center; line-height: 2em"
|
||||
|
Loading…
x
Reference in New Issue
Block a user