chore: format
This commit is contained in:
parent
3c432eb7e0
commit
b791066704
12
docs/blog.md
12
docs/blog.md
|
|
@ -194,6 +194,12 @@ pageClass: routes
|
|||
|
||||
<Route author="kt286" example="/meituan/tech/home" path="/meituan/tech/home"/>
|
||||
|
||||
## 十年之约
|
||||
|
||||
### 文章
|
||||
|
||||
<Route author="7Wate" example="/blogs/foreverblog" path="/blogs/foreverblog" />
|
||||
|
||||
## 王五四文集
|
||||
|
||||
### 文章
|
||||
|
|
@ -205,9 +211,3 @@ pageClass: routes
|
|||
### 文章
|
||||
|
||||
<Route author="junbaor SkiTiSu" example="/blogs/wangyin" path="/blogs/wangyin"/>
|
||||
|
||||
## 十年之约
|
||||
|
||||
### 文章
|
||||
|
||||
<Route author="7Wate" example="/blogs/foreverblog" path="/blogs/foreverblog" />
|
||||
|
|
|
|||
|
|
@ -539,7 +539,7 @@ Example:`https://www.iyingdi.com/tz/people/55547` ,id 是 `55547`
|
|||
|
||||
<Route author="Astrian" example="/arknights/news" path="/arknights/news"/>
|
||||
|
||||
### アークナイツ(日服新闻)
|
||||
### アークナイツ (日服新闻)
|
||||
|
||||
<Route author="ofyark" example="/arknights/japan" path="/arknights/japan"/>
|
||||
|
||||
|
|
|
|||
|
|
@ -2541,6 +2541,22 @@ type 列表:
|
|||
|
||||
<Route author="sushengmao" example="/cauele" path="/cauele" />
|
||||
|
||||
## 中国人民大学
|
||||
|
||||
### 人事处
|
||||
|
||||
<Route author="nczitzk" example="/ruc/hr" path="/ruc/hr/:category?" :paramsDesc="['分类,见下方说明,默认为首页通知公告']">
|
||||
|
||||
::: tip 提示
|
||||
|
||||
分类字段处填写的是对应中国人民大学人事处分类页网址中介于 **<http://hr.ruc.edu.cn/>** 和 **/index.htm** 中间的一段,并将其中的 `/` 修改为 `-`。
|
||||
|
||||
如 [中国人民大学人事处 - 办事机构 - 教师事务办公室 - 教师通知公告](http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm) 的网址为 <http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm> 其中介于 **<http://hr.ruc.edu.cn/>** 和 **/index.htm** 中间的一段为 `bsjg/bsjsswbgs/jstzgg`。随后,并将其中的 `/` 修改为 `-`,可以得到 `bsjg-bsjsswbgs-jstzgg`。所以最终我们的路由为 [`/ruc/hr/bsjg-bsjsswbgs-jstzgg`](https://rsshub.app/ruc/hr/bsjg-bsjsswbgs-jstzgg)
|
||||
|
||||
:::
|
||||
|
||||
</Route>
|
||||
|
||||
## 中国石油大学(华东)
|
||||
|
||||
### 中国石油大学研究生院通知公告
|
||||
|
|
@ -2601,22 +2617,6 @@ type 列表:
|
|||
|
||||
</Route>
|
||||
|
||||
## 中国人民大学
|
||||
|
||||
### 人事处
|
||||
|
||||
<Route author="nczitzk" example="/ruc/hr" path="/ruc/hr/:category?" :paramsDesc="['分类,见下方说明,默认为首页通知公告']">
|
||||
|
||||
::: tip 提示
|
||||
|
||||
分类字段处填写的是对应中国人民大学人事处分类页网址中介于 **<http://hr.ruc.edu.cn/>** 和 **/index.htm** 中间的一段,并将其中的 `/` 修改为 `-`。
|
||||
|
||||
如 [中国人民大学人事处 - 办事机构 - 教师事务办公室 - 教师通知公告](http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm) 的网址为 <http://hr.ruc.edu.cn/bsjg/bsjsswbgs/jstzgg/index.htm> 其中介于 **<http://hr.ruc.edu.cn/>** 和 **/index.htm** 中间的一段为 `bsjg/bsjsswbgs/jstzgg`。随后,并将其中的 `/` 修改为 `-`,可以得到 `bsjg-bsjsswbgs-jstzgg`。所以最终我们的路由为 [`/ruc/hr/bsjg-bsjsswbgs-jstzgg`](https://rsshub.app/ruc/hr/bsjg-bsjsswbgs-jstzgg)
|
||||
|
||||
:::
|
||||
|
||||
</Route>
|
||||
|
||||
## 中山大学
|
||||
|
||||
### 数据科学与计算机学院动态
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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}`,
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue