Commit Graph
36 Commits
Author SHA1 Message Date
pseudoyu 2e5c24794b refactor(route/people): use ofetch instead of got 2025-05-06 12:18:59 +08:00
Tony a5e2e295dc refactor: fix all get to toArray (#19000)
* refactor: fix all get

* fix(utils/common-config): charset case compare

* Revert "fix(utils/common-config): charset case compare"

This reverts commit 3c1880f2fad53ad2cafddcee7741390fd46fa3d2.

* fix: nga

* fix: notateslaapp

* fix: ps

* fix: xjtu

* fix: enforce error on restricted syntax for get calls

* fix: eslint

* fix: more eslint
2025-05-04 05:24:53 +08:00
KTachibanaM 02963d1951 feat: fix /people items and description (#18360) 2025-02-15 15:58:48 +08:00
Tony 4fa33716c1 docs: remove indent (#18247)
* docs: remove indent

* docs: remove more indent

* docs: remove h5 indent

* docs: remove h4 indent

* docs: remove details indent
2025-01-31 22:17:58 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
Cieons 487c0469c6 fix(route): people charset decoding (#16734) (#16743) 2024-09-13 23:10:45 +08:00
xxx.Yan 3567498e0a fix(route): people handle diff site encoding. (#16389) 2024-08-07 22:02:35 +08:00
DIYgod 79fcce2729 feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +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
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
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 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
Ethan ShenandDIYgod 2aa347d1a7 fix(route): 人民网 (#8649)
Co-authored-by: DIYgod <diy.d.god@gmail.com>
2022-01-22 20:23:17 +00:00
Sukka d82847f541 style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax
* refactor: prefer Array#map over Array#forEach
* style: prefer arrow callback
* chore(eslint): update rules
* style: auto fix by eslint
2021-08-17 22:23:23 +08:00
Sukka 6e3b58ed1d refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
Ethan Shen 2c8aa2dec7 feat(route): add 中国共产党新闻网 24 小时滚动新闻 (#6931)
* feat: add 中国共产党新闻网 24 小时滚动新闻

* fix typo

* fix typo

* fix router.js

* fix router.js
2021-03-14 01:10:06 -05:00
DIYgod 0e7b14e718 chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
DIYgod d0fb6254ff chore: enable no-console eslint rule 2019-09-20 15:26:58 +08:00
xishuiandgewj 434e1afa42 feat: 增加人民日报环保频道 (#2299)
* 增加人民日报环保频道

* feat: 增加人民网环保频道


Co-authored-by: gewj <gewj@sinoyd.com>
2019-06-04 11:03:38 +08:00
DIYgod a56c0b5a39 refactor: rename axios to got 2019-06-03 18:03:05 +08:00
DIYgod 163a589e20 Merge branch 'master' into feature/got 2019-06-03 17:06:48 +08:00
DIYgod e2badbfa98 chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod a0333fbd7e feat: use contentExpire 2019-05-09 01:23:29 +08:00
DIYgod de32ba0ffe arraybuffer to buffer 2019-04-18 00:09:44 +08:00
Chenyang Shi 0ea5e3c3b0 add 习大大讲话 (#1830)
close #1824
2019-03-27 11:08:39 +08:00
Chenyang Shi e1ac682015 add 人民日报观点 (#1798) 2019-03-22 17:08:29 +08:00