feat(route): change nsfc to v2 (#8595)

This commit is contained in:
Derek 2021-11-28 07:31:34 +08:00 committed by GitHub
parent 7d858bc03d
commit 64469e5886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 12 deletions

View File

@ -626,15 +626,6 @@
{ title: '支持的快递公司列表', docs: 'https://docs.rsshub.app/other.html#kuai-di-100', source: '/', target: '/kuaidi100/company' },
],
},
'nsfc.gov.cn': {
_name: '国家自然科学基金委员会',
www: [
{ title: '基金要闻', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/jjyw' },
{ title: '通知公告', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/tzgg' },
{ title: '资助成果', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/zzcg' },
{ title: '科普快讯', docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui', source: '/*', target: '/nsfc/news/kpkx' },
],
},
'japanpost.jp': {
_name: '日本郵便',
'trackings.post': [

View File

@ -2674,9 +2674,6 @@ router.get('/lagou/jobs/:position/:city', lazyloadRouteHandler('./routes/lagou/j
router.get('/yzu/home/:type', lazyloadRouteHandler('./routes/universities/yzu/home'));
router.get('/yzu/yjszs/:type', lazyloadRouteHandler('./routes/universities/yzu/yjszs'));
// 国家自然科学基金委员会
router.get('/nsfc/news/:type?', lazyloadRouteHandler('./routes/nsfc/news'));
// 德国新闻社卫健新闻
router.get('/krankenkassen', lazyloadRouteHandler('./routes/krankenkassen'));

View File

@ -0,0 +1,3 @@
module.exports = {
'/news/:type?': ['Derekmini'],
};

31
lib/v2/nsfc/radar.js Normal file
View File

@ -0,0 +1,31 @@
module.exports = {
'nsfc.gov.cn': {
_name: '国自然基金委',
www: [
{
title: '基金要闻',
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
source: '/*',
target: '/nsfc/news/jjyw',
},
{
title: '通知公告',
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
source: '/*',
target: '/nsfc/news/tzgg',
},
{
title: '资助成果',
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
source: '/*',
target: '/nsfc/news/zzcg',
},
{
title: '科普快讯',
docs: 'https://docs.rsshub.app/other.html#guo-jia-zi-ran-ke-xue-ji-jin-wei-yuan-hui',
source: '/*',
target: '/nsfc/news/kpkx',
},
],
},
};

3
lib/v2/nsfc/router.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = function (router) {
router.get('/news/:type?', require('./news'));
};