mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 13:39:35 +08:00
style(eslint): add no-implicit-coercion rule (#8175)
* refactor: add no-implicit-coercion rule for ESLint * fix: errors from deepscan * fix: errors from deepscan * fix: errors from deepscan * fix: errors from deepscan * fix: errors from deepscan * Update docs/en/joinus/quick-start.md Co-authored-by: Sukka <isukkaw@gmail.com> * Update docs/joinus/quick-start.md Co-authored-by: Sukka <isukkaw@gmail.com> * Update lib/routes/av01/tag.js Co-authored-by: Sukka <isukkaw@gmail.com> * Update lib/routes/gov/taiwan/mnd.js Co-authored-by: Sukka <isukkaw@gmail.com> * Update lib/routes/ps/product.js Co-authored-by: Sukka <isukkaw@gmail.com> * refactor: minify html string Co-authored-by: Sukka <isukkaw@gmail.com>
This commit is contained in:
@@ -56,14 +56,21 @@ module.exports = async (ctx) => {
|
||||
);
|
||||
ctx.state.data = {
|
||||
// 源标题,差一个cid相关的标题!
|
||||
title: `${mptitle}`,
|
||||
title: mptitle,
|
||||
link: `https://mp.weixin.qq.com/mp/homepage?__biz=${biz}${hidurl}${cidurl}`,
|
||||
item: list.map((item, index) => ({
|
||||
title: `${item.title}`,
|
||||
description: `${item.digest}<br>
|
||||
<img style="max-width: 650px; height: auto; object-fit: contain; width: 100%;" src="${item.cover}"><br><br>${articledata[index].content}`,
|
||||
link: `${item.link}`,
|
||||
author: `${articledata[index].author}`,
|
||||
title: item.title,
|
||||
description: `
|
||||
${item.digest}<br>
|
||||
<img
|
||||
style="max-width: 650px; height: auto; object-fit: contain; width: 100%;"
|
||||
src="${item.cover}"
|
||||
><br>
|
||||
<br>
|
||||
${articledata[index].content}
|
||||
`,
|
||||
link: item.link,
|
||||
author: articledata[index].author,
|
||||
pubDate: dayjs.unix(item.sendtime).format(),
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user