RSSHub/lib/v2/xjtu/radar.js

62 lines
2.3 KiB
JavaScript

module.exports = {
'xjtu.edu.cn': {
_name: '西安交通大学',
'2yuan': [
{
title: '第二附属医院新闻',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-di-er-fu-shu-yi-yuan-xin-wen',
source: ['/'],
target: (params, url) => `/xjtu/2yuan/news/${new URL(url).toString().match(/\/Columns\/(\d+)\//)[1]}`,
},
],
dean: [
{
title: '教务处',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-jiao-wu-chu',
source: ['/'],
target: '/xjtu/dean/:subpath+',
},
],
ee: [
{
title: '电气学院',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-dian-qi-xue-yuan',
source: ['/'],
target: '/xjtu/ee/:id?',
},
],
gs: [
{
title: '研究生院通知公告',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-yan-jiu-sheng-xue-yuan-tong-zhi-gong-gao',
source: ['/'],
target: '/xjtu/gs/tzgg',
},
],
international: [
{
title: '国际处通知',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-guo-ji-chu-tong-zhi',
source: ['/'],
target: '/xjtu/international/:subpath+',
},
],
std: [
{
title: '科技在线',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue-ke-ji-zai-xian',
source: ['/tzgg/:category', '/'],
target: (params, url) => `/xjtu/std/${new URL(url).toString().match(/\/(\w+)\.htm/)[1]}`,
},
],
'www.dyyy': [
{
title: '第一附属医院新闻',
docs: 'https://docs.rsshub.app/routes/university#xi-an-jiao-tong-da-xue',
source: ['/*'],
target: (_, url) => `/xjtu/dyyy${new URL(url).pathname.replace('.htm', '')}`,
},
],
},
};