-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (76 loc) · 1.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>Electron System Info App</title>
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/cerulean/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>System Info App</h1>
<div id="output">
</div>
</div>
</body>
<script>
console.log(process)
let output = `
<h2 class="page-header"> App Version Data</h2>
<ul class="list-group">
<li class="list-group-item">Node:
${process.versions.node}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Chrome:
${process.versions.chrome}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Electron:
${process.versions.electron}
</li>
</ul>
<h2 class="page-header"> System Specs</h2>
<ul class="list-group">
<li class="list-group-item">Architecture:
${process.arch}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Identifier:
${process.env.PROCESSOR_IDENTIFIER}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Printer:
${process.env.PRINTER}
</li>
</ul>
<h2 class="page-header"> Memory Info</h2>
<ul class="list-group">
<li class="list-group-item">Architecture:
${process.getSystemMemoryInfo().total}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Identifier:
${process.getSystemMemoryInfo().free}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Printer:
${process.getSystemMemoryInfo().swapTotal}
</li>
</ul>
<ul class="list-group">
<li class="list-group-item">Printer:
${process.getSystemMemoryInfo().swapFree}
</li>
</ul
`
document.getElementById('output').innerHTML = output;
</script>
<script>
require("./renderer.js")
</script>
</html>