Commit Graph

36 Commits

Author SHA1 Message Date
Tony d1b3e161dc
fix: use sanitize-html (#14312)
* fix: use sanitize-html

* test: add brief test
2024-01-24 02:40:11 +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
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
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
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
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 03117f4c50
feat(core): filter category (#10212) 2022-07-14 00:42:38 +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 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
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
pnlng 4671720f4c
feat: add filter_case_sensitive url parameter (#3910) 2020-02-09 18:51:58 +08:00
junfengP dae512feb9
feat: add route javlibrary (#3797) 2020-02-01 19:46:32 +08:00
DIYgod 2d22563254
test: compatible with github actions 2019-11-25 12:10:39 +08:00
DIYgod addd22c113
feat(core): handle link and pubDate parameter 2019-10-22 18:02:47 +08:00
DIYgod f7d9688a62
feat: 100 times cache time for wrong path 2019-09-20 15:24:49 +08:00
DIYgod 8934686218
test: fix filter_time case 2019-09-19 19:19:01 +08:00
DIYgod cbe13ea05b
test: fix require 2019-09-18 18:03:50 +08:00
DIYgod 24cab914d8
feat: error page 2019-09-04 16:00:00 +08:00
DIYgod 0af16097b3
feat: replace text 2019-09-04 14:28:29 +08:00
DIYgod b2355436cc
fix: url base 2019-08-28 15:50:05 +08:00
DIYgod 29f588e6a0
feat: handle description in parameter middleware 2019-08-28 12:06:50 +08:00
sanmmmm 914034760d feat: 新增自动提取全文输出 (#2738) 2019-08-02 17:22:58 +08:00
DIYgod b9ab52a0d5
feat: wrong path error 2019-06-19 18:52:13 +08:00
DIYgod 56e74742fc
test: got axios options 2019-06-14 17:51:03 +08:00
DIYgod 8937882847
test: allowEmpty 2019-06-14 11:37:04 +08:00
DIYgod dea283d0bd
test: filter_time 2019-06-13 16:10:08 +08:00
DIYgod 76add4785a
test: add empty item test case 2019-06-13 12:01:07 +08:00
DIYgod 0a62389eaa
test: middleware/template 2019-01-31 11:45:00 +08:00
DIYgod 8cec57eaec
test: middleware/parameter 2019-01-29 18:54:30 +08:00