Commit Graph

109 Commits

Author SHA1 Message Date
Tony 3c8ccd948e
perf(core): replace md5 cache key with xxhash64 (#13974)
* perf(core): replace md5 cache key with xxhash64

* test: add test case for cache TTL key
2023-12-07 00:58:39 +08:00
Tony 7da162041f
fix(core): duplicated path if the error is thrown from parameter (#13967)
* fix(core): double namespace if the error is thrown from parameter

* test: fix test case
2023-12-06 08:00:00 +08:00
Tony 7dee6a82d4
fix(core): v2 route path should keep mounted in stats if error throws (#13965) 2023-12-06 02:11:36 +08:00
zzturn e594309e7e
feat(parameter): Add summary by ChatGPT (#13611)
* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* style: camelCase

---------
2023-11-06 22:36:24 +08:00
Henry Wang d6056e2dbc
feat!: allowlist & denylist (#13681)
* feat!: allowlist & denylist

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* chore: revert

---------
2023-11-03 21:21:17 +08:00
Summer⛱ 90026020a8
fix(parameter): adjust to filter before limit. (#13682)
* fix(parameter): adjust to filter before limit.

* fix(parameter): add test.

* fix
2023-11-03 13:46:04 +08:00
JimenezLi 2c8f463630
fix(core): string-type categories only (#13590) 2023-10-24 21:35:42 +08:00
Tony 58a052ea4c
test: double httperror timeout 2023-09-07 18:47:51 +00:00
Tony 8806b7a1b9
test: extend timeout for /test/httperror 2023-09-06 11:43:20 +00:00
Tony c0c6f7caff
feat(parameter): use re2js instead (#13072)
* feat(parameter): use re2js instead

* fix: add back comment
2023-08-19 00:53:54 +08:00
DIYgod 7856617044
feat: increase the timeout time for the fulltext_mode test 2023-07-23 17:02:40 +01:00
Tony c250039b1e
test: relax fulltest parser timeout (#12659) 2023-06-12 19:20:58 +08:00
Bryan 7eb6400f6c
feat: add .debug.html (#12476)
* feat: add .debug.html

* Update lib/middleware/template.js

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

* use regex to extract index

* add tests

* add docs

---------
2023-05-09 17:26:24 +08:00
Tony 589ddb3a43
refactor(eslint): add back no-return-await (#11877)
* chore: add back no-return-await

* chore: fix action warning

* chore: fix all no-return-await
2023-02-16 04:30:05 +08:00
零小白 728da7f154
fix: author is not iterable (#11555)
Co-authored-by: xianjiantao <xianjiantao@bytedance.com>
2023-01-04 21:44:23 +08:00
Tony d2ab8ab3c0
feat(core): json feed (#11494)
* feat(core): json feed

* docs: json feed description

* fix: remove extra comma if no elements exist after author

* test: json feed test

* feat: generate json feed without art-template

* test: fix coverage

* style: 4 spaces json

* docs: fix parameter
2023-01-02 21:35:36 +08:00
Tony 0513566d04
fix(core): fix category filtering (#11451) 2022-12-14 23:30:18 +08:00
Tony 30975dd20b
chore(deps): replace `@postlight/mercury-parser` with `@postlight/parser` (#10862) 2022-09-23 03:25:56 +08:00
Tony 878266c535
feat(core): true ua (#10761)
* feat(core): true ua

* test: skip mercury parser temporary
2022-09-12 01:13:38 +08:00
Charlie Jiang 655b899715
feat(core): 增加 `sorted` 参数来控制结果排序 (#10744)
* feat: 增加 `sorted` 参数来控制结果排序

* feat: 添加 `sorted` 参数的测试

重用了 `sort` 的代码和数据:是不是可以考虑将两者结合?
2022-09-09 00:11:18 +08:00
Tony 4877301f23
fix(core): throw URL cache key (#10497) 2022-08-16 21:38:05 +08:00
Tony 03117f4c50
feat(core): filter category (#10212) 2022-07-14 00:42:38 +08:00
NeverBehave dc64debaf7
feat(core): regex engine naming and test suit (#10014)
* feat(core): regex engine config

* fix(docs): config naming

* filter-engine test naming
2022-06-23 04:38:52 +08:00
NeverBehave 5db837d6dc
feat(core): anti-hotlink experimental parameters (#9997)
Co-authored-by: Rongrong <i@rong.moe>
2022-06-20 18:41:16 -07:00
Rongrong 6a0d44348e
fix(core/parameter): missing some tags handling (#9983)
Signed-off-by: Rongrong <i@rong.moe>
2022-06-18 06:45:03 -09:00
Rongrong e1ee28267e
fix(core): RequestInProgressError cache age (#9850)
* fix(core): RequestInProgressError cache age

Signed-off-by: Rongrong <i@rong.moe>

* fix: ci test

Signed-off-by: Rongrong <i@rong.moe>
2022-05-30 17:30:41 +08:00
Rongrong 2c4eab5e31
fix(core/parameter): absurd wrong path cache time (#9796)
Signed-off-by: Rongrong <i@rong.moe>
2022-05-21 21:44:45 +08:00
Rongrong a5d74e521c
feat(core/middleware/anti-hotlink): route matching (#9681)
* feat(core/middleware/anti-hotlink): route matching

Signed-off-by: Rongrong <i@rong.moe>

* fix(test): coverage

Signed-off-by: Rongrong <i@rong.moe>

* docs(install): fix mistaken config key

Signed-off-by: Rongrong <i@rong.moe>
2022-05-04 03:29:23 +08:00
Rongrong 616ad78c88
fix(core/utils/anti-hotlink): invalid HTML output (#9669)
Signed-off-by: Rongrong <i@rong.moe>
2022-05-01 04:14:07 +08:00
Rongrong 5b35471e39
fix(core): offending RFC4287 (#9441)
* fix(core): offending RFC4287

should not leave `<updated>` blank when `<published>` is not blank
these two fields MUST conform to the "date-time" production in RFC3339

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* test(common-utils): complete tests

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* test(template): restrict expected value of `pubDate`

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-02 17:44:45 +08:00
Rongrong 3364b7eb1d
fix(route): migrate invalid `enclosure_length` usages to `itunes_duration` (#9291)
Close #9287

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-10 20:54:29 +08:00
DIYgod ba09be474d
test: fix rss-parser update error 2021-11-28 00:43:59 +00:00
NeverBehave 0792f7ba25
feat(core): first attempt to init script standard (#8224)
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00
Sukka 6e3b58ed1d
refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
DIYgod 5298f845f2
feat: support ua in blacklist and whitelist 2021-03-07 10:06:24 +08:00
DIYgod 177c36cae7
feat: sentry route timeout 2021-02-01 20:06:23 +08:00
DIYgod 6506c39239
feat: remove hot ip in debug info 2021-01-21 11:57:16 +08:00
Henry b61c54ea9a
fix: GitHub actions test
3997265a4f
2020-10-02 23:58:21 +01:00
DIYgod 784ba5a725
feat: update debug text 2020-09-29 19:03:26 +08:00
DIYgod 3997265a4f
test: etag 2020-09-29 19:00:24 +08:00
DIYgod ed4725fa48
test: opencc 2020-09-25 01:43:59 +08:00
DIYgod 923b07eec4
test: filter and filterout combination cases 2020-06-08 17:59:04 +08:00
howel52 3e846e6919
fix: only collect errors which route path was matched (#4673) 2020-05-08 11:27:48 +08:00
DIYgod 283468d43a
test: add access-control test cases 2020-05-08 11:26:43 +08:00
DIYgod b7eaf9ad34
test: fix md5 require 2020-05-06 20:15:30 +08:00
Henry Wang 4a46db99f9
feat: use simple access keys for access control (#4643) 2020-05-06 20:14:28 +08:00
NeverBehave cde5d9af45
feat: anti-hotlink for images (#4481) 2020-04-28 10:27:47 +08: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 aea67f7ae0
feat: longer default titleLengthLimit 2020-03-17 18:51:29 +08:00
pnlng 4671720f4c
feat: add filter_case_sensitive url parameter (#3910) 2020-02-09 18:51:58 +08:00