From 60dd77d757e6ac0c7473124f0a691bb5f49cd575 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Oct 2026 08:17:50 +0000 Subject: [PATCH] style: auto format --- lib/routes/36kr/index.ts | 4 +- lib/routes/accessbriefing/index.ts | 8 +- lib/routes/bjtu/gs.ts | 22 +-- lib/routes/cbaigui/index.ts | 16 +-- lib/routes/chinacdc/index.ts | 2 +- lib/routes/chinathinktanks/viewpoint.ts | 4 +- lib/routes/ctfhub/search.ts | 20 +-- lib/routes/dut/index.ts | 3 +- lib/routes/fangchan/list.tsx | 4 +- lib/routes/focustaiwan/index.tsx | 2 +- lib/routes/genossenschaften/index.ts | 28 ++-- lib/routes/gov/samr/xgzlyhd.tsx | 174 ++++++++++++------------ lib/routes/grist/topic.ts | 120 ++++++++-------- lib/routes/hiring.cafe/jobs.tsx | 4 +- lib/routes/hitsz/article.ts | 2 +- lib/routes/kamen-rider-official/news.ts | 22 +-- lib/routes/koyso/index.tsx | 38 +++--- lib/routes/mihoyo/bbs/img-ranking.ts | 2 +- lib/routes/peopo/topic.ts | 24 ++-- lib/routes/seu/yzb/index.ts | 33 +++-- lib/routes/sjtu/tongqu/activity.tsx | 6 +- lib/routes/steam/appcommunityfeed.tsx | 12 +- lib/routes/theblockbeats/index.tsx | 2 +- lib/routes/wdfxw/bookfree.tsx | 74 +++++----- lib/routes/wordpress/util.ts | 24 +++- lib/routes/xwenming/index.ts | 6 +- 26 files changed, 341 insertions(+), 315 deletions(-) diff --git a/lib/routes/36kr/index.ts b/lib/routes/36kr/index.ts index 7e6e45d50f..5700205ebd 100644 --- a/lib/routes/36kr/index.ts +++ b/lib/routes/36kr/index.ts @@ -43,8 +43,8 @@ export const route: Route = { }, name: '资讯, 快讯, 用户文章, 主题文章, 专题文章, 搜索文章, 搜索快讯', maintainers: ['nczitzk', 'fashioncj'], - description: `| 最新资讯频道 | 快讯 | 推荐资讯 | 生活 | 房产 | 职场 | 搜索文章 | 搜索快讯 | -| ------------ | ----------- | --------- | ---- | ------ | --------- | ----------------------- | ----------------------- | + description: `| 最新资讯频道 | 快讯 | 推荐资讯 | 生活 | 房产 | 职场 | 搜索文章 | 搜索快讯 | +| ------------ | ----------- | --------- | ---- | ------ | --------- | ----------------------- | -------------------------- | | news | newsflashes | recommend | life | estate | workplace | search/articles/ 关键词 | search/newsflashes/ 关键词 |`, handler, }; diff --git a/lib/routes/accessbriefing/index.ts b/lib/routes/accessbriefing/index.ts index 981b6b6dfa..7526179d70 100644 --- a/lib/routes/accessbriefing/index.ts +++ b/lib/routes/accessbriefing/index.ts @@ -128,8 +128,8 @@ If you subscribe to [Latest News](https://www.accessbriefing.com/latest/news), #### Latest -| Category | ID | -| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| Category | ID | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | [News](https://www.accessbriefing.com/latest/news) | [latest/news](https://rsshub.app/accessbriefing/latest/news) | | [Products & Technology](https://www.accessbriefing.com/latest/products-and-technology) | [latest/products-and-technology](https://rsshub.app/accessbriefing/latest/products-and-technology) | | [Rental News](https://www.accessbriefing.com/latest/rental-news) | [latest/rental-news](https://rsshub.app/accessbriefing/latest/rental-news) | @@ -140,8 +140,8 @@ If you subscribe to [Latest News](https://www.accessbriefing.com/latest/news), #### Insight -| Category | ID | -| --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| Category | ID | +| --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | [Interviews](https://www.accessbriefing.com/insight/interviews) | [insight/interviews](https://rsshub.app/accessbriefing/insight/interviews) | | [Longer reads](https://www.accessbriefing.com/insight/longer-reads) | [insight/longer-reads](https://rsshub.app/accessbriefing/insight/longer-reads) | | [Videos and podcasts](https://www.accessbriefing.com/insight/videos-and-podcasts) | [insight/videos-and-podcasts](https://rsshub.app/accessbriefing/insight/videos-and-podcasts) |`, diff --git a/lib/routes/bjtu/gs.ts b/lib/routes/bjtu/gs.ts index 3e9f5e8da0..96d687e8ba 100644 --- a/lib/routes/bjtu/gs.ts +++ b/lib/routes/bjtu/gs.ts @@ -48,19 +48,19 @@ export const route: Route = { name: '研究生院', maintainers: ['E1nzbern'], handler, - description: `| 文章来源 | 参数 | -| ------------------- | ------------ | -| 通知公告\\_招生 | noti\\_zs | -| 通知公告 | noti | -| 新闻动态 | news | -| 培养 | py | -| 学位 | xw | -| 博士招生 - 招生专题 | bszs\\_zszt | -| 硕士招生 - 招生专题 | sszs\\_zszt | -| 招生简章 - 招生专题 | zsjz\\_zszt | + description: `| 文章来源 | 参数 | +| ------------------- | ---------- | +| 通知公告\\_招生 | noti\\_zs | +| 通知公告 | noti | +| 新闻动态 | news | +| 培养 | py | +| 学位 | xw | +| 博士招生 - 招生专题 | bszs\\_zszt | +| 硕士招生 - 招生专题 | sszs\\_zszt | +| 招生简章 - 招生专题 | zsjz\\_zszt | ::: tip -文章来源的命名均来自研究生院网站标题。官网改版后,当前支持 noti_zs、noti、news、py、xw、bszs_zszt、sszs_zszt 和 zsjz_zszt;其余旧栏目没有可验证的对应列表。 +文章来源的命名均来自研究生院网站标题。官网改版后,当前支持 noti\\_zs、noti、news、py、xw、bszs\\_zszt、sszs\\_zszt 和 zsjz\\_zszt;其余旧栏目没有可验证的对应列表。 最常用的几项有 “通知公告\\_招生”、“通知公告”、“博士招生 - 招生专题”、“硕士招生 - 招生专题”。 :::`, }; diff --git a/lib/routes/cbaigui/index.ts b/lib/routes/cbaigui/index.ts index a47eb40a81..3d882882b9 100644 --- a/lib/routes/cbaigui/index.ts +++ b/lib/routes/cbaigui/index.ts @@ -17,14 +17,14 @@ export const route: Route = { maintainers: ['nczitzk'], description: `默认订阅[首页](https://cbaigui.com)的妖怪词条、杂谈和站点公告。网站改版后,原分类和标签路径仍可作为路由参数,名称对应[妖怪列表](https://cbaigui.com/monster)中的属性或书籍筛选项。 -| 筛选项 | 路径参数 | -| ------ | -------- | -| 妖怪词条 | monster | -| 杂谈 | essays | -| 站点公告 | notice | -| 妖 | post-tag/妖 | -| 埃及 | post-category/世界/非洲/埃及 | -| 白泽图 | post-category/词条/白泽图 |`, +| 筛选项 | 路径参数 | +| -------- | ---------------------------------- | +| 妖怪词条 | monster | +| 杂谈 | essays | +| 站点公告 | notice | +| 妖 | post-tag / 妖 | +| 埃及 | post-category / 世界 / 非洲 / 埃及 | +| 白泽图 | post-category / 词条 / 白泽图 |`, handler, }; diff --git a/lib/routes/chinacdc/index.ts b/lib/routes/chinacdc/index.ts index acc4310950..f822548015 100644 --- a/lib/routes/chinacdc/index.ts +++ b/lib/routes/chinacdc/index.ts @@ -183,7 +183,7 @@ export const route: Route = { #### [党建园地](https://www.chinacdc.cn/dqgz/djgz/) -| [党建工作](https://www.chinacdc.cn/dqgz/djgz/) | [廉政文化](https://www.chinacdc.cn/dqgz/djgz_13611/) | [工会工作](https://www.chinacdc.cn/dqgz/ghgz/) | [团青工作](https://www.chinacdc.cn/dqgz/tqgz/) | [理论学习](https://www.chinacdc.cn/dqgz/tqgz_13618/) | +| [党建工作](https://www.chinacdc.cn/dqgz/djgz/) | [廉政文化](https://www.chinacdc.cn/dqgz/djgz_13611/) | [工会工作](https://www.chinacdc.cn/dqgz/ghgz/) | [团青工作](https://www.chinacdc.cn/dqgz/tqgz/) | [理论学习](https://www.chinacdc.cn/dqgz/tqgz_13618/) | | -------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | --------------------------------------------------------------- | | [dqgz/djgz](https://rsshub.app/chinacdc/dqgz/djgz) | [dqgz/djgz\\_13611](https://rsshub.app/chinacdc/dqgz/djgz_13611) | [dqgz/ghgz](https://rsshub.app/chinacdc/dqgz/ghgz) | [dqgz/tqgz](https://rsshub.app/chinacdc/dqgz/tqgz) | [dqgz/tqgz\\_13618](https://rsshub.app/chinacdc/dqgz/tqgz_13618) | diff --git a/lib/routes/chinathinktanks/viewpoint.ts b/lib/routes/chinathinktanks/viewpoint.ts index 120474abcb..542877fea6 100644 --- a/lib/routes/chinathinktanks/viewpoint.ts +++ b/lib/routes/chinathinktanks/viewpoint.ts @@ -27,8 +27,8 @@ export const route: Route = { handler, description: `网站已迁移,其他旧数字分类已下线,请使用新版分类 URL 中的 UUID。 -| id | 分类 | -| --- | --- | +| id | 分类 | +| ------------------------------------ | -------- | | 87e1e7e4-ffcb-401d-aa8a-c086b9eccec1 | 智库资讯 | | 54a1eca3-4e67-464d-bad3-eae6ac25c96a | 研究成果 | | 4e93db34-5604-41c0-96e7-51dcebcf6735 | 全球经济 | diff --git a/lib/routes/ctfhub/search.ts b/lib/routes/ctfhub/search.ts index 6d16fc9572..596ca2341a 100644 --- a/lib/routes/ctfhub/search.ts +++ b/lib/routes/ctfhub/search.ts @@ -14,17 +14,17 @@ export const route: Route = { class: '比赛类型', title: '通过 CTF 赛事名称过滤', }, - description: `| \`:class\` | 类型 | -| :------: | ---------------------------------- | -| 0 | Jeopardy \\[解题] | -| 1 | Attack with Defense \\[AwD 攻防] | + description: `| \`:class\` | 类型 | +| :------: | ------------------------------------ | +| 0 | Jeopardy \\[解题] | +| 1 | Attack with Defense \\[AwD 攻防] | | 2 | Attack with Defense Plus \\[ADP 攻防] | -| 3 | Jeopardy + AwD \\[JAD 解题攻防] | -| 4 | Robo Hacking Game \\[RHG AI 自动化] | -| 5 | Real World \\[RW 真实世界] | -| 6 | Penetration \\[场景渗透] | -| 7 | King of The Hill \\[KoH 抢占山头] | -| 8 | Mix \\[混合] | +| 3 | Jeopardy + AwD \\[JAD 解题攻防] | +| 4 | Robo Hacking Game \\[RHG AI 自动化] | +| 5 | Real World \\[RW 真实世界] | +| 6 | Penetration \\[场景渗透] | +| 7 | King of The Hill \\[KoH 抢占山头] | +| 8 | Mix \\[混合] | > class 以 的返回结果为准 diff --git a/lib/routes/dut/index.ts b/lib/routes/dut/index.ts index 42586314dc..ee32fb7938 100644 --- a/lib/routes/dut/index.ts +++ b/lib/routes/dut/index.ts @@ -32,8 +32,7 @@ export const route: Route = { 官网改版前的快捷路径保持兼容:\`/dut/news/ttgz\` 订阅当前主页新闻,\`/dut/news/rcpy\` 和 \`/dut/news/xwjj01/rcpy\` 均订阅当前[人才培养](https://news.dlut.edu.cn/rcpy.htm)栏目。 -大部分大学分站可按此规则订阅;需要校园内网或登录的正文页面可能只能返回公开列表中的信息。 -`, +大部分大学分站可按此规则订阅;需要校园内网或登录的正文页面可能只能返回公开列表中的信息。`, }; function getCurrentListDate($: CheerioAPI, item: Cheerio): Date | undefined { diff --git a/lib/routes/fangchan/list.tsx b/lib/routes/fangchan/list.tsx index 18b816917f..6b90282293 100644 --- a/lib/routes/fangchan/list.tsx +++ b/lib/routes/fangchan/list.tsx @@ -191,8 +191,8 @@ export const route: Route = { 若订阅 [数据研究](http://www.fangchan.com/datalist/),可将分类页 URL 中的 \`datalist\` 填入 \`id\` 参数,对应路由为 [\`/fangchan/list/datalist\`](https://rsshub.app/fangchan/list/datalist)。 ::: -| [数据研究](http://www.fangchan.com/datalist/) | [行业测评](http://www.fangchan.com/industrylist/) | [政策法规](http://www.fangchan.com/policylist/) | -| ------------------------------------------ | ---------------------------------------------- | -------------------------------------------- | +| [数据研究](http://www.fangchan.com/datalist/) | [行业测评](http://www.fangchan.com/industrylist/) | [政策法规](http://www.fangchan.com/policylist/) | +| ----------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------- | | [datalist](https://rsshub.app/fangchan/list/datalist) | [industrylist](https://rsshub.app/fangchan/list/industrylist) | [policylist](https://rsshub.app/fangchan/list/policylist) |`, categories: ['new-media'], features: { diff --git a/lib/routes/focustaiwan/index.tsx b/lib/routes/focustaiwan/index.tsx index 6b89ba0818..ede87b6806 100644 --- a/lib/routes/focustaiwan/index.tsx +++ b/lib/routes/focustaiwan/index.tsx @@ -32,7 +32,7 @@ export const route: Route = { | Politics | Cross-strait | Business | Society | Science & Tech | Culture | Sports | | -------- | ------------ | -------- | ------- | -------------- | ------- | ------ | -| politics | cross-strait | business | society | sci-tech | culture | sports |`, +| politics | cross-strait | business | society | sci-tech | culture | sports |`, }; async function handler(ctx) { diff --git a/lib/routes/genossenschaften/index.ts b/lib/routes/genossenschaften/index.ts index 911320d10c..9b044e370b 100644 --- a/lib/routes/genossenschaften/index.ts +++ b/lib/routes/genossenschaften/index.ts @@ -30,20 +30,20 @@ with a number of \`district\` parameters. Once you've set up all desired filters, copy the part of the URL after the \`?\`. ::: -| Search parameter | Meaning | -| --- | --- | -| \`cost\` | Miete bis (in €, number) | -| \`district\` | Bezirk (string, multiple) | -| \`size\` | Größe ab (in m², number) | -| \`room\` | Zimmer ab (number) | -| \`genossenschaft\` | Bauvereinigung (string, multiple) | -| \`own_funds\` | Eigenkapital bis | -| \`has_property\` | Eigentum (\`on\` or \`off\`) | -| \`has_rent\` | Miete (\`on\` or \`off\`) | -| \`has_rent_option\` | Miete mit Kaufoption (\`on\` or \`off\`) | -| \`status\` | multiple, \`available\`, \`construction\`, or \`planned\` | -| \`type\` | multiple, \`residence\` or \`project\` | -| \`keywords\` | Keyword search |`, +| Search parameter | Meaning | +| ----------------- | --------------------------------------------------- | +| \`cost\` | Miete bis (in €, number) | +| \`district\` | Bezirk (string, multiple) | +| \`size\` | Größe ab (in m², number) | +| \`room\` | Zimmer ab (number) | +| \`genossenschaft\` | Bauvereinigung (string, multiple) | +| \`own_funds\` | Eigenkapital bis | +| \`has_property\` | Eigentum (\`on\` or \`off\`) | +| \`has_rent\` | Miete (\`on\` or \`off\`) | +| \`has_rent_option\` | Miete mit Kaufoption (\`on\` or \`off\`) | +| \`status\` | multiple, \`available\`, \`construction\`, or \`planned\` | +| \`type\` | multiple, \`residence\` or \`project\` | +| \`keywords\` | Keyword search |`, example: PATH_PREFIX + 'district=wien-1-innere-stadt&district=wien-2-leopoldstadt&district=wien-3-landstrasse&district=wien-4-wieden&district=wien-5-margareten&district=wien-6-mariahilf&district=wien-7-neubau&district=wien-8-josefstadt&district=wien-9-alsergrund&district=wien-10-favoriten&district=wien-11-simmering&district=wien-12-meidling&district=wien-13-hietzing&district=wien-14-penzing&district=wien-15-rudolfsheim-fuenfhaus&district=wien-16-ottakring&district=wien-17-hernals&district=wien-18-waehring&district=wien-19-doebling&district=wien-20-brigittenau&district=wien-21-floridsdorf&district=wien-22-donaustadt&district=wien-23-liesing' + diff --git a/lib/routes/gov/samr/xgzlyhd.tsx b/lib/routes/gov/samr/xgzlyhd.tsx index 23464b2e61..6828044e85 100644 --- a/lib/routes/gov/samr/xgzlyhd.tsx +++ b/lib/routes/gov/samr/xgzlyhd.tsx @@ -62,98 +62,98 @@ export const route: Route = { url: 'xgzlyhd.samr.gov.cn/gjjly/index', description: `#### 留言类型 -| 类型 | 类型 id | -| --- | --- | -| 反腐倡廉 | 14101a4192df48b592b5cfd77a26c0cf | -| 规划统计 | b807cf9cdf434635ae908d48757e0f39 | -| 行政复议 | 8af2530e77154d7b939428667b7413f6 | -| 假冒仿冒行为 | 75374a34b95341829e08e54d4a0d8c04 | -| 走私贩私 | 84c728530e1e478e94fe3f0030171c53 | -| 登记注册 | 07fff64612dc41aca871c06587abf71d | -| 个体工商户登记 | ca8f91ba9a2347a0acd57ea5fd12a5c8 | -| 信用信息公示系统 | 1698886c3cdb495998d5ea9285a487f5 | -| 市场主体垄断 | 77bfe965843844449c47d29f2feb7999 | -| 反不正当竞争 | 2c919b1dc39440d8850c4f6c405869f8 | -| 商业贿赂 | b494e6535af149c5a51fd4197993f061 | -| 打击传销与规范直销 | 407a1404844e48558da46139f16d6232 | -| 消费环境建设 | 94c2003331dd4c5fa19b0cf88d720676 | -| 网络交易监管 | 6302aac5b87140598da53f85c1ccb8fa | -| 动产抵押登记 | 3856de5835444229943b18cac7781e9f | -| 广告监管 | d0e38171042048c2bf31b05c5e57aa68 | -| 三包 | c4dbd85692604a428b1ea7613e67beb8 | -| 缺陷产品召回 | f93c9a6b81e941d09a547406370e1c0c | -| 工业生产许可 | 2b41afaabaa24325b53a5bd7deba895b | -| 产品质量监督抽查 | 4388504cb0c04e988e2cf0c90d4a3f14 | -| 食品安全协调 | 3127b9f409c24d0eaa60b13c25f819fa | -| 食品销售、食品生产监管 | beaa5555d1364e5bb2a0f0a7cc9720e5 | -| 餐饮服务、食用农产品销售监管 | 3b6c49c6ce934e1b9505601a3b881a6a | +| 类型 | 类型 id | +| ------------------------------------------ | -------------------------------- | +| 反腐倡廉 | 14101a4192df48b592b5cfd77a26c0cf | +| 规划统计 | b807cf9cdf434635ae908d48757e0f39 | +| 行政复议 | 8af2530e77154d7b939428667b7413f6 | +| 假冒仿冒行为 | 75374a34b95341829e08e54d4a0d8c04 | +| 走私贩私 | 84c728530e1e478e94fe3f0030171c53 | +| 登记注册 | 07fff64612dc41aca871c06587abf71d | +| 个体工商户登记 | ca8f91ba9a2347a0acd57ea5fd12a5c8 | +| 信用信息公示系统 | 1698886c3cdb495998d5ea9285a487f5 | +| 市场主体垄断 | 77bfe965843844449c47d29f2feb7999 | +| 反不正当竞争 | 2c919b1dc39440d8850c4f6c405869f8 | +| 商业贿赂 | b494e6535af149c5a51fd4197993f061 | +| 打击传销与规范直销 | 407a1404844e48558da46139f16d6232 | +| 消费环境建设 | 94c2003331dd4c5fa19b0cf88d720676 | +| 网络交易监管 | 6302aac5b87140598da53f85c1ccb8fa | +| 动产抵押登记 | 3856de5835444229943b18cac7781e9f | +| 广告监管 | d0e38171042048c2bf31b05c5e57aa68 | +| 三包 | c4dbd85692604a428b1ea7613e67beb8 | +| 缺陷产品召回 | f93c9a6b81e941d09a547406370e1c0c | +| 工业生产许可 | 2b41afaabaa24325b53a5bd7deba895b | +| 产品质量监督抽查 | 4388504cb0c04e988e2cf0c90d4a3f14 | +| 食品安全协调 | 3127b9f409c24d0eaa60b13c25f819fa | +| 食品销售、食品生产监管 | beaa5555d1364e5bb2a0f0a7cc9720e5 | +| 餐饮服务、食用农产品销售监管 | 3b6c49c6ce934e1b9505601a3b881a6a | | 保健、特殊医学用途配方和婴幼儿配方乳粉监管 | 13b43888f8554e078b1dfa475e2aaab0 | -| 食品监督抽检、召回 | 0eb6c75581bf41ecaedc629370cb425c | -| 食品安全标准 | 399cfd9abfa34c22a5cb3bb971a43819 | -| 特种设备人员、机构管理 | e5d0e51cc7d0412790efac605008bf20 | -| 特种设备检验 | 03f22fb3d4cd4f09b632079359e9dd7d | -| 计量器具 | 90b25e22861446d5822e07c7c1f5169a | -| 计量机构和人员管理 | 76202742f06c459da7482160e0ce17ad | -| 国家标准 | 299b9672e1c246e69485a5b695f42c5b | -| 国际标准、地方标准、团体标准、企业标准 | cbdc804c9b2c4e259a159c32eccf4ca9 | -| 认证监督管理 | 41259262a42e4de49b5c0b7362ac3796 | -| 认可与检验检测 | cb3c9d1e3d364f2a8b1cd70efa69d1cb | -| 新闻宣传 | e3e553e4019c46ccbdc06136900138e9 | -| 科技和信息化 | 47367b9704964355ba52899a4c5abbb0 | -| 干部人事 | 6b978e3c127c489ea8e2d693b768887e | -| 国际合作 | dd5ce768e33e435ab4bfb769ab6e079a | -| 党群工作 | aa71052978af4304937eb382f24f9902 | -| 退休干部 | 44505fc58c81428eb5cef15706007b5e | -| 虚假宣传 | 5bb2b83ecadb4bf89a779cee414a81dd | -| 滥用行政权力 | 1215206156dc48029b98da825f26fcbc | -| 公平竞争 | 9880a23dcbb04deba2cc7b4404e13ff6 | -| 滥用市场支配地位 | fea04f0acd84486e84cf71d9c13005b0 | -| 数字经济领域反垄断执法 | 4bea424a6e4c4e2aac19fe3c73f9be23 | -| 并购行为 | 90e315647acd415ca68f97fc1b42053d | -| 经营者集中案件 | d6571d2cd5624bc18191b342a2e8defb | -| 数字经济领域反垄断审查 | 03501ef176ef44fba1c7c70da44ba8a0 | -| 综合执法 | cfbb1b5dade446299670ca38844b265e | -| 信用监管 | a9d76ea04a3a4433946bc02b0bdb77eb | -| 3C认证 | 111decc7b14a4fdbae86fb4a3ba5c0c1 | -| 食品添加剂 | 4e4b0e0152334cbb9c62fd1b80138305 | -| 执法稽查 | 9e4f048dae3c4e57be7e1beb30b5578c | -| 价格监督检查 | 28f5548c802e407fa96a1ff7319ff6cc | +| 食品监督抽检、召回 | 0eb6c75581bf41ecaedc629370cb425c | +| 食品安全标准 | 399cfd9abfa34c22a5cb3bb971a43819 | +| 特种设备人员、机构管理 | e5d0e51cc7d0412790efac605008bf20 | +| 特种设备检验 | 03f22fb3d4cd4f09b632079359e9dd7d | +| 计量器具 | 90b25e22861446d5822e07c7c1f5169a | +| 计量机构和人员管理 | 76202742f06c459da7482160e0ce17ad | +| 国家标准 | 299b9672e1c246e69485a5b695f42c5b | +| 国际标准、地方标准、团体标准、企业标准 | cbdc804c9b2c4e259a159c32eccf4ca9 | +| 认证监督管理 | 41259262a42e4de49b5c0b7362ac3796 | +| 认可与检验检测 | cb3c9d1e3d364f2a8b1cd70efa69d1cb | +| 新闻宣传 | e3e553e4019c46ccbdc06136900138e9 | +| 科技和信息化 | 47367b9704964355ba52899a4c5abbb0 | +| 干部人事 | 6b978e3c127c489ea8e2d693b768887e | +| 国际合作 | dd5ce768e33e435ab4bfb769ab6e079a | +| 党群工作 | aa71052978af4304937eb382f24f9902 | +| 退休干部 | 44505fc58c81428eb5cef15706007b5e | +| 虚假宣传 | 5bb2b83ecadb4bf89a779cee414a81dd | +| 滥用行政权力 | 1215206156dc48029b98da825f26fcbc | +| 公平竞争 | 9880a23dcbb04deba2cc7b4404e13ff6 | +| 滥用市场支配地位 | fea04f0acd84486e84cf71d9c13005b0 | +| 数字经济领域反垄断执法 | 4bea424a6e4c4e2aac19fe3c73f9be23 | +| 并购行为 | 90e315647acd415ca68f97fc1b42053d | +| 经营者集中案件 | d6571d2cd5624bc18191b342a2e8defb | +| 数字经济领域反垄断审查 | 03501ef176ef44fba1c7c70da44ba8a0 | +| 综合执法 | cfbb1b5dade446299670ca38844b265e | +| 信用监管 | a9d76ea04a3a4433946bc02b0bdb77eb | +| 3C 认证 | 111decc7b14a4fdbae86fb4a3ba5c0c1 | +| 食品添加剂 | 4e4b0e0152334cbb9c62fd1b80138305 | +| 执法稽查 | 9e4f048dae3c4e57be7e1beb30b5578c | +| 价格监督检查 | 28f5548c802e407fa96a1ff7319ff6cc | #### 回复部门 -| 部门 | 部门 id | -| --- | --- | -| 办公厅 | 6ed539b270634667afc4d466b67a53f7 | -| 法规司 | 8625ec7ff8d744ad80a1d1a2bf19cf19 | -| 执法稽查局 | 313a8cb1c09042dea52be52cb392c557 | -| 登记注册局 | e4553350549f45f38da5602147cf8639 | -| 规财司 | cc36e9ab3657422ca1613db94f115bca | -| 信用监督管理司 | 6af98157255a4a858eac5f94ba8d98f4 | -| 科信司 | da399d806eb24f2785859ffa724a6223 | -| 竞争政策协调司 | 8d2266be4791483297822e1aa5fc0a96 | -| 反垄断执法一司 | f9fb3f6225964c71ab82224a91f21b2c | -| 反垄断执法二司 | 7986c79e4f16403493d5b480aec30be4 | +| 部门 | 部门 id | +| ---------------------------- | -------------------------------- | +| 办公厅 | 6ed539b270634667afc4d466b67a53f7 | +| 法规司 | 8625ec7ff8d744ad80a1d1a2bf19cf19 | +| 执法稽查局 | 313a8cb1c09042dea52be52cb392c557 | +| 登记注册局 | e4553350549f45f38da5602147cf8639 | +| 规财司 | cc36e9ab3657422ca1613db94f115bca | +| 信用监督管理司 | 6af98157255a4a858eac5f94ba8d98f4 | +| 科信司 | da399d806eb24f2785859ffa724a6223 | +| 竞争政策协调司 | 8d2266be4791483297822e1aa5fc0a96 | +| 反垄断执法一司 | f9fb3f6225964c71ab82224a91f21b2c | +| 反垄断执法二司 | 7986c79e4f16403493d5b480aec30be4 | | 价格监督检查和反不正当竞争局 | c5d2b1b273b545cfbc6f874f670654ab | -| 网络交易监督管理司 | 6ac05b4dbd4e41c69f4529262540459b | -| 广告监督管理司 | 96457dfe16c54840885b79b4e6e17523 | -| 食品安全协调司 | cc29962c74e84ef2b21e44336da6c6c5 | -| 质量发展局 | cb8d2b16fbb540dca296aa33a43fc573 | -| 质量监督司 | af2c4e0a54c04f76b512c29ddd075d40 | -| 食品生产经营司 | 073c1638863b48beb7a2092d9af16c05 | -| 餐饮食品司 | 8bc614f22689483eb9695e9035772f89 | -| 特殊食品安全监督管理司 | 62d14f386317486ca94bc53ca7f88891 | -| 食品安全抽检监测司 | abfc910832cc460a81876ad418618159 | -| 特种设备安全监察局 | ea79f90bec5840ef9b0881c83682225a | -| 计量司 | b0556236fbcf4f45b6fdec8004dac3e4 | -| 标准技术管理司 | a558d07a51f4454fa59290e0d6e93c26 | -| 标准创新管理司 | ffb3a80984b344ed8d168f4af6508af0 | -| 认证监督管理司 | ca4987393d514debb4d1e2126f576987 | -| 认可与检验检测监督管理司 | 796bfab21b15498e88c9032fe3e3c9f1 | -| 新闻宣传司 | 884fc0ea6c184ad58dda10e2170a1eda | -| 人事司 | a341e8b7929e44769b9424b7cf69d32a | -| 国际司 | f784499ef24541f5b20de4c24cfc61e7 | -| 机关党委 | a49119c6f40045dd994f3910500cedfa | -| 离退办 | 6bf265ffd1c94fa4a3f1687b03fa908b |`, +| 网络交易监督管理司 | 6ac05b4dbd4e41c69f4529262540459b | +| 广告监督管理司 | 96457dfe16c54840885b79b4e6e17523 | +| 食品安全协调司 | cc29962c74e84ef2b21e44336da6c6c5 | +| 质量发展局 | cb8d2b16fbb540dca296aa33a43fc573 | +| 质量监督司 | af2c4e0a54c04f76b512c29ddd075d40 | +| 食品生产经营司 | 073c1638863b48beb7a2092d9af16c05 | +| 餐饮食品司 | 8bc614f22689483eb9695e9035772f89 | +| 特殊食品安全监督管理司 | 62d14f386317486ca94bc53ca7f88891 | +| 食品安全抽检监测司 | abfc910832cc460a81876ad418618159 | +| 特种设备安全监察局 | ea79f90bec5840ef9b0881c83682225a | +| 计量司 | b0556236fbcf4f45b6fdec8004dac3e4 | +| 标准技术管理司 | a558d07a51f4454fa59290e0d6e93c26 | +| 标准创新管理司 | ffb3a80984b344ed8d168f4af6508af0 | +| 认证监督管理司 | ca4987393d514debb4d1e2126f576987 | +| 认可与检验检测监督管理司 | 796bfab21b15498e88c9032fe3e3c9f1 | +| 新闻宣传司 | 884fc0ea6c184ad58dda10e2170a1eda | +| 人事司 | a341e8b7929e44769b9424b7cf69d32a | +| 国际司 | f784499ef24541f5b20de4c24cfc61e7 | +| 机关党委 | a49119c6f40045dd994f3910500cedfa | +| 离退办 | 6bf265ffd1c94fa4a3f1687b03fa908b |`, }; async function handler(ctx) { diff --git a/lib/routes/grist/topic.ts b/lib/routes/grist/topic.ts index 89be19a274..1e7bfa19a7 100644 --- a/lib/routes/grist/topic.ts +++ b/lib/routes/grist/topic.ts @@ -248,67 +248,67 @@ export const route: Route = { url: 'grist.org/articles/', description: `Topics from the official category API. Use the category slug as \`topic\`. -| Topic Name | Topic Slug | -| ---------- | ---------- | -| Accountability | accountability | -| Ask Umbra | ask-umbra-series | -| Buildings | buildings | -| Business | business | -| Cities | cities | -| Climate | climate | -| Climate & Energy | climate-energy | -| Climate Fiction | climate-fiction | -| Climate of Courage | climate-of-courage | -| Community Engagement | community-engagement | -| COP26 | cop26 | -| COP27 | cop27 | -| COP28 | cop28 | -| COP29 | cop29 | -| COP30 | cop30 | -| Culture | culture | -| Drought | drought | -| Economics | economics | -| Elections | elections | -| Energy | energy | -| Equity | equity | -| Extreme Heat | extreme-heat | -| Extreme Weather | extreme-weather | -| Fix | fix | -| fix-articles | fix-articles | -| Food and Agriculture | food-and-agriculture | -| Georgia PSC | georgia-psc | +| Topic Name | Topic Slug | +| ------------------------------ | ------------------------------ | +| Accountability | accountability | +| Ask Umbra | ask-umbra-series | +| Buildings | buildings | +| Business | business | +| Cities | cities | +| Climate | climate | +| Climate & Energy | climate-energy | +| Climate Fiction | climate-fiction | +| Climate of Courage | climate-of-courage | +| Community Engagement | community-engagement | +| COP26 | cop26 | +| COP27 | cop27 | +| COP28 | cop28 | +| COP29 | cop29 | +| COP30 | cop30 | +| Culture | culture | +| Drought | drought | +| Economics | economics | +| Elections | elections | +| Energy | energy | +| Equity | equity | +| Extreme Heat | extreme-heat | +| Extreme Weather | extreme-weather | +| Fix | fix | +| fix-articles | fix-articles | +| Food and Agriculture | food-and-agriculture | +| Georgia PSC | georgia-psc | | Global Indigenous Affairs Desk | global-indigenous-affairs-desk | -| Grist | grist | -| Grist Events | grist-events | -| Grist News | grist-news | -| Grist Original Videos | grist-video | -| Health | health | -| Housing | housing | -| Indigenous Affairs | indigenous | -| International | international | -| Justice | justice | -| Labor | labor | -| Language | language | -| Migration | migration | -| Oceans | oceans | -| Opinion | opinion | -| Politics | politics | -| Protest | protest | -| Race | race | -| Regulation | regulation | -| Science | science | -| Shift Happens Newsletter | shift-happens | -| Solutions | solutions | -| Spanish | spanish | -| Sponsored | sponsored | -| Technology | technology | -| Temperature Check | temperature-check | -| Transportation | transportation | -| Uncategorized | article | -| Updates | updates | -| Video | video | -| Wildfires | wildfires | -| Words of the Year | words-of-the-year |`, +| Grist | grist | +| Grist Events | grist-events | +| Grist News | grist-news | +| Grist Original Videos | grist-video | +| Health | health | +| Housing | housing | +| Indigenous Affairs | indigenous | +| International | international | +| Justice | justice | +| Labor | labor | +| Language | language | +| Migration | migration | +| Oceans | oceans | +| Opinion | opinion | +| Politics | politics | +| Protest | protest | +| Race | race | +| Regulation | regulation | +| Science | science | +| Shift Happens Newsletter | shift-happens | +| Solutions | solutions | +| Spanish | spanish | +| Sponsored | sponsored | +| Technology | technology | +| Temperature Check | temperature-check | +| Transportation | transportation | +| Uncategorized | article | +| Updates | updates | +| Video | video | +| Wildfires | wildfires | +| Words of the Year | words-of-the-year |`, }; async function handler(ctx): Promise { diff --git a/lib/routes/hiring.cafe/jobs.tsx b/lib/routes/hiring.cafe/jobs.tsx index daa074d13a..528f4f30bf 100644 --- a/lib/routes/hiring.cafe/jobs.tsx +++ b/lib/routes/hiring.cafe/jobs.tsx @@ -84,8 +84,8 @@ async function getSearchPage(url: string) { const { page, destroy } = await getPlaywrightPage(url, { noGoto: true, closeTimeout: 0 }); try { await page.route('**/*', (route) => (['document', 'script', 'xhr', 'fetch'].includes(route.request().resourceType()) ? route.continue() : route.abort())); - await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30_000 }); - await page.waitForSelector('script#__NEXT_DATA__', { state: 'attached', timeout: 10_000 }); + await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30000 }); + await page.waitForSelector('script#__NEXT_DATA__', { state: 'attached', timeout: 10000 }); return await page.content(); } finally { await destroy(); diff --git a/lib/routes/hitsz/article.ts b/lib/routes/hitsz/article.ts index b411cbaaeb..5389f1616a 100644 --- a/lib/routes/hitsz/article.ts +++ b/lib/routes/hitsz/article.ts @@ -39,7 +39,7 @@ export const route: Route = { handler, description: `| 校区要闻 | 媒体报道 | 综合新闻 | 校园动态 | 讲座论坛 | 热点专题 | 招标信息 | 重要关注 | | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -| id-116 | id-80 | id-75 | id-77 | id-78 | id-79 | id-81 | id-124 |`, +| id-116 | id-80 | id-75 | id-77 | id-78 | id-79 | id-81 | id-124 |`, }; const categories: Record = { diff --git a/lib/routes/kamen-rider-official/news.ts b/lib/routes/kamen-rider-official/news.ts index af36c94e3b..96226a2650 100644 --- a/lib/routes/kamen-rider-official/news.ts +++ b/lib/routes/kamen-rider-official/news.ts @@ -30,10 +30,10 @@ export const route: Route = { | -------------------------------------- | | すべて | | テレビ | -| 映画・Vシネマ等 | +| 映画・V シネマ等 | | Blu-ray・DVD、配信等 | -| 20作記念グッズ・東映EC商品 | -| 石ノ森章太郎生誕80周年記念商品 | +| 20 作記念グッズ・東映 EC 商品 | +| 石ノ森章太郎生誕 80 周年記念商品 | | 玩具・カード | | 食品・飲料・菓子 | | 子供生活雑貨 | @@ -48,21 +48,21 @@ export const route: Route = { | キャンペーン・タイアップ等 | | その他 | | KAMEN RIDER STORE | -| THE鎧武祭り | +| THE 鎧武祭り | | 鎧武外伝 | | 仮面ライダーリバイス | | ファイナルステージ | -| THE50周年展 | +| THE50 周年展 | | 風都探偵 | | 仮面ライダーギーツ | | 仮面ライダーアウトサイダーズ | | 仮面ライダーガッチャード | -| 仮面ライダーBLACK SUN | -| 仮面ライダーガヴ | -| ライドカメンズ | -| 仮面ライダーゼッツ | -| 仮面ライダーアギト | -| 仮面ライダーマイス |`, +| 仮面ライダー BLACK SUN | +| 仮面ライダーガヴ | +| ライドカメンズ | +| 仮面ライダーゼッツ | +| 仮面ライダーアギト | +| 仮面ライダーマイス |`, }; async function handler(ctx) { diff --git a/lib/routes/koyso/index.tsx b/lib/routes/koyso/index.tsx index 65d29fcc5b..0ad2dff493 100644 --- a/lib/routes/koyso/index.tsx +++ b/lib/routes/koyso/index.tsx @@ -256,29 +256,29 @@ export const route: Route = { #### 分类 -| 分类 | ID | -| ------------------------------------------- | --------------------------------- | -| [全部游戏](https://playzip.com/) | [0](https://rsshub.app/koyso/0) | -| [动作游戏](https://playzip.com/category/action) | [3](https://rsshub.app/koyso/3) | -| [冒险游戏](https://playzip.com/category/adventure) | [5](https://rsshub.app/koyso/5) | -| [绅士游戏](https://playzip.com/category/r18) | [7](https://rsshub.app/koyso/7) | -| [射击游戏](https://playzip.com/category/shooting) | [1](https://rsshub.app/koyso/1) | -| [休闲游戏](https://playzip.com/category/casual) | [2](https://rsshub.app/koyso/2) | -| [体育竞速](https://playzip.com/category/sports_racing) | [4](https://rsshub.app/koyso/4) | +| 分类 | ID | +| ------------------------------------------------------ | --------------------------------- | +| [全部游戏](https://playzip.com/) | [0](https://rsshub.app/koyso/0) | +| [动作游戏](https://playzip.com/category/action) | [3](https://rsshub.app/koyso/3) | +| [冒险游戏](https://playzip.com/category/adventure) | [5](https://rsshub.app/koyso/5) | +| [绅士游戏](https://playzip.com/category/r18) | [7](https://rsshub.app/koyso/7) | +| [射击游戏](https://playzip.com/category/shooting) | [1](https://rsshub.app/koyso/1) | +| [休闲游戏](https://playzip.com/category/casual) | [2](https://rsshub.app/koyso/2) | +| [体育竞速](https://playzip.com/category/sports_racing) | [4](https://rsshub.app/koyso/4) | | [模拟经营](https://playzip.com/category/simulation) | [6](https://rsshub.app/koyso/6) | -| [角色扮演](https://playzip.com/category/rpg) | [8](https://rsshub.app/koyso/8) | -| [策略游戏](https://playzip.com/category/strategy) | [9](https://rsshub.app/koyso/9) | -| [格斗游戏](https://playzip.com/category/fighting) | [10](https://rsshub.app/koyso/10) | -| [恐怖游戏](https://playzip.com/category/horror) | [11](https://rsshub.app/koyso/11) | -| [即时战略](https://playzip.com/category/rts) | [12](https://rsshub.app/koyso/12) | -| [卡牌游戏](https://playzip.com/category/card) | [13](https://rsshub.app/koyso/13) | -| [独立游戏](https://playzip.com/category/indie) | [14](https://rsshub.app/koyso/14) | -| [局域网联机](https://playzip.com/category/lan) | [15](https://rsshub.app/koyso/15) | +| [角色扮演](https://playzip.com/category/rpg) | [8](https://rsshub.app/koyso/8) | +| [策略游戏](https://playzip.com/category/strategy) | [9](https://rsshub.app/koyso/9) | +| [格斗游戏](https://playzip.com/category/fighting) | [10](https://rsshub.app/koyso/10) | +| [恐怖游戏](https://playzip.com/category/horror) | [11](https://rsshub.app/koyso/11) | +| [即时战略](https://playzip.com/category/rts) | [12](https://rsshub.app/koyso/12) | +| [卡牌游戏](https://playzip.com/category/card) | [13](https://rsshub.app/koyso/13) | +| [独立游戏](https://playzip.com/category/indie) | [14](https://rsshub.app/koyso/14) | +| [局域网联机](https://playzip.com/category/lan) | [15](https://rsshub.app/koyso/15) | #### 排序 -| 排序 | ID | -| ------------------------------------- | ------------------------------------------- | +| 排序 | ID | +| ---------------------------------------- | ------------------------------------------- | | [热度](https://playzip.com/?sort=views) | [views](https://rsshub.app/koyso/0/views) | | [最新](https://playzip.com/?sort=latest) | [latest](https://rsshub.app/koyso/0/latest) |`, categories: ['game'], diff --git a/lib/routes/mihoyo/bbs/img-ranking.ts b/lib/routes/mihoyo/bbs/img-ranking.ts index 679be5029b..b3fd27a976 100644 --- a/lib/routes/mihoyo/bbs/img-ranking.ts +++ b/lib/routes/mihoyo/bbs/img-ranking.ts @@ -77,7 +77,7 @@ export const route: Route = { | forumType | 主榜类型(仅原神、大别野有 cos 主榜) | tongren/cos | tongren | | cateType | 子榜类型(仅崩坏三、原神有子榜) | 崩坏三:illustration/comic/cos;原神:illustration/comic/qute/manual | illustration | | rankingType | 排行榜类型(崩坏二没有日榜) | daily/weekly/monthly | daily | -| lastId | 首屏游标 | 省略或 0 | 空 | +| lastId | 首屏游标 | 省略或 0 | 空 | 游戏缩写 diff --git a/lib/routes/peopo/topic.ts b/lib/routes/peopo/topic.ts index e039c4b1ac..7a3b41dece 100644 --- a/lib/routes/peopo/topic.ts +++ b/lib/routes/peopo/topic.ts @@ -32,18 +32,18 @@ export const route: Route = { handler, description: `預設值及範例保留為 \`159\`,目前對應坪林區。網站現行新聞分類如下: -| 分類 | ID | -| -------- | --- | -| 社會關懷 | 2 | -| 生態環保 | 3 | -| 文化古蹟 | 4 | -| 社區改造 | 5 | -| 教育學習 | 6 | -| 農漁畜牧 | 7 | -| 生活休閒 | 8 | -| 媒體觀察 | 9 | -| 運動科技 | 10 | -| 政治經濟 | 11 |`, +| 分類 | ID | +| -------- | -- | +| 社會關懷 | 2 | +| 生態環保 | 3 | +| 文化古蹟 | 4 | +| 社區改造 | 5 | +| 教育學習 | 6 | +| 農漁畜牧 | 7 | +| 生活休閒 | 8 | +| 媒體觀察 | 9 | +| 運動科技 | 10 | +| 政治經濟 | 11 |`, }; async function handler(ctx) { diff --git a/lib/routes/seu/yzb/index.ts b/lib/routes/seu/yzb/index.ts index da3c3da055..46f993a04c 100644 --- a/lib/routes/seu/yzb/index.ts +++ b/lib/routes/seu/yzb/index.ts @@ -73,16 +73,31 @@ function catalogJson(script: string, name: string): T { } else if (character === '"') { quoted = false; } - } else if (character === '"') { - quoted = true; - } else if (character === '{' || character === '[') { - depth++; - } else if (character === '}' || character === ']') { - depth--; - if (depth === 0) { - return JSON.parse(script.slice(start, index + 1)); + } else + switch (character) { + case '"': { + quoted = true; + + break; + } + case '{': + case '[': { + depth++; + + break; + } + case '}': + case ']': { + depth--; + if (depth === 0) { + return JSON.parse(script.slice(start, index + 1)); + } + + break; + } + default: + // Do nothing } - } } throw new Error(`The admissions catalog contains incomplete ${name} data.`); } diff --git a/lib/routes/sjtu/tongqu/activity.tsx b/lib/routes/sjtu/tongqu/activity.tsx index 9093d604f3..8afcc143c9 100644 --- a/lib/routes/sjtu/tongqu/activity.tsx +++ b/lib/routes/sjtu/tongqu/activity.tsx @@ -21,9 +21,9 @@ export const route: Route = { name: '同去网最新活动', maintainers: ['SeanChao'], handler, - description: `| 全部 | 最新 | 招新 | 讲座 | 户外 | 招聘 | 游学 | 比赛 | 公益 | 主题党日 | 学生事务 | 广告 | 其他 | -| ---- | ------ | ----------- | ------- | --------- | ---- | ---------- | ------------ | -------------- | -------- | -------------- | ---- | ------ | -| all | newest | recruitment | lecture | outdoors | jobs | studyTours | competitions | publicWarefare | partyDay | studentAffairs | ads | others |`, + description: `| 全部 | 最新 | 招新 | 讲座 | 户外 | 招聘 | 游学 | 比赛 | 公益 | 主题党日 | 学生事务 | 广告 | 其他 | +| ---- | ------ | ----------- | ------- | -------- | ---- | ---------- | ------------ | -------------- | -------- | -------------- | ---- | ------ | +| all | newest | recruitment | lecture | outdoors | jobs | studyTours | competitions | publicWarefare | partyDay | studentAffairs | ads | others |`, }; async function handler(ctx) { diff --git a/lib/routes/steam/appcommunityfeed.tsx b/lib/routes/steam/appcommunityfeed.tsx index 4aff67850f..430d1abfb3 100644 --- a/lib/routes/steam/appcommunityfeed.tsx +++ b/lib/routes/steam/appcommunityfeed.tsx @@ -44,13 +44,13 @@ export const route: Route = { ], description: `Query Parameters: -| Name | Type | Description | -| ---------------------- | ------ | ----------------------- | +| Name | Type | Description | +| ---------------------- | ------ | ------------------------------------------------------- | | p | string | Compatibility parameter; always requests the first page | -| rgSections\\[] | string | rgSections | -| filterLanguage | string | Filter Language | -| languageTag | string | Language Tag | -| nMaxInappropriateScore | string | Max Inappropriate Score | +| rgSections\\[] | string | rgSections | +| filterLanguage | string | Filter Language | +| languageTag | string | Language Tag | +| nMaxInappropriateScore | string | Max Inappropriate Score | Example: diff --git a/lib/routes/theblockbeats/index.tsx b/lib/routes/theblockbeats/index.tsx index 7aa21b38e6..bb7927cbc5 100644 --- a/lib/routes/theblockbeats/index.tsx +++ b/lib/routes/theblockbeats/index.tsx @@ -188,7 +188,7 @@ export const route: Route = { | 全部 | 深度 | 精选 | 热点追踪 | | :--: | :--: | :--: | :------: | -| 0 | 1 | 2 | 3 |`, +| 0 | 1 | 2 | 3 |`, }; async function handler(ctx) { diff --git a/lib/routes/wdfxw/bookfree.tsx b/lib/routes/wdfxw/bookfree.tsx index 40df1fb0e9..60b7669771 100644 --- a/lib/routes/wdfxw/bookfree.tsx +++ b/lib/routes/wdfxw/bookfree.tsx @@ -288,44 +288,44 @@ export const route: Route = {
更多分类 -| 分类 | ID | -| ------------------------------------------------------------------------- | ---------------------------------------------------- | -| [全部](https://www.wdfxw.net/bookfree.html) | [<无>](https://rsshub.app/wdfxw/bookfree) | -| [行业标准](https://www.wdfxw.net/bookfree-00002.html) | [00002](https://rsshub.app/wdfxw/bookfree/00002) | -| [国家标准 GB](https://www.wdfxw.net/bookfree-00001.html) | [00001](https://rsshub.app/wdfxw/bookfree/00001) | -| [国外标准](https://www.wdfxw.net/bookfree-00003.html) | [00003](https://rsshub.app/wdfxw/bookfree/00003) | -| [监理资料](https://www.wdfxw.net/bookfree-00004.html) | [00004](https://rsshub.app/wdfxw/bookfree/00004) | -| [施工组织设计](https://www.wdfxw.net/bookfree-00005.html) | [00005](https://rsshub.app/wdfxw/bookfree/00005) | -| [土木工程毕业设计论文](https://www.wdfxw.net/bookfree-00006.html) | [00006](https://rsshub.app/wdfxw/bookfree/00006) | -| [机械类毕业设计论文](https://www.wdfxw.net/bookfree-00007.html) | [00007](https://rsshub.app/wdfxw/bookfree/00007) | -| [小学课件教学资料](https://www.wdfxw.net/bookfree-00008.html) | [00008](https://rsshub.app/wdfxw/bookfree/00008) | -| [初中课件教学资料](https://www.wdfxw.net/bookfree-00009.html) | [00009](https://rsshub.app/wdfxw/bookfree/00009) | -| [高中课件教学资料](https://www.wdfxw.net/bookfree-00010.html) | [00010](https://rsshub.app/wdfxw/bookfree/00010) | -| [工作计划个人总结](https://www.wdfxw.net/bookfree-00011.html) | [00011](https://rsshub.app/wdfxw/bookfree/00011) | -| [中学小学教案导学案与教学设计](https://www.wdfxw.net/bookfree-00012.html) | [00012](https://rsshub.app/wdfxw/bookfree/00012) | -| [作文大全](https://www.wdfxw.net/bookfree-00013.html) | [00013](https://rsshub.app/wdfxw/bookfree/00013) | -| [幼儿教育](https://www.wdfxw.net/bookfree-00014.html) | [00014](https://rsshub.app/wdfxw/bookfree/00014) | -| [论文](https://www.wdfxw.net/bookfree-00015.html) | [00015](https://rsshub.app/wdfxw/bookfree/00015) | -| [财务管理](https://www.wdfxw.net/bookfree-00016.html) | [00016](https://rsshub.app/wdfxw/bookfree/00016) | -| [管理信息化](https://www.wdfxw.net/bookfree-00017.html) | [00017](https://rsshub.app/wdfxw/bookfree/00017) | -| [行业分类](https://www.wdfxw.net/bookfree-00018.html) | [00018](https://rsshub.app/wdfxw/bookfree/00018) | +| 分类 | ID | +| ------------------------------------------------------------------------- | ------------------------------------------------ | +| [全部](https://www.wdfxw.net/bookfree.html) | [<无>](https://rsshub.app/wdfxw/bookfree) | +| [行业标准](https://www.wdfxw.net/bookfree-00002.html) | [00002](https://rsshub.app/wdfxw/bookfree/00002) | +| [国家标准 GB](https://www.wdfxw.net/bookfree-00001.html) | [00001](https://rsshub.app/wdfxw/bookfree/00001) | +| [国外标准](https://www.wdfxw.net/bookfree-00003.html) | [00003](https://rsshub.app/wdfxw/bookfree/00003) | +| [监理资料](https://www.wdfxw.net/bookfree-00004.html) | [00004](https://rsshub.app/wdfxw/bookfree/00004) | +| [施工组织设计](https://www.wdfxw.net/bookfree-00005.html) | [00005](https://rsshub.app/wdfxw/bookfree/00005) | +| [土木工程毕业设计论文](https://www.wdfxw.net/bookfree-00006.html) | [00006](https://rsshub.app/wdfxw/bookfree/00006) | +| [机械类毕业设计论文](https://www.wdfxw.net/bookfree-00007.html) | [00007](https://rsshub.app/wdfxw/bookfree/00007) | +| [小学课件教学资料](https://www.wdfxw.net/bookfree-00008.html) | [00008](https://rsshub.app/wdfxw/bookfree/00008) | +| [初中课件教学资料](https://www.wdfxw.net/bookfree-00009.html) | [00009](https://rsshub.app/wdfxw/bookfree/00009) | +| [高中课件教学资料](https://www.wdfxw.net/bookfree-00010.html) | [00010](https://rsshub.app/wdfxw/bookfree/00010) | +| [工作计划个人总结](https://www.wdfxw.net/bookfree-00011.html) | [00011](https://rsshub.app/wdfxw/bookfree/00011) | +| [中学小学教案导学案与教学设计](https://www.wdfxw.net/bookfree-00012.html) | [00012](https://rsshub.app/wdfxw/bookfree/00012) | +| [作文大全](https://www.wdfxw.net/bookfree-00013.html) | [00013](https://rsshub.app/wdfxw/bookfree/00013) | +| [幼儿教育](https://www.wdfxw.net/bookfree-00014.html) | [00014](https://rsshub.app/wdfxw/bookfree/00014) | +| [论文](https://www.wdfxw.net/bookfree-00015.html) | [00015](https://rsshub.app/wdfxw/bookfree/00015) | +| [财务管理](https://www.wdfxw.net/bookfree-00016.html) | [00016](https://rsshub.app/wdfxw/bookfree/00016) | +| [管理信息化](https://www.wdfxw.net/bookfree-00017.html) | [00017](https://rsshub.app/wdfxw/bookfree/00017) | +| [行业分类](https://www.wdfxw.net/bookfree-00018.html) | [00018](https://rsshub.app/wdfxw/bookfree/00018) | | [合同样本](https://www.wdfxw.net/bookfree-00019.html) | [00019](https://rsshub.app/wdfxw/bookfree/00019) | -| [品质管理](https://www.wdfxw.net/bookfree-00020.html) | [00020](https://rsshub.app/wdfxw/bookfree/00020) | -| [企业管理](https://www.wdfxw.net/bookfree-00021.html) | [00021](https://rsshub.app/wdfxw/bookfree/00021) | -| [人力资源](https://www.wdfxw.net/bookfree-00022.html) | [00022](https://rsshub.app/wdfxw/bookfree/00022) | -| [生产管理](https://www.wdfxw.net/bookfree-00023.html) | [00023](https://rsshub.app/wdfxw/bookfree/00023) | -| [市场营销](https://www.wdfxw.net/bookfree-00024.html) | [00024](https://rsshub.app/wdfxw/bookfree/00024) | -| [制度表格](https://www.wdfxw.net/bookfree-00025.html) | [00025](https://rsshub.app/wdfxw/bookfree/00025) | -| [行业资料](https://www.wdfxw.net/bookfree-00026.html) | [00026](https://rsshub.app/wdfxw/bookfree/00026) | -| [国家标准](https://www.wdfxw.net/bookfree-00027.html) | [00027](https://rsshub.app/wdfxw/bookfree/00027) | -| [软件教程](https://www.wdfxw.net/bookfree-00028.html) | [00028](https://rsshub.app/wdfxw/bookfree/00028) | -| [标准汇编](https://www.wdfxw.net/bookfree-00029.html) | [00029](https://rsshub.app/wdfxw/bookfree/00029) | -| [其他](https://www.wdfxw.net/bookfree-00030.html) | [00030](https://rsshub.app/wdfxw/bookfree/00030) | -| [职业资格考试](https://www.wdfxw.net/bookfree-00031.html) | [00031](https://rsshub.app/wdfxw/bookfree/00031) | -| [股票证券行业研究报告 (研报)](https://www.wdfxw.net/bookfree-00032.html) | [00032](https://rsshub.app/wdfxw/bookfree/00032) | -| [基金申请](https://www.wdfxw.net/bookfree-00033.html) | [00033](https://rsshub.app/wdfxw/bookfree/00033) | -| [教师资格证考试资料](https://www.wdfxw.net/bookfree-00034.html) | [00034](https://rsshub.app/wdfxw/bookfree/00034) | -| [专利说明书](https://www.wdfxw.net/bookfree-00035.html) | [00035](https://rsshub.app/wdfxw/bookfree/00035) | +| [品质管理](https://www.wdfxw.net/bookfree-00020.html) | [00020](https://rsshub.app/wdfxw/bookfree/00020) | +| [企业管理](https://www.wdfxw.net/bookfree-00021.html) | [00021](https://rsshub.app/wdfxw/bookfree/00021) | +| [人力资源](https://www.wdfxw.net/bookfree-00022.html) | [00022](https://rsshub.app/wdfxw/bookfree/00022) | +| [生产管理](https://www.wdfxw.net/bookfree-00023.html) | [00023](https://rsshub.app/wdfxw/bookfree/00023) | +| [市场营销](https://www.wdfxw.net/bookfree-00024.html) | [00024](https://rsshub.app/wdfxw/bookfree/00024) | +| [制度表格](https://www.wdfxw.net/bookfree-00025.html) | [00025](https://rsshub.app/wdfxw/bookfree/00025) | +| [行业资料](https://www.wdfxw.net/bookfree-00026.html) | [00026](https://rsshub.app/wdfxw/bookfree/00026) | +| [国家标准](https://www.wdfxw.net/bookfree-00027.html) | [00027](https://rsshub.app/wdfxw/bookfree/00027) | +| [软件教程](https://www.wdfxw.net/bookfree-00028.html) | [00028](https://rsshub.app/wdfxw/bookfree/00028) | +| [标准汇编](https://www.wdfxw.net/bookfree-00029.html) | [00029](https://rsshub.app/wdfxw/bookfree/00029) | +| [其他](https://www.wdfxw.net/bookfree-00030.html) | [00030](https://rsshub.app/wdfxw/bookfree/00030) | +| [职业资格考试](https://www.wdfxw.net/bookfree-00031.html) | [00031](https://rsshub.app/wdfxw/bookfree/00031) | +| [股票证券行业研究报告 (研报)](https://www.wdfxw.net/bookfree-00032.html) | [00032](https://rsshub.app/wdfxw/bookfree/00032) | +| [基金申请](https://www.wdfxw.net/bookfree-00033.html) | [00033](https://rsshub.app/wdfxw/bookfree/00033) | +| [教师资格证考试资料](https://www.wdfxw.net/bookfree-00034.html) | [00034](https://rsshub.app/wdfxw/bookfree/00034) | +| [专利说明书](https://www.wdfxw.net/bookfree-00035.html) | [00035](https://rsshub.app/wdfxw/bookfree/00035) |
`, categories: ['reading'], diff --git a/lib/routes/wordpress/util.ts b/lib/routes/wordpress/util.ts index 602b1ba889..45180b5758 100644 --- a/lib/routes/wordpress/util.ts +++ b/lib/routes/wordpress/util.ts @@ -165,12 +165,24 @@ const bakeSiteSearchParams = (filterPairs: Record): if (!value.length) { continue; } - if (key === 'category') { - searchParams.set('cat', (value as Filter[]).map((pair) => pair.id).join(',')); - } else if (key === 'tag') { - searchParams.set('tag', (value as Filter[]).map((pair) => pair.slug).join(',')); - } else if (key === 'search') { - searchParams.set('s', value.join(',')); + switch (key) { + case 'category': { + searchParams.set('cat', (value as Filter[]).map((pair) => pair.id).join(',')); + + break; + } + case 'tag': { + searchParams.set('tag', (value as Filter[]).map((pair) => pair.slug).join(',')); + + break; + } + case 'search': { + searchParams.set('s', value.join(',')); + + break; + } + default: + // Do nothing } } return searchParams; diff --git a/lib/routes/xwenming/index.ts b/lib/routes/xwenming/index.ts index c9ae0e9314..7ebcc3a238 100644 --- a/lib/routes/xwenming/index.ts +++ b/lib/routes/xwenming/index.ts @@ -136,9 +136,9 @@ export const route: Route = { 订阅 [科技前沿](https://www.xwenming.com/index.php/category/news),其源网址为 \`https://www.xwenming.com/index.php/category/news\`,请参考该 URL 指定部分构成参数,此时路由为 [\`/xwenming/news\`](https://rsshub.app/xwenming/news) 或 [\`/xwenming/科技前沿\`](https://rsshub.app/xwenming/科技前沿)。 ::: -| 分类 | ID | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| [全部](https://www.xwenming.com) | [<空>](https://rsshub.app/xwenming) | +| 分类 | ID | +| ------------------------------------------------------------------- | ---------------------------------------------------------- | +| [全部](https://www.xwenming.com) | [<空>](https://rsshub.app/xwenming) | | [科技前沿](https://www.xwenming.com/index.php/category/news) | [news](https://rsshub.app/xwenming/news) | | [疑难杂症](https://www.xwenming.com/index.php/category/solve) | [solve](https://rsshub.app/xwenming/solve) | | [通知专栏](https://www.xwenming.com/index.php/category/notice) | [notice](https://rsshub.app/xwenming/notice) |