From d7d0b153d9761873eb6b54b395b44ea7db2bbe3d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 22 Jan 2022 18:14:29 +0000 Subject: [PATCH] style: auto format --- docs/new-media.md | 14 +++++++------- lib/v2/leiphone/index.js | 2 +- lib/v2/leiphone/newsflash.js | 4 ++-- lib/v2/leiphone/radar.js | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/new-media.md b/docs/new-media.md index 6ab726ef04..7de05d17a0 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -2054,13 +2054,13 @@ column 为 third 时可选的 category: - 金融科技 - | 科技巨头 | 银行AI | 金融云 | 风控与安全 | - | -------- | ------ | ------------ | ------------ | - | BigTech | bank | FinanceCloud | DataSecurity | + | 科技巨头 | 银行 AI | 金融云 | 风控与安全 | + | -------- | ------- | ------------ | ------------ | + | BigTech | bank | FinanceCloud | DataSecurity | - 医疗科技 - | 医疗AI | 投融资 | 医疗器械 | 互联网医疗 | 生物医药 | 健康险 | + | 医疗 AI | 投融资 | 医疗器械 | 互联网医疗 | 生物医药 | 健康险 | | -------- | ------ | -------- | ---------------- | ------------ | ------------ | | healthai | touzi | qixie | hulianwangyiliao | shengwuyiyao | jiankangxian | @@ -2078,9 +2078,9 @@ column 为 third 时可选的 category: - 工业互联网 - | 工业软件 | 工业安全 | 5G工业互联网 | 工业转型实践 | - | ---------- | -------- | ------------ | ------------ | - | gysoftware | gysafety | 5ggy | gypratice | + | 工业软件 | 工业安全 | 5G 工业互联网 | 工业转型实践 | + | ---------- | -------- | ------------- | ------------ | + | gysoftware | gysafety | 5ggy | gypratice | - AIoT diff --git a/lib/v2/leiphone/index.js b/lib/v2/leiphone/index.js index 881d4f9284..bc9bd20c11 100644 --- a/lib/v2/leiphone/index.js +++ b/lib/v2/leiphone/index.js @@ -22,4 +22,4 @@ module.exports = async (ctx) => { link: url, item: items, }; -}; \ No newline at end of file +}; diff --git a/lib/v2/leiphone/newsflash.js b/lib/v2/leiphone/newsflash.js index d455bb1605..340b2df978 100644 --- a/lib/v2/leiphone/newsflash.js +++ b/lib/v2/leiphone/newsflash.js @@ -7,7 +7,7 @@ module.exports = async (ctx) => { const res = await got.get(url); const article = (res.data || {}).article || []; - const list = article.map((item) => (item.url)); + const list = article.map((item) => item.url); const items = await utils.ProcessFeed(list, ctx.cache); ctx.state.data = { @@ -16,4 +16,4 @@ module.exports = async (ctx) => { link: url, item: items, }; -}; \ No newline at end of file +}; diff --git a/lib/v2/leiphone/radar.js b/lib/v2/leiphone/radar.js index 7b2d18030d..b6a64c80fe 100644 --- a/lib/v2/leiphone/radar.js +++ b/lib/v2/leiphone/radar.js @@ -6,19 +6,19 @@ module.exports = { title: '最新文章', docs: 'https://docs.rsshub.app/new-media.html#lei-feng-wang-zui-xin-wen-zhang', source: ['/'], - target: '/leiphone' + target: '/leiphone', }, { title: '栏目', docs: 'https://docs.rsshub.app/new-media.html#lei-feng-wang-lan-mu', source: ['/:catename'], - target: '/leiphone/category/:catname' + target: '/leiphone/category/:catname', }, { title: '业界资讯', docs: 'https://docs.rsshub.app/new-media.html#lei-feng-wang-ye-jie-zi-xun', source: ['/'], - target: '/leiphone/newsflash' + target: '/leiphone/newsflash', }, ], },