From 1dc83ebc14c67de59ea36f40a68817211d13adbb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 23 Sep 2021 08:17:11 +0000 Subject: [PATCH] style: auto format --- docs/bbs.md | 16 ++++++++-------- lib/v2/trow/portal.js | 28 ++++++++++++++++------------ 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/docs/bbs.md b/docs/bbs.md index e8d5c62a9..98aa5d32e 100644 --- a/docs/bbs.md +++ b/docs/bbs.md @@ -192,6 +192,14 @@ pageClass: routes +## The Ring of Wonder + +### 首页更新 + + + + + ## V2EX ### 最热 / 最新主题 @@ -777,11 +785,3 @@ pageClass: routes | 灵异事件 | 灵异图片 | 民间奇谈 | | ------------- | ------------ | ------------ | | lingyishijain | lingyitupian | minjianqitan | - -## The Ring of Wonder - -### 首页更新 - - - - diff --git a/lib/v2/trow/portal.js b/lib/v2/trow/portal.js index 05dd62b6d..0e0b6a625 100644 --- a/lib/v2/trow/portal.js +++ b/lib/v2/trow/portal.js @@ -17,16 +17,20 @@ module.exports = async (ctx) => { title: `The Ring of Wonder - Portal`, link: `https://trow.cc`, description: `The Ring of Wonder 首页更新`, - item: list && list.map((index, item) => { - item = $(item); - const dateraw = item.find('.postdetails').text(); - return { - title: item.find('.maintitle p:nth-child(2) > a').text(), - description: item.find('.portal_news_content .row18').html(), - link: item.find('.maintitle p:nth-child(2) > a').attr('href'), - author: item.find('.postdetails a').text(), - pubDate: timezone(parseDate(dateraw.slice(3), 'YYYY-MM-DD, HH:mm'), +8), - }; - }).get(), + item: + list && + list + .map((index, item) => { + item = $(item); + const dateraw = item.find('.postdetails').text(); + return { + title: item.find('.maintitle p:nth-child(2) > a').text(), + description: item.find('.portal_news_content .row18').html(), + link: item.find('.maintitle p:nth-child(2) > a').attr('href'), + author: item.find('.postdetails a').text(), + pubDate: timezone(parseDate(dateraw.slice(3), 'YYYY-MM-DD, HH:mm'), +8), + }; + }) + .get(), }; -}; \ No newline at end of file +};