SELECTED
SYMBOL
|
Select a ticker
|
|
||||||||
| NO HOLDINGS ADDED YET | ||||||||
x.link === rawNewsId);
if (n) {
fetchArticleStats(n.link);
const encodedId = encodeURIComponent(window.b64EncodeUnicode(n.link));
fetch('/api/news/' + encodedId + '/comments/count').then(r => r.json()).then(d => {
articleStats = { ...articleStats, [n.link]: { ...(articleStats[n.link] || {}), comments: d.count || 0 } };
});
if (activeArticle && activeArticle.link === n.link) {
fetchComments(n.link);
}
}
if (activeNewsArticle && activeNewsArticle.link === rawNewsId) {
const encodedId = encodeURIComponent(window.b64EncodeUnicode(activeNewsArticle.link));
fetch(`/api/news/${encodedId}/comments`).then(r=>r.json()).then(d => { if(!d.error) newsComments = d; });
}
} else if (event.detail.comment_id) {
if (activeArticle) fetchComments(activeArticle.link);
if (activeNewsArticle) {
const encodedId = encodeURIComponent(window.b64EncodeUnicode(activeNewsArticle.link));
fetch(`/api/news/${encodedId}/comments`).then(r=>r.json()).then(d => { if(!d.error) newsComments = d; });
}
}
"
class="flex flex-col h-full overflow-y-auto p-4 md:p-8 max-w-6xl mx-auto w-full relative">
|
|
|
★
|
★
|
★
|
★
|
★
|
★
|
|
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
>> >> >> |
|||||||||||||