+ - + @@ -190,7 +190,7 @@ withSidebar: true {# Card View #} - + - + - + - + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });
- + @@ -190,7 +190,7 @@ withSidebar: true {# Card View #} - + - + - + - + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });
+ - + - + - + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });
- + - + - + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });
+ - + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });
- + @@ -329,17 +329,17 @@ withSidebar: true Previous - Page of + Page of Next @@ -406,7 +406,9 @@ function newsApp() { this.loading = true; try { - const res = await fetch(`/rssapi/api/items?limit=50&page=${page}`).then(r => r.json()); + let url = `/rssapi/api/items?limit=50&page=${page}`; + if (this.filterFeed !== 'all') url += `&feedId=${this.filterFeed}`; + const res = await fetch(url).then(r => r.json()); this.items = res.items || []; this.pagination = res.pagination || null; window.scrollTo({ top: 0, behavior: 'smooth' });