From 4c5a012bdc66eedb54eb04cf2182b892dc3c69e2 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 23 Dec 2024 11:17:34 +0800 Subject: [PATCH 1/4] chore: deps --- bun.lockb | Bin 616418 -> 616418 bytes package.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bun.lockb b/bun.lockb index 33bcbde90d71221853c6ea2c81b306131221e039..2c967038b93f59fa011026cbeced2ddde796fdf6 100755 GIT binary patch delta 261 zcmV+g0s8*p&n4o|C6F#485%1tqI*>g=m%_dlvZ2LXoh{~QNJNxlQ7gPJRJtAu}*rc zlgQyPv-qo!1Cz+%FoU?Sx45qXrO-g>k9#;e!>~a$C&w2k!SI7wS}ogTH?EK{iiYqU z$KyAroRm~GJ52FIEd)HFeqnmLCVs}o)-8F5QVEpGWh{NSoqz)91VG7+8rh2;J6_x? z0l@UmpK_RlCuJz}P{dP1PE!+8r>RL))2<__)GPx}RakB4fnBYEZI;6(GKW3y;VSp^ z=bnefg#w4gg#(Ahg#@?7g#{;P0W-Jl>;;820W*hlA_li}A_p+R0W-Ix;|F^M0W*gn L=?AwU=?KDp&4_pC delta 261 zcmV+g0s8*p&n4o|C6F#4yu$}iJB&3Nkw;@ghLR=wz(pt0!jp?h$o4xZMXO2Lu}*rc zlZfLmv-qo!1Cxm3FoU?Sx45qXrO-fp`wQp)SpB9A9)q9vP8<06Sdwi~eUhs*z%f$w z5i+4}K`=B;00wSe4vjFW-gnBQ3 zNgap9g#w4gg#(Ahg#@?7g#{;P0W!Dk>;;820WybkA_li}A_p+R0W!Cw;|F^M0Wyam L=?AwU=?KDpn8tXR diff --git a/package.json b/package.json index 5aefa73a2..0709630c0 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "maxmind": "^4.3.23", "next": "^15.1.2", "next-auth": "^5.0.0-beta.25", - "next-intl": "^3.26.2", + "next-intl": "^3.26.3", "next-runtime-env": "^3.2.2", "next-themes": "^0.4.4", "react": "^19.0.0", From 9ff5913ffb28e189395c1aa87705478a47c452e1 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 23 Dec 2024 11:18:14 +0800 Subject: [PATCH 2/4] fix: remove flag transform --- components/ServerFlag.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/ServerFlag.tsx b/components/ServerFlag.tsx index c7693990d..108af5927 100644 --- a/components/ServerFlag.tsx +++ b/components/ServerFlag.tsx @@ -40,10 +40,6 @@ export default function ServerFlag({ if (!country_code) return null - if (supportsEmojiFlags && country_code.toLowerCase() === "tw") { - country_code = "cn" - } - return ( {useSvgFlag || !supportsEmojiFlags ? ( From 80a58d8cfce66713075d02ba4a18837991dafba6 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 23 Dec 2024 11:24:24 +0800 Subject: [PATCH 3/4] fix: emoji flag priority --- components/ServerFlag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ServerFlag.tsx b/components/ServerFlag.tsx index 108af5927..c88040f12 100644 --- a/components/ServerFlag.tsx +++ b/components/ServerFlag.tsx @@ -10,7 +10,7 @@ export default function ServerFlag({ country_code: string className?: string }) { - const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(false) + const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(true) const useSvgFlag = getEnv("NEXT_PUBLIC_ForceUseSvgFlag") === "true" From 14b12bf8e0ca2542a1f085c695ab7ff0c741c73e Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Mon, 23 Dec 2024 11:31:28 +0800 Subject: [PATCH 4/4] v1.9.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0709630c0..65064a9f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nezha-dash", - "version": "1.8.6", + "version": "1.9.0", "private": true, "scripts": { "dev": "next dev -p 3040",