-
Notifications
You must be signed in to change notification settings - Fork 1
/
logs.html
48 lines (46 loc) · 1.07 KB
/
logs.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Logs</title>
<style>
body {
background-color: #2e2c29;
color: #ffffff;
font-family: monospace;
margin: 0;
padding: 0;
}
.title-bar {
-webkit-app-region: drag; /* Permite arrastar a janela */
height: 30px;
background-color: #1a1a1a;
}
.title-bar h2 {
color: white;
margin: 0;
padding: 5px 10px;
font-size: 16px;
}
pre {
white-space: pre-wrap;
word-break: break-word;
margin: 0;
padding: 10px;
}
</style>
</head>
<body>
<div class="title-bar">
<h2>Logs</h2>
</div>
<pre id="logContainer"></pre>
<script>
const { ipcRenderer } = require('electron');
const logContainer = document.getElementById('logContainer');
ipcRenderer.on('log', (event, message) => {
logContainer.textContent += message + '\n';
});
</script>
</body>
</html>