Skip to content

Commit

Permalink
style: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 8, 2024
1 parent 495cff5 commit 5b772a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions lib/routes/qust/jw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ export default async (ctx) => {
url: `${baseUrl}jwtz.htm`,
});
const $ = load(response.data);
const items = $('.winstyle60982 tr a.c60982').map((_, element) => {
const linkElement = $(element);
const itemTitle = linkElement.text().trim();
const path = linkElement.attr('href');
const itemUrl = path.startsWith('http') ? path : `${baseUrl}${path}`;
return {
title: itemTitle,
link: itemUrl,
};
}).get();
const items = $('.winstyle60982 tr a.c60982')
.map((_, element) => {
const linkElement = $(element);
const itemTitle = linkElement.text().trim();
const path = linkElement.attr('href');
const itemUrl = path.startsWith('http') ? path : `${baseUrl}${path}`;
return {
title: itemTitle,
link: itemUrl,
};
})
.get();

ctx.set('data', {
title: '青岛科技大学 - 教务通知',
link: `${baseUrl}jwtz.htm`,
item: items,
});
};


12 changes: 6 additions & 6 deletions website/docs/routes/university.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,12 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE\_TL

<Route author="abc1763613206" example="/qdu/houqin" path="/qdu/houqin" radar="1" />

## 青岛科技大学 {#qing-dao-ke-ji-da-xue}

### 教务通知 {#qing-dao-ke-ji-da-xue-jiao-wu-tong-zhi}

<Route author="Silent-wqh" example="/qust/jw" path="/qust/jw" radar="1" />

## 清华大学 {#qing-hua-da-xue}

### 清华大学校内信息发布平台 {#qing-hua-da-xue-qing-hua-da-xue-xiao-nei-xin-xi-fa-bu-ping-tai}
Expand Down Expand Up @@ -3699,9 +3705,3 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE\_TL
| -------- | -------- | -------- | -------- |
| results | papers | writings | policy |
</Route>

## 青岛科技大学 {#qing-dao-ke-ji-da-xue}

### 教务通知 {#qing-dao-ke-ji-da-xue-jiao-wu-tong-zhi}

<Route author="Silent-wqh" example="/qust/jw" path="/qust/jw" radar="1" />

0 comments on commit 5b772a6

Please sign in to comment.