This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (127 loc) · 5.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>SmartDashboard.js</title>
<link rel="stylesheet" href="assets/font-awesome.min.css" />
<link rel="stylesheet" href="index.css" />
<link rel="stylesheet" id="theme-css" />
</head>
<body class="main">
<div id="dashboard">
</div>
<span class="widget-update">Click out or [F10] to update</span>
<div class="tooltip"></div>
<img class="widget-drag-image" />
<div class="widget-trash">
<i class="fa fa-trash-o" aria-hidden="true"></i>
</div>
<div id="entries">
<div class="connection-status"> to Robot</div>
<div class="profile-container">
<button class="profile-button" id="open-profile">Layout</button> <span class="current-profile">default</span>
</div>
<h3>
<div class="tab active" data-group="entries" data-tab="vars" data-tooltip="Variables">
<i class="svg-lazy can-invert" data-file="variables.svg" aria-hidden="true"></i>
</div>
<div class="tab" data-group="entries" data-tab="new" data-tooltip="Widgets">
<i class="fa fa-file-o" aria-hidden="true"></i>
</div>
<input type="text" id="entry-search" list="entry-search-items" placeholder="Search or create" />
</h3>
<div class="tab-container">
<div class="tab-content active" data-group="entries" data-tab="vars">
<ul class="list">
</ul>
</div>
<div class="tab-content widgets-view" data-group="entries" data-tab="new">
</div>
</div>
<datalist id="entry-search-items"></datalist>
<div id="controls">
<button class="control" id="control-about" title="About">
<i class="fa fa-info-circle" aria-hidden="true"></i>
</button>
<button class="control" id="control-options" title="Options">
<i class="fa fa-cogs" aria-hidden="true"></i>
</button>
<button class="control" id="control-exit" title="Exit">
<i class="fa fa-power-off" aria-hidden="true"></i>
</button>
<button class="control" id="control-editable" title="Editable Mode (Ctrl+E)">
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
</button>
<button class="control" id="control-new" title="New Widget">
<i class="fa fa-plus-circle" aria-hidden="true"></i>
</button>
</div>
<i class="fa fa-angle-double-right entries-arrow" aria-hidden="true"></i>
</div>
<div id="place-screen">
<h1>Click anywhere to place</h1>
<button class="place-cancel"><i class="fa fa-undo" aria-hidden="true"></i> Cancel</button>
</div>
<div id="input-screen" class="dialog-screen">
<div class="dialog">
<h3 class="input-title"></h3>
<pre class="input-details"></pre>
<div class="input-content">
<input type="text" class="input-content-input" list="input-content-input-items" />
<datalist id="input-content-input-items"></datalist>
</div>
<div class="button-pane">
<button class="button-yes" type="button">OK</button>
<button class="button-no" type="button">Cancel</button>
</div>
</div>
</div>
<div class="dialog-bg">
<div class="dialog-bg-inner"></div>
</div>
<div id="update-screen" class="dialog-screen">
<div class="dialog">
<h3><i class="fa fa-download" aria-hidden="true"></i> <span class="status">Downloading update</span></h3>
<p class="update-info">SmartDashboard.js will automatically restart once the update is downloaded.</p>
<pre class="dl-info"></pre>
<progress max="100"></progress>
</div>
</div>
<div id="error-screen" class="dialog-screen">
<div class="dialog">
<h3><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> SmartDashboard.js encountered an error</h3>
<pre class="error-details-pre"><code class="error-details"></code></pre>
<div class="button-pane">
<a class="report-error" href="javascript:void(0)">Report this error</a>
<button class="restart" type="button">Restart</button><button class="close" type="button">Dismiss</button>
</div>
</div>
</div>
<input style="display:none;" id="fileDialog" type="file" accept=".json,.sdj" />
<script>
const path = require("path");
const gui = require('nw.gui');
const ntcore = require("./ntcore_node");
const fs = require('fs');
const child_process = require('child_process');
const https = require('https');
const net = require('net');
const dgram = require('dgram');
gui.Screen.Init();
</script>
<script src="ContextMenu.js"></script>
<script src="CoordinateUtils.js"></script>
<script src="FileUtils.js"></script>
<script src="DomUtils.js"></script>
<script src="WidgetUtils.js"></script>
<script src="index.js"></script>
<script src="DraggableElement.js"></script>
<script src="Widget.js"></script>
<script src="Container.js"></script>
<script src="UnlinkedWidget.js"></script>
<script src="default-widgets.js"></script>
<script>
SmartDashboard.init();
</script>
</body>
</html>