-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (53 loc) · 1.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SYSINFOAPP</title>
<link rel="stylesheet" href="https://bootswatch.com/4/cerulean/bootstrap.min.css">
</head>
<body>
<script>
require('./renderer.js');
</script>
<h1>System Information</h1>
<div class="container">
<div id="output">
</div>
</div>
<script>
console.log(process);
let output = `
<h2 class ='page-header'>App Version Data</h2>
<ul class="list-group">
<li class="list-group-item">Node Version: ${process.versions.node}</li>
<li class="list-group-item">Chrome Version: ${process.versions.chrome}</li>
<li class="list-group-item">Electron Version: ${process.versions.electron}</li>
</ul>
<br>
<hr width="100%">
<hr width="100%">
<br>
<h2 class ='page-header'>System Specs</h2>
<ul class="list-group">
<li class="list-group-item">System Architecture: ${process.arch}</li>
<li class="list-group-item">Process Identifier: ${process.env.PROCESSOR_IDENTIFIER}</li>
<li class="list-group-item">Printer: ${process.env.PRINTER}</li>
</ul>
<br>
<hr width="100%">
<hr width="100%">
<h2 class ='page-header'>System Memory</h2>
<ul class="list-group">
<li class="list-group-item">System Memory Total: ${process.getSystemMemoryInfo().total}</li>
<li class="list-group-item">System Memory Free: ${process.getSystemMemoryInfo().free}</li>
<li class="list-group-item">System Memory Swap Total: ${process.getSystemMemoryInfo().swapTotal}</li>
<li class="list-group-item">System Memory Swap Free: ${process.getSystemMemoryInfo().swapFree}</li>
</ul>
<br>
`;
document.getElementById('output').innerHTML = output;
</script>
</body>
</html>