diff options
author | Chinthakayala,Sheshashailavas(sc2914) <sc2914@att.com> | 2018-06-27 16:11:44 +0000 |
---|---|---|
committer | Chinthakayala,Sheshashailavas(sc2914) <sc2914@att.com> | 2018-06-27 16:25:31 +0000 |
commit | 8f6a6c445eaeb7356e1db9d10d10b7d3fa42f27e (patch) | |
tree | bf1e5c83c357fbd4a0158cac6d41bd936e949a80 /dgbuilder/public/index.html | |
parent | e14a02086c9119532f9153c78346d5c1d6789ca9 (diff) |
removed dependency on built-editor.min.js
and added ability to test DG from dgbuilder
and fixed the break node on XML generation
and added ability to download
formatted DG XML and DG JSON
Issue-ID: SDNC-353
Change-Id: I799de5de2c4f61e9b56dbe996d8ac3e3b28061f7
Signed-off-by: Chinthakayala,Sheshashailavas(sc2914) <sc2914@att.com>
Diffstat (limited to 'dgbuilder/public/index.html')
-rw-r--r-- | dgbuilder/public/index.html | 33 |
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> |