From 1bedbef657faf42bc5bec8400132639efadbf4a7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 6 Dec 2020 18:36:58 +0000 Subject: [PATCH] style: auto format --- docs/en/government.md | 11 ++++----- docs/en/new-media.md | 23 +++++++++---------- docs/new-media.md | 48 +++++++++++++++++++-------------------- lib/routes/nikkei/news.js | 12 ++++++---- 4 files changed, 47 insertions(+), 47 deletions(-) diff --git a/docs/en/government.md b/docs/en/government.md index 5754eacd4..f576213c0 100644 --- a/docs/en/government.md +++ b/docs/en/government.md @@ -4,6 +4,11 @@ pageClass: routes # Goverment +## Central Intelligence Agency + +### Annual FOIA Reports + + ## Ministry of Foreign Affairs of Japan ### Press conference @@ -27,9 +32,3 @@ pageClass: routes ### Dispute settlement news - -## Central Intelligence Agency - -### Annual FOIA Reports - - \ No newline at end of file diff --git a/docs/en/new-media.md b/docs/en/new-media.md index 21344b1b2..b8715090c 100644 --- a/docs/en/new-media.md +++ b/docs/en/new-media.md @@ -63,6 +63,17 @@ Compared to the official one, the RSS feed generated by RSSHub not only has more +## China Labour Watch + +### Reports + + + +| All | Automotive | Cookware | Electronics | Footwear | Furniture | Garment | General | Printing | Retail | Toys | +| - | - | - | - | - | - | - | - | - | - | - | +| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 | + + ## DeepMind ### Blog @@ -260,15 +271,3 @@ Provides a better reading experience (full text articles) over the official one. ### Newsroom - -## China Labour Watch - -### Reports - - - -| All | Automotive | Cookware | Electronics | Footwear | Furniture | Garment | General | Printing | Retail | Toys | -| - | - | - | - | - | - | - | - | - | - | - | -| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 | - - \ No newline at end of file diff --git a/docs/new-media.md b/docs/new-media.md index 5a68e9da9..77998bea6 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -254,12 +254,6 @@ Tag -## 国际教育研究所 - -### Blog - - - ## InfoQ 中文 ### 推荐 @@ -1003,6 +997,12 @@ others = 热点新闻 + 滚动新闻 +## 国际教育研究所 + +### Blog + + + ## 果壳网 ### 科学人 @@ -1873,6 +1873,24 @@ column 为 third 时可选的 category: | newest | recommend | opinion | topic | news | politics | society | figure | world | world_focus | cross_strait_politics | money | investment | insurance | retire | fintech | real_estate | economy | tech | tech_trend | energy | business | industry | service | medical | family_business_succession | startup | management | agriculture | education | higher_education | technological | parent | world_education | sports | life | art | self_growth | film | travel | environment | health | food | career | survey | county | csr | +## 中国劳工观察 + +### 调查报告 + + + +| 全部 | 制鞋 | 印刷 | 厨具 | 家具 | 服饰 | 汽车制造 | 玩具 | 电子产品 | 综合 | 零售 | +| ---- | ---- | ---- | ---- | ---- | ---- | -------- | ---- | -------- | ---- | ---- | +| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 | + + + +## 中国劳工通讯 + +### 评论与特写 + + + ## 装备前线 ### 首页最新帖子 @@ -1896,21 +1914,3 @@ QueryString: ### 全文 - -## 中国劳工观察 - -### 调查报告 - - - -| 全部 | 制鞋 | 印刷 | 厨具 | 家具 | 服饰 | 汽车制造 | 玩具 | 电子产品 | 综合 | 零售 | -| ---- | ---- | ---- | ---- | ---- | ---- | -------- | ---- | -------- | ---- | ---- | -| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 | - - - -## 中国劳工通讯 - -### 评论与特写 - - diff --git a/lib/routes/nikkei/news.js b/lib/routes/nikkei/news.js index 483cef8ae..e58d78e51 100644 --- a/lib/routes/nikkei/news.js +++ b/lib/routes/nikkei/news.js @@ -114,11 +114,13 @@ module.exports = async (ctx) => { const response = await got.get(link); const $ = cheerio.load(response.data); if ($('section.container_cz8tiun').length > 0) { - $('section.container_cz8tiun').find('figure').each((index, item) => { - const imgSrc = $(item).attr('data-src-for-image-viewer'); - const $imgElement = $(''); - $(item).prepend($imgElement); - }); + $('section.container_cz8tiun') + .find('figure') + .each((index, item) => { + const imgSrc = $(item).attr('data-src-for-image-viewer'); + const $imgElement = $(''); + $(item).prepend($imgElement); + }); return $('section.container_cz8tiun').html(); } else { return $('div.sc-54bcr2-2.jMNzyO').html();