* Enhancement on Saraba1st BBS * update maintainer info * lint refinement * deepscan fix to remove unnecessary await * Update lib/v2/saraba1st/maintainer.js Updated based on comment from TonyRL * Update lib/v2/saraba1st/digest.js Committed based on Comment of TonyRL * Update lib/v2/saraba1st/digest.js Corrected based on TonyRL's comment. * Update lib/v2/saraba1st/digest.js Commit the suggestion code from TonyRL * update maintainer info lint refinement deepscan fix to remove unnecessary await Update lib/v2/saraba1st/maintainer.js Updated based on comment from TonyRL Update lib/v2/saraba1st/digest.js Committed based on Comment of TonyRL Update lib/v2/saraba1st/digest.js Corrected based on TonyRL's comment. Update lib/v2/saraba1st/digest.js Commit the suggestion code from TonyRL's review result Co-authored-by: Tony <TonyRL@users.noreply.github.com> * use art-template to render page per TonyRL comment Co-authored-by: ubuntu <ubuntu@localhost.localdomain> Co-authored-by: shinemoon <shinemoon@foxmail.com>
26 lines
871 B
JavaScript
26 lines
871 B
JavaScript
module.exports = {
|
|
'saraba1st.com': {
|
|
_name: 'Saraba1st',
|
|
bbs: [
|
|
{
|
|
title: '论坛',
|
|
docs: 'https://docs.rsshub.app/bbs.html#saraba1st',
|
|
source: '/2b/:id',
|
|
target: (params) => {
|
|
let id = params.id;
|
|
// For Digest
|
|
if (id.match('forum') !== null) {
|
|
id = id.substring(0, id.length - 5);
|
|
return `/saraba1st/digest/${id}`;
|
|
}
|
|
// For Thread
|
|
else if (id.match('thread') !== null) {
|
|
id = params.id.includes('thread') ? params.id.split('-')[1] : '';
|
|
return id ? `/saraba1st/thread/${id}` : '';
|
|
}
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|