added telemetry

This commit is contained in:
2024-03-29 12:42:22 +01:00
parent b4843108fc
commit 5a18e5728e
24 changed files with 192 additions and 187 deletions
+4 -3
View File
@@ -67,9 +67,10 @@ const fetchData = async () => {
'user-token': localStorage.getItem("user-token")
}
});
response.data.feeds.forEach(feed => {
feeds.value.push(...feed.items);
});
const sortedItems = response.data.feeds.flatMap(feed => feed.items)
.sort((a, b) => new Date(b.timestamp) - new Date(a.timestamp));
feeds.value.push(...sortedItems);
await nextTick();
setupIntersectionObserver();
} catch (error) {