Compare commits
3 Commits
a25d08fd76
...
996f9abaa2
Author | SHA1 | Date | |
---|---|---|---|
996f9abaa2 | |||
08c097e176 | |||
daa861a98b |
@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "tildefriends-app",
|
||||
"emoji": "🦀",
|
||||
"previous": "&nd1gmPKrvLdkxW9D4Zct/0hD+iwLWjkF1gxaebFQ5I8=.sha256"
|
||||
"previous": "&H3efrtk70fdGNCeZBNSgHppnec2D5iqTyqFH4lUK3XI=.sha256"
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ class TfElement extends LitElement {
|
||||
broadcasts: {type: Array},
|
||||
connections: {type: Array},
|
||||
loading: {type: Boolean},
|
||||
loading_about: {type: Number},
|
||||
loaded: {type: Boolean},
|
||||
following: {type: Array},
|
||||
users: {type: Object},
|
||||
@ -37,6 +38,7 @@ class TfElement extends LitElement {
|
||||
this.following = [];
|
||||
this.users = {};
|
||||
this.loaded = false;
|
||||
this.loading_about = 0;
|
||||
this.channels = [];
|
||||
this.channels_unread = {};
|
||||
this.channels_latest = {};
|
||||
@ -151,6 +153,7 @@ class TfElement extends LitElement {
|
||||
}
|
||||
|
||||
async fetch_about(following, users) {
|
||||
this.loading_about++;
|
||||
let ids = Object.keys(following).sort();
|
||||
const k_cache_version = 3;
|
||||
let cache = await tfrpc.rpc.databaseGet('about');
|
||||
@ -230,6 +233,8 @@ class TfElement extends LitElement {
|
||||
}
|
||||
}
|
||||
|
||||
this.loading_about--;
|
||||
|
||||
let new_cache = JSON.stringify(cache);
|
||||
if (new_cache != original_cache) {
|
||||
let start_time = new Date();
|
||||
@ -417,11 +422,11 @@ class TfElement extends LitElement {
|
||||
);
|
||||
for (let row of info) {
|
||||
users[row.author] = Object.assign(
|
||||
users[row.author],
|
||||
{
|
||||
seq: row.max_sequence,
|
||||
ts: row.max_ts,
|
||||
},
|
||||
users[row.author]
|
||||
}
|
||||
);
|
||||
}
|
||||
return users;
|
||||
@ -545,7 +550,7 @@ class TfElement extends LitElement {
|
||||
whoami=${this.whoami}
|
||||
.users=${this.users}
|
||||
hash=${this.hash}
|
||||
?loading=${this.loading}
|
||||
?loading=${this.loading || this.loading_about != 0}
|
||||
.channels=${this.channels}
|
||||
.channels_latest=${this.channels_latest}
|
||||
.channels_unread=${this.channels_unread}
|
||||
|
10
metadata/en-US/changelogs/36.txt
Normal file
10
metadata/en-US/changelogs/36.txt
Normal file
@ -0,0 +1,10 @@
|
||||
* Faster loads.
|
||||
* Minor UI tweaks.
|
||||
* Fixed more shutdown issues.
|
||||
* Fixed a longstanding potential database issue.
|
||||
* Updates:
|
||||
* CodeMirror
|
||||
* QuickJS 2025-04-26
|
||||
* libuv 1.51.0
|
||||
* sqlite 3.49.2
|
||||
* w3.css 5.02
|
@ -80,6 +80,15 @@ try:
|
||||
select(driver, ['tf-auth', 'shadow_root', '#loginButton'], ('click',))
|
||||
select(driver, ['#document', 'frame', '=identity'])
|
||||
|
||||
driver.get('http://localhost:8888/')
|
||||
select(driver, ['#document', 'frame', '//button[text()="Next"]'], ('click',))
|
||||
select(driver, ['#document', 'frame', '//button[text()="Onward"]'], ('click',))
|
||||
select(driver, ['#document', 'frame', '//button[text()="Got It"]'], ('click',))
|
||||
select(driver, ['#document', 'frame', '//button[text()="Okay"]'], ('click',))
|
||||
select(driver, ['#document', 'frame', '//button[text()="Let\'s Go!"]'], ('click',))
|
||||
select(driver, ['//button[text()="✅ Allow"]'], ('click',))
|
||||
select(driver, ['#document', 'frame', 'tf-app', 'shadow_root', '#tf-tab-news', 'shadow_root', '#tf-compose', 'shadow_root', '#edit'], ('send_keys', 'We made it to the ssb app.'))
|
||||
|
||||
driver.get('http://localhost:8888/~core/admin/')
|
||||
select(driver, ['#document', 'frame', '#gs_room_name'], ('send_keys', 'test room'))
|
||||
select(driver, ['#document', 'frame', '//*[@id="gs_room_name"]/following-sibling::button'], ('click',))
|
||||
|
Loading…
x
Reference in New Issue
Block a user