-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
109 lines (99 loc) · 6.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<head>
<title>CESMII App Framework</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta charset="UTF-8">
<link rel="shortcut icon" href="./favicon.ico">
<link rel="manifest" href="./manifest.json">
<link rel="apple-touch-icon" sizes="57x57" href="icons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="icons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="icons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="icons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="icons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="icons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="icons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="icons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="icons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:300,700">
<link href="https://use.fontawesome.com/releases/v5.15.0/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="widgets.css" type="text/css">
<link rel="stylesheet" href="toast.css" type="text/css">
<script defer type="text/javascript" src="logger.js"></script>
<script defer type="text/javascript" src="defaults.js"></script>
<script defer type="text/javascript" src="config.js"></script>
<script type="text/javascript" src="TypeSupport/typeSupport.js"></script>
<script defer type="text/javascript" src="smip.js"></script>
<script defer type="text/javascript" src="smip-queries.js"></script>
<script defer type="text/javascript" src="widgets.js"></script>
<script defer type="text/javascript" src="appframework.js"></script>
</head>
<body onload="appFramework.activate()">
<!-- title bars -->
<div class="titles">
<div class="toptitle">
<img id="imgLogo" src="cesmii.png" style="height:40px" onerror="null;this.src='cesmii.png';logger.warn('Failed to load custom logo, reverting to defatult!')">
<button onclick="appFramework.loadMachines()" id="btnRefresh" style="float:right;"><i class="fas fa-sync-alt"></i></button>
<button onclick="appFramework.showSettings()" id="btnConfig" style="float:right;margin-right:5px;"><i class="fas fa-cogs"></i></button>
</div>
<h1 id="machineName">Loading...</h1>
<!-- toast alerts -->
<div id="toast" class="alert error" style="display:none;">
<label class="close" title="close">
<i class="icon-remove" onclick="appFramework.toggleElement('toast', 'none');appFramework.updateLoop();"></i>
</label>
<p class="inner" id="toast-text">
</p>
</div>
</div>
<!-- main body -->
<div class="content">
<div id="layout">
<!-- side navigation -->
<section class="top-nav">
<input id="menu-toggle" type="checkbox" />
<label class='menu-button-container' for="menu-toggle">
<div class='menu-button'></div>
</label>
<ul id="machines" class="menu"></ul>
</section>
<!-- details root: populated by loaded DetailsPane script -->
<div id="details">
</div>
</div>
</div>
<!-- settings pop-up -->
<div id="settings" style="display:none; float:right">
<p>SMIP Settings</p>
<form id="configForm" action="javascript:appFramework.saveConfig()" accept-charset="utf-8">
<div id="divFavorites" style="display: none;">
<label for="smipfavorite">Favorites</label><br>
<select name="smipfavorite" id="smipfavorite" onchange="appFramework.selectFavorite()">
</select><br>
</div>
<label for="smipurl">SMIP URL</label><br>
<input type="url" id="smipurl" name="smipurl" placeholder="https://yoursmip/graphql" autocapitalize="none" required><br>
<label for="authenticator">Authenticator</label><br>
<input type="text" id="authenticator" name="authenticator" autocapitalize="none" required><br>
<label for="smipusername">Username</label><br>
<input type="text" id="smipusername" name="smipusername" autocapitalize="none" required><br>
<label for="password">Password</label><br>
<input type="password" id="password" name="password" autocapitalize="none" required><br>
<label for="role">Role</label><br>
<input type="text" id="role" name="role" autocapitalize="none" required><br>
<label for="modelParentId">Parent ID</label><br>
<input type="text" id="modelParentId" autocapitalize="none" pattern="[0-9]+" name="modelParentId"><br>
<input type="checkbox" id="saveFavorite" name="saveFavorite">
<label for="saveFavorite">Save as Favorite</label><br>
<p>
<input type="submit" value="Submit">
</p>
</form>
</div>
</body>
</html>