Files
RSSHub/lib/v2/shu/radar.js
T
东风有意 c41d23d043 fix(route): shu 上海大学 (#12803)
* fix(route): shu 上海大学

* Optimize code and update documentation

- shu/index.js & shu/jwc.js
    - use @/utils/parse-date to parse date
    - change "item.description" from text to HTML
    - change "url.resolve" (deprecated) to "new URL"
    - change the way of mapping "ctx.params.type" to link
        - now it accepts more route types
- university.md
    - update doc for new types
- router.js
    - add an alias because the website changed its host

* Update lib/routes/universities/shu/index.js

* Update lib/routes/universities/shu/jwc.js

* Update docs/university.md

* refactor: migrate to v2

---------
2023-07-18 21:29:18 +08:00

22 lines
599 B
JavaScript

module.exports = {
'shu.edu.cn': {
_name: '上海大学',
jwb: [
{
title: '教务处通知公告',
docs: 'https://docs.rsshub.app/university.html#shang-hai-da-xue',
source: ['/index/:type'],
target: '/shu/jwb/:type',
},
],
www: [
{
title: '官网信息',
docs: 'https://docs.rsshub.app/university.html#shang-hai-da-xue',
source: ['/:type'],
target: '/shu/:type',
},
],
},
};