From d4d8df16ee327efa1fa106677c13ef9b4fdeaf81 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:46:19 +0000 Subject: [PATCH] style: auto format --- lib/v2/xmut/jwc/bkjw.js | 40 ++++++++++++++++--------------- lib/v2/xmut/radar.js | 2 +- lib/v2/xmut/router.js | 2 +- website/docs/routes/university.md | 32 ++++++++++++------------- 4 files changed, 39 insertions(+), 37 deletions(-) diff --git a/lib/v2/xmut/jwc/bkjw.js b/lib/v2/xmut/jwc/bkjw.js index d1839d9bd80709..40e29d91b67955 100644 --- a/lib/v2/xmut/jwc/bkjw.js +++ b/lib/v2/xmut/jwc/bkjw.js @@ -15,25 +15,27 @@ module.exports = async (ctx) => { }, }); const $ = cheerio.load(res.data); - const itemsArray = $('#result_list table tbody tr').map((index, row) => { - const res = $('td', row).eq(0); - const resDate = $('td', row).eq(1); - const resLink = $('a', res).attr('href'); - let link; - if (resLink.startsWith('../../')) { - const parsedUrl = new URL(resLink, xmut); - link = parsedUrl.href; - } else { - link = resLink; - } - const title = $('a', res).attr('title'); - const pubDate = parseDate(resDate.text().trim()); - return { - title, - link, - pubDate - }; - }).get(); + const itemsArray = $('#result_list table tbody tr') + .map((index, row) => { + const res = $('td', row).eq(0); + const resDate = $('td', row).eq(1); + const resLink = $('a', res).attr('href'); + let link; + if (resLink.startsWith('../../')) { + const parsedUrl = new URL(resLink, xmut); + link = parsedUrl.href; + } else { + link = resLink; + } + const title = $('a', res).attr('title'); + const pubDate = parseDate(resDate.text().trim()); + return { + title, + link, + pubDate, + }; + }) + .get(); const items = await Promise.all( itemsArray.map((item) => ctx.cache.tryGet(item.link, async () => { diff --git a/lib/v2/xmut/radar.js b/lib/v2/xmut/radar.js index 29a8ecbdeca697..b1adc5c15694fd 100644 --- a/lib/v2/xmut/radar.js +++ b/lib/v2/xmut/radar.js @@ -10,4 +10,4 @@ module.exports = { }, ], }, -}; \ No newline at end of file +}; diff --git a/lib/v2/xmut/router.js b/lib/v2/xmut/router.js index 30940e31d19309..454670246e67a9 100644 --- a/lib/v2/xmut/router.js +++ b/lib/v2/xmut/router.js @@ -1,4 +1,4 @@ module.exports = (router) => { router.get('/jwc/bkjw/:category?', require('./jwc/bkjw.js')); router.get('/jwc/yjjw/:category?', require('./jwc/yjs.js')); -}; \ No newline at end of file +}; diff --git a/website/docs/routes/university.md b/website/docs/routes/university.md index 4271c2c0bcc7c3..f3db65573e6ea0 100644 --- a/website/docs/routes/university.md +++ b/website/docs/routes/university.md @@ -2507,22 +2507,6 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS -## 厦门理工大学 {#xia-men-li-gong-da-xue} - -### 教务处 {#xia-men-li-gong-da-xue-jiao-wu-chu} - - - -| 本科生教务处 | 系统说明 | 研究生处 | 系统说明 | -| :------: | :--------: | :--------: | :-------: | -| jxyx | 教学运行 | tzgg | 通知公告 | -| zhsw | 综合事务 | xwdt | 新闻动态 | -| xwgl | 学务管理 | xstj | 学术研究 | -| sjjx | 实践教学 | yjsjw | 工作简讯 | -| jyjg | 教研教改 | | | - - - ## 清华大学 {#qing-hua-da-xue} ### 清华大学校内信息发布平台 {#qing-hua-da-xue-qing-hua-da-xue-xiao-nei-xin-xi-fa-bu-ping-tai} @@ -2557,6 +2541,22 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS +## 厦门理工大学 {#xia-men-li-gong-da-xue} + +### 教务处 {#xia-men-li-gong-da-xue-jiao-wu-chu} + + + +| 本科生教务处 | 系统说明 | 研究生处 | 系统说明 | +| :------: | :--------: | :--------: | :-------: | +| jxyx | 教学运行 | tzgg | 通知公告 | +| zhsw | 综合事务 | xwdt | 新闻动态 | +| xwgl | 学务管理 | xstj | 学术研究 | +| sjjx | 实践教学 | yjsjw | 工作简讯 | +| jyjg | 教研教改 | | | + + + ## 山东大学 {#shan-dong-da-xue} ### 软件学院通知 {#shan-dong-da-xue-ruan-jian-xue-yuan-tong-zhi}