Commit Graph
12 Commits
Author SHA1 Message Date
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
Felix HsuandChenfei Xu e62b65d925 fix(route): Fix bloomberg story when parsing react rendered page and videos missing id (#13082)
* fix minor bugs

* fix page sel

* reformat

* wordaround to fix the deepscan error

* fix bloomberg when dealing with 404 direct link

* fix processVideo in cyclic depend

* remove the toggle

* change into new story api

* reorg the files

* use prop not instead of lodash

* remove useless exports

* use parseVideo in diff files

* refactor to remove deps

* add try/catch for renderer page

* use story api for newsletters

* update features example

* change audio

* add tabularData

* fix bug on bloomberg react page

---------

Co-authored-by: Chenfei Xu <chenfxu@ebay.com>
2023-08-20 19:28:55 +08:00
DIYgod 7b65ba69bb feat: add docusaurus website (#13039) 2023-08-15 03:12:12 +01:00
Felix HsuandChenfei Xu ecab0c0882 fix(route): Fix bloomberg story by using the latest story id api (#13013)
* fix minor bugs

* fix page sel

* reformat

* wordaround to fix the deepscan error

* fix bloomberg when dealing with 404 direct link

* fix processVideo in cyclic depend

* remove the toggle

* change into new story api

* reorg the files

* use prop not instead of lodash

* remove useless exports

* use parseVideo in diff files

* refactor to remove deps

* add try/catch for renderer page

* use story api for newsletters

* update features example

* change audio

* add tabularData

---------

Co-authored-by: Chenfei Xu <chenfxu@ebay.com>
2023-08-14 20:45:35 +08:00
Felix Hsu d8ddc29e43 fix(route): bloomberg: add default handing of news in storymode based on react-renderer (#12878)
* fix minor bugs

* fix page sel

* reformat

* wordaround to fix the deepscan error

* fix bloomberg when dealing with 404 direct link

* fix processVideo in cyclic depend

* remove the toggle
2023-07-28 20:32:39 +08:00
Felix Hsu e555c6101c Fix(route): bloomberg story for newslettes (#12869)
* fix minor bugs

* fix page sel

* reformat

* wordaround to fix the deepscan error
2023-07-25 22:39:27 +08:00
1f640b07d2 fix(route): bloomberg api 404 error (#12834)
* fix bloomberg api 404 error

* fix(route): AP News时区调整 (#12842)

* feat(route): add 爱思想专题 (#12845)

* chore: bring back lint-staged (#12844)

* chore: bring back lint-staged

* fix: gha label

* fix: yml format

* newsletter  ok

* forget to remove debug

* fix(route): qidian chapter (#12850)

* fix(route): qidian chapter

* fix: chapter and forum author

refs:
https://github.com/DIYgod/RSSHub/pull/414
https://github.com/DIYgod/RSSHub/pull/501
https://github.com/DIYgod/RSSHub/pull/732

* fix(route): agefans (#12851)

* feat(route): add V2rayShare (#12843)

* add V2rayShare

* style: auto format

* add V2rayShare

* style: auto format

* Update docs/other.md

* Update lib/v2/v2rayshare/maintainer.js

* Update index.js

* style: auto format

* Update lib/v2/v2rayshare/index.js

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1 (#12852)

* chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1

Bumps [fluxninja/openai-pr-reviewer](https://github.com/fluxninja/openai-pr-reviewer) from 0 to 1.
- [Release notes](https://github.com/fluxninja/openai-pr-reviewer/releases)
- [Commits](https://github.com/fluxninja/openai-pr-reviewer/compare/v0...v1)

---
updated-dependencies:
- dependency-name: fluxninja/openai-pr-reviewer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: don't relabel for `dependabot[bot]`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: twitter keyword

* feat(route): 支持上海市文旅局审批公告 (#12862)

* feat(route): 支持上海市文旅局审批公告

* fix(route): wgj

* fix(route): currentUrl

* fix(route): search params

* feat: increase the timeout time for the fulltext_mode test

* feat: support reverse proxy

* style: auto format

* fix: typo

* test: fix empty request error

* feat: bypass reverse proxy for requests with cookies

* test: fix empty request error and remove node 16 support

* fix: reverse proxy fails for some requests

* feat: exclude some requests for reverse proxy

* feat: expand the scope of retries and set proxy strategy

* fix: logger.debug

* fix(route/twitter): mixed media incomplete (#12863)

* fix(route/twitter): media t.co links not purged (#12864)

* Add fix for bloomberg newsletter

* Fix deepscan error

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Andvari <31068367+dzx-dzx@users.noreply.github.com>
Co-authored-by: Ethan Shen <42264778+nczitzk@users.noreply.github.com>
Co-authored-by: 钛白 <86600901+77taibai@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: DIYgod <i@diygod.me>
Co-authored-by: GideonSenku <39037656+GideonSenku@users.noreply.github.com>
Co-authored-by: Rongrong <i@rong.moe>
Co-authored-by: Chenfei Xu <chenfxu@ebay.com>
2023-07-24 22:44:56 +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
Felix Hsu 54aea54dd6 fix(route): bloomberg videopage parse error (#11688) 2023-01-25 02:38:21 -08:00
Joshua Peek 44305f529b fix(route): bloomberg author (#11619)
* Switch bloomberg author feed to html scraper

* Safely resolve relative href

* Prefer WHATWG URL API

* Remove list cache

* Cache article list

* Avoid caching captcha

* Add back rss parser as fallback

* Load author news list from api

* Fallback to rss

* docs: add docs for new params
2023-01-19 22:15:12 +08:00
Joshua Peek b0253d09d8 feat(route): bloomberg by author (#11615)
* Extract asyncPoolAll to utils

* Add bloomberg news by author route

* docs: add docs and radar
2023-01-13 20:25:28 +08:00
Felix Hsu 0397ca9065 feat(route): Add bloomberg rss (#11131)
* bloomberg initial ok

* add lede

* add lede

* video ok

* video fix

* video fix

* fix some

* fix some

* change docs

* anticrawler

* fix deepscan

* change async to 1

* fix null checking

* fix audio

* fix 404 api

* bloomberg fix fallback html

* Delete description.art

Added by mistake

* return fallback item

* comply with reviews

* change to some func

* fix radar

* fix video poster

* merge into oneline

* fix no-await-in-loop with for await ... of loop

* add PX3 ok

* fix deepscan error

* fix features signle page

* fix deepscan

* docs: fix line break
2022-11-01 22:13:44 +08:00