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 5 additions and 5 deletions
Showing only changes of commit 9896653232 - Show all commits
+1 -1
View File
@@ -16,7 +16,7 @@ export function VersionCheckModal({
const { t } = useTranslation(); const { t } = useTranslation();
const [versionInfo, setVersionInfo] = useState<any>(null); const [versionInfo, setVersionInfo] = useState<any>(null);
const [versionChecking, setVersionChecking] = useState(false); const [versionChecking, setVersionChecking] = useState(false);
const [versionDismissed, setVersionDismissed] = useState(false); const [versionDismissed] = useState(false);
useEffect(() => { useEffect(() => {
if (isElectron()) { if (isElectron()) {
@@ -308,7 +308,7 @@ export function CredentialsManager({
setDragOverFolder(folderName); setDragOverFolder(folderName);
}; };
const handleDragLeave = (e: React.DragEvent) => { const handleDragLeave = () => {
dragCounter.current--; dragCounter.current--;
if (dragCounter.current === 0) { if (dragCounter.current === 0) {
setDragOverFolder(null); setDragOverFolder(null);
+1 -1
View File
@@ -46,7 +46,7 @@ export function PasswordReset({ userInfo }: PasswordResetProps) {
setError(null); setError(null);
setResetLoading(true); setResetLoading(true);
try { try {
const result = await initiatePasswordReset(userInfo.username); await initiatePasswordReset(userInfo.username);
setResetStep("verify"); setResetStep("verify");
setError(null); setError(null);
} catch (err: any) { } catch (err: any) {
+2 -2
View File
@@ -8,7 +8,7 @@ import {
TabsTrigger, TabsTrigger,
} from "@/components/ui/tabs.tsx"; } from "@/components/ui/tabs.tsx";
import { Separator } from "@/components/ui/separator.tsx"; import { Separator } from "@/components/ui/separator.tsx";
import { User, Shield, Key, AlertCircle } from "lucide-react"; import { User, Shield, AlertCircle } from "lucide-react";
import { TOTPSetup } from "@/ui/Desktop/User/TOTPSetup.tsx"; import { TOTPSetup } from "@/ui/Desktop/User/TOTPSetup.tsx";
import { getUserInfo } from "@/ui/main-axios.ts"; import { getUserInfo } from "@/ui/main-axios.ts";
import { getVersionInfo } from "@/ui/main-axios.ts"; import { getVersionInfo } from "@/ui/main-axios.ts";
@@ -45,7 +45,7 @@ export function UserProfile({ isTopbarOpen = true }: UserProfileProps) {
try { try {
const info = await getVersionInfo(); const info = await getVersionInfo();
setVersionInfo({ version: info.localVersion }); setVersionInfo({ version: info.localVersion });
} catch (err) { } catch {
const { toast } = await import("sonner"); const { toast } = await import("sonner");
toast.error(t("user.failedToLoadVersionInfo")); toast.error(t("user.failedToLoadVersionInfo"));
} }