-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLoadConfig.html
More file actions
106 lines (106 loc) · 3.53 KB
/
Copy pathLoadConfig.html
File metadata and controls
106 lines (106 loc) · 3.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--
<link rel='icon' type='image/x-icon' href='/static/favicon.ico'>
-->
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<link rel='stylesheet' id='theme-css' href='/js/bootstrap.min.css'>
<link rel='stylesheet' href='/js/bootstrap-icons.min.css' />
<link rel='stylesheet' href='/js/iziToast/css/iziToast.css' />
<title>Load Configuration File</title>
<meta charset="utf-8">
<!-- FIXME: Wrap this in a CSS file -->
<style>
.lcontainer {
/* FIXME: Set height based on widnow size */
height: 18em;
width: 100%;
}
.lcontainer__left {
resize: horizontal;
overflow: auto;
}
.lcontainer__right {
flex: 1;
overflow: auto;
}
.top-row {
border: 2px solid black;
padding-bottom: 2px;
padding-top: 2px;
}
.CodeMirror {
height: auto;
overflow: auto;
}
</style>
</head>
<body onload="do_stuff()">
<!--# include file="navbar.html" -->
<div class='container-fluid'>
<div class='row top-row'>
<div class='col col-1'>
<!-- FIXME: ToolTip "Load this into the API" -->
<button type='button' o
class='btn btn-sm btn-primary'
onclick="LoadButton.clicked();">
Load
</button>
</div>
<div class='col col-9'>
<input size=80
id='current_file'
placeholder='name of current config file' />
</div>
</div>
</div> <!-- ./container-fluid -->
<div class="d-flex lcontainer row">
<!-- FIXME: This div should be a drop taget -->
<div class="lcontainer__left col-3"
id='file_list'>
</div>
<div class="lcontainer__right col-9"
id='config_text'>
<!-- FIXME; Put some tabs here, RAW/JSON/Errors -->
<textarea id='editor'>
Config File Contents Here
</textarea>
</div>
</div>
<!--# include file="modals.html" -->
<!-- Load Button Modal -->
<script src="/js/iziToast/js/iziToast.js"></script>
<script src="/js/json5.min.js"></script>
<!-- FIXME: Why do links get added twice ? -->
<script src="config.js"></script>
<script src="modals.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src='navbar.js'></script>
<script src='websocket.js'></script>
<!-- Way too much code to make CodeMirror work. Maybe switch to ace? -->
<script src='js/js-yaml.min.js'></script>
<link rel='stylesheet' href='js/codemirror5/codemirror.css'>
<link rel='stylesheet' href='js/codemirror5/lint/lint.css'>
<link rel='stylesheet' href='js/codemirror5/addons/simplescrollbars.css'>
<script src='js/codemirror5/codemirror.js'></script>
<script src='js/codemirror5/mode/yaml.js'></script>
<script src='js/codemirror5/lint/lint.js'></script>
<!--
<script src='js/codemirror5/lint/yaml-lint.js'></script>
-->
<script src='js/codemirror5/lint/ylint.js'></script>
<script src='js/codemirror5/addons/simplescrollbars.js'></script>
<!-- Whew !! ... 9 files for codemirror. Grrr.... -->
<!--
<script src='js/js-yaml.min.js'></script>
<script src="/js/ace/src-noconflict/ace.js"></script>
-->
<script src='LoadConfig.js'></script>
<hr>
<p style="font-size:70%">
<a href="/docs/README.md"> OpenRVDAS (c)2018 David Pablo Cohn</a>
</p>
</body>
</html>