-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (40 loc) · 1.79 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title >System Info App</title>
<link rel="stylesheet" href="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>
<ui class='list-group'>
<li class="list-group-item">Node : ${process.versions.node}</li>
<li class="list-group-item">Chrome : ${process.versions.chrome}</li>
<li class="list-group-item">Electron : ${process.versions.electron}</li>
</ui>
<h2 class='page-header' > System Specs </h2>
<ui class='list-group'>
<li class="list-group-item">System architecture : ${process.arch}</li>
<li class="list-group-item">Processor identifier : ${process.env.PROCESSOR_IDENTIFIER}</li>
<li class="list-group-item">Printer : ${process.env.PRINTER}</li>
</ui>
<h2 class='page-header' > System Memory </h2>
<ui class='list-group'>
<li class="list-group-item">Total : ${process.getSystemMemoryInfo().total}</li>
<li class="list-group-item">Free : ${process.getSystemMemoryInfo().free}</li>
<li class="list-group-item">Swap total : ${process.getSystemMemoryInfo().swapTotal}</li>
<li class="list-group-item">Swap free : ${process.getSystemMemoryInfo().swapFree}</li>
</ui>` ;
document.getElementById('output').innerHTML = output;
</script>
<script>
require('./renderer.js');
</script>
</html>