-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (81 loc) · 3.17 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
80
81
82
83
84
85
86
87
88
89
90
<html>
<head>
<title>SysInfoApp</title>
<link
rel="stylesheet"
href="https://bootswatch.com/4/cerulean/bootstrap.min.css"
/>
</head>
<body>
<div class="container">
<h1>SysInfoApp</h1>
<br />
<div id="output"></div>
</div>
</body>
<script>
//console.log(process);
let output = `
<h2 clas="page-header">App Version Data</h2>
<ul 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>
</ul>
<h2 clas="page-header">System Specs</h2>
<ul 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>
</ul>
<h2 clas="page-header">System Memory</h2>
<ul 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>
</ul>
<h2 clas="page-header">Computer Info</h2>
<ul class="list-group">
<li class="list-group-item">Computer Name: ${
process.env.USERDOMAIN
}</li>
<li class="list-group-item">Username: ${
process.env.USERNAME
}</li>
<li class="list-group-item">User home path: ${
process.env.HOME
}</li>
<li class="list-group-item">System Drive: ${
process.env.SYSTEMDRIVE
}</li>
<li class="list-group-item">System Root: ${
process.env.SYSTEMROOT
}</li>
</ul>
`;
document.getElementById('output').innerHTML = output;
require('./render.js');
</script>
</html>
<!-- https://www.youtube.com/watch?v=mr9Mtm_TRpw -->