Merge branch 'ping-pub:master' into master

This commit is contained in:
Pham Thanh Tu 2024-01-22 09:43:49 +07:00 committed by GitHub
commit ab8c781ff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,7 @@ async function fetchChange() {
}
}
const changes = computed(() => {
const changes = {} as Record<string, number>;
Object.keys(latest.value).forEach((k) => {
@ -247,7 +248,14 @@ const logo = (identity?: string) => {
: `https://s3.amazonaws.com/keybase_processed_uploads/${url}`;
};
fetchChange();
let height_in_24h = ref(0)
base.$subscribe((_, s) => {
if (Number(s.earlest.block.header.height) !== height_in_24h.value) {
height_in_24h.value = Number(s.earlest.block.header.height);
fetchChange();
}
});
loadAvatars();
</script>
<template>