Commit Graph

36 Commits

Author SHA1 Message Date
Nya Candy cce3bdb4fe
fix(route): 使用 ofetch() 替换一些 got().json() (#15780)
* chore: some massive adoption from got().json() to ofetch()

Not sure if everything works fine (some may still have problems other than fakeGot & json issues), but this might have some help.

BTW maybe we can start "The Migration" project to update some outdated routes to new format 🤔

* fix: some other issues

* fix: query

* fix: luogu user blog & modb topic

* fix: modb topic response

* fix: query options in freebuf

---------
2024-06-01 01:10:15 +08:00
Tony 0893debb07
style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
Tony d585a87daf
fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
DIYgod d83c85a349
feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 33e2f17055
fix: wrong categories 2024-03-09 15:08:34 +08:00
DIYgod 76e7e8296b
fix: add routes 2024-03-09 03:24:53 +08:00
DIYgod 45f9ea21fb
feat: add routes 2024-03-09 03:06:53 +08:00
DIYgod f8b141ee6e
feat: add namespace.ts 2024-03-09 01:53:22 +08:00
DIYgod 44c9853541
feat: replace require with import 7/n 2024-03-07 01:17:21 +08:00
Yufan You 130b11224e
chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +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 a10bafb263
fix: __dirname 2024-03-04 00:46:26 +08:00
DIYgod 8065ededf5
feat: rename routes .js to .ts 2024-03-04 00:35:37 +08:00
DIYgod df57bb5d50
feat: esm standard for routes 2024-03-02 03:25:26 +08:00
DIYgod 6f57c02538
feat: rename routes dir - 2/2 2024-03-01 01:24:49 +08:00
DIYgod f1a9223aac
feat: remove notOperational routes - programming 2023-12-20 00:01:03 +08:00
Tony 03ff28996d feat(radar): leetcode radar 2022-08-05 12:49:21 +00:00
Daniel Li (李丹阳) d77a039f05
style(eslint): add no-implicit-coercion rule (#8175)
* refactor: add no-implicit-coercion rule for ESLint

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* fix: errors from deepscan

* Update docs/en/joinus/quick-start.md

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update docs/joinus/quick-start.md

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/av01/tag.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/gov/taiwan/mnd.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* Update lib/routes/ps/product.js

Co-authored-by: Sukka <isukkaw@gmail.com>

* refactor: minify html string

Co-authored-by: Sukka <isukkaw@gmail.com>
2021-09-15 21:22:11 +08:00
Sukka d82847f541
style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax
* refactor: prefer Array#map over Array#forEach
* style: prefer arrow callback
* chore(eslint): update rules
* style: auto fix by eslint
2021-08-17 22:23:23 +08:00
Sukka 6e3b58ed1d
refactor: avoid promise overhead (#8028) 2021-08-16 11:45:53 -07:00
Joey Chai 052652f2f4
fix: leetcode articles (#6319) 2020-12-04 15:53:13 +00:00
DIYgod 0e7b14e718
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2 2020-04-02 21:21:46 +08:00
DIYgod 9a3bea3525
feat: remove referrerpolicy in routes 2019-08-28 14:38:19 +08:00
DIYgod a34b9ae542
feat: remove addNoReferrer 2019-08-28 14:33:05 +08:00
Cloud 842cbe1510 fix: leetcode article image path (#2823) 2019-08-11 01:14:57 +08:00
Nathan 9b16216e7e fix:Leetcode打卡时间的的问题 (#2425) 2019-06-18 16:02:14 +08:00
Nathan 96b1c47987 fix: leetcode pubDate 的不正确 fix leetcode 打卡文档 (#2397) 2019-06-13 15:25:07 +08:00
Nathan bf2bf85b8f feat :通过leetcode-cn接口重写了力扣中国 (#2385) 2019-06-13 11:31:51 +08:00
Nathan 983bb09c57 fix: 力扣 (#2340) 2019-06-08 13:49:48 +08:00
DIYgod a56c0b5a39
refactor: rename axios to got 2019-06-03 18:03:05 +08:00
Nathan 62da8c834d feat: add查看LeetCode打卡的功能 (#2219) 2019-05-24 17:56:56 +08:00
DIYgod e2badbfa98
chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod a0333fbd7e
feat: use contentExpire 2019-05-09 01:23:29 +08:00
Henry Wang db474c726f fix: filter out paid articles (#1659)
fix #1658
2019-03-04 19:04:33 +08:00
Chenyang Shi 6f0a80fcd4 add leetcode articles (#1574) 2019-02-19 12:00:19 +08:00