forked from zerovm/zwift-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·563 lines (524 loc) · 18.2 KB
/
index.html
File metadata and controls
executable file
·563 lines (524 loc) · 18.2 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
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
<!DOCTYPE html>
<html class="blue-background">
<head>
<meta charset="utf-8">
<title>File Manager</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"/>
<!-- for mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, user-scalable=no" />
<!-- For iOS devices -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57x57-fm.png">
<link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon-72x72-fm.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114-fm.png">
<link rel="apple-touch-icon" sizes="144x144" href="apple-touch-icon-144x144-fm.png">
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script src="mode/javascript/javascript.js"></script>
<script src="mode/php/php.js"></script>
<script src="mode/css/css.js"></script>
<script src="mode/xml/xml.js"></script>
<script src="mode/python/python.js"></script>
<script src="mode/clike/clike.js"></script>
<script src="mode/lua/lua.js"></script>
<link rel="stylesheet" href="FileManager.css">
</head>
<body class="view-mode blue-background">
<div class="center">
<div class="fixed-background"></div>
<!-- header -->
<div class="fixed-top center">
<div id="header" class="center">
<span class="left">
<button class="up-button icon-button" title="Up" disabled></button>
<label class="current-dir-label"></label>
</span>
<span class="right">
<button class="open-button icon-button" title="Open" hidden></button>
<label class="execute-label" hidden></label>
<button class="execute-button icon-button" title="Execute" hidden></button>
<button class="toolbar-create-container icon-button" title="Create Container"></button>
<button class="edit-button icon-button" title="Edit"></button>
<button class="done-button icon-button" title="Done" hidden></button>
<button class="wide-button icon-button" title="Wide"></button>
<button class="unwide-button icon-button" title="Unwide" hidden></button>
<button class="sign-out-button icon-button" title="Sign Out"></button>
</span>
</div>
<form id="CreateContainerForm" class="blue-form dialog" hidden>
<input placeholder="Container Name" class="container-name blue-input one-input">
<div class="err-empty err" hidden>Please type container name.</div>
<div class="err-size-limit err" hidden>Container name must be less than 256 bytes.</div>
<div class="err-invalid-character err" hidden>Container name cannot contain a forward slash '/' character.</div>
<div class="err-ajax err" hidden></div>
<div class="err-already-exists err" hidden>Container is already exists.</div>
<button type="submit" class="btn btn-primary blue-button">Create</button>
<button type="button" class="cancel btn btn-primary blue-button">Cancel</button>
</form>
<div class="menu-containers dialog" hidden>
<table class="input-group-table create-container">
<tr>
<td><img src="img/box.png"></td>
<td><input autocomplete="off" class="create-container-input" placeholder="Container Name"></td>
<td class="create-container-button">+</td>
</tr>
<tr class="err-msg create-container-error-ajax" hidden>
<td></td>
<td>Error: <span class="status"></span> <span class="status-text"></span>.</td>
<td></td>
</tr>
<tr class="err-msg create-container-error-max-length" hidden>
<td></td>
<td>Container name must be until 256 characters.</td>
<td></td>
</tr>
<tr class="err-msg create-container-error-invalid-character" hidden>
<td></td>
<td>Container name cannot have a slash (/) character.</td>
<td></td>
</tr>
<tr class="err-msg create-container-error-already-exist" hidden>
<td></td>
<td>Container is already exists.</td>
<td></td>
</tr>
</table>
<table class="input-group-table add-shared">
<tr>
<td><img src="img/shared-box.png"></td>
<td><input autocomplete="off" class="add-shared-input-account" placeholder="Account Name"></td>
<td><input autocomplete="off" class="add-shared-input-container" placeholder="Container Name"></td>
<td class="add-shared-button">+</td>
</tr>
<tr class="err-msg add-shared-error-ajax" hidden>
<td></td>
<td>Error: <span class="status"></span> <span class="status-text"></span>.</td>
<td></td>
</tr>
<tr class="err-msg add-shared-error" hidden>
<td></td>
<td colspan="2">Cannot add specified container.</td>
<td></td>
</tr>
</table>
</div>
<div class="menu-files dialog" hidden>
<table class="input-group-table create-directory">
<tr>
<td><img src="img/folder.png"></td>
<td><input autocomplete="off" class="create-directory-input" placeholder="Directory Name"></td>
<td class="create-directory-button">+</td>
</tr>
<tr class="err-msg create-directory-error-ajax" hidden>
<td></td>
<td>Error: <span class="status"></span> <span class="status-text"></span>.</td>
<td></td>
</tr>
<tr class="err-msg create-directory-error-invalid-character" hidden>
<td></td>
<td>Directory name cannot have a slash (/) character.</td>
<td></td>
</tr>
<tr class="err-msg create-directory-error-already-exist" hidden>
<td></td>
<td>Directory is already exists.</td>
<td></td>
</tr>
</table>
<table class="input-group-table">
<tr>
<td><img src="img/file_txt.png"></td>
<td><input autocomplete="off" class="create-file-input-name" placeholder="File Name"></td>
<td><input autocomplete="off" class="create-file-input-type" placeholder="Content Type" value="text/plain"></td>
<td class="create-file-button">+</td>
</tr>
<tr class="err-msg create-file-error-ajax" hidden>
<td></td>
<td>Error: <span class="status"></span> <span class="status-text"></span>.</td>
<td></td>
</tr>
</table>
<div class="div-button upload-files" style="width: 33%;"><input autocomplete="off" type="file" multiple><img src="img/upload.png"><span>Upload Files</span></div>
<div class="div-button upload-as" style="width: 32%;"><input autocomplete="off" type="file" multiple><img src="img/upload-as.png"><span>Upload As</span></div>
<div class="div-button upload-execute" style="width: 33%;"><input autocomplete="off" type="file"><img src="img/execute.png"><span>Upload & Execute</span></div>
</div>
<div class="menu-file dialog" hidden>
<button autocomplete="off" class="undo txt-btn" disabled></button><button autocomplete="off" class="redo txt-btn" disabled></button><button autocomplete="off" class="save txt-btn" disabled></button><button autocomplete="off" class="save-as">Save As...</button>
<a href="#" class="download-link" target="_blank">Download</a>
<div class="editor-toolbar-error" hidden>Error: <span class="status"></span> <span class="status-text"></span>.</div>
<table class="input-group-table save-as-dialog" hidden>
<tr>
<td><img src="img/file_txt.png"></td>
<td><input autocomplete="off" class="save-as-input-path" placeholder="File Path"></td>
<td><input autocomplete="off" class="save-as-input-type" placeholder="Content Type"></td>
<td class="save-as-button">+</td>
</tr>
<tr class="save-as-error-ajax" hidden>
<td colspan="4">Error: <span class="status"></span> <span class="status-text"></span>.</td>
</tr>
</table>
</div>
</div>
<!-- content -->
<div id="content">
<div class="scrolling-content">
</div>
</div>
</div>
<form id="Authentication" class="blue-background full-stretch">
<div class="center-content">
<div class="window">
<label>V1 AUTH URL: </label><input class="v1-auth-url blue-input" value=""><br>
<label>Tenant: </label><input class="tenant blue-input"><br>
<label>X Auth User: </label><input class="x-auth-user blue-input"><br>
<label>X Auth Key: </label><input class="x-auth-key blue-input"><br>
<button type="submit" class="btn blue-button">Login</button>
</div>
<div class="window">
<button type="button" class="blue-button login-with-google">Login with Google</button>
</div>
</div>
</form>
<!-- templates -->
<div class="template template-container item" title>
<span class="left">
<img src="img/container.png">
<label class="name"></label>
</span>
<span class="right">
<label class="size"></label>
<label class="files"></label>
<label class="open-item-menu"></label>
<label class="delete">X</label>
</span>
</div>
<template id="sharedContainerTemplate">
<div class="item" title="{{title}}">
<span class="left">
<img src="img/shared-box32.png">
<label class="name">{{name}}</label>
</span>
<span class="right">
<label class="size">...</label>
<label class="files">...</label>
<label class="delete">X</label>
</span>
</div>
</template>
<template id="fileTemplate">
<div class="item" title="{{title}}">
<span class="left">
<img src="{{icon}}">
<label class="name">{{name}}</label>
</span>
<span class="right">
<label class="size">{{size}}</label>
<label class="modified">{{modified}}</label>
<label class="delete">X</label>
</span>
</div>
</template>
<template id="directoryTemplate">
<div class="item" title="{{title}}">
<span class="left">
<img src="img/folder32.png">
<label class="name">{{name}}</label>
</span>
<span class="right">
<label class="delete">X</label>
</span>
</div>
</template>
<template id="newScrollingContentTemplate">
<div class="new-scrolling-content scrolling-content"></div>
</template>
<template id="itemLoadingTemplate">
<span class="item-loading">Loading...</span>
</template>
<template id="noContainersTemplate">
<label class="empty-list">There are no containers.</label>
</template>
<template id="noFilesTemplate">
<label class="empty-list">There are no files.</label>
</template>
<template id="notTextFileTemplate">
<label class="empty-list">Not text file.</label>
</template>
<template id="largeFileTemplate">
<label class="empty-list">File is too large.</label>
</template>
<template id="loadMoreButtonTemplate">
<div class="load-more-button">Load More</div>
</template>
<template id="scrollingContentLoadingTemplate">
<label class="scrolling-content-loading">Loading...</label>
</template>
<template id="errorTemplate">
<span class="error">Error occurred. <span class="error-reason">reason</span> <span class="error-status"></span>.</span>
</template>
<template id="itemMenuTemplate">
<div class="item-menu">
<table class="rights-table" hidden>
<thead>
<tr>
<th colspan="3">Rights</th>
</tr>
<tr class="loading">
<td colspan="3">Loading...</td>
</tr>
<tr class="rights-error-ajax" hidden>
<td colspan="3">Error: <span class="status"></span> <span class="status-text"></span>.</td>
</tr>
</thead>
<tbody hidden>
<tr>
<td style="width: 1px;">Read</td>
<td><input autocomplete="off" class="read-rights-input" placeholder="Read Rights"></td>
</tr>
<tr style="width: 1px;">
<td>Write</td>
<td><input autocomplete="off" class="write-rights-input" placeholder="Write Rights"></td>
</tr>
</tbody>
<tfoot hidden>
<tr>
<td colspan="2"><button autocomplete="off" class="rights-save">Save</button><button autocomplete="off" class="rights-discard-changes">Discard Changes</button></td>
</tr>
</tfoot>
</table>
<table class="content-type-table" hidden>
<thead>
<tr>
<th colspan="3">Content Type</th>
</tr>
<tr class="loading">
<td colspan="3">Loading...</td>
</tr>
<tr class="content-type-error-ajax" hidden>
<td colspan="3">Error: <span class="status"></span> <span class="status-text"></span>.</td>
</tr>
</thead>
<tbody class="input-group-table" style="background: transparent;" hidden>
<tr>
<td><img src="img/file_type.png"></td>
<td><input autocomplete="off" class="content-type-input" placeholder="Content Type"></td>
<td class="content-type-button">></td>
</tr>
</tbody>
</table>
<table class="metadata-table">
<thead>
<tr>
<th colspan="2">Metadata</th>
<td></td>
</tr>
<tr class="metadata-loading">
<td colspan="3">Loading...</td>
</tr>
<tr class="metadata-error-ajax" hidden>
<td colspan="3">Error: <span class="status"></span> <span class="status-text"></span>.</td>
</tr>
</thead>
<tbody>
</tbody>
<tfoot hidden>
<tr>
<td><button autocomplete="off" class="metadata-save">Save</button></td>
<td><button autocomplete="off" class="metadata-discard-changes">Discard Changes</button></td>
<td></td>
</tr>
</tfoot>
</table>
<table class="copy-table" hidden>
<thead>
<tr>
<th colspan="3">Copy</th>
</tr>
<tr class="copy-loading" hidden="">
<td colspan="3">Loading...</td>
</tr>
<tr class="copy-ok" hidden>
<td colspan="3">File is copied successfully.</td>
</tr>
<tr class="copy-error-ajax" hidden>
<td colspan="3">Error: <span class="status"></span> <span class="status-text"></span>.</td>
</tr>
</thead>
<tbody class="input-group-table" style="background: transparent;">
<tr>
<td><img src="img/copy.png"></td>
<td><input autocomplete="off" class="copy-input" placeholder="Copy to..."></td>
<td class="copy-button">+</td>
</tr>
</tbody>
</table>
</div>
</template>
<template id="metadataRowTemplate">
<tr>
<td><input autocomplete="off" class="metadata-key" placeholder="Key" value="{{key}}"></td>
<td><input autocomplete="off" class="metadata-value" placeholder="Value" value="{{value}}"></td>
<td class="remove-metadata">x</td>
</tr>
</template>
<template id="itemConfirmDeleteTemplate">
<div class="item-confirm-delete">
<div class="delete-label" style="margin: 8px;display: inline-block;">Are you sure you want delete?</div>
<button autocomplete="off" class="delete-button" style="float: right;">Delete</button>
<label class="delete-deleting-label" hidden>Deleting...</label>
<label class="delete-error-ajax" hidden>Error: <span class="status"></span> <span class="status-text"></span>.</label>
</div>
</template>
<template id="uploadTemplate">
<table class="input-group-table" id="{{upload-id}}">
<tr>
<td><img src="img/file.png"></td>
<td style="text-align: left;"><label class="upload-label-name">{{upload-label-name}}</label></td>
<td style="text-align: right;"><span class="progresslabel"> 0% </span><progress style="width: 100px;" class="upload-progress" max="100" value="0"></progress></td>
<td class="cancel-upload-button">x</td>
</tr>
<tr class="err-msg error" hidden>
<td></td>
<td colspan="2">Error: <span class="status"></span> <span class="status-text"></span>.</td>
<td></td>
</tr>
</table>
</template>
<template id="uploadAsTemplate">
<table class="input-group-table">
<tr id="upload-as-{{index}}">
<td><img src="img/file.png"></td>
<td><input autocomplete="off" data-index="{{index}}" class="upload-as-input-name" placeholder="File Name" value="{{upload-input-name}}"></td>
<td><input autocomplete="off" data-index="{{index}}" class="upload-as-input-type" placeholder="Content Type" value="{{upload-input-type}}"></td>
<td data-index="{{index}}" class="upload-as-button">+</td>
</tr>
</table>
</template>
<template id="reportTemplate">
<div id="report">
<table>
<tr>
<td>
<table>
<thead>
<tr>
<th colspan="2">Execution Report</th>
</tr>
</thead>
<tbody id="execute-tbody">
<tr id="execute-status-tr" hidden>
<td class="execute-report-part-name">
Status
</td>
</tr>
<tr>
<td id="execute-status-val"></td>
</tr>
<tr id="execute-error-tr" hidden>
<td class="execute-report-part-name">
Error
</td>
</tr>
<tr>
<td id="execute-error-val"></td>
</tr>
</tbody>
</table>
</td></tr>
<tr>
<td>
<button autocomplete="off" class="execute-full-button">Show full report</button>
</td>
</tr>
<tr><td>
<table class="billing-report-table">
<thead>
<tr>
<th id="billing-report-title">Billing Report</th>
</tr>
</thead>
<tbody id="billing-tbody">
<tr id="total-time-tr">
<td class="billing-report-part-name">
Total time
</td>
</tr>
<tr id="node-number-tr">
<td class="billing-report-part-name" style="width: 120px;">
Node #
</td>
</tr>
<tr id="node-server-time-tr">
<td class="billing-report-part-name">
Node server time
</td>
</tr>
<tr id="system-time-tr">
<td class="billing-report-part-name">
System time
</td>
</tr>
<tr id="user-time-tr">
<td class="billing-report-part-name">
User time
</td>
</tr>
<tr id="reads-from-disk-tr">
<td class="billing-report-part-name">
Number of reads from disk
</td>
</tr>
<tr id="bytes-read-from-disk-tr">
<td class="billing-report-part-name">
Number of bytes read from disk
</td>
</tr>
<tr id="writes-to-disk-tr">
<td class="billing-report-part-name">
Number of writes to disk
</td>
</tr>
<tr id="bytes-written-to-disk-tr">
<td class="billing-report-part-name">
Number of bytes written to disk
</td>
</tr>
<tr id="reads-from-network-tr">
<td class="billing-report-part-name">
Number of reads from network
</td>
</tr>
<tr id="bytes-read-from-network-tr">
<td class="billing-report-part-name">
Number of bytes read from network
</td>
</tr>
<tr id="writes-to-network-tr">
<td class="billing-report-part-name">
Number of writes to network
</td>
</tr>
<tr id="bytes-written-to-network-tr">
<td class="billing-report-part-name">
Number of bytes written to network
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<button autocomplete="off" class="execute-close-button" style="height: 40px;">Close</button>
</td>
</tr>
</table>
</div>
</template>
<script src="liteauth.js"></script>
<!--<script src="Swift.js"></script>-->
<script src="mock.js"></script>
<script src="FileManager.js"></script>
</body>
</html>