Skip to content

Commit

Permalink
Merge pull request #621 from DIYgod/master
Browse files Browse the repository at this point in the history
[pull] master from diygod:master
  • Loading branch information
pull[bot] authored Nov 21, 2024
2 parents dba6d95 + e7d732b commit 2684fed
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 24 deletions.
6 changes: 6 additions & 0 deletions lib/routes/hrbust/jwzx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export const route: Route = {
description: `| 名师风采 | 热点新闻 | 教务公告 | 教学新闻 |
| -------- | -------- | -------- | -------- |
| 351 | 353 | 354 | 355 |`,
radar: [
{
source: ['jwzx.hrbust.edu.cn/homepage/index.do'],
target: '/jwzx',
},
],
};

async function handler(ctx) {
Expand Down
3 changes: 1 addition & 2 deletions lib/routes/scu/scupi/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ export async function getArticle(item) {
const $ = load(html);
const articleContentElement = $('body > div > main > section > div > div > div.post-content-contaier > div');
const content = articleContentElement.html();
const modifiedContent = content?.replace(/\n/g, '<br>');

item.description = modifiedContent;
item.description = content;
return item;
} catch {
// console.error(error);
Expand Down
3 changes: 2 additions & 1 deletion lib/routes/scu/scupi/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ async function handler() {
title: '四川大学匹兹堡学院',
description: '四川大学匹兹堡学院官网通知',
language: 'zh-cn',
image: 'https://scupi.scu.edu.cn/wp-content/themes/scupi/img/logo.png',
image: 'https://upload.wikimedia.org/wikipedia/zh/4/45/Sichuan_University_logo.svg',
logo: 'https://upload.wikimedia.org/wikipedia/zh/4/45/Sichuan_University_logo.svg',
link: 'https://scupi.scu.edu.cn/',
item: itemsWithContent,
};
Expand Down
4 changes: 3 additions & 1 deletion lib/routes/tongji/sem/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ async function handler(ctx) {
return {
title: '同济大学经济与管理学院',
description: String(subType.has(type) ? subTypeName[type] : '学院通知'),
image: 'https://tongji.edu.cn/images/badge.png',
image: 'https://upload.wikimedia.org/wikipedia/zh/f/f8/Tongji_University_Emblem.svg',
icon: 'https://upload.wikimedia.org/wikipedia/zh/f/f8/Tongji_University_Emblem.svg',
logo: 'https://upload.wikimedia.org/wikipedia/zh/f/f8/Tongji_University_Emblem.svg',
link: 'https://sem.tongji.edu.cn/semch',
item: resultsWithContent,
};
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@opentelemetry/resources": "1.28.0",
"@opentelemetry/sdk-metrics": "1.28.0",
"@opentelemetry/sdk-trace-base": "1.28.0",
"@opentelemetry/semantic-conventions": "1.27.0",
"@opentelemetry/semantic-conventions": "1.28.0",
"@postlight/parser": "2.2.3",
"@rss3/sdk": "0.0.23",
"@scalar/hono-api-reference": "0.5.160",
Expand Down Expand Up @@ -123,8 +123,8 @@
"source-map": "0.7.4",
"telegram": "2.26.8",
"tiny-async-pool": "2.1.0",
"title": "4.0.0",
"tldts": "6.1.61",
"title": "4.0.1",
"tldts": "6.1.62",
"tosource": "2.0.0-alpha.3",
"tough-cookie": "5.0.0",
"tsx": "4.19.2",
Expand Down
40 changes: 23 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2684fed

Please sign in to comment.