From 29276d8399ae626d4220e718b3ec7dbe9d22ef90 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 03:37:39 +0000 Subject: [PATCH] style: auto format --- lib/v2/tongji/bks.js | 29 ++++++++++++++--------------- lib/v2/tongji/maintainer.js | 1 - lib/v2/tongji/radar.js | 2 +- website/docs/routes/university.mdx | 2 +- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/lib/v2/tongji/bks.js b/lib/v2/tongji/bks.js index 41275b81b..c50c3a1ae 100644 --- a/lib/v2/tongji/bks.js +++ b/lib/v2/tongji/bks.js @@ -12,20 +12,19 @@ module.exports = async (ctx) => { title: '同济大学本科生院', link, description: '同济大学本科生院通知公告', - item: - list?.toArray().map((item) => { - item = $(item); - const a = item.find('a'); - const dateItem = item.find('.li-data'); - const yearAndMonth = dateItem.find('span').text().split('-'); - const day = dateItem.find('p').text(); - const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`; - return { - title: item.find('.li-tt-title').text(), - description: item.find('.intro').text(), - link: new URL(a.attr('href'), link).href, - pubDate: parseDate(date, 'YYYY-MM-DD') - }; - }), + item: list?.toArray().map((item) => { + item = $(item); + const a = item.find('a'); + const dateItem = item.find('.li-data'); + const yearAndMonth = dateItem.find('span').text().split('-'); + const day = dateItem.find('p').text(); + const date = `${yearAndMonth[0]}-${yearAndMonth[1]}-${day}`; + return { + title: item.find('.li-tt-title').text(), + description: item.find('.intro').text(), + link: new URL(a.attr('href'), link).href, + pubDate: parseDate(date, 'YYYY-MM-DD'), + }; + }), }; }; diff --git a/lib/v2/tongji/maintainer.js b/lib/v2/tongji/maintainer.js index d6d7d9aba..3ef667e66 100644 --- a/lib/v2/tongji/maintainer.js +++ b/lib/v2/tongji/maintainer.js @@ -2,5 +2,4 @@ module.exports = { '/bks': ['shiquda'], '/sse/:type?': ['sgqy'], '/yjs': ['shengmaosu'], - }; diff --git a/lib/v2/tongji/radar.js b/lib/v2/tongji/radar.js index acb199288..4671062e8 100644 --- a/lib/v2/tongji/radar.js +++ b/lib/v2/tongji/radar.js @@ -7,7 +7,7 @@ module.exports = { docs: 'https://docs.rsshub.app/routes/university#tong-ji-da-xue', source: ['/'], target: '/tongji/bks', - } + }, ], sse: [ { diff --git a/website/docs/routes/university.mdx b/website/docs/routes/university.mdx index 5c1bd95be..47edeb617 100644 --- a/website/docs/routes/university.mdx +++ b/website/docs/routes/university.mdx @@ -2755,7 +2755,7 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE\_TL 注意: `qttz` 与 `xytz` 在原网站等价. -### 本科生院通知公告 {#tong-ji-da-xue-yan-jiu-sheng-yuan-tong-zhi-gong-gao} +### 本科生院通知公告 {#tong-ji-da-xue-ben-ke-sheng-yuan-tong-zhi-gong-gao}