From 286af5bdc66e98b4a266c18aedbfdeaf00942cdc Mon Sep 17 00:00:00 2001 From: Shubham Makkar <13jerry02@gmail.com> Date: Mon, 23 Mar 2026 12:27:27 +0530 Subject: [PATCH 1/2] feat: add System Information window --- src/SystemInformation.js | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 src/SystemInformation.js diff --git a/src/SystemInformation.js b/src/SystemInformation.js new file mode 100644 index 0000000000..dbf319ab36 --- /dev/null +++ b/src/SystemInformation.js @@ -0,0 +1,80 @@ +import React, { useState, useEffect } from 'react'; +import './SystemInformation.css'; + +function SystemInformation() { + const [deviceInfo, setDeviceInfo] = useState({}); + const [serverSpecs, setServerSpecs] = useState({}); + const [resourceUsage, setResourceUsage] = useState({}); + + useEffect(() => { + const fetchDeviceInfo = async () => { + const deviceInfo = { + browser: navigator.userAgent, + os: navigator.platform, + screenResolution: `${screen.width}x${screen.height}`, + cpuCores: navigator.hardwareConcurrency, + ram: navigator.deviceMemory, + networkInfo: navigator.connection + }; + setDeviceInfo(deviceInfo); + }; + + const fetchServerSpecs = async () => { + // Implement server specs fetching logic here + const serverSpecs = { + cpu: 'CPU Model', + ram: 'RAM', + diskUsage: 'Disk Usage', + uptime: 'Uptime' + }; + setServerSpecs(serverSpecs); + }; + + const fetchResourceUsage = async () => { + // Implement resource usage fetching logic here + const resourceUsage = { + storageLimits: 'Storage Limits', + storageUsage: 'Storage Usage', + performanceMetrics: 'Performance Metrics', + networkConditions: 'Network Conditions' + }; + setResourceUsage(resourceUsage); + }; + + fetchDeviceInfo(); + fetchServerSpecs(); + fetchResourceUsage(); + }, []); + + return ( +