Commit Graph

25 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
DIYgod 279584775d
feat: update github radars 2023-12-18 21:33:36 +08:00
Tony 9ef53d597d
fix(route): github topic description (#13566) 2023-10-19 22:06:21 +08:00
James Chen-Smith cc34dfb9fb
feat(route): add GitHub Pulse (#13247)
* feat(route): add GitHub Pulse

* chore: apply suggested changes

---------

Co-authored-by: James Chen-Smith <james@chen-smith.net>
2023-09-12 00:28:55 +08:00
DIYgod 7b65ba69bb
feat: add docusaurus website (#13039) 2023-08-15 03:12:12 +01:00
github-actions[bot] 4a8431bc19 style: auto format 2023-07-28 20:27:33 +00:00
Arne Keller 6f13fc4cc2
feat(route): add github all issue/pull comments (#12899) 2023-07-29 04:25:29 +08:00
Tony 61a303a1de
feat(route): gist commits (#12470) 2023-05-07 20:51:53 -06:00
Tony 642ac174e9
fix(route): github trending (#12320) 2023-04-15 23:29:22 +08:00
Zhiyuan Zheng 14199e1a31
feat(route): Add GitHub Notification (#12197)
* Add GitHub notification

* add docs and radar.

* add parseDate.

* Apply suggestions from code review

* Update router.js

* Update maintainer.js

---------
2023-03-30 21:07:34 +08:00
Tony fdb1e21508
fix(route): github comments on ghost (#12065) 2023-03-08 22:28:49 +08:00
Tony c08afbfc8d
feat(route): github wiki history (#11700) 2023-01-27 00:29:02 +08:00
James Chen-Smith e1fd9ca1e3
fix(route): use GraphQL query in GitHub trending (#11188)
* fix(route): use GraphQL query in GitHub trending

Uses GraphQL to get desired repository data instead of attempting to
query it from the repository page.

* docs: add `selfhost` attribute to GitHub trending
2022-11-01 22:45:51 +07:00
erriy 0a92a54ca6
fix(route): github topic (#10700) 2022-09-05 20:05:06 +08:00
Tony 8e8ed3d979
fix(route): github pulls labels (#10682)
fix(route): github pulls labels
2022-09-02 13:32:02 -09:00
Tony 108c784a11
fix(route): github cross-referenced event cache key (#10516) 2022-08-18 00:37:46 +08:00
Tony d09b6f75ce
fix(route): error if issue description is null 2022-08-15 22:09:17 +08:00
James Chen-Smith cc562aa1ad
fix(route): add Open Graph image to GitHub trending (#10189)
* fix(route): add Open Graph image to GitHub trending

Adds Open Graph image for each repository to the GitHub trending feed.

* chore(route): address pull request feedback

- Refactors page request call to make it more terse
- Adds art template for trending description
- Updates maintainers for '/trending/:since/:language?/:spoken_language?'
2022-07-12 21:47:06 +08:00
Tony edb6e5deec
fix(route): add debug json output and cookie support (#9539)
* fix(route): add debug json output and cookie support

* Update lib/v2/qbittorrent/news.js
2022-04-14 14:19:33 -09:00
Tony 5ee16451dc
fix(route): github recent issues (#9473) 2022-04-05 23:38:18 +08:00
Tony fe775f5198
fix(route): github comments use api (#9358)
fix(route): github comments use api
2022-03-21 17:17:59 +00:00
Tony 96d392fec9
fix(route): github pull requests (#9341)
* fix(route): github pull

* fix: typo
2022-03-19 03:14:53 +08:00
Fatpandac 3f04a89e48
fix(route): change github/comments title format to '[author] commented' (#9006) 2022-02-06 19:18:26 +08:00
Fatpandac 03481653fa
fix(route): fix GitHub route parameter conflict at trending.js and refactor to V2 (#8923)
* Fix(route): fix route parameter conflict at trending.js and change to V2

* Fix(route): modify the judgment condition of language parameter

* Fix(docs): Update docs/programming.md

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

* Fix(docs): Update docs/en/programming.md

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

* fix(docs/route): add author and sort routes

* Fix(route): Update docs/en/programming.md

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

* Fix(route): sort routes

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-02-03 00:37:01 +08:00
Tony c11bb88f6b
feat(route): add github issues/pull comments (#8128) 2022-01-22 19:59:54 +00:00