Compare commits

...

4 Commits

Author SHA1 Message Date
hamster1963
14b12bf8e0 v1.9.0 2024-12-23 11:31:28 +08:00
hamster1963
80a58d8cfc fix: emoji flag priority 2024-12-23 11:24:24 +08:00
hamster1963
9ff5913ffb fix: remove flag transform 2024-12-23 11:18:14 +08:00
hamster1963
4c5a012bdc chore: deps 2024-12-23 11:17:34 +08:00
3 changed files with 3 additions and 7 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -10,7 +10,7 @@ export default function ServerFlag({
country_code: string country_code: string
className?: string className?: string
}) { }) {
const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(false) const [supportsEmojiFlags, setSupportsEmojiFlags] = useState(true)
const useSvgFlag = getEnv("NEXT_PUBLIC_ForceUseSvgFlag") === "true" const useSvgFlag = getEnv("NEXT_PUBLIC_ForceUseSvgFlag") === "true"
@ -40,10 +40,6 @@ export default function ServerFlag({
if (!country_code) return null if (!country_code) return null
if (supportsEmojiFlags && country_code.toLowerCase() === "tw") {
country_code = "cn"
}
return ( return (
<span className={cn("text-[12px] text-muted-foreground", className)}> <span className={cn("text-[12px] text-muted-foreground", className)}>
{useSvgFlag || !supportsEmojiFlags ? ( {useSvgFlag || !supportsEmojiFlags ? (

View File

@ -1,6 +1,6 @@
{ {
"name": "nezha-dash", "name": "nezha-dash",
"version": "1.8.6", "version": "1.9.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3040", "dev": "next dev -p 3040",
@ -44,7 +44,7 @@
"maxmind": "^4.3.23", "maxmind": "^4.3.23",
"next": "^15.1.2", "next": "^15.1.2",
"next-auth": "^5.0.0-beta.25", "next-auth": "^5.0.0-beta.25",
"next-intl": "^3.26.2", "next-intl": "^3.26.3",
"next-runtime-env": "^3.2.2", "next-runtime-env": "^3.2.2",
"next-themes": "^0.4.4", "next-themes": "^0.4.4",
"react": "^19.0.0", "react": "^19.0.0",