Skip to content

Commit

Permalink
rf: revert nextjs upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 26, 2024
1 parent ce20e49 commit e0d8dd5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
Binary file modified bun.lockb
Binary file not shown.
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,25 @@
"lint": "next lint"
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.7",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@formatjs/intl-localematcher": "^0.5.8",
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/free-brands-svg-icons": "^6.7.1",
"@fortawesome/free-regular-svg-icons": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"chart.js": "^4.4.6",
"classnames": "^2.5.1",
"i18next": "^23.16.4",
"jose": "^5.9.6",
"i18next": "^23.16.8",
"js-cookie": "^3.0.5",
"moment": "^2.30.1",
"negotiator": "^0.6.4",
"next": "^14.2.16",
"next-auth": "^4.24.10",
"next-nprogress-bar": "^2.3.14",
"next": "^14.2.5",
"next-auth": "^4.24.7",
"next-nprogress-bar": "^2.3.15",
"react": "^18.3.1",
"react-bootstrap": "^2.10.5",
"react-bootstrap": "^2.10.6",
"react-chartjs-2": "^5.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.3.1",
Expand All @@ -42,24 +41,24 @@
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"@types/negotiator": "^0.6.3",
"@types/node": "^22.8.7",
"@types/node": "^22.9.4",
"@types/react": "^18.3.12",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"eslint": "^9.15.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-next": "^14.2.16",
"eslint-config-next": "^14.2.18",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"json-server": "^1.0.0-beta.3",
"postcss": "^8.4.47",
"sass": "^1.80.6",
"typescript": "^5.6.3"
"postcss": "^8.4.49",
"sass": "^1.81.0",
"typescript": "^5.7.2"
}
}
10 changes: 4 additions & 6 deletions src/utils/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ import 'server-only';

import os from 'os';

interface MemoryMetrics {
export interface MemoryMetrics {
totalMemory: number;
usedMemory: number;
freeMemory: number;
usedMemoryPercentage: number;
freeMemoryPercentage: number;
}

interface NetworkMetrics {
export interface NetworkMetrics {
uploadSpeed: string;
downloadSpeed: string;
}

interface SystemMetrics {
export interface SystemMetrics {
cpuUsage: number;
memory: MemoryMetrics;
networkMetrics: NetworkMetrics;
Expand Down Expand Up @@ -59,6 +59,4 @@ export default async function fetchMetrics(): Promise<SystemMetrics> {
uptime,
timestamp,
};
}

export type { MemoryMetrics, NetworkMetrics, SystemMetrics };
}

0 comments on commit e0d8dd5

Please sign in to comment.