/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { useCallback, lazy, Suspense, useState, useEffect } from "react"; import { AlertTriangle, Bell, Activity, Network } from "lucide-react"; import { deleteVaultKey } from "../../application/defaultKeyPassphrases"; import { usePluginImporterCommit } from "../../application/state/usePluginImporterCommit"; import { preserveConcurrentHostLineTimestampUpdate } from "../../domain/host"; import { collectVaultGroupPathsForSelectAll, collectVisibleVaultGroupPaths, collectVisibleVaultHostIds, retainVisibleVaultGroupSelection, } from "../../domain/vaultGroupSelection"; import { STORAGE_KEY_VAULT_HOST_PANEL_WIDTH, STORAGE_KEY_PRODUCT_NAME } from "@/infrastructure/config/storageKeys.ts"; import { localStorageAdapter } from "@/infrastructure/persistence/localStorageAdapter.ts"; import { VaultHostListSection } from "./VaultHostListSection"; import { VaultImportProgressPanel } from "./ImportVaultDialog"; import { VaultHeaderSearch, VaultPageHeader, vaultHeaderIconButtonClass, vaultHeaderSecondaryButtonClass, } from "./VaultPageHeader"; import { useConnectionLogsStore } from "../../application/state/connectionLogsStore"; import { useNotesStore } from "../../application/state/notesStore"; import { LazyLoadBoundary } from "../ui/lazy-load-boundary"; import { toast } from "../ui/toast"; import { AppWordmark } from "../AppWordmark"; import { InspectionErrorBoundary } from "../inspection/InspectionErrorBoundary"; // 巡检模块页面(自包含,通过 IPC 直接调用主进程) const AlertCenterPage = lazy(() => import("../inspection/AlertCenterPage")); const AlertRulesPage = lazy(() => import("../inspection/AlertRulesPage")); const InspectionCenterPage = lazy(() => import("../inspection/InspectionCenterPage")); // 运行监控 - 3D 拓扑大屏 const MonitoringTopologyView = lazy(() => import("../monitoring/MonitoringTopologyView")); type VaultViewLayoutContext = Record; const VaultSectionLoading = () => (