Update project dependencies
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
818
central_frontend/package-lock.json
generated
818
central_frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -17,11 +17,11 @@
|
||||
"@mdi/react": "^1.6.1",
|
||||
"@mui/icons-material": "^7.3.4",
|
||||
"@mui/material": "^7.3.4",
|
||||
"@mui/x-charts": "^7.29.1",
|
||||
"@mui/x-date-pickers": "^7.29.4",
|
||||
"date-and-time": "^3.6.0",
|
||||
"@mui/x-charts": "^8.15.0",
|
||||
"@mui/x-date-pickers": "^8.15.0",
|
||||
"date-and-time": "^4.1.0",
|
||||
"dayjs": "^1.11.18",
|
||||
"filesize": "^10.1.6",
|
||||
"filesize": "^11.0.13",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"react-router-dom": "^7.9.4",
|
||||
@@ -33,13 +33,13 @@
|
||||
"@types/semver": "^7.7.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
||||
"@typescript-eslint/parser": "^8.46.2",
|
||||
"@vitejs/plugin-react": "^4.7.0",
|
||||
"@vitejs/plugin-react": "^5.1.0",
|
||||
"eslint": "^9.38.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"globals": "^16.4.0",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.46.2",
|
||||
"vite": "^6.4.1"
|
||||
"vite": "^7.1.12"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ export default function StatCard({
|
||||
<Box sx={{ width: "100%", height: 100 }}>
|
||||
{data && interval && (
|
||||
<SparkLineChart
|
||||
colors={[chartColor]}
|
||||
color={chartColor}
|
||||
data={data}
|
||||
area
|
||||
showHighlight
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Tooltip } from "@mui/material";
|
||||
import date from "date-and-time";
|
||||
import { format } from "date-and-time";
|
||||
import { time } from "../utils/DateUtils";
|
||||
|
||||
export function formatDate(time: number): string {
|
||||
const t = new Date();
|
||||
t.setTime(1000 * time);
|
||||
return date.format(t, "DD/MM/YYYY HH:mm:ss");
|
||||
return format(t, "DD/MM/YYYY HH:mm:ss");
|
||||
}
|
||||
|
||||
export function timeDiff(a: number, b: number): string {
|
||||
|
||||
Reference in New Issue
Block a user