forked from zz85/space-radar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
224 lines (180 loc) · 6.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Space Radar</title>
</head>
<body>
<script>
var d3 = require('d3')
</script>
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/throbber.css" type="text/css">
<link rel="stylesheet" href="css/breadcrumb.css" type="text/css">
<link rel="stylesheet" href="node_modules/photon/dist/css/photon.css">
<!-- <webview id="webview" src="headless.html" style="display: static; width:1px; height:1px" nodeintegration="on"></webview> -->
<div class="window" id="photon-window">
<header class="toolbar toolbar-header">
<h1 class="title">Space Radar</h1>
<div class="toolbar-actions">
<button class="btn btn-default btn-large" onclick="newWindow()">
<span class="icon icon-popup icon-text"></span>
Open
</button>
<div class="btn-group">
<button class="btn btn-default btn-large" onclick="scanRoot()">
<span class="icon icon-drive icon-text"></span>
Scan Drive
</button>
<button class="btn btn-default btn-large" onclick="scanFolder()">
<span class="icon icon-folder icon-text"></span>
Scan Folder
</button>
<button class="btn btn-default btn-large" onclick="readFile()">
<span class="icon icon-folder icon-text"></span>
Read file
</button>
<button class="btn btn-default btn-large" onclick="scanMemory()">
<span class="icon icon-target icon-text"></span>
Scan Memory
</button>
<!--
TODO
<button class="btn btn-default btn-large">
<span class="icon icon-archive icon-text"></span>
Root
</button>
<button class="btn btn-default btn-large">
<span class="icon icon-home icon-text"></span>
Home
</button>
<button class="btn btn-default btn-large">
<span class="icon icon-picture icon-text"></span>
Photos
</button>
-->
</div>
<div class="btn-group">
<button class="btn btn-default btn-large" onclick="graphPlugin.showLess()">
<span class="icon icon-minus"></span>
<!-- Show Less -->
</button>
<!-- icon-text -->
<!-- icon-down-circled icon-up-circled icon-down icon-progress-2 icon-progress-1 -squared -circled -->
<button class="btn btn-default btn-large" onclick="graphPlugin.showMore()">
<span class="icon icon-plus"></span>
<!-- Show More -->
</button>
</div>
<button class="btn btn-default btn-large" onclick="graphPlugin.navigateUp()">
<span class="icon icon-up-circled"></span>
</button>
<!-- <button class="btn btn-default btn-dropdown pull-right btn-large">
<span class="icon icon-cd"></span>
</button> -->
<!-- Large button group -->
<div class="btn-group pull-right">
<button class="btn btn-large btn-default active" id="sunburst_button" onclick="showSunburst()">
<span class="icon icon-cd"></span> <!-- icon-cd icon-chart-pie icon-database icon-rss"-->
</button>
<button class="btn btn-default btn-large" id="treemap_button" onclick="showTreemap()">
<span class="icon icon-layout"></span> <!-- icon-map icon-layout icon-sweden -->
</button>
</div>
<div></div> <!-- thin padding -->
</div>
</header>
<!-- Your app's content goes inside .window-content -->
<div class="window-content" style="overflow-y: hidden;">
<div id="shades" class="Aligner">
<!-- <div class="Aligner-item Aligner-item--top">…</div> -->
<div class="Aligner-item">
<div id="promptbox">
<h4>Scan</h4>
<p>
You may drag a folder here to scan the its contents, or pick one of the following.
</p>
<div class="">
<button class="btn btn-default btn-large" onclick="scanRoot()">
<span class="icon icon-drive icon-text"></span>
Scan Drive
</button>
<button class="btn btn-default btn-large" onclick="scanFolder()">
<span class="icon icon-folder icon-text"></span>
Scan Folder
</button>
<br \>
<button class="btn btn-default btn-large" onclick="readFile()">
<span class="icon icon-folder icon-text"></span>
Read file
</button>
<button class="btn btn-default btn-large" onclick="scanMemory()">
<span class="icon icon-target icon-text"></span>
Scan Memory
</button>
</div>
</div>
</div>
<!-- <div class="Aligner-item Aligner-item--bottom">…</div> -->
</div>
<canvas id="canvas"></canvas>
<div class="svg-container">
</div>
<div id="loading">
Refreshing...
<div class="throbber-loader">
Loading…
</div>
</div>
<div id="legend">
</div>
<div id="explanation">
<span id="core_top"><!-- Loading... --></span><br/>
<span id="core_center"></span><br/>
<span id="core_tag"></span>
</div>
<div id="sequence">
<div class="breadcrumb flat">
</div>
</div>
</div> <!-- end window-content -->
<footer class="toolbar toolbar-footer">
<div class="toolbar-actions">
<div class="btn-group">
<button class="btn btn-default" onclick="navigateBack()">
<span class="icon icon-left-bold"></span>
<!-- icon-left-bold icon-left-circled icon-left -->
</button>
<button class="btn btn-default" onclick="navigateForward()">
<span class="icon icon-right-bold"></span>
</button>
</div>
<span id="bottom_status" style="font-size:11px; padding-left: 8px"><!-- Welcome to Space Radar --></span>
<button class="btn btn-default pull-right" id="dir_opener" onclick="openDirectory()">Locate Directory</button>
<!--
TODO
<button class="btn btn-default">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-positive">Positive</button>
<button class="btn btn-negative">Negative</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-default pull-right">
Cancel
</button>
<button class="btn btn-primary pull-right">
Kill Process
</button>
-->
</div>
</footer>
</div> <!-- end window -->
<script src="js/utils.js"></script>
<script src="js/mem.js"></script>
<script src="js/graphs.js"></script>
<script src="js/sunburst.js"></script>
<script src="js/treemap.js"></script>
<script src="js/radar.js"></script>
<script src="js/menu.js"></script>
<script src="js/breadcrumbs.js"></script>
</body>
</html>