diff --git a/app/(main)/ClientComponents/InteractiveMap.tsx b/app/(main)/ClientComponents/InteractiveMap.tsx index 94d5caa..3776cc8 100644 --- a/app/(main)/ClientComponents/InteractiveMap.tsx +++ b/app/(main)/ClientComponents/InteractiveMap.tsx @@ -64,10 +64,6 @@ export function InteractiveMap({ feature.properties.iso_a2_eh, ); - if (isHighlighted) { - console.log(feature.properties.iso_a2_eh); - } - const serverCount = serverCounts[feature.properties.iso_a2_eh] || 0; return ( diff --git a/app/(main)/ClientComponents/MapTooltip.tsx b/app/(main)/ClientComponents/MapTooltip.tsx index b77abe6..a9aa099 100644 --- a/app/(main)/ClientComponents/MapTooltip.tsx +++ b/app/(main)/ClientComponents/MapTooltip.tsx @@ -12,6 +12,10 @@ const MapTooltip = memo(function MapTooltip() { if (!tooltipData) return null; + const sortedServers = tooltipData.servers.sort((a, b) => { + return a.status === b.status ? 0 : a.status ? 1 : -1; + }); + return ( - {tooltipData.servers.map((server, index) => ( + {sortedServers.map((server, index) => (
{ const inlineState = localStorage.getItem("inline"); if (inlineState !== null) { - console.log("inlineState", inlineState); setInline(inlineState); } }, []); diff --git a/bun.lockb b/bun.lockb index 573b35a..66ee15f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.mjs b/next.config.mjs index 1ce607c..74a9eb5 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -22,6 +22,9 @@ const withPWA = withPWAInit({ /** @type {import('next').NextConfig} */ const nextConfig = { + experimental: { + inlineCss: true, + }, output: "standalone", logging: { fetches: { diff --git a/package.json b/package.json index 8763a20..8e6756c 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "nezha-dash", - "version": "1.7.4", + "version": "1.7.5", "private": true, "scripts": { - "dev": "next dev -p 3040", + "dev": "next dev --turbopack -p 3040", "start": "node .next/standalone/server.js", "lint": "next lint", "build": "next build && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/", @@ -39,7 +39,7 @@ "framer-motion": "^12.0.0-alpha.2", "lucide-react": "^0.454.0", "luxon": "^3.5.0", - "next": "^15.0.4", + "next": "15.0.4-canary.48", "next-auth": "^5.0.0-beta.25", "next-intl": "^3.26.0", "next-runtime-env": "^3.2.2",