v45: Auto-expand feed details in d:feeds mode
This commit is contained in:
@@ -502,6 +502,21 @@ function initDashboard() {
|
||||
attachDomainHandlers(container);
|
||||
applyTLDFilter();
|
||||
|
||||
// Auto-expand feed details in d:feeds mode
|
||||
if (statusFilter === 'feeds') {
|
||||
container.querySelectorAll('.inline-feed-block').forEach(feedBlock => {
|
||||
const detailDiv = feedBlock.querySelector('.feed-detail');
|
||||
const feedUrl = feedBlock.dataset.url;
|
||||
if (detailDiv && detailDiv.style.display === 'none') {
|
||||
detailDiv.style.display = 'block';
|
||||
if (!detailDiv.dataset.loaded) {
|
||||
detailDiv.dataset.loaded = 'true';
|
||||
loadFeedDetail(feedUrl, detailDiv);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
offset += domains.length;
|
||||
|
||||
if (domains.length < limit) {
|
||||
|
||||
+1
-1
@@ -534,7 +534,7 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
<div id="output"></div>
|
||||
</div>
|
||||
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v44</div>
|
||||
<div style="color: #333; font-size: 11px; margin-top: 10px;">v45</div>
|
||||
|
||||
<div class="updated" id="updatedAt">Last updated: {{.UpdatedAt.Format "2006-01-02 15:04:05"}}</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user