2 Commits

Author SHA1 Message Date
b3bac2927d ssb: Shorten the timed query output.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled
2025-07-02 18:21:40 -04:00
ef389f2ba2 ssb: The unread line can be used to make everything above read. 2025-07-02 18:19:34 -04:00
4 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&fAgPjWyRwHxcKiSV3T8OE7UyAUUgHE02YnA7e+sm3lo=.sha256" "previous": "&V6GCGrODPSihChLo5Nb8Lw6X33BLSsEVGGfiliOdWrE=.sha256"
} }

View File

@ -360,7 +360,7 @@ class TfElement extends LitElement {
let start = new Date(); let start = new Date();
let result = await tfrpc.rpc.query(sql, args); let result = await tfrpc.rpc.query(sql, args);
let end = new Date(); let end = new Date();
console.log((end - start) / 1000, sql); console.log((end - start) / 1000, sql.replaceAll(/\s+/g, ' ').trim());
return result; return result;
} }

View File

@ -233,7 +233,19 @@ class TfNewsElement extends LitElement {
<div <div
style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px" style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px"
></div> ></div>
<div style="color: #f00; padding: 8px">unread</div> <button
style="color: #f00; padding: 8px"
class="w3-button"
@click=${() =>
this.dispatchEvent(
new Event('mark_all_read', {
bubbles: true,
composed: true,
})
)}
>
unread
</button>
<div <div
style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px" style="border-bottom: 1px solid #f00; flex: 1; align-self: center; height: 1px"
></div> ></div>

View File

@ -486,6 +486,7 @@ class TfTabNewsFeedElement extends LitElement {
channel=${this.channel()} channel=${this.channel()}
channel_unread=${this.channels_unread?.[this.channel()]} channel_unread=${this.channels_unread?.[this.channel()]}
.recent_reactions=${this.recent_reactions} .recent_reactions=${this.recent_reactions}
@mark_all_read=${this.mark_all_read}
></tf-news> ></tf-news>
${more} ${more}
`); `);