style: auto format

This commit is contained in:
GitHub Action 2020-12-06 18:36:58 +00:00
parent eb25cda327
commit 1bedbef657
4 changed files with 47 additions and 47 deletions

View File

@ -4,6 +4,11 @@ pageClass: routes
# Goverment
## Central Intelligence Agency
### Annual FOIA Reports
<RouteEn author="nczitzk" example="/cia/foia-annual-report" path="/cia/foia-annual-report"/>
## Ministry of Foreign Affairs of Japan
### Press conference
@ -27,9 +32,3 @@ pageClass: routes
### Dispute settlement news
<RouteEn author="nczitzk" example="/wto/dispute-settlement" path="/wto/dispute-settlement/:year?" :paramsDesc="['Year, current year by default']"/>
## Central Intelligence Agency
### Annual FOIA Reports
<RouteEn author="nczitzk" example="/cia/foia-annual-report" path="/cia/foia-annual-report"/>

View File

@ -63,6 +63,17 @@ Compared to the official one, the RSS feed generated by RSSHub not only has more
<RouteEn author="nczitzk" example="/clb/commentary" path="/clb/commentary/:lang?" :paramsDesc="['Language, Simplified Chinese by default, or `en` as English']"/>
## China Labour Watch
### Reports
<RouteEn author="nczitzk" example="/chinalaborwatch/reports" path="/chinalaborwatch/reports/:lang?/:industry?" :paramsDesc="['Language, English by default, or `cn` as Simplified Chinese', 'Industry id, see below, all by default']">
| All | Automotive | Cookware | Electronics | Footwear | Furniture | Garment | General | Printing | Retail | Toys |
| - | - | - | - | - | - | - | - | - | - | - |
| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 |
</RouteEn>
## DeepMind
### Blog
@ -260,15 +271,3 @@ Provides a better reading experience (full text articles) over the official one.
### Newsroom
<RouteEn author="LogicJake" example="/who/news-room/feature-stories" path="/who/news-room/:type" :paramsDesc="['类别,可在 URL 中找到']"/>
## China Labour Watch
### Reports
<RouteEn author="nczitzk" example="/chinalaborwatch/reports" path="/chinalaborwatch/reports/:lang?/:industry?" :paramsDesc="['Language, English by default, or `cn` as Simplified Chinese', 'Industry id, see below, all by default']">
| All | Automotive | Cookware | Electronics | Footwear | Furniture | Garment | General | Printing | Retail | Toys |
| - | - | - | - | - | - | - | - | - | - | - |
| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 |
</RouteEn>

View File

@ -254,12 +254,6 @@ Tag
</Route>
## 国际教育研究所
### Blog
<Route author="nczitzk" example="/iie/blog" path="/iie/blog" />
## InfoQ 中文
### 推荐
@ -1003,6 +997,12 @@ others = 热点新闻 + 滚动新闻
</Route>
## 国际教育研究所
### Blog
<Route author="nczitzk" example="/iie/blog" path="/iie/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 |
</Route>
## 中国劳工观察
### 调查报告
<Route author="nczitzk" example="/chinalaborwatch/reports" path="/chinalaborwatch/reports/:lang?/:industry?" :paramsDesc="['语言,默认为英语,可选 `cn` 即 简体中文', '行业 id见下表默认为全部']">
| 全部 | 制鞋 | 印刷 | 厨具 | 家具 | 服饰 | 汽车制造 | 玩具 | 电子产品 | 综合 | 零售 |
| ---- | ---- | ---- | ---- | ---- | ---- | -------- | ---- | -------- | ---- | ---- |
| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 |
</Route>
## 中国劳工通讯
### 评论与特写
<Route author="nczitzk" example="/clb/commentary" path="/clb/commentary/:lang?" :paramsDesc="['语言,默认为简体中文,可选 `en` 即英文']"/>
## 装备前线
### 首页最新帖子
@ -1896,21 +1914,3 @@ QueryString:
### 全文
<Route author="HenryQW" example="/zzz" path="/zzz/index"/>
## 中国劳工观察
### 调查报告
<Route author="nczitzk" example="/chinalaborwatch/reports" path="/chinalaborwatch/reports/:lang?/:industry?" :paramsDesc="['语言,默认为英语,可选 `cn` 即 简体中文', '行业 id见下表默认为全部']">
| 全部 | 制鞋 | 印刷 | 厨具 | 家具 | 服饰 | 汽车制造 | 玩具 | 电子产品 | 综合 | 零售 |
| ---- | ---- | ---- | ---- | ---- | ---- | -------- | ---- | -------- | ---- | ---- |
| | 2 | 6 | 14 | 3 | 4 | 10 | 8 | 1 | 9 | 7 |
</Route>
## 中国劳工通讯
### 评论与特写
<Route author="nczitzk" example="/clb/commentary" path="/clb/commentary/:lang?" :paramsDesc="['语言,默认为简体中文,可选 `en` 即英文']"/>

View File

@ -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 = $('<img src="' + imgSrc + '"/>');
$(item).prepend($imgElement);
});
$('section.container_cz8tiun')
.find('figure')
.each((index, item) => {
const imgSrc = $(item).attr('data-src-for-image-viewer');
const $imgElement = $('<img src="' + imgSrc + '"/>');
$(item).prepend($imgElement);
});
return $('section.container_cz8tiun').html();
} else {
return $('div.sc-54bcr2-2.jMNzyO').html();