feat: refactor DashCommand to use useMemo for shortcuts and server commands

feat: optimize GlobalMap component with useMemo for country data processing

feat: enhance ServerCard and ServerCardInline components with memoization

feat: improve ServiceTracker component by processing service data with useMemo

feat: add VirtualServerList component for efficient rendering of server lists

refactor: update Servers page to utilize VirtualServerList for better performance

test: add tests for DashCommand and GlobalMap components, including virtualization checks
This commit is contained in:
hamster1963 committed 2026-07-05 04:09:22 +08:00
1 parent 8f3a2f3eb3
commit 6c7ba30cee
14 files changed
+998 -338

No files matched your search

+4 -1
View File
@@ -1,3 +1,4 @@
import { memo } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import ServerFlag from "@/components/ServerFlag";
@@ -16,7 +17,7 @@ import PlanInfo from "./PlanInfo";
import { Card } from "./ui/card";
import { Separator } from "./ui/separator";
export default function ServerCardInline({
function ServerCardInline({
now,
serverInfo,
}: {
@@ -239,3 +240,5 @@ export default function ServerCardInline({
</Card>
);
}
export default memo(ServerCardInline);