Commit Graph

6 Commits

Author SHA1 Message Date
DIYgod f5b4874ba7
app: move some variables outside module.exports for a better performance 2018-06-02 17:31:33 +08:00
DIYgod 2f9fc20285
app: cut Cache-Control header in half 2018-06-02 17:24:54 +08:00
DIYgod 36e565d388
app: add Cache-Control header 2018-06-02 17:22:56 +08:00
DIYgod 77014458d0
app: try to get real client ip 2018-05-17 15:31:50 +08:00
さくら 49de384d2e feat: add prettier and commit hooks (#144)
* feat: add prettier and commit hooks

* style(*): prettier format

* fix(eslint): parsing error: Unexpected token ...

* style(eslint): eslint --fix

* style(bilibili): fix `no-undef` and `no-unused-vars`

* style(jiandan): fix eqeqeq

* style(pixiv): disable `no-constant-condition` rule for eslint

* fix(pixiv): use template string

* style(toutiao): remove unused variables

* style(weibo): use `forEach` instead of `map`

The array has no return value, you should use `forEach` instead of `map`

* chore(hooks): add eslint hooks

* chore(hooks): switch from husky to yorkie

* style(zhihu): prettier format

* style(docs): fix vuepress custom container

https://vuepress.vuejs.org/guide/markdown.html#custom-containers

* chore(prettier): set a more reasonable `printWidth` value

* style(*): better prettier format
2018-05-17 10:52:29 +08:00
DIYgod 3f940a6906
replace express and request with koa and axios 2018-04-16 02:47:09 +08:00