Commit Graph
5 Commits
Author SHA1 Message Date
Goestav c276eb9661 fix(route/kurogames): handle unavailable article content property (#19131)
The article https://wutheringwaves.kurogames.com/zh-tw/main/news/detail/2596 has no article content
property in the API and causes a cheerio load error during runtime, this commit fixes that issue and
falls back to an empty RSS item description for these kind of articles.

Closes #19124
2025-05-19 22:14:41 +08:00
Tony 03969f3867 refactor: fix lint issue (#18963)
* fix: unicorn/no-empty-file

* fix: unicorn/prefer-node-protocol

* fix: unicorn/prefer-number-properties

* fix: unicorn/consistent-destructuring

* fix: unicorn/no-array-callback-reference

* fix: unicorn/new-for-builtins

* fix: set checkNaN to false in unicorn/prefer-number-properties

* fix: unicorn/prefer-string-slice

* fix: update eslint ignore
2025-04-29 03:00:16 +08:00
Goestav 6b302364e8 feat(route): support different languages for the kurogames (wuthering waves) route (#18781)
* feat: add wuthering waves route

* refactor: use arrow functions for better readability

* refactor: remove redundant nullish fallback

* refactor: use Promise.all(...) improve performance

* refactor: reduce complexity of limit parameter logic

* refactor: extract parse integer parameter to its own function

* refactor: add kuro games to namespace name

* refactor: make kurogames route for wuthering waves more flexible

This commit adds support for different languages.

* refactor: remove redundant wuthering waves route

* refactor: add language parameter description

* refactor: fallback to 30 feed items instead of unlimited

* refactor: rename language in description table

* refactor: filter articles beforehand and favour map over flatMap

* refactor: remove redundant code for article filtering
2025-04-14 23:30:19 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
enpitsulinandTony adb0f64315 feat(route): 新增鸣潮游戏公告、新闻与活动 (#16316)
* feat(route): 新增鸣潮游戏公告、新闻与活动

* refactor: refactor cache logic
feat: improved date parse with timezone

* fix: route example

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: namespace url

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: import ofetch from utils

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: unnecessary quotation

* fix: cache the whole object

---------
2024-08-01 06:26:25 +08:00