* fix(route/huxiu): fix article detail fetching - Introduced `extractArticleId` function to extract article IDs from links. - Added `fetchArticleDetail` function to retrieve article details using the extracted ID. - Updated `fetchItem` to first attempt fetching article details before falling back to the original link. - Enhanced error handling for API requests and parsing failures. * refactor(route/huxiu): enhance data fetching and processing - Introduced `prefixHuxiu` function to standardize titles and descriptions. - Updated `fetchData` to handle icon URLs more robustly. - Simplified `fetchItem` logic for better error handling and data retrieval. - Removed unused `parseInitialState` function to clean up the codebase. * refactor(route/huxiu): enhance data fetching and metadata building - Replaced `fetchData` with `fetchApiRouteData` for improved data retrieval across multiple routes. - Introduced `buildFeedMetadata` and `buildHuxiuRouteTitlePrefix` functions to standardize metadata construction. - Updated various route handlers to utilize the new data fetching and metadata building methods, improving consistency and maintainability. - Removed the `prefixHuxiu` function as its functionality is now integrated into the new metadata building process. |
||
|---|---|---|
| .. | ||
| api | ||
| assets | ||
| errors | ||
| middleware | ||
| routes | ||
| routes-deprecated | ||
| shims | ||
| utils | ||
| views | ||
| app-bootstrap.test.tsx | ||
| app-bootstrap.tsx | ||
| app.test.ts | ||
| app.ts | ||
| app.worker.tsx | ||
| config.remote-error.test.ts | ||
| config.test.ts | ||
| config.ts | ||
| container.ts | ||
| entrypoints.test.ts | ||
| index.test.ts | ||
| index.ts | ||
| pkg.test.ts | ||
| pkg.ts | ||
| registry.dynamic.test.ts | ||
| registry.test.ts | ||
| registry.ts | ||
| route-paths.d.ts | ||
| router.js | ||
| routes.test.ts | ||
| server.ts | ||
| setup.test.ts | ||
| types.ts | ||
| worker.ts | ||
| worker.worker.test.ts | ||