-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
223 lines (210 loc) · 12.1 KB
/
index.html
File metadata and controls
223 lines (210 loc) · 12.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vrui Management Interface</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div id="actionMenu" class="action-menu hidden"></div>
<!-- Top bar -->
<div class="topbar">
<a href="https://Vrui-vr.github.io/" target="_blank" rel="noopener" id="Vrui-logo-link">
<img src="images/vruilogo.jpg" alt="Vrui Logo" class="sidebar-logo topbar-logo" />
</a>
<h2 class="topbar-title">Vrui Management Interface</h2>
<div class="topbar-end">
<button class="theme-toggle topbar-theme-toggle" aria-label="Toggle dark mode" title="Toggle dark mode">
<svg class="theme-icon sun" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
<svg class="theme-icon moon" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" stroke="none">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
</button>
<a href="https://Vrui-vr.github.io/" target="_blank" rel="noopener" class="topbar-docs-link" title="Documentation">
<svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.385-1.335-1.755-1.335-1.755-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12"/>
</svg>
Docs
</a>
</div>
</div>
<!-- Main app row -->
<div class="app-body">
<div class="sidebar">
<!-- Active system display -->
<div class="sidebar-target">
<div class="sidebar-target-text">
<div class="sidebar-edit-row">
<div class="sidebar-target-name" id="currentSystemName">localhost</div>
<button id="sidebarNamePencil" class="sidebar-edit-pencil hidden" aria-label="Edit name">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
</svg>
</button>
</div>
<div class="sidebar-edit-row">
<div class="sidebar-target-info" id="currentSystemInfo">—</div>
<button id="sidebarInfoPencil" class="sidebar-edit-pencil hidden" aria-label="Edit connection">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
</svg>
</button>
</div>
</div>
<button id="sidebarPaletteBtn" class="sidebar-palette-btn hidden" aria-label="Change system color">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/>
<circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/>
<circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>
<circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z"/>
</svg>
</button>
</div>
<!-- Version info (shown when launcher is connected) -->
<div class="sidebar-section-divider"></div>
<div id="sidebarVersionInfo" class="sidebar-version-info" style="display:none;">
<div class="sidebar-version-row" id="sidebarVruiVersion"></div>
<div class="sidebar-version-row" id="sidebarLauncherProtocol"></div>
<div class="sidebar-version-row sidebar-version-row-secondary" id="sidebarTrackingProtocol"></div>
<div class="sidebar-version-row sidebar-version-row-secondary" id="sidebarCompositingProtocol"></div>
</div>
<div class="sidebar-section-divider"></div>
<!-- Environment selector (hidden when no environments available) -->
<div class="environment-selector" id="environmentSelector" style="display: none;">
<label class="environment-label" for="environmentDropdown">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<!-- Front face -->
<rect x="3" y="7" width="12" height="12"/>
<!-- Back face edges -->
<rect x="9" y="3" width="12" height="12"/>
<!-- Connecting edges -->
<line x1="3" y1="7" x2="9" y2="3"/>
<line x1="15" y1="7" x2="21" y2="3"/>
<line x1="3" y1="19" x2="9" y2="15"/>
<line x1="15" y1="19" x2="21" y2="15"/>
</svg>
Environment
</label>
<div class="environment-dropdown-wrapper">
<select id="environmentDropdown" class="environment-dropdown">
<option value="">Select environment...</option>
</select>
<svg class="environment-dropdown-chevron" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="6 9 12 15 18 9"/>
</svg>
</div>
</div>
<!-- Button section - not needed in current build
<div class="button-section">
<button class="button" id="btn-1" onclick="sendButton(1)">Toggle Status Requests</button>
<button class="button" id="btn-2" onclick="sendButton(2)">Start Servers</button>
<button class="button" id="btn-3" onclick="sendButton(3)">...</button>
</div>
-->
<!-- File Upload Section - not needed in current build
<div class="file-drop-wrapper">
<div id="fileDropArea" class="file-drop">
<div class="file-drop-header">Upload file</div>
<div class="file-drop-box">
<label for="fileInput" class="file-drop-label">
<div class="file-drop-icon">
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
</div>
<span class="file-drop-text">
Drop files here or <span class="browse-text">Browse</span>
</span>
</label>
<input type="file" id="fileInput" hidden />
</div>
</div>
</div>
-->
</div>
<div class="main">
<div class="system-section-wrapper">
<button class="mini-monitor-btn" onclick="openMiniMonitor()" title="Detach monitor">
<svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect>
<line x1="8" y1="21" x2="16" y2="21"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
</svg>
</button>
<div class="system-section" id="systemContainer"></div>
</div>
<div class="console-section">
<div class="console-tab-bar" id="consoleTabBar">
<div class="console-tabs" id="consoleTabs">
<button class="console-tab active" data-pane="console">Console</button>
<button class="console-tab" data-pane="logfile">Log File</button>
</div>
</div>
<!-- Console pane -->
<div class="console-pane" id="consolePaneConsole">
<div class="console-pane-actions">
<button class="console-float-btn" id="consoleSearchToggle" aria-label="Search console">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
</button>
<button id="filterToggle" class="console-float-btn sys-tooltip tooltip-down tooltip-right" aria-label="Filter" data-tooltip="All systems">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 3H2l8 9.46V19l4 2V12.46L22 3z"/>
</svg>
</button>
</div>
<div class="console-search-bar" id="consoleSearchBar" style="display:none;">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="flex-shrink:0;opacity:0.5">
<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
<input type="text" id="consoleSearchInput" placeholder="Search console..." autocomplete="off" />
<button class="console-search-clear" onclick="clearConsoleSearch()">×</button>
</div>
<div id="consoleOutput" class="console-box"></div>
<div id="commandPrompt">
<input type="text" id="commandInput" placeholder="Enter command (e.g. reset)" />
<button onclick="sendConsoleCommand()">Send</button>
</div>
</div>
<!-- Log file pane -->
<div class="console-pane" id="consolePaneLogfile" style="display:none;">
<div class="log-file-header" id="logFileSource">
<span id="logFileSourceLabel"></span>
</div>
<div id="logFileOutput" class="console-box log-file-box"></div>
<div class="log-search-prompt">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" style="flex-shrink:0;opacity:0.45">
<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
<input type="text" id="logSearchInput" placeholder="Search log..." autocomplete="off" />
<button class="console-search-clear" onclick="clearLogSearch()">×</button>
</div>
</div>
</div>
</div>
</div><!-- /.app-body -->
<script src="js/main.js"></script>
</body>
</html>