Commit Graph
137 Commits
Author SHA1 Message Date
Ethan Shen 3cb4b741ae fix(route): 安徽省科学技术厅 (#15402)
* fix(route): 安徽省科学技术厅

* fix typo

* Update lib/routes/gov/ah/kjt.ts

---------
2024-04-30 01:28:55 +08:00
github-actions[bot] c68e2b4af8 style: auto format 2024-04-25 12:19:49 +00:00
f62f12da1c feat: add route /gov/zj/search/:websiteid?/:word/:cateid? (#15359)
* feat: 浙江省人民政府-统一搜索结果

* refactor: 浙江省人民政府-统一搜索结果-代码规范修正、description字段补充

* Update lib/routes/gov/zj/search.ts

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

* Update lib/routes/gov/zj/search.ts

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

* Update lib/routes/gov/zj/search.ts

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

---------

Co-authored-by: lihaoyu <lihaoyu@unicoresoft.com>
2024-04-25 20:18:02 +08:00
Ethan Shen 26dcea0599 fix(route): 中国人民银行 (#15347) 2024-04-23 22:11:39 +08:00
Felix Hsu 4f678bd797 fix(route): fix the gov.cn stats using the ofetch.raw (#15317) 2024-04-21 22:32:42 +08:00
GideonSenkuandpull[bot] afc5e3396a feat(route): 新增江苏文化和旅游局审批公告 (#14978)
* feat(route): add jiangsu wlt

* fix: link url

* fix: rule

* fix: node ptah

---------

Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
2024-04-15 23:01:48 +08:00
lyqluisandTony 8757a93fa9 fix(route): /gov/moa/:suburl{.+} (#15012)
* fix(route): /gov/moa/:suburl{.+}

* fix(route): replace with endsWith & cache.tryGet

* Update lib/routes/gov/moa/moa.ts

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

* Update lib/routes/gov/moa/moa.ts

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

* Update lib/routes/gov/moa/moa.ts

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

* fix: live news broadcast page & govpublic channel

* fix: correct spelling mistakes

---------
2024-04-08 03:18:43 +08:00
DIYgod 79fcce2729 feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +08:00
Tony 0893debb07 style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
DIYgod 50d194ef3d Merge remote-tracking branch 'origin/master' into feature/ofetch 2024-03-31 23:37:37 +08:00
LMark 528b9c357a fix(route): 中华人民共和国交通运输部 (#15002) 2024-03-29 03:31:37 +08:00
DIYgod d190d9d700 test: ofetch got 2024-03-26 00:33:36 +08:00
zhangxh1023 c14fb79afd fix(route): fix redundant '/' in stats.gov.cn (#14806)
* fix: remove redundant '/' in currentUrl

* docs: fix

---------
2024-03-19 14:47:01 +08:00
MajexH 01a16fd04a fix(route): Fix gov/chongqing/sydwgkzp error (#14827)
* feat(route): 更新重庆事业单位考试通知

* docs: fix docs

---------
2024-03-19 13:16:10 +08:00
DIYgod 5f9d8d994e fix: route titles 2024-03-18 22:43:32 +08:00
Tony d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
Rongrong c65e031a54 fix(route/*): previously forgotten migrations (#14778)
Signed-off-by: Rongrong <i@rong.moe>
2024-03-14 00:49:02 +08:00
DIYgod d83c85a349 feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 33e2f17055 fix: wrong categories 2024-03-09 15:08:34 +08:00
DIYgod 76e7e8296b fix: add routes 2024-03-09 03:24:53 +08:00
DIYgod 45f9ea21fb feat: add routes 2024-03-09 03:06:53 +08:00
DIYgod f8b141ee6e feat: add namespace.ts 2024-03-09 01:53:22 +08:00
DIYgod 44c9853541 feat: replace require with import 7/n 2024-03-07 01:17:21 +08:00
DIYgod e42ff57cb4 feat: replace require with import 5/n 2024-03-07 00:39:42 +08:00
DIYgod 34d889743b feat: replace require with import 4/n 2024-03-07 00:15:48 +08:00
DIYgod 156b58d780 feat: replace require with import 1/n 2024-03-06 23:39:15 +08:00
Yufan You 130b11224e chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +08:00
Yufan You c039164007 fix: route syntax for hono (#14638)
* fix: use :param{.+} instead of :param+ for hono

* fix: use two separate routes to simulate :param* in hono

It seems that hono does not support this route syntax. We can simulate
it via two separate routes.

See https://github.com/orgs/honojs/discussions/1536

* fix: use {} instead of () for regex in hono

* fix: revert changes to lib/router.js as it's still using koa router

* Revert "fix: use two separate routes to simulate :param* in hono"

This reverts commit b00a0a74a025939d0a59c3f8f7b3b7038c13f715.

* fix: use :param{.+}? to simulate :param*

* feat: add hint about trailing slash in error message
2024-03-05 21:02:41 +08:00
DIYgod d93a301d97 feat: build-radar.ts 2024-03-04 01:52:04 +08:00
DIYgod 2c7d7f9205 feat: build-maintainer.ts 2024-03-04 01:38:38 +08:00
DIYgod a10bafb263 fix: __dirname 2024-03-04 00:46:26 +08:00
DIYgod 8065ededf5 feat: rename routes .js to .ts 2024-03-04 00:35:37 +08:00
DIYgod df57bb5d50 feat: esm standard for routes 2024-03-02 03:25:26 +08:00
DIYgod 6f57c02538 feat: rename routes dir - 2/2 2024-03-01 01:24:49 +08:00
DIYgod 131c7d4b79 feat: remove utils/parse-date and utils/date 2024-02-25 01:25:55 +08:00
Tony 6d901cb7dc style(eslint): add eslint-unicorn (#14257)
* style: add eslint-unicorn

* style: fix unicorn/no-useless-spread

* style: fix unicorn/no-useless-promise-resolve-reject

* style: fix unicorn/no-for-loop

* fix: codeql bad HTML filtering regexp

* fix: codeql incomplete replace

* fix: unicorn/no-abusive-eslint-disable

* style: fix unicorn/no-new-array

* style: fix unicorn/no-typeof-undefined

* style: fix unicorn/no-zero-fractions

* style: fix unicorn/no-empty-file

* style: fix unicorn/prefer-date-now

* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js

* style: fix unicorn/prefer-array-find

* style: fix unicorn/prefer-array-flat

* style: fix unicorn/prefer-array-flat-map

* style: fix unicorn/prefer-at

* style: fix unicorn/prefer-string-starts-ends-with

* style: fix unicorn/prefer-includes

* fix: codeql URL substring sanitization

* style: fix unicorn/prefer-optional-catch-binding

* style: fix unicorn/catch-error-name

* style: fix unicorn/escape-case

* style: fix unicorn/prefer-native-coercion-functions

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/require-array-join-separator

* style: fix unicorn/prefer-math-trunc

* style: fix unicorn/prefer-negative-index

* style: fix unicorn/prefer-dom-node-dataset

* style: fix unicorn/prefer-dom-node-text-content

* style: fix unicorn/prefer-query-selector

* style: fix unicorn/no-array-for-each

* style: fix unicorn/no-negated-condition

* style: fix unicorn/prefer-add-event-listener

* style: fix unicorn/import-style

* style: fix prefer-regex-literals

* style: disable unicorn/no-useless-switch-case

* style: disable unicorn/text-encoding-identifier-case

* style: fix unicorn/prefer-set-has

* style: fix unicorn/prefer-spread

* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js

* style: fix unicorn/no-useless-undefined

* style: fix unicorn/no-array-push-push

* style: fix unicorn/no-useless-undefined again

* style: fix unicorn/no-lonely-if

* style: fix unicorn/prefer-reflect-apply

* style: fix unicorn/switch-case-braces

* style: fix unicorn/prefer-switch

* style: fix unicorn/prefer-array-some

* fix: deepscan UNUSED_VAR_ASSIGN

* style: fix unicorn/prefer-ternary

* fix: follow-up of unicorn/prefer-ternary

* revert: auto fix of unicorn/prefer-string-slice for substring()

* style: disable unicorn/prefer-string-slice

fix: auto fix slice over deprecated substr

* style: fix unicorn/throw-new-error

* style: fix unicorn/filename-case

* test: fix dateParser renaming

* style: fix unicorn/better-regex

* style: fix unicorn/prefer-string-replace-all

* fix(deps): add sanitize-html

* style: fix no-prototype-builtins

* style: fix unicorn/consistent-destructuring

* style: fix unicorn/consistent-function-scoping

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/prefer-logical-operator-over-ternary

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

* style: add prefer-object-has-own

* style: warn unicorn/no-empty-file

* style: fix unicorn/prefer-number-properties

* style: fix no-useless-undefined again

* style: fix unicorn/numeric-separators-style

* style: disable unicorn/no-array-callback-reference

false postive with cheerio
2024-01-18 20:43:40 +08:00
Ethan Shen 7a94c42e94 feat(route): add 苏州市发展和改革委员会 (#14214)
* feat(route): add 苏州市发展和改革委员会

* docs: remove duplicated heading

* refactor: migrate to v2

* fix: suzhou docs

* fix: news

---------
2024-01-15 01:25:20 +08:00
Ethan Shen b081d984a1 feat(route): add 中华人民共和国国家发展和改革委员会发展改革工作 (#14088) 2023-12-21 01:51:53 +08:00
Ethan Shen bdc4b2bfbf feat(route): add 中华人民共和国农业农村部数据 (#13828) 2023-11-20 20:18:50 +08:00
DIYgod 7b65ba69bb feat: add docusaurus website (#13039) 2023-08-15 03:12:12 +01:00
Zhengyi d169b9c37f fix(route): 国家税务总局 - 最新文件 (#11960) (#12685)
* fix(route): 国家税务总局 - 最新文件 (#11960)

* refactor(route): use WHATWG URL API for chinatax
2023-06-21 17:46:15 +08:00
Tony 5b6d7cb524 style(eslint): add eslint-plugin-n (#12393) 2023-04-27 05:16:11 +08:00
drgnchan 2e56f7ad60 fix: 中国政府网-新闻要闻,中国政府网-部门政务 (#12219)
* fix: 修复中国政府网-新闻要闻的请求地址

* fix: 修复中国政府网-部门政务的css规则

* refactor: migrate to v2

---------
2023-04-03 00:40:17 +08:00
zxx-457 10cf5a2468 feat(route): add 国务院政策文件库 (#11301)
* feat(route): add 国务院政策文件库

* fix wrong author

* typo

* refactor: migrate to v2
2022-11-22 01:53:40 +08:00
Tony 58aee4c315 fix(route): jseea (#11075)
* fix(route): jseea

* fix: docs anchor
2022-10-13 20:07:17 +08:00
Bang-Bo 4271262854 fix(route): 广东省深圳市人民政府 - 通知公告 (#10910)
* fix(route): 广东省深圳市人民政府 - 通知公告

页面改版导致内容和时间异常

* chore: use parseDate

* refactor: migrate to v2
2022-09-27 04:04:43 +08:00
Tony bec81248f0 fix(route): customs (#9879) 2022-06-03 00:08:39 +08:00
程序员老马andTonyRL 159da9059e fix(route): 教育部路由新增教育要闻分类,修复部分文章标题取值;优化雪球路由,对于讨论帖直接获取完整内容 (#9556)
* 雪球的讨论帖可以直接从text字段中取到完整内容,长文帖只有description字段有值,获取逻辑不变

* 教育部路由增加“教育要闻”栏目类型获取,同时修复教育部文章title获取不到的问题

* 补充教育部路由增加教育要闻栏目类型的文档

* refactor: migrate to v2

* fix: legacy url.resolve

* 修复雪球返回完整讨论帖时遗漏了转发内容的问题

* 移除重复的key

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-04-23 02:21:38 +08:00
Tony c7cb516321 fix(route): headers in got usage (#9363) 2022-03-22 23:19:20 +08:00
Ethan Shen d84ab79163 feat(route): add 中华人民共和国外交部外交动态 (#9348)
* feat(route): add 中华人民共和国外交部外交动态

* fix: wrong pubDate
2022-03-22 04:20:12 +08:00