Commit Graph

86 Commits

Author SHA1 Message Date
DIYgod
fe320c1153 feat: lazy load for production 2024-03-09 01:31:42 +08:00
DIYgod
6902129eb0 feat: new build script 2024-03-08 23:31:50 +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
b98c99928f fix: test error 2024-03-03 22:21:24 +08:00
DIYgod
1ba7bc25bb fix: test error 2024-03-03 19:07:40 +08:00
DIYgod
f0e09ee9e0 chore: rollback got 2024-03-02 02:20:43 +08:00
DIYgod
d88620c39c feat: update esm dependencies 2024-03-01 22:58:04 +08:00
DIYgod
398be0f592 feat: rename routes dir - 1/2 2024-03-01 01:21:28 +08:00
DIYgod
14607e2c8d fix: build-radar path 2024-02-28 23:54:52 +08:00
DIYgod
8536931e9d chore: fix npm start 2024-02-26 00:52:44 +08:00
DIYgod
bdb078c27d feat: remove lib/radar-rules.js 2024-02-21 20:32:09 +08:00
DIYgod
ad7292230b feat: remove lib/radar.js 2024-02-21 20:19:27 +08:00
piglei
dc4eb8d02b chore: update the "routes" example in the pull request template to make it less confusing (#14415)
* Fix: a typo in the pull request template

* Enhance: when parsing routes from PR body, remove all comments.
2024-02-07 15:16:00 +08:00
Tony
87239ac8c8 chore: bump docs scraper js_wait 2024-02-05 20:28:58 +08:00
Tony
839d36ef76 chore: decrease js_wait in docs.rsshub.app.json 2024-01-24 02:36:21 +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
DIYgod
8558382d95 docs: add twitter token generation script 2023-12-01 23:40:44 +08:00
TonyRL
f9cda41946 docs: format docs using markdownlint-cli2 2023-11-30 18:07:46 +00:00
github-actions[bot]
5adf76f16d style: auto format 2023-11-13 14:10:16 +00:00
Tony
fec8aca217 chore: tweak docs-scraper conf for docusaurus v3
no sure why it requires `js_render` since the rendered HTML are mostly the same.

reference:
docusaurus v2
https://github.com/DIYgod/RSSHub/actions/runs/6721109567/job/18266104251#step:5:103
docusaurus v3
https://github.com/DIYgod/RSSHub/actions/runs/6733176979/job/18301311550#step:5:103
2023-11-13 22:08:41 +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
Tony
475372751f chore: revise github actions (#13612)
* chore: rename actions

* chore: fix path maintainer build

* feat: prepare script for node20

* chore: fix semgrep cant access secret
2023-10-23 03:44:46 +08:00
Tony
8e8bed5981 chore: meilisearch index swap
prevent downtime after updating the docs
2023-09-01 16:29:07 +00:00
Tony
37574030e7 chore: change noroute label name 2023-08-28 20:02:12 +08:00
TonyRL
a15383005e chore: update meilisearch config
`p`: general content
`.params`: route params
`table`: route params table
`code`: env
2023-08-22 13:30:45 +00:00
Tony
06f43cb664 docs: add back meilisearch (#13041)
* docs: add back meilisearch

* fix: remove unused variable

* Revert "fix: remove unused variable"

This reverts commit 52bec57a1e.
What is React
2023-08-16 06:22:52 +08:00
TonyRL
6e7c359429 docs: meilisearch index table 2023-07-10 15:00:39 +00:00
TonyRL
9b31d57095 chore: fix install from git with production flag
reference:
https://github.com/typicode/husky/issues/914#issuecomment-1046274220

https://github.com/typicode/husky/issues/920#issuecomment-1202503697
fix: bc162849da (commitcomment-117186018)
fix: #12686
2023-06-21 12:17:59 +00:00
TonyRL
268433f7cd ci(docker): fix test-docker script 2023-06-16 17:45:19 +00:00
TonyRL
bc162849da chore: disable husky in CI with a custom script 2023-05-08 03:05:15 +00:00
TonyRL
8458e90fcd chore: deny test route with path-to-regex syntax 2023-04-08 18:12:15 +00:00
TonyRL
1dd0d860f0 chore: fix context.state 2023-04-05 20:03:56 +00:00
TonyRL
64cb56827e chore: reopen and test pr/issue after edited 2023-04-05 14:05:00 +00:00
Tony
b6f06abb55 chore: strict radar and maintainer build (#12214)
* chore: strict radar and maintainer build

* test(coverage): exclude build script
2023-04-01 05:53:40 +08:00
Rongrong
cf9c7baf6e ci(test-route): fix regex (#11335)
Signed-off-by: Rongrong <i@rong.moe>

Signed-off-by: Rongrong <i@rong.moe>
2022-11-28 02:12:29 +08:00
Tony
6de48c433f docs: push custom settings before scrape 2022-09-08 16:07:51 +00:00
dependabot[bot]
ff57adb089 chore(deps-dev): bump @vercel/nft from 0.21.0 to 0.22.1 (#10675)
* chore(deps-dev): bump @vercel/nft from 0.21.0 to 0.22.1

Bumps [@vercel/nft](https://github.com/vercel/nft) from 0.21.0 to 0.22.1.
- [Release notes](https://github.com/vercel/nft/releases)
- [Commits](https://github.com/vercel/nft/compare/0.21.0...0.22.1)

---
updated-dependencies:
- dependency-name: "@vercel/nft"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* Revert "docs: vercel workaround (#10665)"

This reverts commit f57e6230ac.

* fix: scrape settings

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 01:54:37 +08:00
dependabot[bot]
a768e4690f chore(deps): bump puppeteer from 16.2.0 to 17.0.0 (#10651)
* chore(deps): bump puppeteer from 16.2.0 to 17.0.0

Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 16.2.0 to 17.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v16.2.0...v17.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* chore: misc fix

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 02:24:18 +08:00
Tony
fee049146e chore: update meilisearch settings (#10659)
* chore: update meilisearch settings

* fix: docker build
2022-08-31 02:29:51 +08:00
Tony
f806d0c145 docs: replace algolia with meilisearch 2022-08-27 15:07:44 +00:00
github-actions[bot]
f12289fa60 style: auto format 2022-05-27 18:53:49 +00:00
Tony
3ff9464954 chore: fix auto label 2022-05-28 02:51:42 +08:00
Tony
dd31298533 chore: fix auto label 2022-05-27 10:39:56 +00:00
Tony
5dd5317400 chore(workflow): test route on demand (#9831)
* chore: on demand test

* style: lint
2022-05-27 04:09:00 +08:00
MisLink
739cf602f3 fix(workflow): Fix regexp error when commit via vscode (#9805)
Signed-off-by: MisLink <gjq.uoiai@outlook.com>
2022-05-23 03:37:19 +08:00
Tony
11ef5c4dba chore: rename now to vercel (#9791) 2022-05-20 19:27:08 +08:00
Rongrong
eeb37848cb ci(comment-on-issue): bugfix, polish phrases (#9773) [skip ci] 2022-05-16 16:06:17 -07:00
NeverBehave
768a51f266 chore(workflow): close issue if not found, add v1/v2 route tag 2022-05-16 02:58:54 -07:00
NeverBehave
d080c6c59e fix(workflow): eslint and NOROUTE [skip ci] 2022-05-15 02:59:40 -07:00