style: auto format

This commit is contained in:
GitHub Action
2022-02-03 13:50:41 +00:00
parent 277a740557
commit 3c9be07be5
3 changed files with 12 additions and 13 deletions
+6 -6
View File
@@ -16,6 +16,12 @@ pageClass: routes
<Route author="nczitzk" example="/anytxt/release-notes" path="/anytxt/release-notes"/>
## Apkpure
### Versions
<RouteEn author="maple3142" example="/apkpure/versions/jp/jp.co.craftegg.band" path="/apkpure/versions/:region/:pkg" :paramsDesc="['Region code', 'package name']"/>
## App Center
### Release
@@ -30,12 +36,6 @@ The parameters can be extracted from the Release page URL: `https://install.appc
</RouteEn>
## Apkpure
### Versions
<RouteEn author="maple3142" example="/apkpure/versions/jp/jp.co.craftegg.band" path="/apkpure/versions/:region/:pkg" :paramsDesc="['Region code', 'package name']"/>
## App Store/Mac App Store
### App Update
+5 -6
View File
@@ -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;
})
)
+1 -1
View File
@@ -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',