From 3c9be07be52a8cf1ef106b586e3d897b2c059e21 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 3 Feb 2022 13:50:41 +0000 Subject: [PATCH] style: auto format --- docs/en/program-update.md | 12 ++++++------ lib/v2/nikkei-asia/index.js | 11 +++++------ lib/v2/nikkei-asia/radar.js | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/en/program-update.md b/docs/en/program-update.md index 16cf42096..a3ccf1bd6 100644 --- a/docs/en/program-update.md +++ b/docs/en/program-update.md @@ -16,6 +16,12 @@ pageClass: routes +## Apkpure + +### Versions + + + ## App Center ### Release @@ -30,12 +36,6 @@ The parameters can be extracted from the Release page URL: `https://install.appc -## Apkpure - -### Versions - - - ## App Store/Mac App Store ### App Update diff --git a/lib/v2/nikkei-asia/index.js b/lib/v2/nikkei-asia/index.js index cce34bf4e..b8e9e4131 100644 --- a/lib/v2/nikkei-asia/index.js +++ b/lib/v2/nikkei-asia/index.js @@ -2,9 +2,7 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); const { parseDate } = require('@/utils/parse-date'); - module.exports = async (ctx) => { - const currentUrl = 'https://main-asianreview-nikkei.content.pugpig.com/editionfeed/4519/pugpig_atom_contents.json'; const response = await got({ @@ -12,7 +10,6 @@ module.exports = async (ctx) => { url: currentUrl, }); - const stories = response.data.stories; const items = await Promise.all( @@ -24,10 +21,12 @@ module.exports = async (ctx) => { }); item.pubDate = parseDate(item.published); - item.link = item.shareurl; + item.link = item.shareurl; - const fulltextcontent = cheerio.load(fulltext.data); - item.description = fulltextcontent('section[class="pp-article__body"]').html().replace(/\.\.\/\.\.\/\.\.\/\.\.\//g, 'https://main-asianreview-nikkei.content.pugpig.com/'); + const fulltextcontent = cheerio.load(fulltext.data); + item.description = fulltextcontent('section[class="pp-article__body"]') + .html() + .replace(/\.\.\/\.\.\/\.\.\/\.\.\//g, 'https://main-asianreview-nikkei.content.pugpig.com/'); return item; }) ) diff --git a/lib/v2/nikkei-asia/radar.js b/lib/v2/nikkei-asia/radar.js index 4d0171c3f..57ce95f0e 100644 --- a/lib/v2/nikkei-asia/radar.js +++ b/lib/v2/nikkei-asia/radar.js @@ -1,7 +1,7 @@ module.exports = { 'nikkei.com': { _name: 'Nikkei Asia', - 'asia': [ + asia: [ { title: 'Latest News', docs: 'https://docs.rsshub.app/traditional-media.html#nikkei-asia',