From b791066704e721c9a4577df96ab32b1bfecbcbce Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 27 Nov 2021 09:03:43 +0000 Subject: [PATCH] chore: format --- docs/blog.md | 12 ++++++------ docs/game.md | 2 +- docs/university.md | 32 ++++++++++++++++---------------- lib/routes/arknights/japan.js | 6 ++---- lib/routes/secrss/category.js | 4 ++-- 5 files changed, 27 insertions(+), 29 deletions(-) diff --git a/docs/blog.md b/docs/blog.md index 6c689c03c..1a2456a09 100644 --- a/docs/blog.md +++ b/docs/blog.md @@ -194,6 +194,12 @@ pageClass: routes +## 十年之约 + +### 文章 + + + ## 王五四文集 ### 文章 @@ -205,9 +211,3 @@ pageClass: routes ### 文章 - -## 十年之约 - -### 文章 - - diff --git a/docs/game.md b/docs/game.md index bc1d0e988..c8d00b0b8 100644 --- a/docs/game.md +++ b/docs/game.md @@ -539,7 +539,7 @@ Example:`https://www.iyingdi.com/tz/people/55547` ,id 是 `55547` -### アークナイツ(日服新闻) +### アークナイツ (日服新闻) diff --git a/docs/university.md b/docs/university.md index de6515974..b1e3aa2da 100644 --- a/docs/university.md +++ b/docs/university.md @@ -2541,6 +2541,22 @@ type 列表: +## 中国人民大学 + +### 人事处 + + + +::: tip 提示 + +分类字段处填写的是对应中国人民大学人事处分类页网址中介于 **** 和 **/index.htm** 中间的一段,并将其中的 `/` 修改为 `-`。 + +如 [中国人民大学人事处 - 办事机构 - 教师事务办公室 - 教师通知公告](http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm) 的网址为 其中介于 **** 和 **/index.htm** 中间的一段为 `bsjg/bsjsswbgs/jstzgg`。随后,并将其中的 `/` 修改为 `-`,可以得到 `bsjg-bsjsswbgs-jstzgg`。所以最终我们的路由为 [`/ruc/hr/bsjg-bsjsswbgs-jstzgg`](https://rsshub.app/ruc/hr/bsjg-bsjsswbgs-jstzgg) + +::: + + + ## 中国石油大学(华东) ### 中国石油大学研究生院通知公告 @@ -2601,22 +2617,6 @@ type 列表: -## 中国人民大学 - -### 人事处 - - - -::: tip 提示 - -分类字段处填写的是对应中国人民大学人事处分类页网址中介于 **** 和 **/index.htm** 中间的一段,并将其中的 `/` 修改为 `-`。 - -如 [中国人民大学人事处 - 办事机构 - 教师事务办公室 - 教师通知公告](http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm) 的网址为 其中介于 **** 和 **/index.htm** 中间的一段为 `bsjg/bsjsswbgs/jstzgg`。随后,并将其中的 `/` 修改为 `-`,可以得到 `bsjg-bsjsswbgs-jstzgg`。所以最终我们的路由为 [`/ruc/hr/bsjg-bsjsswbgs-jstzgg`](https://rsshub.app/ruc/hr/bsjg-bsjsswbgs-jstzgg) - -::: - - - ## 中山大学 ### 数据科学与计算机学院动态 diff --git a/lib/routes/arknights/japan.js b/lib/routes/arknights/japan.js index 3e0d7630d..cabb348e7 100644 --- a/lib/routes/arknights/japan.js +++ b/lib/routes/arknights/japan.js @@ -1,7 +1,6 @@ const got = require('@/utils/got'); module.exports = async (ctx) => { - const response = await got({ method: 'get', url: 'https://www.arknights.jp:10014/news?lang=ja&limit=9&page=1', @@ -12,7 +11,7 @@ module.exports = async (ctx) => { title: item.title, description: item.content[0].value, pubDate: item.publishedAt, - link: `https://www.arknights.jp/news/${item.id}` + link: `https://www.arknights.jp/news/${item.id}`, })); ctx.state.data = { @@ -22,5 +21,4 @@ module.exports = async (ctx) => { language: 'ja', item: newsList, }; - -}; \ No newline at end of file +}; diff --git a/lib/routes/secrss/category.js b/lib/routes/secrss/category.js index dd787d568..bee2f997e 100644 --- a/lib/routes/secrss/category.js +++ b/lib/routes/secrss/category.js @@ -4,7 +4,7 @@ module.exports = async (ctx) => { const api = 'https://www.secrss.com/api/articles?tag='; let type = ctx.params.category; if (type === undefined) { - type = ""; + type = ''; } const host = 'https://www.secrss.com'; const res = await got.get(`${api}${type}`); @@ -13,7 +13,7 @@ module.exports = async (ctx) => { const items = dataArray.map((item) => ({ title: item.title, description: item.summary, - pubDate: new Date(item.published_at + " GMT").toUTCString(), + pubDate: new Date(item.published_at + ' GMT').toUTCString(), link: `${host}/articles/${item.id}`, }));