From 05922d7e035bca6ef8d4753d58bcc89fc3f10613 Mon Sep 17 00:00:00 2001 From: Nezumi-2711 Date: Fri, 28 Aug 2026 15:54:34 +0700 Subject: [PATCH] feat: show icon page instead of mock --- src/client/components/SiteIcon.tsx | 23 +++ src/client/pages/DashboardPage.tsx | 3 +- src/client/pages/MonitorDetailPage.tsx | 2 +- src/client/styles.css | 10 + src/worker/routes/monitors.ts | 250 +++++++++++++++++++++++++ test/monitors.spec.ts | 56 +++++- 6 files changed, 341 insertions(+), 3 deletions(-) create mode 100644 src/client/components/SiteIcon.tsx diff --git a/src/client/components/SiteIcon.tsx b/src/client/components/SiteIcon.tsx new file mode 100644 index 0000000..6e448f2 --- /dev/null +++ b/src/client/components/SiteIcon.tsx @@ -0,0 +1,23 @@ +import { Database } from "lucide-react"; +import { useState } from "react"; + +type SiteIconProps = { + monitorId: number; +}; + +export function SiteIcon({ monitorId }: SiteIconProps) { + const [failed, setFailed] = useState(false); + + if (failed) return