-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
267 lines (243 loc) · 11 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="main.js" defer></script>
</head>
<body>
<div class="sidebar">
<div class="mainLogo">
<i class="ri-hard-drive-fill icon"></i>
<p>N Cloud</p>
</div>
<div class="bigSpacer"></div>
<div class="sectionHead">
<p class="title">Servers</p>
<div class="subActions">
<i class="ri-add-line" onclick="openOverlay('addPiServerPanel')"></i>
</div>
</div>
<div class="spacer"></div>
<div class="list">
<div class="listElement">
<div class="title">Pi4_magiPi</div>
<div class="bar">
<input type="checkbox" id="fok" class="checkbox" checked="false" />
<label for="fok" class="toggle">
<i class="ri-shut-down-line btnON"></i>
</label>
</div>
</div>
<div class="listElement">
<div class="title">Botai Pi Server JamaiBaBu</div>
<div class="bar">
<input type="checkbox" id="fokit" class="checkbox" checked="false" />
<label for="fokit" class="toggle">
<i class="ri-shut-down-line btnON"></i>
</label>
</div>
</div>
</div>
<div class="bottomContainer">
<i class="ri-settings-fill settings icon"></i>
<i class="ri-information-fill info icon"></i>
<i class="ri-code-box-fill settings icon" onclick="nConsolePanel()"></i>
</div>
</div>
<div class="nasconsole Nright" id="nConsolePanel">
<div class="sectionTitle purple">Console</div>
<button class="clrBtn subBg red" onclick="clearNConsole()">Clear</button>
<div class="debugContainer" id="debugContainer">
<div>Pi Server Connected <span class="cyanBg">Success</span></div>
</div>
</div>
<div class="container">
<section class="dashboard hide" id="dashboard">
<div class="sectionTitle purple">Dashboard</div>
<div class="grid">
<div class="box" onclick="openOverlay('confirmPower')">
<i id="powerON" class="ri-shut-down-line cyan"></i>
<i id="powerOFF" class="ri-shut-down-line red hide"></i>
</div>
<div class="box bigbox" onclick="openUserList('userSettingList')">
<i class="ri-user-settings-fill yellow"></i>
<p class="yellow">User Settings</p>
</div>
<div class="box bigbox" onclick="openUserPendingList('userPendingListPanel')">
<i class="ri-user-add-fill red"></i>
<p class="red">Pending Requests</p>
<p class="count">69</p>
</div>
</div>
</section>
<section class="server" id="serverName">
<div class="sectionTitle purple">Server Info</div>
<div class="info">
<div><i class="ri-server-fill"></i>PiMagi</div>
<div><i class="ri-link"></i>192.168.0.1</div>
</div>
<div class="sectionTitle purple subtitle">Hosts</div>
<div class="hostgrid">
<div class="info hostinfo">
<div style="padding: 0;height: 5px;"></div>
<div><i class="ri-hard-drive-fill"></i>Botai Pi 1</div>
<div><i class="ri-folder-info-line"></i>/pi/desktop/</div>
<div class="hostOptions">
<i class="ri-settings-3-fill"></i>
<i class="ri-user-add-fill"></i>
<i class="ri-user-settings-fill"></i>
</div>
<div style="padding: 0;height: 5px;"></div>
</div>
<div class="info hostinfo hostAdd">
<i class="ri-add-fill purple"></i>
</div>
</div>
</section>
</div>
<div class="hide overlayContainer" id='confirmPower'>
<div class="ocontainer oConfimContainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('confirmPower')"></i>
</div>
<div class="confirmHead purple">Are you sure?</div>
<div class="confirmInfo">
Yes karne se tumahara gand fhat sakti hai. Samal ke yes dabae.
</div>
<div class="topBar bottomBar">
<button class="barBtn subBg purple" onclick="closeOverlay('confirmPower')">Cancel</button>
<button class="barBtn" onclick="togglePowerBtn('confirmPower')">Yes</button>
</div>
</div>
</div>
<!--div class="overlayContainer" id='testOverlay'>
<div class="ocontainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('testOverlay')"></i>
</div>
</div>
</div>
<div class="overlayContainer" id='testOverlay'>
<div class="ocontainer oConfimContainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('testOverlay')"></i>
</div>
<div class="confirmHead purple">Are you sure?</div>
<div class="confirmInfo">
Yes karne se tumahara gand fhat sakti hai. Samal ke yes dabae.
</div>
<div class="topBar bottomBar">
<button class="barBtn subBg purple">Cancel</button>
<button class="barBtn">Yes</button>
</div>
</div>
</div-->
<div class="overlayContainer hide" id='userSettingList'>
<div class="ocontainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('userSettingList')"></i>
</div>
<div class="actionBar">
<div class="confirmHead purple">Users</div>
<input type="search" name="" id="userListSearch" oninput="search('userListSearch')" placeholder="Search user">
</div>
<div class="list listHead">
<div class="row">
<div class="col" onclick="sortList()">Name</div>
<div class="col">Type</div>
<div class="col">Status</div>
<div class="col colAction">Action</div>
</div>
</div>
<div class="list" id="userList">
<div class="row">
<div class="col"><i class="ri-user-5-fill"></i>Sourav Gain</div>
<div class="col">Student</div>
<div class="col">Enabled</div>
<div class="col colAction">
<i class="ri-close-circle-fill"></i>
<input type="checkbox" id="enableUserX" class="checkbox" checked="false" />
<label for="enableUserX" class="toggle">
<i class="ri-shut-down-line btnON"></i>
</label>
</div>
</div>
</div>
<div class="loading hide" id="userListLoading">
<div class="loadingBG">
<div class="bar"></div>
</div>
</div>
</div>
</div>
<div class="overlayContainer hide" id='userPendingListPanel'>
<div class="ocontainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('userPendingListPanel')"></i>
</div>
<div class="actionBar">
<div class="confirmHead purple">Pending Users</div>
<input type="search" name="" id="userPendingListSearch" oninput="searchPending('userPendingListSearch')" placeholder="Search user">
</div>
<div class="list listHead">
<div class="row pendingUserRow">
<div class="col" onclick="sortPendingList()">Name</div>
<div class="col">Type</div>
<div class="col colAction">Action</div>
</div>
</div>
<div class="list" id="userPendingList">
<div class="row pendingUserRow">
<div class="col"><i class="ri-user-5-fill"></i>Sourav Gain</div>
<div class="col">Student</div>
<div class="col colAction">
<i class="ri-user-unfollow-fill"></i>
<i class="ri-user-follow-fill"></i>
</div>
</div>
</div>
<div class="loading hide" id="userPendingListLoading">
<div class="loadingBG">
<div class="bar"></div>
</div>
</div>
</div>
</div>
<div class="overlayContainer hide" id='addPiServerPanel'>
<div class="ocontainer oAddServerContainer">
<div class="topBar">
<i class="ri-close-fill" onclick="closeOverlay('addPiServerPanel')"></i>
</div>
<div class="actionBar">
<div class="confirmHead purple">Add Server</div>
</div>
<div class="list addServer" id="userPendingList">
<div class="row addServerRow"></div>
<div class="row addServerRow"><label for="addServerName">Server Name</label></div>
<div class="row addServerRow">
<input type="text" name="addServerName" id="addServerName">
</div>
<div class="row addServerRow"></div>
<div class="row addServerRow"><label for="addServerAddress">Address</label></div>
<div class="row addServerRow">
<input type="text" name="addServerAddress" id="addServerAddress">
</div>
<div class="row addServerRow"></div>
<div class="row addServerRow">Configurations</div>
<div class="row addServerRow"><input type="checkbox" name="addAutoStart" id="addAutoStart" checked><label for="addAutoStart">Auto Start</label></div>
<div class="row addServerRow" id="addServerStatus"></div>
<div class="row addServerRow buttonRow">
<button class="subBg purple" onclick="clearPanel_addServer()">Clear</button>
<button onclick="addServer('addPiServerPanel')">Add Server</button>
</div>
<div class="row addServerRow"></div>
</div>
</div>
</div>
</body>
</html>