From a9e36e15b0334031c5997a09774df96fb29715e8 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 3 Dec 2023 02:36:00 +0800 Subject: [PATCH] docs: add notOperational badge in route component --- website/src/components/Route.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/website/src/components/Route.tsx b/website/src/components/Route.tsx index bdaea8ef9..6ebe39835 100644 --- a/website/src/components/Route.tsx +++ b/website/src/components/Route.tsx @@ -15,6 +15,7 @@ export default function Route({ radar = null, configRequired = null, puppeteer = null, + notOperational = null, children = null, }: { author?: string; @@ -28,6 +29,7 @@ export default function Route({ radar?: boolean; configRequired?: boolean; puppeteer?: boolean; + notOperational?: boolean; children?: JSX.Element | JSX.Element[]; }): JSX.Element { const demoUrl = 'https://rsshub.app' + example; @@ -41,17 +43,22 @@ export default function Route({ }; return ( -
+

- {supportBT && } - {supportPodcast && } - {supportScihub && } - {puppeteer && } + {notOperational && ( + + + + )} {anticrawler && ( )} + {supportBT && } + {supportPodcast && } + {supportScihub && } + {puppeteer && } {configRequired && (