blob: 07090db8050abc9479015c0677652ef8fc115e02 [file] [log] [blame]
Timoney, Daniel (dt5972)324ee362017-02-15 10:37:53 -05001<!DOCTYPE html>
2<html>
3<meta charset="utf-8">
4<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
5<meta name="apple-mobile-web-app-capable" content="yes">
6<meta name="mobile-web-app-capable" content="yes">
7
8<!--
9 Copyright 2013, 2014 IBM Corp.
10
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14
15 http://www.apache.org/licenses/LICENSE-2.0
16
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22-->
23<head>
24<!--<title>Node-RED</title>-->
25<title>Directed Graph Builder</title>
26<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
27<link href="jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" media="screen">
28<link rel="stylesheet" type="text/css" href="orion/built-editor.css"/>
29<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css"/>
30<link rel="stylesheet" href="style.css">
31</head>
32<body spellcheck="false">
33<div id="header">
34 <!--<span class="logo"><img src="node-red.png"> <span>Node-RED</span></span>-->
35 <!--<span class="logo"><img src="node-red.png"> <span>Directed Graph Builder</span></span>-->
36 <span class="logo"><img src="node-red.png"> <span>Directed Graph Builder</span><span id='processingStatusId' ></span></span>
37 <div class="pull-right">
38 <span id='releaseId' ></span>
39 <a id="btn-deploy" class="button action-deploy disabled" href="#"><i id="btn-icn-deploy" class="fa fa-download"></i>Save</a>
40 <a id="btn-sidemenu" class="button dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-bars"></i></a>
41 </div>
42</div>
43<div id="main-container" class="sidebar-closed">
44 <div id="palette">
45 <img src="spin.svg" class="palette-spinner"/>
46 <div id="palette-container" class="palette-scroll">
47 </div>
48 <div id="palette-search">
49 <i class="fa fa-search"></i><input id="palette-search-input" type="text" placeholder="filter"><a href="#" id="palette-search-clear"><i class="fa fa-times"></i></a></input>
50 </div>
51 </div><!-- /palette -->
52
53 <div id="workspace">
54 <ul id="workspace-tabs"></ul>
55 <div id="workspace-add-tab"><a id="btn-workspace-add-tab" href="#"><i class="fa fa-plus"></i></a></div>
56 <div id="chart"></div>
57 <div id="workspace-toolbar">
58 <div class="btn-group">
59 <a class="btn btn-small" href="#"><i class="fa fa-search-minus"></i></a>
60 <a class="btn btn-small" href="#"><i class="fa fa-dot-circle-o"></i></a>
61 <a class="btn btn-small" href="#"><i class="fa fa-search-plus"></i></a>
62 </div>
63 </div>
64 </div>
65
66 <div id="chart-zoom-controls">
67 <div class="btn-group">
68 <a class="btn btn-mini" id="btn-zoom-out" href="#"><i class="fa fa-search-minus"></i></a>
69 <a class="btn btn-mini" id="btn-zoom-zero" href="#"><i class="fa fa-dot-circle-o"></i></a>
70 <a class="btn btn-mini" id="btn-zoom-in" href="#"><i class="fa fa-search-plus"></i></a>
71 </div>
72 </div>
73
74 <div id="sidebar">
75 <ul id="sidebar-tabs"></ul>
76 <div id="sidebar-content"></div>
77 </div>
78
79 <div id="sidebar-separator"></div>
80
81</div>
82
83<div id="notifications"></div>
84<div id="dropTarget"><div>Drop the flow here<br/><i class="fa fa-download"></i></div></div>
85
86<div id="dialog" class="hide"><form id="dialog-form" class="form-horizontal"></form></div>
87<div id="node-config-dialog" class="hide"><form id="dialog-config-form" class="form-horizontal"></form><div class="form-tips" id="node-config-dialog-user-count"></div></div>
88
89<div id="node-dialog-confirm-deploy" class="hide">
90 <form class="form-horizontal">
91 <div id="node-dialog-confirm-deploy-config" style="text-align: center; padding-top: 30px;">
92 Some of the nodes are not properly configured. Are you sure you want to deploy?
93 </div>
94 <div id="node-dialog-confirm-deploy-unknown" style="text-align: center; padding-top: 10px;">
95 The workspace contains some unknown node types:
96 <ul style="width: 300px; margin: auto; text-align: left;" id="node-dialog-confirm-deploy-unknown-list"></ul>
97 Are you sure you want to deploy?
98 </div>
99 </form>
100</div>
101
102<div id="node-help" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="node-help-label" aria-hidden="true">
103 <div class="modal-header">
104 <h5 id="node-help-label">Keyboard Shortcuts <!-- <span style="float: right;"><a href="http://node-red.github.io/docs" target="_blank">Open help in new window &raquo;</a></span> -->
105</h5>
106 </div>
107 <div class="modal-body">
108 <table>
109 <tr>
110 <td><span class="help-key">?</span></td><td>Help</td>
111 <td><span class="help-key">Ctrl</span> <span class="help-key">a</span></td><td>Select all nodes</td>
112 </tr>
113 <tr>
114 <td><span class="help-key">Ctrl</span> <span class="help-key">Space</span></td><td>Toggle sidebar</td>
115 <td><span class="help-key">Shift</span> <span class="help-key">Click</span></td><td>Select all connected nodes</td>
116 </tr>
117 <tr>
118 <td><span class="help-key">Ctrl</span> <span class="help-key">z</span></td><td>Undo</td>
119 <td><span class="help-key">Ctrl</span> <span class="help-key">Click</span></td><td>Add/remove node from selection</td>
120 </tr>
121 <tr>
122 <td><span class="help-key">Ctrl</span> <span class="help-key">m</span></td><td>Toggle Node Palette</td>
123 <td><span class="help-key">Delete</span></td><td>Delete selected nodes or link</td>
124 </tr>
125 <tr>
126 <td><span class="help-key">Ctrl</span> <span class="help-key">x</span></td><td>Cut selected nodes</td>
127 <td><span class="help-key">Ctrl</span> <span class="help-key">b</span></td><td>Find Node</td>
128 </tr>
129 <tr>
130 <td><span class="help-key">Ctrl</span> <span class="help-key">c</span></td><td>Copy selected nodes</td>
131 <td><span class="help-key">Ctrl</span> <span class="help-key">v</span></td><td>Paste nodes</td>
132 </tr>
133 <tr>
134 <td><span class="help-key">Ctrl</span> <span class="help-key">i</span></td><td>Import nodes</td>
135 <td><span class="help-key">Ctrl</span> <span class="help-key">e</span></td><td>Export selected nodes</td>
136 </tr>
137 <tr>
138 <td colspan="2"></td>
139 </tr>
140 <tr>
141 <td><span class="help-key">Ctrl</span> <span class="help-key">+</span></td><td>Zoom in</td>
142 <td><span class="help-key">Ctrl</span> <span class="help-key">-</span></td><td>Zoom out</td>
143 </tr>
144 </table>
145 </div>
146 <div class="modal-footer">
147 <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
148 </div>
149</div>
150
151<div id="node-dialog-library-save-confirm" class="hide">
152 <form class="form-horizontal">
153 <div style="text-align: center; padding-top: 30px;">
154 A <span id="node-dialog-library-save-type"></span> called <span id="node-dialog-library-save-name"></span> already exists. Overwrite?
155 </div>
156 </form>
157</div>
158
159<div id="node-dialog-library-save" class="hide">
160 <form class="form-horizontal">
161 <div class="form-row">
162 <label for="node-dialog-library-save-folder"><i class="fa fa-folder-open"></i> Folder</label>
163 <input type="text" id="node-dialog-library-save-folder" placeholder="Folder">
164 </div>
165 <div class="form-row">
166 <label for="node-dialog-library-save-filename"><i class="fa fa-file"></i> Filename</label>
167 <input type="text" id="node-dialog-library-save-filename" placeholder="Filename">
168 </div>
169 </form>
170</div>
171
172<div id="node-dialog-library-lookup" class="hide">
173 <form class="form-horizontal">
174 <div class="form-row">
175 <ul id="node-dialog-library-breadcrumbs" class="breadcrumb">
176 <li class="active"><a href="#">Library</a></li>
177 </ul>
178 </div>
179 <div class="form-row">
180 <div style="vertical-align: top; display: inline-block; height: 100%; width: 30%; padding-right: 20px;">
181 <div id="node-select-library" style="border: 1px solid #999; width: 100%; height: 100%; overflow:scroll;"><ul></ul></div>
182 </div>
183 <div style="vertical-align: top; display: inline-block;width: 65%; height: 100%;">
184 <div style="height: 100%; width: 95%;" class="node-text-editor" id="node-select-library-text" ></div>
185 </div>
186 </div>
187 </form>
188</div>
189<div id="node-dialog-rename-workspace" class="hide">
190 <form class="form-horizontal">
191 <div class="form-row">
192 <label for="node-input-workspace-name" ><i class="fa fa-tag"></i> Name:</label>
193 <input type="text" id="node-input-workspace-name">
194 </div>
195 </form>
196</div>
197<div id="node-dialog-delete-workspace" class="hide">
198 <form class="form-horizontal">
199 <div style="text-align: center; padding-top: 30px;">
200 Are you sure you want to delete '<span id="node-dialog-delete-workspace-name"></span>'?
201 </div>
202 </form>
203</div>
204<div id="xmldialog" class="hide"></div>
205<div id="filter-tabs-dialog" class="hide"></div>
206<div id="loop-detection-dialog" class="hide"></div>
207<div id="dgnumber-find-dialog" class="hide"></div>
208<div id="search-text-dialog" class="hide"></div>
209<div id="dgstart-generate-xml-dialog" class="hide"></div>
210<div id="update-password-dialog" class="hide"></div>
211<div id="update-configuration-dialog" class="hide"></div>
212<div id="dgflow-browser-dialog" class="hide"></div>
213<div id="codecloud-browser-dialog" class="hide"></div>
214<div id="gitlocal-browser-dialog" class="hide"></div>
215<div id="gitcommands-dialog" class="hide"></div>
216<div id="upload-xml-status-dialog" class="hide"></div>
217<div id="flow-design-err-dialog" class="hide"></div>
218<div id="sli-values-dialog" class="hide"></div>
219<div id="comments-dialog" class="hide"></div>
220<div id="show-errors-dialog" class="hide"></div>
221<div id="yang-upload-dialog" class="hide"></div>
222<div id="yang-modules-browser-dialog" class="hide"></div>
223<div id="list-yang-browser-dialog" class="hide"></div>
224<div id="request-input-dialog" class="hide"></div>
225<script type="text/x-red" data-template-name="export-clipboard-dialog">
226 <div class="form-row">
227 <label for="node-input-export" style="display: block; width:100%;"><i class="fa fa-clipboard"></i> Nodes:</label>
228 <textarea readonly style="font-family: monospace; font-size: 12px; background:rgb(226, 229, 255); padding-left: 0.5em;" class="input-block-level" id="node-input-export" rows="5"></textarea>
229 </div>
230 <div class="form-tips">
231 Select the text above and copy to the clipboard with Ctrl-A Ctrl-C.
232 </div>
233</script>
234<script type="text/x-red" data-template-name="export-library-dialog">
235 <div class="form-row">
236 <label for="node-input-filename" ><i class="fa fa-file"></i> Filename:</label>
237 <input type="text" id="node-input-filename" placeholder="Filename">
238 </div>
239</script>
240<script type="text/x-red" data-template-name="import-dialog">
241 <div class="form-row">
242 <label for="node-input-import"><i class="fa fa-clipboard"></i> Nodes:</label>
243 <textarea style="font-family: monospace; font-size: 12px; background:rgb(226, 229, 255); padding-left: 0.5em;" class="input-block-level" id="node-input-import" rows="5" placeholder="Paste nodes here"></textarea>
244 </div>
245</script>
246
247<script src="jquery/js/jquery-1.11.1.min.js"></script>
248<script src="bootstrap/js/bootstrap.min.js"></script>
249<script src="jquery/js/jquery-ui-1.10.3.custom.min.js"></script>
250<script src="jquery/js/jquery.ui.touch-punch.min.js"></script>
251<script src="orion/built-editor.min.js"></script>
252<script src="d3.v3.min.js"></script>
253
254<script src="red/main.js"></script>
255<script src="red/comms.js"></script>
256<script src="red/ui/state.js"></script>
257<script src="red/nodes.js"></script>
258<script src="red/history.js"></script>
259<script src="red/validators.js"></script>
260<script src="red/ui/menu.js"></script>
261<script src="red/ui/keyboard.js"></script>
262<script src="red/ui/tabs.js"></script>
263<script src="red/ui/view.js"></script>
264<script src="red/ui/sidebar.js"></script>
265<script src="red/ui/palette.js"></script>
266<script src="red/ui/tab-info.js"></script>
267<script src="red/ui/tab-config.js"></script>
268<script src="red/ui/editor.js"></script>
269<script src="red/ui/library.js"></script>
270<script src="red/ui/notifications.js"></script>
271<script src="red/ui/touch/radialMenu.js"></script>
272
273
274<script lang="javascript">
275 $(function() {
276 RED.keyboard.add(/* M */ 77,{ctrl:true},function(){RED.menu.setSelected("btn-node-panel",!RED.menu.isSelected("btn-node-panel"));d3.event.preventDefault();});
277 RED.menu.setSelected("btn-node-panel",true);
278 });
279
280var sliValuesObj = {};
281var rpcValues = {};
282var reqInputValues = {};
283$(function(){
284 $.get("/initialLoadSelectedModules")
285 .done(function( data ) {
286 //console.dir(data);
287 if(data != undefined && data != null){
288 for(var i=0;i<data.sliValuesObj.length;i++){
289 var moduleName = data.sliValuesObj[i].moduleName;
290 //console.dir(data.sliValuesObj[i][ moduleName + '_PROPS']);
291 //console.dir(data.sliValuesObj[i][moduleName + '_RPCS']);
292 sliValuesObj[moduleName] = data.sliValuesObj[i][moduleName + '_PROPS'];
293 rpcValues[moduleName] = data.sliValuesObj[i][ moduleName +'_RPCS'];
294 for(var k=0;rpcValues[moduleName] != undefined && k<rpcValues[moduleName].length;k++){
295 var rpcName = rpcValues[moduleName][k];
296 reqInputValues[moduleName + "_" + rpcName] = data.sliValuesObj[i][rpcName +"-input"];
297 }
298 }
299 }
300
301 })
302 .fail(function(err) {
303 console.dir(err);
304 })
305 .always(function() {
306 });
307});
308
309</script>
310<script>
311 $(document).ready(function() {
312
313var urlPath="/getRelease";
314 $.get(urlPath)
315 .done(function( data ) {
316 //console.dir(data);
317 if(data != undefined && data != null){
318 var release = data.release;
319 //document.title +=" " + release;
320 $("#releaseId").text("Workspace:" + release);
321 $("#releaseId").css({color:'lightgrey'});
322
323 }
324 })
325 .fail(function(err) {
326 })
327 .always(function() {
328 });
329});
330</script>
331</body>
332</html>