Files
RSSHub/lib/v2/thepaper/radar.js
T
Felix Hsu 222903394e feat(route): add thepaper sidebar (#11890)
* feat(route): add thepaper sidebar

* Update docs/traditional-media.md for typo

---------
2023-02-17 10:42:56 +01:00

49 lines
1.7 KiB
JavaScript

module.exports = {
'thepaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '首页头条',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-shou-ye-tou-tiao',
source: ['/'],
target: '/thepaper/featured',
},
{
title: '侧边栏',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-ce-bian-lan',
source: ['/'],
target: '/thepaper/sidebar',
},
{
title: '频道',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-pin-dao',
source: ['/'],
target: (params, url) => `/thepaper/channel/${new URL(url).search(/channel_(\d+)/)}`,
},
{
title: '栏目',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-lie-biao',
source: ['/'],
target: (params, url) => `/thepaper/list/${new URL(url).search(/list_(\d+)/)}`,
},
{
title: '澎湃美数组作品集',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-peng-pai-mei-shu-zuo-pin-ji',
source: ['/'],
target: '/thepaper/839studio/:id',
},
],
},
'factpaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '明查',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-ming-cha',
source: ['/'],
target: '/thepaper/factpaper/:status',
},
],
},
};