Skip to content

Commit bb98fff

Browse files
committed
fix(radar): update radar sources for multiple routes
1 parent f9c5068 commit bb98fff

File tree

10 files changed

+57
-19
lines changed

10 files changed

+57
-19
lines changed

lib/routes/50forum/zhuanjia.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ export const route: Route = {
1010
path: '/',
1111
radar: [
1212
{
13-
source: ['www.50forum.org.cn/portal/list/index.html?id=6', '50forum.org.cn/'],
13+
source: ['www.50forum.org.cn/portal/list/index.html?id=6'],
14+
target: '',
15+
},
16+
{
17+
source: ['50forum.org.cn/'],
1418
target: '',
1519
},
1620
],

lib/routes/bilibili/hot-search.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export const route: Route = {
1919
},
2020
radar: [
2121
{
22-
source: ['www.bilibili.com/', 'm.bilibili.com/'],
22+
source: ['www.bilibili.com/'],
23+
},
24+
{
25+
source: ['m.bilibili.com/'],
2326
},
2427
],
2528
name: '热搜',

lib/routes/blizzard/news-cn.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ export const route: Route = {
2020
},
2121
radar: [
2222
{
23-
source: ['ow.blizzard.cn', 'wow.blizzard.cn', 'hs.blizzard.cn'],
23+
source: ['ow.blizzard.cn'],
24+
target: '/news-cn/',
25+
},
26+
{
27+
source: ['wow.blizzard.cn'],
28+
target: '/news-cn/',
29+
},
30+
{
31+
source: ['hs.blizzard.cn'],
2432
target: '/news-cn/',
2533
},
2634
],

lib/routes/canada.ca/news.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ export const route: Route = {
2525
},
2626
// Innovation, Science and Economic Development Canada
2727
{
28-
source: [
29-
'ised-isde.canada.ca/site/ised/:lang',
30-
'ised-isde.canada.ca/site/isde/:lang',
31-
'www.canada.ca/:lang/innovation-science-economic-development/news/*',
32-
'www.canada.ca/:lang/innovation-sciences-developpement-economique/nouvelles/*',
33-
],
28+
source: ['ised-isde.canada.ca/site/ised/:lang', 'ised-isde.canada.ca/site/isde/:lang'],
29+
target: '/news/:lang/departmentofindustry',
30+
},
31+
{
32+
source: ['www.canada.ca/:lang/innovation-science-economic-development/news/*', 'www.canada.ca/:lang/innovation-sciences-developpement-economique/nouvelles/*'],
3433
target: '/news/:lang/departmentofindustry',
3534
},
3635
// All news

lib/routes/dianping/user.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ export const route: Route = {
2323
},
2424
radar: [
2525
{
26-
source: ['dianping.com/member/:id', 'm.dianping.com/userprofile/:id'],
26+
source: ['dianping.com/member/:id'],
27+
target: '/dianping/user/:id',
28+
},
29+
{
30+
source: ['m.dianping.com/userprofile/:id'],
2731
target: '/dianping/user/:id',
2832
},
2933
],

lib/routes/jumeili/home.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export const route: Route = {
2424
},
2525
radar: [
2626
{
27-
source: ['www.jumeili.cn/', 'jumeili.cn/'],
27+
source: ['www.jumeili.cn/'],
28+
target: '/home/:column?',
29+
},
30+
{
31+
source: ['jumeili.cn/'],
2832
target: '/home/:column?',
2933
},
3034
],

lib/routes/konachan/post.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export const route: Route = {
3030
},
3131
radar: [
3232
{
33-
source: ['konachan.com/post', 'konachan.net/post'],
33+
source: ['konachan.com/post'],
34+
},
35+
{
36+
source: ['konachan.net/post'],
3437
},
3538
],
3639
name: 'Popular Recent Posts',

lib/routes/neea/index.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,18 @@ export const route: Route = {
125125
features: {
126126
supportRadar: true,
127127
},
128-
radar: Object.entries(typeDic).map(([type, value]) => ({
129-
title: `${value.title}动态`,
130-
source: [`${type}.neea.edu.cn`, `${type}.neea.cn`],
131-
target: `/local/${type}`,
132-
})),
128+
radar: Object.entries(typeDic).flatMap(([type, value]) => [
129+
{
130+
title: `${value.title}动态`,
131+
source: [`${type}.neea.edu.cn`],
132+
target: `/local/${type}`,
133+
},
134+
{
135+
title: `${value.title}动态`,
136+
source: [`${type}.neea.cn`],
137+
target: `/local/${type}`,
138+
},
139+
]),
133140
handler,
134141
description: `| | 考试项目 | type |
135142
| ------------ | ----------------------------- | -------- |

lib/routes/netflix/newsroom.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export const route: Route = {
4949
},
5050
radar: [
5151
{
52-
source: ['about.netflix.com/:region/newsroom', 'netflix.com'],
52+
source: ['about.netflix.com/:region/newsroom'],
53+
},
54+
{
55+
source: ['netflix.com'],
5356
},
5457
],
5558
name: 'Newsroom',

lib/routes/panewslab/profundity.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ export const route: Route = {
2727
parameters: { category: '分类,见下表,默认为精选' },
2828
radar: [
2929
{
30-
source: ['panewslab.com/', 'www.panewslab.com/zh/profundity/index.html'],
30+
source: ['panewslab.com/'],
31+
},
32+
{
33+
source: ['www.panewslab.com/zh/profundity/index.html'],
3134
},
3235
],
3336
name: '深度',

0 commit comments

Comments
 (0)