Tony
|
4fa33716c1
|
docs: remove indent (#18247)
* docs: remove indent
* docs: remove more indent
* docs: remove h5 indent
* docs: remove h4 indent
* docs: remove details indent
|
2025-01-31 22:17:58 +08:00 |
|
Ethan Shen
|
acda82f385
|
feat(route): add 21财经频道 (#18048)
* feat(route): add 21财经频道
* fix: Remove complex expressions
|
2025-01-07 00:53:55 +08:00 |
|
DIYgod
|
6f57c02538
|
feat: rename routes dir - 2/2
|
2024-03-01 01:24:49 +08:00 |
|
DIYgod
|
131c7d4b79
|
feat: remove utils/parse-date and utils/date
|
2024-02-25 01:25:55 +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 |
|
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 |
|
Queensferry
|
e52cb333f0
|
fix(route): 21caijing wrong pubDate (#7138)
|
2021-03-11 01:05:44 -05: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
|
a34b9ae542
|
feat: remove addNoReferrer
|
2019-08-28 14:33:05 +08:00 |
|
Ethan H
|
9afc716fa7
|
fix: 修复 21caijing 图片未显示问题 (#2703)
|
2019-07-27 11:52:43 +08:00 |
|
Henry Wang
|
d09affa703
|
feat: add addNoReferrer in common-utils (#2571)
* fix: no-referrer tag
* chore: merge qdaily routes
* feat: add addNoReferrer in common-utils
This adds no-referrer attribute to images.
Parameters:
- add no-referrer attribute to images
- $: cheerio selector
- source: source selector, string
- target: target attribute name, typically for lazyload imgs, string
- srcPrefix: prefix for src, string
- removeAttr: attributes to remove, array: ['attrA','attrB']
* test: add test case
* doc: update
|
2019-07-08 11:45:02 +08:00 |
|
DIYgod
|
a56c0b5a39
|
refactor: rename axios to got
|
2019-06-03 18:03:05 +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 |
|
Ethan H
|
9091978f90
|
增加21财经的频道RSS (#1855)
|
2019-04-08 11:24:12 +08:00 |
|