import { useEffect, useState } from "react"; import { Link } from "react-router-dom"; import ReadNowButton from "../components/ReadNowButton"; import { api, type CurrentUser, type AdguardInstance } from "../api/client"; import EmptyState from "../components/EmptyState"; import TimeAgo from "../components/TimeAgo"; import { BlockSkeleton } from "../components/Skeleton"; import { ErrorNotice } from "../components/Notice"; import { formatAgo } from "../utils/duration"; import { readableError } from "../utils/errors"; function Badge({ a }: { a: AdguardInstance }) { if (!a.enabled) return Off; if (!a.state) return Not read yet; if (!a.fresh) return Can’t be read; if (a.problems.some((x) => x.severity === "critical")) return Needs a look; if (a.problems.length > 0) return Needs a look; return In order; } function Tile({ label, value, sub, tone }: { label: string; value: string; sub?: string | null; tone?: "bad" | "warn" }) { return (
Read every two minutes (see Integrations), with a real DNS question put to it each time — its web interface can be up while DNS is not. Nothing is changed. DNS that stops answering, a DNS server that is not running,{" "} protection left off for an hour and filter lists that stopped updating are alerts — see Alerts.