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 ( +
+

Device Information

+ + +

Server Specifications

+ + +

Resource Usage

+ +
+ ); +} + +export default SystemInformation; \ No newline at end of file From d7e931af2d9918ee4bd0f321124caacf2aed75ec Mon Sep 17 00:00:00 2001 From: Shubham Makkar <13jerry02@gmail.com> Date: Mon, 23 Mar 2026 12:27:29 +0530 Subject: [PATCH 2/2] feat: add System Information window --- src/App.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/App.js diff --git a/src/App.js b/src/App.js new file mode 100644 index 0000000000..05033489ad --- /dev/null +++ b/src/App.js @@ -0,0 +1,13 @@ +import React from 'react'; +import './App.css'; +import SystemInformation from './SystemInformation'; + +function App() { + return ( +
+ +
+ ); +} + +export default App; \ No newline at end of file