GitHub Action
9433c49004
style: auto format
2021-09-22 12:43:18 +00:00
NeverBehave
0792f7ba25
feat(core): first attempt to init script standard ( #8224 )
...
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07: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
Toby Tso
e24906fdeb
feat(middleware): `brief` parameter ( #8074 )
...
Co-authored-by: SettingDust <settingdust@gmail.com>
Co-authored-by: ギャラ <me@gyara.moe>
2021-09-09 01:37:41 -07:00
Sukka
ea21cfdd28
perf: lazyload sentry sdk for faster cold start speed ( #8125 )
2021-09-01 15:53:04 +08:00
Sukka
31720bbb1b
perf: lazy require dependencies ( #8025 )
2021-08-20 14:05:57 +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
SettingDust
4db1c91cfa
fix(route): pixiv login ( #7623 )
2021-06-23 20:37:55 -07:00
fengkx
ea2e2abb91
refactor(middleware): replace opencc with simplecc-wasm ( #7111 )
...
* refactor: replace opencc with simplecc-wasm
* docs: simplecc-wasm docs change
* new yarn.lock
2021-03-14 01:21:46 -05:00
DIYgod
5298f845f2
feat: support ua in blacklist and whitelist
2021-03-07 10:06:24 +08:00
NeverBehave
4aaccd7a49
fix(core): do not add optional pubdate when it is not available ( #7093 )
2021-03-02 19:06:17 -05:00
DIYgod
177c36cae7
feat: sentry route timeout
2021-02-01 20:06:23 +08:00
DIYgod
97893f2701
feat: replace co-redis and redis with ioredis, make cache module clearer
2021-01-27 19:16:59 +08:00
DIYgod
6506c39239
feat: remove hot ip in debug info
2021-01-21 11:57:16 +08:00
zphw
c123c5c8b0
feat: added DailyArt & fix: error occurred when without user-agent ( #6514 )
2020-12-26 01:54:32 +00:00
Henry Wang
3426f8a1f4
feat: better Reeder support ( #6510 )
2020-12-23 18:08:28 +00:00
moonrailgun
fd8cb4a666
feat: add cors origin control into config ( #6499 )
2020-12-23 16:43:49 +00:00
Henry Wang
1f34bce335
feat: support open RSS links in Safari ( #6509 )
2020-12-23 15:57:03 +00:00
oppilate
dfdb9630b7
chore: optimize performance (replace he with entities) ( #6497 )
2020-12-22 18:38:10 +00:00
Henry
fdefa01986
fix: sci-hub mirror in parameter
2020-12-01 11:25:38 +00:00
Ethan Shen
683c38faf4
fix: sci-hub mirror address ( #6304 )
2020-12-01 11:18:34 +00:00
Florian Markusse
98c53556ad
refactor: update isFilter in parameter.js( #6113 )
...
Changed assignment of "isFilter" twice due to redundant AND-operation with itself as the first operand since its value is true at the point of assignment.
2020-11-06 21:44:09 +00:00
Henry
c292502e14
feat: 优化错误输出
...
fix #5982
通过`NODE_ENV`控制错误输出
2020-10-23 17:35:24 +01:00
Henry
19a219e076
feat: add a default pubDate
...
close #5812
2020-10-09 21:54:26 +01:00
DIYgod
6ec230f58f
feat: support etag
2020-09-29 18:53:24 +08:00
DIYgod
752ee212a9
feat: support opencc
2020-09-25 01:30:52 +08:00
Henry Wang
d984ffa849
doc: 增加 PR 模板,修改 issue 模板 ( #5314 )
2020-07-31 18:43:31 +01:00
Henry Wang
bffb7200e4
fix: producthunt URL ( #5163 )
2020-07-10 14:13:36 +08:00
Henry Wang
7475bcacfb
feat: 报错页面增加一个快速生成 issue 的按钮 ( #5141 )
2020-07-07 17:41:10 +08:00
DIYgod
923b07eec4
test: filter and filterout combination cases
2020-06-08 17:59:04 +08:00
ruleroller
8881b5953d
fix: 多个filter之间修改为与逻辑 ( #4885 )
2020-06-08 17:33:11 +08:00
Henry Wang
731a5d43f7
feat: 使用环境变量赋予所有本地 IP 访问权限 ( #4908 )
2020-06-07 22:45:54 +08:00
howel52
3e846e6919
fix: only collect errors which route path was matched ( #4673 )
2020-05-08 11:27:48 +08:00
hoilc
f8340b79a0
fix: exclude robots.txt from access control ( #4686 )
2020-05-08 11:13:58 +08:00
Henry Wang
4a46db99f9
feat: use simple access keys for access control ( #4643 )
2020-05-06 20:14:28 +08:00
NeverBehave
cde5d9af45
feat: anti-hotlink for images ( #4481 )
2020-04-28 10:27:47 +08:00
DIYgod
0e7b14e718
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
2020-04-02 21:21:46 +08:00
Henry Wang
19fa95d553
feat: 期刊路由优化,增加 scihub 模式 ( #4094 )
2020-03-01 12:24:31 +08:00
pnlng
4671720f4c
feat: add filter_case_sensitive url parameter ( #3910 )
2020-02-09 18:51:58 +08:00
DIYgod
940bbbdff8
feat: item suffix
2019-12-09 19:12:59 +08:00
DIYgod
af51ca0337
refactor: remove Content-Type cache
2019-11-07 19:49:02 +08:00
DIYgod
31726d4464
feat: support no refresh cache
2019-11-04 18:59:00 +08:00
DIYgod
addd22c113
feat(core): handle link and pubDate parameter
2019-10-22 18:02:47 +08:00
Cloud
90a87b1723
refactor: optimize parameter ( #3200 )
2019-10-08 16:48:46 +08:00
DIYgod
caf9f461b3
refactor: optimize redis operation
2019-09-20 15:57:50 +08:00
DIYgod
f7d9688a62
feat: 100 times cache time for wrong path
2019-09-20 15:24:49 +08:00
DIYgod
7bdda509fe
feat(pkg): error handling
2019-09-19 18:15:51 +08:00
DIYgod
2aa847c71c
feat: retrun JSON data for pkg
2019-09-18 18:36:37 +08:00
DIYgod
4445443946
feat: use dynamical config
2019-09-18 17:45:21 +08:00
DIYgod
889f3118b1
test: add SENTRY env
2019-09-09 14:47:44 +08:00
DIYgod
16263b020c
test: fix debug test case
2019-09-04 21:56:16 +08:00
DIYgod
93274bbe4f
Merge commit 'c859291ca3812d99e4b84201733e0447f4f33f26'
2019-09-04 18:24:36 +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
223d426d91
feat: handle HTTPError
2019-09-04 14:27:38 +08:00
Cloud
c859291ca3
fix: if fulltext parser failed, return default description and… ( #2992 )
2019-09-04 11:41:05 +08:00
DIYgod
3cebb70ef4
feat: name field for sentry
2019-09-03 23:06:44 +08:00
DIYgod
7c65bb5b18
feat: support Sentry
2019-09-03 18:11:05 +08:00
Cloud
3c2200cd4b
fix: fuck some unstandard url ( #2961 )
2019-08-30 14:37:25 +08:00
DIYgod
4020c36c19
fix: check null base url
2019-08-28 16:14:50 +08:00
DIYgod
b2355436cc
fix: url base
2019-08-28 15:50:05 +08:00
DIYgod
84fdea3d1e
feat: use item link as absolute link base
2019-08-28 15:12:17 +08:00
DIYgod
29f588e6a0
feat: handle description in parameter middleware
2019-08-28 12:06:50 +08:00
DIYgod
745eb0d52a
test: add template enclosure test cases
2019-08-23 15:44:52 +08:00
DIYgod
10c63882bf
test: add cache test cases
2019-08-23 15:07:48 +08:00
DIYgod
f7e8682ba8
feat: add error routes and error paths info
2019-08-23 00:15:13 +08:00
DIYgod
c187811b97
feat: node name
2019-08-15 23:58:50 +08:00
Cloud
4b4b1d492a
fix: atomlink href ( #2858 )
2019-08-15 18:54:05 +08:00
DIYgod
b622c2b862
fix: value of atomlink
2019-08-13 01:10:13 +08:00
DIYgod
aa2236e1f6
fix: value of atomlink
2019-08-13 01:02:51 +08:00
Cloud
4d9c9c08e7
feat: 2 rules for feed validation ( #2825 )
2019-08-11 01:30:59 +08:00
sanmmmm
914034760d
feat: 新增自动提取全文输出 ( #2738 )
2019-08-02 17:22:58 +08:00
Henry Wang
9c837f1bc2
fix: retain allowEmpty in ctx.state ( #2542 )
...
* fix: retain allowEmpty in ctx.state
See: https://github.com/koajs/koa/issues/1172
* fix: pass test case allow_empty
* chore: get rid of eslint warning
2019-07-03 12:10:36 +08:00
DIYgod
2f1aeb4d84
fix: wrong path judgement
2019-06-19 19:01:44 +08:00
DIYgod
b9ab52a0d5
feat: wrong path error
2019-06-19 18:52:13 +08:00
DIYgod
7c2f4777af
feat: debug info for hot route and path
2019-06-19 18:39:40 +08:00
DIYgod
3c0bfeff97
feat: allow empty for certain routes
2019-06-14 11:14:24 +08:00
DIYgod
dea283d0bd
test: filter_time
2019-06-13 16:10:08 +08:00
DIYgod
58be5caf98
test: cache object
2019-06-13 16:01:12 +08:00
凉凉
5b0b5892ac
feat: filter time ( #2399 )
...
* feat: filter time
* 更新文档
2019-06-13 15:28:29 +08:00
DIYgod
7c5aaa3c14
test: redis with quit and error cases
2019-06-13 15:23:28 +08:00
DIYgod
76add4785a
test: add empty item test case
2019-06-13 12:01:07 +08:00
DIYgod
1c6e71cfb7
fix: empty item error
2019-06-13 11:35:59 +08:00
Chenyang Shi
7c5fcaccc5
fix: 在filter之前检查空数据 ( #2392 )
...
* enhance: 对路由空内容报错
* fix: 在filter之前检查空数据
2019-06-13 11:34:39 +08:00
Chenyang Shi
3dde0db910
feat: 对路由空内容报错 ( #2388 )
2019-06-12 17:57:28 +08:00
tuzi3040
a04a88d2cd
fix: value of rss TTL tag ( #2297 )
...
* fix value of rss TTL tag
* fix test algorithm for rss ttl tag
2019-06-04 11:02:56 +08:00
DIYgod
e2badbfa98
chore: module alias for all routes
2019-05-15 15:27:15 +08:00
DIYgod
c4cd0ab495
fix(chore): contentExpire not work
2019-05-13 00:24:48 +08:00
DIYgod
075a8d1864
feat: support setting expire time for content cache
2019-05-09 01:11:19 +08:00
Howel
274199e450
refactor: 将 Array.indexof !== -1 替换为 Array.includes ( #2073 )
2019-05-08 23:50:34 +08:00
DIYgod
8637eb06d2
feat(core): set access-control-allow-origin header to prevent abuse
2019-04-30 00:12:28 +08:00
DIYgod
c1f856391d
feat(core): add public in cache-control header
2019-04-29 11:36:03 +08:00
DIYgod
847bb00a9e
feat(core): set cache-control max-age equal to config.cacheExpire
2019-04-29 11:15:00 +08:00
DIYgod
801f75c732
feat(core): add edge and last-modified header, close #338
2019-04-26 11:59:17 +08:00
DIYgod
697c231f4e
fix empty cache
2019-04-21 20:36:09 +08:00
DIYgod
ec9f9aa018
fix cache type
2019-04-21 20:19:54 +08:00
fwolf
f87fcdd004
修整两处格式错误 ( #1873 )
...
在转发 Telegram Channel 到 Mastodon 的过程中,发现有两处格式错误:
1. hashtag 和斜体内容, Mastodon 不支持,就变成 `<i>#tag</i>` 这样的形式了,版式很乱且没必要,这个一般用的也少,干脆就去掉了。
2. 在去除不可见字符的时候,应当保留回车 `\r \n` ,这样可以更好的保持排版格式。(源代码中参照的 stackoverflow 链接中的第二个,回答中的提示也有保留回车的选项,就套过来了。
2019-04-10 11:39:59 +08:00
DIYgod
567e73df77
avoid repeating setting cache
2019-03-28 00:29:05 +08:00
DIYgod
9e2b99f5ac
revert log; fix repeating setting cache in readhub
2019-03-27 19:04:09 +08:00