mirror of
https://github.com/snltty/linker.git
synced 2025-12-24 12:38:04 +08:00
新增CPU,内存,硬盘系统信息,及调整UI
This commit is contained in:
@@ -15,6 +15,7 @@ export default {
|
||||
return color;
|
||||
},
|
||||
draw(canvas, ctx) {
|
||||
|
||||
const space = 10;
|
||||
|
||||
const arr = [
|
||||
@@ -48,6 +49,12 @@ export default {
|
||||
}
|
||||
this.Cpu--;
|
||||
this.Memory--;
|
||||
if (this.Cpu < 0) {
|
||||
this.Cpu = 0;
|
||||
}
|
||||
if (this.Memory < 0) {
|
||||
this.Memory = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>cmonitor.web</title><script defer="defer" src="/js/chunk-vendors.d3224db2.js"></script><script defer="defer" src="/js/app.5d7d648e.js"></script><link href="/css/chunk-vendors.faad7142.css" rel="stylesheet"><link href="/css/app.97eae421.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but cmonitor.web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>cmonitor.web</title><script defer="defer" src="/js/chunk-vendors.d3224db2.js"></script><script defer="defer" src="/js/app.ff543879.js"></script><link href="/css/chunk-vendors.faad7142.css" rel="stylesheet"><link href="/css/app.97eae421.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but cmonitor.web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
1
cmonitor/web/js/989.e061fd65.js
Normal file
1
cmonitor/web/js/989.e061fd65.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user