* 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. |
||
|---|---|---|
| .. | ||
| templates | ||
| channel.ts | ||
| club.ts | ||
| collection.ts | ||
| member.ts | ||
| moment.ts | ||
| namespace.ts | ||
| search.ts | ||
| tag.ts | ||
| util.ts | ||