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 end_time = now + 24 * 60 * 60 * 1000;
|
||||||
let messages = [];
|
let messages = [];
|
||||||
try {
|
try {
|
||||||
messages = await this.fetch_messages(
|
messages = await this.fetch_messages(this.time_range[0], end_time);
|
||||||
this.time_range[0],
|
|
||||||
end_time
|
|
||||||
);
|
|
||||||
messages = await this.decrypt(messages);
|
messages = await this.decrypt(messages);
|
||||||
this.update_time_range_from_messages(
|
this.update_time_range_from_messages(
|
||||||
messages.filter(
|
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 * as tfrpc from '/static/tfrpc.js';
|
||||||
import {styles} from './tf-styles.js';
|
import {styles} from './tf-styles.js';
|
||||||
|
|
||||||
@ -251,12 +258,15 @@ class TfTabNewsElement extends LitElement {
|
|||||||
render() {
|
render() {
|
||||||
let profile =
|
let profile =
|
||||||
this.hash.startsWith('#@') && this.hash != '#@'
|
this.hash.startsWith('#@') && this.hash != '#@'
|
||||||
? keyed(this.hash.substring(1), html`<tf-profile
|
? keyed(
|
||||||
class="tf-profile"
|
this.hash.substring(1),
|
||||||
id=${this.hash.substring(1)}
|
html`<tf-profile
|
||||||
whoami=${this.whoami}
|
class="tf-profile"
|
||||||
.users=${this.users}
|
id=${this.hash.substring(1)}
|
||||||
></tf-profile>`)
|
whoami=${this.whoami}
|
||||||
|
.users=${this.users}
|
||||||
|
></tf-profile>`
|
||||||
|
)
|
||||||
: undefined;
|
: undefined;
|
||||||
let edit_profile;
|
let edit_profile;
|
||||||
if (
|
if (
|
||||||
|
@ -20,7 +20,8 @@ class TfUserElement extends LitElement {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let user = this.users[this.id];
|
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
|
let image = html`<span
|
||||||
class=${'w3-theme-l4 ' + shape}
|
class=${'w3-theme-l4 ' + shape}
|
||||||
style="display: inline-block; width: 2em; height: 2em; text-align: center; line-height: 2em"
|
style="display: inline-block; width: 2em; height: 2em; text-align: center; line-height: 2em"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user