RSSHub/lib/routes/huxiu
TimoYoung 1851236be6
fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843)
* fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints

- fix article parsing by adding suppmort for Nuxt 3 __NUXT_DATA__ format
- Update channel, club and tag's API endpoints and channel route
- Remove deprecated brief-column route

* set antiCrawler tag, disable bt support tag

* fix(route/huxiu): handle request failures gracefully in fetchItem; add maintainer info

* refactor(route/huxiu): remove unused fetchBriefColumnData and update club example

* refactor(route/huxiu): reduce function complexity in util.ts

- Extract buildCategories() for category array construction
- Extract resolveItemIdentifiers() for guid/link resolution
- Extract extractCounts() for upvotes/downvotes/comments extraction
- Extract extractAuthor() for author field extraction
- Extract extractImageSrc() for image URL extraction
- Extract mapItem() to simplify processItems() map callback
- Simplify fetchItem() by using direct object return
- Simplify processItems() control flow with boolean variables

These changes reduce cyclomatic complexity reported by CodeFactor
for functions at lines 164-218 and 440-490.
2026-01-11 00:39:52 +08:00
..
templates refactor: replace art template with jsx (#20777) 2025-12-29 12:27:32 +08:00
channel.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
club.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
collection.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
member.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
moment.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
namespace.ts
search.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
tag.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00
util.ts fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843) 2026-01-11 00:39:52 +08:00