feat: enhance server stats widgets and fix TypeScript/ESLint errors #394

Merged
ZacharyZcR merged 50 commits from feature-server-stats-customization into dev-1.8.0 2025-10-10 03:48:34 +00:00
4 changed files with 3 additions and 15 deletions
Showing only changes of commit c9417f87c0 - Show all commits

View File

@@ -25,7 +25,7 @@ export function Homepage({
}: HomepageProps): React.ReactElement {
const [loggedIn, setLoggedIn] = useState(isAuthenticated);
const [, setIsAdmin] = useState(false);
const [username, setUsername] = useState<string | null>(null);
const [, setUsername] = useState<string | null>(null);
const [userId, setUserId] = useState<string | null>(null);
const [dbError, setDbError] = useState<string | null>(null);

View File

@@ -10,12 +10,7 @@ import {
} from "@/components/ui/resizable.tsx";
import * as ResizablePrimitive from "react-resizable-panels";
import { useSidebar } from "@/components/ui/sidebar.tsx";
import {
LucideRefreshCcw,
LucideRefreshCw,
RefreshCcw,
RefreshCcwDot,
} from "lucide-react";
import { RefreshCcw } from "lucide-react";
import { Button } from "@/components/ui/button.tsx";
interface TabData {

View File

@@ -212,7 +212,7 @@ export function LeftSidebar({
});
}, 50);
}
} catch (err: unknown) {
} catch {
setHostsError(t("leftSidebar.failedToLoadHosts"));
}
}, [updateHostConfig]);
@@ -320,7 +320,6 @@ export function LeftSidebar({
return;
}
const jwt = getCookie("jwt");
try {
await deleteAccount(deletePassword);

View File

@@ -4,12 +4,6 @@ import { Button } from "@/components/ui/button.tsx";
import { ChevronDown, ChevronUpIcon, Hammer, FileText } from "lucide-react";
import { Tab } from "@/ui/Desktop/Navigation/Tabs/Tab.tsx";
import { useTabs } from "@/ui/Desktop/Navigation/Tabs/TabContext.tsx";
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion.tsx";
import { Input } from "@/components/ui/input.tsx";
import { Checkbox } from "@/components/ui/checkbox.tsx";
import { Separator } from "@/components/ui/separator.tsx";