diff --git a/app/(main)/ClientComponents/main/InteractiveMap.tsx b/app/(main)/ClientComponents/main/InteractiveMap.tsx
index 34682b3..f2d3f36 100644
--- a/app/(main)/ClientComponents/main/InteractiveMap.tsx
+++ b/app/(main)/ClientComponents/main/InteractiveMap.tsx
@@ -82,6 +82,7 @@ export function InteractiveMap({
(server: any) => server.host.CountryCode?.toUpperCase() === countryCode,
)
.map((server: any) => ({
+ id: server.id,
name: server.name,
status: server.online_status,
}))
@@ -122,6 +123,7 @@ export function InteractiveMap({
const countryServers = nezhaServerList.result
.filter((server: any) => server.host.CountryCode?.toUpperCase() === countryCode)
.map((server: any) => ({
+ id: server.id,
name: server.name,
status: server.online_status,
}))
diff --git a/app/(main)/ClientComponents/main/MapTooltip.tsx b/app/(main)/ClientComponents/main/MapTooltip.tsx
index 492b519..1f6175f 100644
--- a/app/(main)/ClientComponents/main/MapTooltip.tsx
+++ b/app/(main)/ClientComponents/main/MapTooltip.tsx
@@ -2,6 +2,7 @@
import { useTooltip } from "@/app/context/tooltip-context"
import { useTranslations } from "next-intl"
+import Link from "next/link"
import { memo } from "react"
const MapTooltip = memo(function MapTooltip() {
@@ -14,6 +15,10 @@ const MapTooltip = memo(function MapTooltip() {
return a.status === b.status ? 0 : a.status ? 1 : -1
})
+ const saveSession = () => {
+ sessionStorage.setItem("fromMainPage", "true")
+ }
+
return (
{tooltipData.country === "China" ? "Mainland China" : tooltipData.country}
-
+
{tooltipData.count} {t("Servers")}
@@ -43,14 +48,19 @@ const MapTooltip = memo(function MapTooltip() {
}}
>
{sortedServers.map((server) => (
-
+
{server.name}
-
+
))}
diff --git a/app/(main)/ClientComponents/main/ServerListClient.tsx b/app/(main)/ClientComponents/main/ServerListClient.tsx
index 7a81464..71f1759 100644
--- a/app/(main)/ClientComponents/main/ServerListClient.tsx
+++ b/app/(main)/ClientComponents/main/ServerListClient.tsx
@@ -115,6 +115,11 @@ export default function ServerListClient() {
setInline(inlineState)
}
+ const showMapState = localStorage.getItem("showMap")
+ if (showMapState !== null) {
+ setShowMap(showMapState === "true")
+ }
+
const savedTag = sessionStorage.getItem("selectedTag") || defaultTag
setTag(savedTag)
restoreScrollPosition()
@@ -169,7 +174,11 @@ export default function ServerListClient() {