Compare commits

..

2 Commits

Author SHA1 Message Date
hamster1963
24a079624c chore: update caniuse-lite, cmdk, tailwindcss, and postcss to latest versions 2025-03-16 11:12:31 +08:00
hamster1963
b630505ca3 feat: enhance uptime display to show days and hours 2025-03-16 11:02:09 +08:00
3 changed files with 6 additions and 6 deletions

View File

@ -121,8 +121,8 @@ export default function ServerDetailClient({
<div className="text-xs"> <div className="text-xs">
{" "} {" "}
{uptime / 86400 >= 1 {uptime / 86400 >= 1
? `${(uptime / 86400).toFixed(0)} ${t("Days")}` ? `${Math.floor(uptime / 86400)} ${t("Days")} ${Math.floor((uptime % 86400) / 3600)} ${t("Hours")}`
: `${(uptime / 3600).toFixed(0)} ${t("Hours")}`} : `${Math.floor(uptime / 3600)} ${t("Hours")}`}
</div> </div>
</section> </section>
</CardContent> </CardContent>

BIN
bun.lockb

Binary file not shown.

View File

@ -30,10 +30,10 @@
"@types/d3-geo": "^3.1.0", "@types/d3-geo": "^3.1.0",
"@types/luxon": "^3.4.2", "@types/luxon": "^3.4.2",
"babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", "babel-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
"caniuse-lite": "^1.0.30001703", "caniuse-lite": "^1.0.30001705",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"cmdk": "^1.0.4", "cmdk": "^1.1.1",
"country-flag-icons": "^1.5.18", "country-flag-icons": "^1.5.18",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"d3-geo": "^3.1.1", "d3-geo": "^3.1.1",
@ -62,12 +62,12 @@
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.9.4", "@biomejs/biome": "1.9.4",
"@next/bundle-analyzer": "^15.2.2", "@next/bundle-analyzer": "^15.2.2",
"@tailwindcss/postcss": "^4.0.13", "@tailwindcss/postcss": "^4.0.14",
"@types/node": "^22.13.10", "@types/node": "^22.13.10",
"@types/react": "^19.0.10", "@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4", "@types/react-dom": "^19.0.4",
"postcss": "^8.5.3", "postcss": "^8.5.3",
"tailwindcss": "^4.0.13", "tailwindcss": "^4.0.14",
"typescript": "^5.8.2", "typescript": "^5.8.2",
"vercel": "^39.4.2" "vercel": "^39.4.2"
}, },