Commit Graph
7 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 7b65ba69bb feat: add docusaurus website (#13039) 2023-08-15 03:12:12 +01:00
fox2049 de4b980a9d feat(route): add dhu/yjs/news 东华大学研究生院通知 (#12831)
* add yjs-news

* add yjs news

* Update news.js

* Update lib/v2/dhu/yjs/news.js

* feat: add radar

---------
2023-07-19 20:46:50 +08:00
fox2049 90f551098e feat(router): add 东华大学学术信息 (#12791)
* 增加学术信息

* 代码优化

* 测试性提交

* POST API

* POST API

* Update lib/v2/dhu/news/xsxx.js

* Update lib/v2/dhu/radar.js

---------
2023-07-14 23:32:41 +08:00
fox2049andYuexin Sun 9d13d768cd feat(router): add link content of dhu/yjs/zs (#12627)
* add yjszs info of dhu

* change order and add zs make

* 4 spaces for indentation, camelCase, del utf-8 decoder, link to string

* code proofreading
* delete got params
* update link code
* delete link body in ctx.state.data

* Update lib/v2/dhu/maintainer.js

* code proofreading
* example update
* html parse update

* add content

* delete comments

* delete comments

* update code from remote

* add link content

* link update

---------

Co-authored-by: Yuexin Sun <m090120303@outlook.com>
2023-06-07 20:16:00 +08:00
fox2049andYuexin Sun 28aa9e6703 feat(router): add 东华大学研究生招生信息 (dhu/yjs/zs) (#12596)
* add yjszs info of dhu

* change order and add zs make

* 4 spaces for indentation, camelCase, del utf-8 decoder, link to string

* code proofreading
* delete got params
* update link code
* delete link body in ctx.state.data

* Update lib/v2/dhu/maintainer.js

---------

Co-authored-by: Yuexin Sun <m090120303@outlook.com>
2023-06-05 23:34:01 +08:00
Ishirai dd430d1ab9 feat(route): 东华大学 教务处-通知公告 and 信息公开网-最新公开信息 (#8698)
* 东华大学教务处-通知公告

* Update doc

* Upgrade to v2 standard

* Deleted v1 standard version

* Add route /dhu/xxgk/news

* Deleted unused param type

* close <Route> tag in Line 674

* ->String(base_url)

* fix lint

* fix: replace depreciated url.resolve, use parseDate
2022-02-26 23:04:08 +08:00