style: auto format
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,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',
|
||||
|
||||
Reference in New Issue
Block a user