From 551135de77e9315eca921ed6163e6f51b10e2687 Mon Sep 17 00:00:00 2001 From: web Date: Tue, 26 Aug 2025 11:38:45 -0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20Simplify=20nod?= =?UTF-8?q?e=20display=20in=20subscribe=20form=20and=20remove=20unused=20B?= =?UTF-8?q?adge=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/dashboard/product/subscribe-form.tsx | 18 ++++-------------- .../app/(main)/(user)/dashboard/content.tsx | 1 - 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/apps/admin/app/dashboard/product/subscribe-form.tsx b/apps/admin/app/dashboard/product/subscribe-form.tsx index 6a63ff6..79cd8d6 100644 --- a/apps/admin/app/dashboard/product/subscribe-form.tsx +++ b/apps/admin/app/dashboard/product/subscribe-form.tsx @@ -10,7 +10,6 @@ import { AccordionItem, AccordionTrigger, } from '@workspace/ui/components/accordion'; -import { Badge } from '@workspace/ui/components/badge'; import { Button } from '@workspace/ui/components/button'; import { Checkbox } from '@workspace/ui/components/checkbox'; import { @@ -829,20 +828,11 @@ export default function SubscribeForm>({ key={node.id} className='flex items-center justify-between gap-3' > - {node.name} - - {node.address}:{node.port ?? '—'} - - - {node.protocol || '—'} - - - {(node.tags || []).map((tg) => ( - - {tg} - - ))} + {node.name} + + {node.address}:{node.port} + {node.protocol} ))} diff --git a/apps/user/app/(main)/(user)/dashboard/content.tsx b/apps/user/app/(main)/(user)/dashboard/content.tsx index c30135f..4d92860 100644 --- a/apps/user/app/(main)/(user)/dashboard/content.tsx +++ b/apps/user/app/(main)/(user)/dashboard/content.tsx @@ -325,7 +325,6 @@ export default function Content() {
{applications ?.filter((application) => { - // 检查当前平台是否有下载链接或者有 scheme if (!application.download_link && !application.scheme) return false; return ( !!application.download_link?.[platform] || !!application.scheme