mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +08:00
63 lines
2.1 KiB
JavaScript
63 lines
2.1 KiB
JavaScript
module.exports = {
|
|
'leetcode.com': {
|
|
_name: 'LeetCode',
|
|
'.': [
|
|
{
|
|
title: '文章',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/articles'],
|
|
target: '/leetcode/articles',
|
|
},
|
|
{
|
|
title: '打卡',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/:user'],
|
|
target: (params) => {
|
|
if (params.user !== 'articles') {
|
|
return `/leetcode/submission/us/:user`;
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '每日一题',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/'],
|
|
target: '/leetcode/dailyquestion/en',
|
|
},
|
|
{
|
|
title: '每日一题题解',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/'],
|
|
target: '/leetcode/dailyquestion/solution/en',
|
|
},
|
|
],
|
|
},
|
|
'leetcode.cn': {
|
|
_name: 'LeetCode',
|
|
'.': [
|
|
{
|
|
title: '打卡',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/:user'],
|
|
target: (params) => {
|
|
if (params.user !== 'articles') {
|
|
return `/leetcode/submission/cn/:user`;
|
|
}
|
|
},
|
|
},
|
|
{
|
|
title: '每日一题',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/'],
|
|
target: '/leetcode/dailyquestion/cn',
|
|
},
|
|
{
|
|
title: '每日一题题解',
|
|
docs: 'https://docs.rsshub.app/routes/programming#leetcode',
|
|
source: ['/'],
|
|
target: '/leetcode/dailyquestion/solution/cn',
|
|
},
|
|
],
|
|
},
|
|
};
|