Commit Graph

63 Commits

Author SHA1 Message Date
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
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
7b65ba69bb feat: add docusaurus website (#13039) 2023-08-15 03:12:12 +01:00
Tony
ac90895a9f build: fix vercel build (#13006) 2023-08-12 15:54:49 +08:00
Tony
79eae1eb45 refactor: replace re2 with re2-wasm (#12998)
* refactor: replace re2 with re2-wasm

* refactor: remove migrated routes

* ci: remove foresight

https://github.com/runforesight
Foresight is no longer in service

* fix: add back removed wasm

chore: bump base OS image
2023-08-12 00:34:28 +08:00
DIYgod
c910c4d287 fix: brief parameter xss vulnerability 2023-02-28 10:52:32 +00:00
Tony
14c1647724 fix(parameter): tighter condition for fulltext mode (#11750) 2023-02-01 19:38:01 +08:00
DIYgod
b36dd844dd feat: add content_html for reply extra data 2023-02-01 09:42:30 +00:00
DIYgod
52678c9eef feat: generate quote content_html, telegram channel repost extra data 2023-01-30 22:00:07 +00: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
d553430312 fix(core): fulltext mode title (#10788) 2022-09-14 19:40:53 +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
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
e4478a366c feat(core): regex engine config (#10013) 2022-06-22 12:25:30 -07:00
DIYgod
5c41774414 fix: use re2, thank @Rongronggg9 2022-06-21 16:56:06 +01: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
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
Tony
530b0a4dd3 fix(core): fix fulltext (#8951)
* fix(core): fix fulltext

* fix(core): fix fulltext
2022-02-02 23:06:36 +08:00
Tony
eb2037c5d1 fix(middleware): simplecc null description (#8053) 2022-01-22 19:59:10 +00:00
myl7
51a7833bd0 fix: remove entity decoding for item html description (#8700) 2022-01-22 18:49:32 +00:00
Toby Tso
e24906fdeb feat(middleware): brief parameter (#8074)
Co-authored-by: SettingDust <settingdust@gmail.com>
Co-authored-by: ギャラ <me@gyara.moe>
2021-09-09 01:37:41 -07:00
Sukka
31720bbb1b perf: lazy require dependencies (#8025) 2021-08-20 14:05:57 +08:00
Sukka
6e3b58ed1d refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
fengkx
ea2e2abb91 refactor(middleware): replace opencc with simplecc-wasm (#7111)
* refactor: replace opencc with simplecc-wasm

* docs: simplecc-wasm docs change

* new yarn.lock
2021-03-14 01:21:46 -05:00
oppilate
dfdb9630b7 chore: optimize performance (replace he with entities) (#6497) 2020-12-22 18:38:10 +00:00
Henry
fdefa01986 fix: sci-hub mirror in parameter 2020-12-01 11:25:38 +00:00
Ethan Shen
683c38faf4 fix: sci-hub mirror address (#6304) 2020-12-01 11:18:34 +00:00
Florian Markusse
98c53556ad refactor: update isFilter in parameter.js(#6113)
Changed assignment of "isFilter" twice due to redundant AND-operation with itself as the first operand since its value is true at the point of assignment.
2020-11-06 21:44:09 +00:00
DIYgod
752ee212a9 feat: support opencc 2020-09-25 01:30:52 +08:00
DIYgod
923b07eec4 test: filter and filterout combination cases 2020-06-08 17:59:04 +08:00
ruleroller
8881b5953d fix: 多个filter之间修改为与逻辑 (#4885) 2020-06-08 17:33:11 +08:00
Henry Wang
19fa95d553 feat: 期刊路由优化,增加 scihub 模式 (#4094) 2020-03-01 12:24:31 +08:00
pnlng
4671720f4c feat: add filter_case_sensitive url parameter (#3910) 2020-02-09 18:51:58 +08:00
DIYgod
940bbbdff8 feat: item suffix 2019-12-09 19:12:59 +08:00
DIYgod
addd22c113 feat(core): handle link and pubDate parameter 2019-10-22 18:02:47 +08:00
Cloud
90a87b1723 refactor: optimize parameter (#3200) 2019-10-08 16:48:46 +08:00
DIYgod
f7d9688a62 feat: 100 times cache time for wrong path 2019-09-20 15:24:49 +08:00
DIYgod
93274bbe4f Merge commit 'c859291ca3812d99e4b84201733e0447f4f33f26' 2019-09-04 18:24:36 +08:00
DIYgod
24cab914d8 feat: error page 2019-09-04 16:00:00 +08:00
Cloud
c859291ca3 fix: if fulltext parser failed, return default description and… (#2992) 2019-09-04 11:41:05 +08:00
Cloud
3c2200cd4b fix: fuck some unstandard url (#2961) 2019-08-30 14:37:25 +08:00
DIYgod
4020c36c19 fix: check null base url 2019-08-28 16:14:50 +08:00
DIYgod
b2355436cc fix: url base 2019-08-28 15:50:05 +08:00
DIYgod
84fdea3d1e feat: use item link as absolute link base 2019-08-28 15:12:17 +08:00
DIYgod
29f588e6a0 feat: handle description in parameter middleware 2019-08-28 12:06:50 +08:00