This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
/
app.html
73 lines (65 loc) · 1.66 KB
/
app.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
<!DOCTYPE html>
<html>
<head>
<title>Sia-UI</title>
<!-- Stylesheets -->
<link rel='stylesheet' href='css/font-awesome.min.css'>
<link rel='stylesheet' href='css/pure-min.css'>
<link rel='stylesheet' href='css/grids-responsive-min.css'>
<link rel='stylesheet' href='css/fonts.css'>
<link rel='stylesheet' href='css/general.css'>
</head>
<body>
<div class='overlay'>
<div class='centered'>
<p id="overlay-text"></p>
<textarea id="errorlog" class="error-log"></textarea>
<i id="loading-spinner" class='fa fa-spinner fa-pulse'></i>
</div>
</div>
<!-- Header for UI -->
<div class='pure-g header'>
<div class='pure-u-1-5 logo-container'>
<img src='assets/siaLogo.svg' height='50' class='logo'>
</div>
<div id="statusbar" class='pure-u-4-5'>
</div>
</div>
<!-- Full body of UI -->
<div class='pure-g body'>
<!-- Sidebar -->
<div class='pure-u-1-5' id='sidebar'>
</div>
<!-- Mainbar -->
<div class='pure-u' id='mainbar'>
</div>
</div>
<span id='tooltip'>Tooltip</span>
<div class='notification-container'>
<div class='blueprint notification'>
<div class='icon'>
<i class='fa'></i>
</div>
<div class='content'></div>
</div>
</div>
<script>
{
const scripts = [];
// Dynamically insert the bundled app script in the renderer process
const port = process.env.PORT || 1212;
if (process.env.HOT) {
scripts.push('http://localhost:' + port + '/dist/renderer.dev.js')
} else {
scripts.push('./dist/renderer.prod.js')
scripts.push('./dist/commons.prod.js')
}
document.write(
scripts
.map(script => `<script defer src="${script}"><\/script>`)
.join('')
);
}
</script>
</body>
</html>