style: auto format

This commit is contained in:
GitHub Action 2021-09-23 08:17:11 +00:00
parent 8a96fcb83c
commit 1dc83ebc14
2 changed files with 24 additions and 20 deletions

View File

@ -192,6 +192,14 @@ pageClass: routes
</Route>
## The Ring of Wonder
### 首页更新
<Route author="shiningdracon" example="/trow/portal" path="/trow/portal" />
</Route>
## V2EX
### 最热 / 最新主题
@ -777,11 +785,3 @@ pageClass: routes
| 灵异事件 | 灵异图片 | 民间奇谈 |
| ------------- | ------------ | ------------ |
| lingyishijain | lingyitupian | minjianqitan |
## The Ring of Wonder
### 首页更新
<Route author="shiningdracon" example="/trow/portal" path="/trow/portal" />
</Route>

View File

@ -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(),
};
};
};