summaryrefslogtreecommitdiffstats
path: root/dgbuilder/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'dgbuilder/public/index.html')
-rw-r--r--dgbuilder/public/index.html33
1 files changed, 29 insertions, 4 deletions
diff --git a/dgbuilder/public/index.html b/dgbuilder/public/index.html
index 07090db8..480de5c4 100644
--- a/dgbuilder/public/index.html
+++ b/dgbuilder/public/index.html
@@ -25,9 +25,11 @@
<title>Directed Graph Builder</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" media="screen">
-<link rel="stylesheet" type="text/css" href="orion/built-editor.css"/>
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="style.css">
+<link rel="stylesheet" href="ace/ace-styles.css">
+<script src="ace/ace.js" type="text/javascript" charset="utf-8"></script>
+<script src="ace/mode-json.js"></script>
</head>
<body spellcheck="false">
<div id="header">
@@ -107,7 +109,7 @@
<div class="modal-body">
<table>
<tr>
- <td><span class="help-key">?</span></td><td>Help</td>
+ <td><span class="help-key">Ctrl</span> <span class="help-key">?</span></td><td>Help</td>
<td><span class="help-key">Ctrl</span> <span class="help-key">a</span></td><td>Select all nodes</td>
</tr>
<tr>
@@ -127,6 +129,10 @@
<td><span class="help-key">Ctrl</span> <span class="help-key">b</span></td><td>Find Node</td>
</tr>
<tr>
+ <td><span class="help-key">Ctrl</span> <span class="help-key">o</span></td><td>RPC Input</td>
+ <td></td>
+ </tr>
+ <tr>
<td><span class="help-key">Ctrl</span> <span class="help-key">c</span></td><td>Copy selected nodes</td>
<td><span class="help-key">Ctrl</span> <span class="help-key">v</span></td><td>Paste nodes</td>
</tr>
@@ -222,6 +228,11 @@
<div id="yang-modules-browser-dialog" class="hide"></div>
<div id="list-yang-browser-dialog" class="hide"></div>
<div id="request-input-dialog" class="hide"></div>
+<div id="test-dg-dialog" class="hide"></div>
+<div id="ctx-values-dialog" class="hide"></div>
+<div id="list-input-browser-dialog" class="hide"></div>
+<div id="diff-browser-dialog" class="hide"></div>
+
<script type="text/x-red" data-template-name="export-clipboard-dialog">
<div class="form-row">
<label for="node-input-export" style="display: block; width:100%;"><i class="fa fa-clipboard"></i> Nodes:</label>
@@ -248,7 +259,6 @@
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="jquery/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="jquery/js/jquery.ui.touch-punch.min.js"></script>
-<script src="orion/built-editor.min.js"></script>
<script src="d3.v3.min.js"></script>
<script src="red/main.js"></script>
@@ -276,7 +286,8 @@
RED.keyboard.add(/* M */ 77,{ctrl:true},function(){RED.menu.setSelected("btn-node-panel",!RED.menu.isSelected("btn-node-panel"));d3.event.preventDefault();});
RED.menu.setSelected("btn-node-panel",true);
});
-
+var format_xml = "Y";
+var format_json = "Y";
var sliValuesObj = {};
var rpcValues = {};
var reqInputValues = {};
@@ -327,6 +338,20 @@ var urlPath="/getRelease";
.always(function() {
});
});
+
+$.get("/getCurrentSettings")
+ .done(function( data ) {
+ //console.dir(data);
+ if(data != undefined && data != null){
+ format_xml = data.formatXML;
+ format_json = data.formatJSON;
+ }
+ })
+ .fail(function(err) {
+ })
+ .always(function() {
+ });
+
</script>
</body>
</html>