From 76bc7216edefc3c38423b32a31a5cc737811e954 Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 23 Mar 2024 12:42:17 +0800 Subject: [PATCH] fix(radar): radar rule typing --- lib/routes/booru/mmda.ts | 8 +++++--- lib/routes/modrinth/versions.ts | 36 +++++++++++++++++---------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/lib/routes/booru/mmda.ts b/lib/routes/booru/mmda.ts index a58b021bd4..664cc1bb26 100644 --- a/lib/routes/booru/mmda.ts +++ b/lib/routes/booru/mmda.ts @@ -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, diff --git a/lib/routes/modrinth/versions.ts b/lib/routes/modrinth/versions.ts index f5023665df..e7ba723c16 100644 --- a/lib/routes/modrinth/versions.ts +++ b/lib/routes/modrinth/versions.ts @@ -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,