fix(radar): radar rule typing

This commit is contained in:
Tony 2024-03-23 12:42:17 +08:00
parent 847fdaba1d
commit 76bc7216ed
2 changed files with 24 additions and 20 deletions

View File

@ -21,9 +21,11 @@ export const route: Route = {
supportPodcast: false,
supportScihub: false,
},
radar: {
source: ['mmda.booru.org/index.php'],
},
radar: [
{
source: ['mmda.booru.org/index.php'],
},
],
name: 'MMDArchive 标签查询',
maintainers: ['N78Wy'],
handler,

View File

@ -37,23 +37,25 @@ export const route: Route = {
supportPodcast: false,
supportScihub: false,
},
radar: {
source: [
'modrinth.com/mod/:id/*',
'modrinth.com/plugin/:id/*',
'modrinth.com/datapack/:id/*',
'modrinth.com/shader/:id/*',
'modrinth.com/resourcepack/:id/*',
'modrinth.com/modpack/:id/*',
'modrinth.com/mod/:id',
'modrinth.com/plugin/:id',
'modrinth.com/datapack/:id',
'modrinth.com/shader/:id',
'modrinth.com/resourcepack/:id',
'modrinth.com/modpack/:id',
],
target: '/project/:id/versions',
},
radar: [
{
source: [
'modrinth.com/mod/:id/*',
'modrinth.com/plugin/:id/*',
'modrinth.com/datapack/:id/*',
'modrinth.com/shader/:id/*',
'modrinth.com/resourcepack/:id/*',
'modrinth.com/modpack/:id/*',
'modrinth.com/mod/:id',
'modrinth.com/plugin/:id',
'modrinth.com/datapack/:id',
'modrinth.com/shader/:id',
'modrinth.com/resourcepack/:id',
'modrinth.com/modpack/:id',
],
target: '/project/:id/versions',
},
],
name: 'Project versions',
maintainers: ['SettingDust'],
handler,