fix(route): science (#11081)
* fix(route): science * fix: maintainer rename this can be confirmed by visiting https://github.com/yech1990/myneovim.lua which will be redirected to https://github.com/y9c/myneovim.lua
This commit is contained in:
parent
58aee4c315
commit
62ac95fc70
|
|
@ -77,7 +77,7 @@ Fill in parameter `query` with content after `http://export.arxiv.org/api/query?
|
|||
|
||||
### Current Issue
|
||||
|
||||
<RouteEn author="yech1990" example="/cell/cell/current" path="/cell/cell/:category" supportScihub="1" />
|
||||
<RouteEn author="y9c" example="/cell/cell/current" path="/cell/cell/:category" supportScihub="1" />
|
||||
|
||||
| `:category` | Query Type | Route |
|
||||
| :---------: | :---------------------: | ---------------------------------------------------------- |
|
||||
|
|
@ -88,7 +88,7 @@ Fill in parameter `query` with content after `http://export.arxiv.org/api/query?
|
|||
|
||||
### Cover Story
|
||||
|
||||
<RouteEn author="yech1990" example="/cell/cover" path="/cell/cover" />
|
||||
<RouteEn author="y9c" example="/cell/cover" path="/cell/cover" />
|
||||
|
||||
Subscribe to the cover images of the Cell journals, and get the latest publication updates in time.
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### Latest Research
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/nature/research/ng" path="/nature/research/:journal?" :paramsDesc="['short name for a journal, `nature` by default']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/nature/research/ng" path="/nature/research/:journal?" :paramsDesc="['short name for a journal, `nature` by default']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
| `:journal` | Full Name of the Journal | Route |
|
||||
| :-----------: | :-------------------------: | ---------------------------------------------------------------------------------- |
|
||||
|
|
@ -215,7 +215,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### News & Comment
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/nature/news-and-comment/ng" path="/nature/news-and-comment/:journal" :paramsDesc="['short name for a journal']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/nature/news-and-comment/ng" path="/nature/news-and-comment/:journal" :paramsDesc="['short name for a journal']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
| `:journal` | Full Name of the Journal | Route |
|
||||
| :-----------: | :-------------------------: | --------------------------------------------------------------------------------------------------------------------- |
|
||||
|
|
@ -235,7 +235,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### Cover Story
|
||||
|
||||
<RouteEn author="yech1990" example="/nature/cover" path="/nature/cover" />
|
||||
<RouteEn author="y9c" example="/nature/cover" path="/nature/cover" />
|
||||
|
||||
Subscribe to the cover images of the Nature journals, and get the latest publication updates in time.
|
||||
|
||||
|
|
@ -243,11 +243,11 @@ Subscribe to the cover images of the Nature journals, and get the latest publica
|
|||
|
||||
### Nature News
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/nature/news" path="/nature/news" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/nature/news" path="/nature/news" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
### Research Highlight
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/nature/highlight" path="/nature/highlight/:journal?" :paramsDesc="['short name for a journal, `nature` by default']" supportScihub="1" radar="1" rssbud="1">
|
||||
<RouteEn author="y9c TonyRL" example="/nature/highlight" path="/nature/highlight/:journal?" :paramsDesc="['short name for a journal, `nature` by default']" supportScihub="1" radar="1" rssbud="1">
|
||||
|
||||
::: warning Warning
|
||||
|
||||
|
|
@ -288,7 +288,7 @@ Only some journals are supported.
|
|||
|
||||
### Trending articles
|
||||
|
||||
<RouteEn author="yech1990 nczitzk" example="/pubmed/trending" path="/pubmed/trending/:filter?" :paramsDesc="['Filters, can be found in URL']" supportScihub="1">
|
||||
<RouteEn author="y9c nczitzk" example="/pubmed/trending" path="/pubmed/trending/:filter?" :paramsDesc="['Filters, can be found in URL']" supportScihub="1">
|
||||
|
||||
::: tip Tip
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ In <https://pubmed.ncbi.nlm.nih.gov/trending/?filter=simsearch1.fha&filter=pubt.
|
|||
|
||||
### Current Issue
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/science/current/science" path="/science/current/:journal?" :paramsDesc="['Short name for a journal']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/science/current/science" path="/science/current/:journal?" :paramsDesc="['Short name for a journal']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
|
||||
| Short name | Full name of the journal | Route |
|
||||
| :--------: | :----------------------------: | ---------------------------------------------------------------------------------- |
|
||||
|
|
@ -322,7 +322,7 @@ In <https://pubmed.ncbi.nlm.nih.gov/trending/?filter=simsearch1.fha&filter=pubt.
|
|||
|
||||
### Cover Story
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/science/cover" path="/science/cover" anticrawler="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/science/cover" path="/science/cover" anticrawler="1" radar="1" rssbud="1"/>
|
||||
|
||||
Subscribe to the cover images of Science journals, and get the latest publication updates in time.
|
||||
|
||||
|
|
@ -332,7 +332,7 @@ Including 'Science', 'Science Advances', 'Science Immunology', 'Science Robotics
|
|||
|
||||
### First Release
|
||||
|
||||
<RouteEn author="yech1990 TonyRL" example="/science/early" path="/science/early/:journal?" :paramsDesc="['Short name for a journal']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
<RouteEn author="y9c TonyRL" example="/science/early" path="/science/early/:journal?" :paramsDesc="['Short name for a journal']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
|
||||
*only Science, Science Immunology and Science Translational Medicine have first release*
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ pageClass: routes
|
|||
|
||||
### Theses
|
||||
|
||||
<RouteEn author="yech1990" example="/linkresearcher/category=theses&subject=生物" path="/linkresearcher/theses/:param" supportScihub="1" :paramsDesc="['key=value,eg. subject=生物']" radar="1" rssbud="1">
|
||||
<RouteEn author="y9c" example="/linkresearcher/category=theses&subject=生物" path="/linkresearcher/theses/:param" supportScihub="1" :paramsDesc="['key=value,eg. subject=生物']" radar="1" rssbud="1">
|
||||
|
||||
| `:param` | example | definition |
|
||||
| -------- | --------------- | -------------------------------------- |
|
||||
|
|
@ -116,7 +116,7 @@ pageClass: routes
|
|||
|
||||
### News
|
||||
|
||||
<RouteEn author="yech1990" example="/zhishifenzi/news/ai" path="/zhishifenzi/news/:type" :paramsDesc="['type,eg. ai']">
|
||||
<RouteEn author="y9c" example="/zhishifenzi/news/ai" path="/zhishifenzi/news/:type" :paramsDesc="['type,eg. ai']">
|
||||
|
||||
| `:type` | type name |
|
||||
| --------- | --------- |
|
||||
|
|
@ -134,11 +134,11 @@ pageClass: routes
|
|||
|
||||
### depth
|
||||
|
||||
<RouteEn author="yech1990" example="/zhishifenzi/depth" path="/zhishifenzi/depth" />
|
||||
<RouteEn author="y9c" example="/zhishifenzi/depth" path="/zhishifenzi/depth" />
|
||||
|
||||
### innovation
|
||||
|
||||
<RouteEn author="yech1990" example="/zhishifenzi/innovation/company" path="/zhishifenzi/innovation/:type" :paramsDesc="['type,eg. company']">
|
||||
<RouteEn author="y9c" example="/zhishifenzi/innovation/company" path="/zhishifenzi/innovation/:type" :paramsDesc="['type,eg. company']">
|
||||
|
||||
| `:type` | type name |
|
||||
| ------------- | ------------- |
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ pageClass: routes
|
|||
|
||||
### 主刊
|
||||
|
||||
<Route author="yech1990" example="/cell/cell/current" path="/journals/cell/cell/:category" supportScihub="1"/>
|
||||
<Route author="y9c" example="/cell/cell/current" path="/journals/cell/cell/:category" supportScihub="1"/>
|
||||
|
||||
| `:category` | 类型说明 | 路由 |
|
||||
| :---------: | :---------: | ---------------------------------------------------------- |
|
||||
|
|
@ -88,7 +88,7 @@ pageClass: routes
|
|||
|
||||
### 封面故事
|
||||
|
||||
<Route author="yech1990" example="/cell/cover" path="/cell/cover" />
|
||||
<Route author="y9c" example="/cell/cover" path="/cell/cover" />
|
||||
|
||||
订阅 Cell 系列杂志的封面图片,并及时获取刊物更新状态。
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 最新成果
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/nature/research/ng" path="/nature/research/:journal?" :paramsDesc="['期刊名简写,默认为 `nature`']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/nature/research/ng" path="/nature/research/:journal?" :paramsDesc="['期刊名简写,默认为 `nature`']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
| `:journal` | 期刊名 | 路由 |
|
||||
| :-----------: | :-------------------------: | ---------------------------------------------------------------------------------- |
|
||||
|
|
@ -187,7 +187,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 新闻及评论
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/nature/news-and-comment/ng" path="/nature/news-and-comment/:journal" :paramsDesc="['期刊名简写']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/nature/news-and-comment/ng" path="/nature/news-and-comment/:journal" :paramsDesc="['期刊名简写']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
| `:journal` | 期刊名 | 路由 |
|
||||
| :-----------: | :-------------------------: | -------------------------------------------------------------------------------------------------- |
|
||||
|
|
@ -208,7 +208,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 封面故事
|
||||
|
||||
<Route author="yech1990" example="/nature/cover" path="/nature/cover" />
|
||||
<Route author="y9c" example="/nature/cover" path="/nature/cover" />
|
||||
|
||||
订阅 Nature 系列杂志的封面图片,并及时获取刊物更新状态。
|
||||
|
||||
|
|
@ -216,11 +216,11 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 主刊 - 新闻动态
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/nature/news" path="/nature/news" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/nature/news" path="/nature/news" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
### 精彩研究
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/nature/highlight" path="/nature/highlight/:journal?" :paramsDesc="['期刊名简写,默认为 `nature`']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/nature/highlight" path="/nature/highlight/:journal?" :paramsDesc="['期刊名简写,默认为 `nature`']" supportScihub="1" radar="1" rssbud="1"/>
|
||||
|
||||
::: warning 警告
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 最新文章(可筛选领域)
|
||||
|
||||
<Route author="emdoe yech1990" example="/pnas/Applied Mathematics" path="/pnas/:topic" :paramsDesc="['领域名称','可从 pnas.org 获得']" supportScihub="1"/>
|
||||
<Route author="emdoe y9c" example="/pnas/Applied Mathematics" path="/pnas/:topic" :paramsDesc="['领域名称','可从 pnas.org 获得']" supportScihub="1"/>
|
||||
|
||||
- 通过 `/pnas/` + “领域名称” 来获取对应 “领域” 的最新文章(Latest Research)。
|
||||
若参数置空(`/pnas`)或为 latest(`/pnas/latest`),则默认获取全部文章。
|
||||
|
|
@ -255,7 +255,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### Trending articles
|
||||
|
||||
<Route author="yech1990 nczitzk" example="/pubmed/trending" path="/pubmed/trending/:filter?" :paramsDesc="['过滤条件,可在 URL 中找到']" supportScihub="1">
|
||||
<Route author="y9c nczitzk" example="/pubmed/trending" path="/pubmed/trending/:filter?" :paramsDesc="['过滤条件,可在 URL 中找到']" supportScihub="1">
|
||||
|
||||
::: tip 提示
|
||||
|
||||
|
|
@ -271,7 +271,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 本期刊物
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/science/current/science" path="/science/current/:journal" :paramsDesc="['期刊名简写']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/science/current/science" path="/science/current/:journal" :paramsDesc="['期刊名简写']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
|
||||
| 简写 | 期刊名 | 路由 |
|
||||
| :---------: | :----------------------------: | ------------------------------------------------------------------------------ |
|
||||
|
|
@ -289,7 +289,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 封面故事
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/science/cover" path="/science/cover" anticrawler="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/science/cover" path="/science/cover" anticrawler="1" radar="1" rssbud="1"/>
|
||||
|
||||
订阅 Science 系列杂志的封面图片,并及时获取刊物更新状态。
|
||||
|
||||
|
|
@ -299,7 +299,7 @@ You can get all short name of a journal from <https://www.nature.com/siteindex>
|
|||
|
||||
### 在线发表
|
||||
|
||||
<Route author="yech1990 TonyRL" example="/science/early" path="/science/early/:journal?" :paramsDesc="['期刊名简写']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
<Route author="y9c TonyRL" example="/science/early" path="/science/early/:journal?" :paramsDesc="['期刊名简写']" supportScihub="1" anticrawler="1" puppeteer="1" radar="1" rssbud="1"/>
|
||||
|
||||
*仅 Science, Science Immunology 和 Science Translational Medicine 提供在线发表*
|
||||
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ path="/ctfhub/upcoming/:limit?"
|
|||
|
||||
### 论文
|
||||
|
||||
<Route author="yech1990" example="/linkresearcher/category=theses&subject=生物" path="/linkresearcher/theses/:param" supportScihub="1" :paramsDesc="['参数,如 subject=生物']" radar="1" rssbud="1">
|
||||
<Route author="y9c" example="/linkresearcher/category=theses&subject=生物" path="/linkresearcher/theses/:param" supportScihub="1" :paramsDesc="['参数,如 subject=生物']" radar="1" rssbud="1">
|
||||
|
||||
| `:param` | 举例 | 定义 |
|
||||
| -------- | --------------- | --------------------------------- |
|
||||
|
|
@ -580,7 +580,7 @@ path="/ctfhub/upcoming/:limit?"
|
|||
|
||||
### 新聞
|
||||
|
||||
<Route author="yech1990" example="/zhishifenzi/news/ai" path="/zhishifenzi/news/:type" :paramsDesc="['类别,如 ai']"/>
|
||||
<Route author="y9c" example="/zhishifenzi/news/ai" path="/zhishifenzi/news/:type" :paramsDesc="['类别,如 ai']"/>
|
||||
|
||||
| `:type` | 类别名称 |
|
||||
| --------- | ---- |
|
||||
|
|
@ -596,11 +596,11 @@ path="/ctfhub/upcoming/:limit?"
|
|||
|
||||
### 深度
|
||||
|
||||
<Route author="yech1990" example="/zhishifenzi/depth" path="/zhishifenzi/depth" />
|
||||
<Route author="y9c" example="/zhishifenzi/depth" path="/zhishifenzi/depth" />
|
||||
|
||||
### 创新
|
||||
|
||||
<Route author="yech1990" example="/zhishifenzi/innovation/company" path="/zhishifenzi/innovation/:type" :paramsDesc="['类别,如 company']"/>
|
||||
<Route author="y9c" example="/zhishifenzi/innovation/company" path="/zhishifenzi/innovation/:type" :paramsDesc="['类别,如 company']"/>
|
||||
|
||||
| `:type` | 类别名称 |
|
||||
| ------------- | ------ |
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ module.exports = async (ctx) => {
|
|||
|
||||
const single = {
|
||||
title: `${pageMeta.issueName} | ${pageMeta.issueNum} (${pageMeta.issueDate})`,
|
||||
author: '@yech1990',
|
||||
author: '@y9c',
|
||||
description: contents,
|
||||
link: address,
|
||||
guid: address,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
module.exports = {
|
||||
'/cover': ['yech1990'],
|
||||
'/highlight/:journal?/:year?': ['yech1990', 'TonyRL'],
|
||||
'/news': ['yech1990', 'TonyRL'],
|
||||
'/news-and-comment/:journal?': ['yech1990', 'TonyRL'],
|
||||
'/research/:journal?': ['yech1990', 'TonyRL'],
|
||||
'/cover': ['y9c'],
|
||||
'/highlight/:journal?/:year?': ['y9c', 'TonyRL'],
|
||||
'/news': ['y9c', 'TonyRL'],
|
||||
'/news-and-comment/:journal?': ['y9c', 'TonyRL'],
|
||||
'/research/:journal?': ['y9c', 'TonyRL'],
|
||||
'/siteindex': ['TonyRL'],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ module.exports = async (ctx) => {
|
|||
description: `Current Issue of ${pageTitleName}`,
|
||||
image: `${baseUrl}/apple-touch-icon.png`,
|
||||
link: pageURL,
|
||||
language: 'en-US',
|
||||
item: items,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
module.exports = {
|
||||
'/cover': ['yech1990', 'TonyRL'],
|
||||
'/current/:journal?': ['yech1990', 'TonyRL'],
|
||||
'/early/:journal?': ['yech1990', 'TonyRL'],
|
||||
'/cover': ['y9c', 'TonyRL'],
|
||||
'/current/:journal?': ['y9c', 'TonyRL'],
|
||||
'/early/:journal?': ['y9c', 'TonyRL'],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const fetchDesc = (list, browser, tryGet) =>
|
|||
await page.goto(item.link, {
|
||||
waitUntil: 'domcontentloaded',
|
||||
});
|
||||
await page.waitForSelector('section#frontmatter, .news-article-content, .news-article-content--featured');
|
||||
await page.waitForSelector('section#bodymatter, .news-article-content, .news-article-content--featured');
|
||||
const res = await page.evaluate(() => document.documentElement.innerHTML);
|
||||
await page.close();
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ const fetchDesc = (list, browser, tryGet) =>
|
|||
? $('.news-article-content--featured').html()
|
||||
: $('.news-article-content').length
|
||||
? $('.news-article-content').html()
|
||||
: $('.info-panel__formats a.btn__request-access').length
|
||||
: $('.info-panel__formats a.btn__request-access').length || $('.info-panel__formats a.btn--access').length
|
||||
? ''
|
||||
: $('section#bodymatter').html();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue