generated from Dicken/dickendock
round26: Ping vor Portscan, Liste neuer Dienste, Suchmaschinen-Integration (OpenSearch), API-Scanner
This commit is contained in:
@@ -115,9 +115,13 @@ function ReadLaterBox() {
|
||||
}
|
||||
|
||||
export function HomePage() {
|
||||
const [query, setQuery] = useState("");
|
||||
const [query, setQuery] = useState(
|
||||
() => new URLSearchParams(window.location.search).get("q") ?? ""
|
||||
);
|
||||
const [selectedIndex, setSelectedIndex] = useState(0);
|
||||
const [resultsVisible, setResultsVisible] = useState(false);
|
||||
const [resultsVisible, setResultsVisible] = useState(
|
||||
() => new URLSearchParams(window.location.search).get("q") !== null
|
||||
);
|
||||
const { health, error: healthError } = useBackendHealth();
|
||||
const { data: services, isLoading: servicesLoading, isError: servicesError } = useServices();
|
||||
const { data: bookmarks, isLoading: bookmarksLoading } = useBookmarks();
|
||||
|
||||
Reference in New Issue
Block a user