mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 17:41:56 +08:00
fix: billing text
This commit is contained in:
parent
a448e5eb0d
commit
fddd5edef7
10
package.json
10
package.json
@ -20,8 +20,8 @@
|
|||||||
"@radix-ui/react-separator": "^1.1.0",
|
"@radix-ui/react-separator": "^1.1.0",
|
||||||
"@radix-ui/react-slot": "^1.1.0",
|
"@radix-ui/react-slot": "^1.1.0",
|
||||||
"@radix-ui/react-switch": "^1.1.1",
|
"@radix-ui/react-switch": "^1.1.1",
|
||||||
"@tanstack/react-query": "^5.62.2",
|
"@tanstack/react-query": "^5.62.3",
|
||||||
"@tanstack/react-query-devtools": "^5.62.2",
|
"@tanstack/react-query-devtools": "^5.62.3",
|
||||||
"@tanstack/react-table": "^8.20.5",
|
"@tanstack/react-table": "^8.20.5",
|
||||||
"@types/d3-geo": "^3.1.0",
|
"@types/d3-geo": "^3.1.0",
|
||||||
"@types/luxon": "^3.4.2",
|
"@types/luxon": "^3.4.2",
|
||||||
@ -38,15 +38,15 @@
|
|||||||
"react-i18next": "^15.1.3",
|
"react-i18next": "^15.1.3",
|
||||||
"react-router-dom": "^7.0.2",
|
"react-router-dom": "^7.0.2",
|
||||||
"recharts": "^2.14.1",
|
"recharts": "^2.14.1",
|
||||||
"sonner": "^1.7.0",
|
"sonner": "^1.7.1",
|
||||||
"tailwind-merge": "^2.5.5",
|
"tailwind-merge": "^2.5.5",
|
||||||
"tailwindcss-animate": "^1.0.7"
|
"tailwindcss-animate": "^1.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.16.0",
|
"@eslint/js": "^9.16.0",
|
||||||
"@types/node": "^22.10.1",
|
"@types/node": "^22.10.1",
|
||||||
"@types/react": "^19.0.0",
|
"@types/react": "^19.0.1",
|
||||||
"@types/react-dom": "^19.0.0",
|
"@types/react-dom": "^19.0.1",
|
||||||
"@vitejs/plugin-react-swc": "^3.7.2",
|
"@vitejs/plugin-react-swc": "^3.7.2",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"eslint": "^9.16.0",
|
"eslint": "^9.16.0",
|
||||||
|
@ -50,7 +50,7 @@ export default function ServerCard({
|
|||||||
} else {
|
} else {
|
||||||
daysLeft = getDaysBetweenDates(
|
daysLeft = getDaysBetweenDates(
|
||||||
parsedData.billingDataMod.endDate,
|
parsedData.billingDataMod.endDate,
|
||||||
new Date().toISOString(),
|
new Date(now).toISOString(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ export default function ServerCardInline({
|
|||||||
} else {
|
} else {
|
||||||
daysLeft = getDaysBetweenDates(
|
daysLeft = getDaysBetweenDates(
|
||||||
parsedData.billingDataMod.endDate,
|
parsedData.billingDataMod.endDate,
|
||||||
new Date().toISOString(),
|
new Date(now).toISOString(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -94,7 +94,11 @@ export default function ServerCardInline({
|
|||||||
</p>
|
</p>
|
||||||
{parsedData &&
|
{parsedData &&
|
||||||
(daysLeft >= 0 ? (
|
(daysLeft >= 0 ? (
|
||||||
<p className={cn("text-[10px] text-muted-foreground")}>
|
<p
|
||||||
|
className={cn("text-[10px] text-muted-foreground", {
|
||||||
|
"text-orange-600": daysLeft <= 7 && !isNeverExpire,
|
||||||
|
})}
|
||||||
|
>
|
||||||
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
剩余时间: {isNeverExpire ? "永久" : daysLeft + "天"}
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user