吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 4863|回复: 36
收起左侧

[其他原创] 实时系统监控面板

  [复制链接]
yibeijiu 发表于 2025-6-8 21:46
本帖最后由 yibeijiu 于 2025-6-20 15:23 编辑



基于 Web 的实时系统监控面板,提供系统信息查看、网址收藏管理等功能。界面采用现代化设计,支持响应式布局。(练习版本)


完整源码开放测试结束,若有亟需可PM
V1:单色背景,下载后双击,浏览器打开即可
V2:[ 渐进色背景,下载后双击,浏览器打开即可
硬件信息获取:
[Asm] 纯文本查看 复制代码
async function getHardwareInfo() {
    try {
        // 获取显卡信息
        let gpuInfo = '未知';
        try {
            const canvas = document.createElement('canvas');
            const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
            
            if (gl) {
                const renderer = gl.getParameter(gl.RENDERER);
                const vendor = gl.getParameter(gl.VENDOR);
                
                // 尝试获取更详细的显卡信息
                const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
                if (debugInfo) {
                    const unmaskedRenderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
                    if (unmaskedRenderer && unmaskedRenderer !== 'WebKit WebGL') {
                        gpuInfo = unmaskedRenderer;
                    } else {
                        gpuInfo = renderer || '集成显卡';
                    }
                } else {
                    gpuInfo = renderer || '集成显卡';
                }
                
                // 清理显卡名称
                if (gpuInfo.includes('ANGLE')) {
                    gpuInfo = gpuInfo.replace(/ANGLE \([^)]*\)/, '').trim();
                }
            }
        } catch (e) {
            gpuInfo = '检测失败';
        }
        document.getElementById('gpuInfo').textContent = gpuInfo;

        // CPU架构和核心数
        const cores = navigator.hardwareConcurrency || 0;
        let cpuArch = '未知架构';
        
        // 检测CPU架构
        const ua = navigator.userAgent.toLowerCase();
        const platform = (navigator.platform || '').toLowerCase();
        
        if (platform.includes('win64') || platform.includes('x64') || ua.includes('x64')) {
            cpuArch = 'x64 (64位)';
        } else if (platform.includes('win32') || platform.includes('x86') || ua.includes('x86')) {
            cpuArch = 'x86 (32位)';
        } else if (platform.includes('arm') || ua.includes('arm')) {
            cpuArch = 'ARM 架构';
        } else if (ua.includes('aarch64')) {
            cpuArch = 'ARM64 架构';
        } else if (platform.includes('mac')) {
            cpuArch = ua.includes('intel') ? 'Intel x64' : 'Apple Silicon';
        }

        document.getElementById('cpuModel').textContent = cpuArch;
        document.getElementById('cpuCores').textContent = cores > 0 ? `${cores} 个逻辑核心` : '无法检测';

        // 内存信息
        const memory = navigator.deviceMemory;
        if (memory) {
            document.getElementById('memoryCapacity').textContent = `${memory} GB`;
        } else {
            document.getElementById('memoryCapacity').textContent = '无法检测';
        }

        // 浏览器存储配额
        if ('storage' in navigator && 'estimate' in navigator.storage) {
            try {
                const estimate = await navigator.storage.estimate();
                const quota = estimate.quota || 0;
                const usage = estimate.usage || 0;
                
                if (quota > 0) {
                    const quotaGB = (quota / (1024 * 1024 * 1024)).toFixed(1);
                    const usageGB = (usage / (1024 * 1024 * 1024)).toFixed(2);
                    const usagePercent = Math.round((usage / quota) * 100);
                    
                    document.getElementById('storageInfo').textContent = 
                        `浏览器存储: ${usageGB}GB / ${quotaGB}GB`;
                    document.getElementById('storageProgress').style.width = `${usagePercent}%`;
                    document.getElementById('storageProgress').textContent = `${usagePercent}%`;
                } else {
                    document.getElementById('storageInfo').textContent = '存储信息不可用';
                    document.getElementById('storageProgress').style.width = '0%';
                    document.getElementById('storageProgress').textContent = '0%';
                }
            } catch (e) {
                document.getElementById('storageInfo').textContent = '存储检测失败';
            }
        } else {
            document.getElementById('storageInfo').textContent = '不支持存储API';
        }

        // 平台信息
        const platformInfo = navigator.platform || navigator.userAgentData?.platform || '未知平台';
        document.getElementById('platformInfo').textContent = platformInfo;

    } catch (error) {
        console.error('获取硬件信息失败:', error);
        // 设置默认值
        document.getElementById('gpuInfo').textContent = '检测失败';
        document.getElementById('cpuModel').textContent = '检测失败';
        document.getElementById('cpuCores').textContent = '检测失败';
        document.getElementById('memoryCapacity').textContent = '检测失败';
        document.getElementById('storageInfo').textContent = '检测失败';
        document.getElementById('platformInfo').textContent = '检测失败';
    }
}






免费评分

参与人数 5吾爱币 +11 热心值 +4 收起 理由
苏紫方璇 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
hjsm + 1 + 1 热心回复!
superboy8286 + 1 + 1 谢谢@Thanks!
Wodajunge666 + 1 + 1 我很赞同!
Hameel + 1 热心回复!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

dysunb 发表于 2025-6-8 21:58
背景颜色看着不太好看
panda92 发表于 2025-6-9 11:08
界面看起来还不错,但不知怎的获取有误,我是win11X64,显示win32平台,16G内存显示8G。天气一直获取中。
流浪情人 发表于 2025-6-8 21:50
N964342931 发表于 2025-6-8 22:07
收藏下载 感谢
wyp123 发表于 2025-6-8 23:49
这个界面怎么有一种macos的气质
RyesLai 发表于 2025-6-9 00:11
界面看起来很舒服,也实用
bubu5617 发表于 2025-6-9 06:49
看看是否匹配,谢谢
pixcn007 发表于 2025-6-9 07:19
界面看起来很舒服
ltgb 发表于 2025-6-9 07:41
请问用什么语言写的
源码咋用
sunjuny 发表于 2025-6-9 08:16
试用一下。谢谢分享。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-10-12 11:28

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表