No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

290 líneas
14KB

  1. <!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. Modified from original Node-Red source, for audio system visualization
  9. Copyright 2013 IBM Corp.
  10. Licensed under the Apache License, Version 2.0 (the "License");
  11. you may not use this file except in compliance with the License.
  12. You may obtain a copy of the License at
  13. http://www.apache.org/licenses/LICENSE-2.0
  14. Unless required by applicable law or agreed to in writing, software
  15. distributed under the License is distributed on an "AS IS" BASIS,
  16. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. See the License for the specific language governing permissions and
  18. limitations under the License.
  19. -->
  20. <head>
  21. <title>Node-RED</title>
  22. <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
  23. <link href="jquery/css/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" media="screen">
  24. <link rel="stylesheet" type="text/css" href="orion/built-editor.css"/>
  25. <link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css"/>
  26. <link rel="stylesheet" href="style.css">
  27. <head>
  28. <body spellcheck="false">
  29. <div class="navbar navbar-inverse navbar-fixed-top">
  30. <div class="navbar-inner">
  31. <div class="container-fluid">
  32. <a class="brand" href="#"><img src="node-red.png"> <span class="red">Node-RED</span> </a>
  33. <div class="btn-group pull-right">
  34. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-align-justify"></i> <span class="caret"></span></a>
  35. <ul class="dropdown-menu">
  36. <li><a id="btn-sidebar" tabindex="-1" href="#"><i class="icon-ok pull-right"></i><i class="icon-list-alt"></i> Sidebar</a></li>
  37. <li class="divider"></li>
  38. <!-- <li><a id="btn-node-status" tabindex="-1" href="#"><i class="icon-ok pull-right"></i><i class="icon-info-sign"></i> Node Status</a></li>
  39. <li class="divider"></li> -->
  40. <!--<li class="dropdown-submenu pull-left"><a tabindex="-1" href="#"><i class="icon-edit"></i> Import from...</a>
  41. <ul class="dropdown-menu">
  42. <li><a id="btn-import" tabindex="-1" href="#"><i class="icon-edit"></i> Clipboard...</a></li>
  43. <li id="flow-menu-parent" class="dropdown-submenu pull-left">
  44. <a tabindex="-1" href="#"><i class="icon-book"></i> Library</a>
  45. <ul class="dropdown-menu"></ul>
  46. </li>
  47. </ul>
  48. </li>
  49. <li id="li-menu-export" class="dropdown-submenu disabled pull-left"><a tabindex="-1" href="#"><i class="icon-share"></i> Export to...</a>
  50. <ul class="dropdown-menu">
  51. <li id="li-menu-export-clipboard" class="disabled"><a id="btn-export-clipboard" tabindex="-1" href="#"><i class="icon-share"></i> Clipboard...</a></li>
  52. <li id="li-menu-export-library" class="disabled"><a id="btn-export-library" tabindex="-1" href="#"><i class="icon-book"></i> Library...</a></li>
  53. </ul>
  54. </li>
  55. <li class="divider"></li>-->
  56. <!-- <li><a id="btn-config-nodes" tabindex="-1" href="#"><i class="icon-th-list"></i> Configuration nodes...</a></li>
  57. <li class="divider"></li>-->
  58. <!--<li class="dropdown-submenu pull-left"><a tabindex="-1" href="#"><i class="icon-th-large"></i> Workspaces</a>
  59. <ul id="workspace-menu-list" class="dropdown-menu">
  60. <li><a id="btn-workspace-add" tabindex="-1" href="#"><i class="icon-plus"></i> Add</a></li>
  61. <li><a id="btn-workspace-edit" tabindex="-1" href="#"><i class="icon-edit"></i> Rename</a></li>
  62. <li><a id="btn-workspace-delete" tabindex="-1" href="#"><i class="icon-minus"></i> Delete</a></li>
  63. <li class="divider"></li>
  64. </ul>
  65. </li>
  66. <li class="divider"></li>-->
  67. <li><a id="btn-keyboard-shortcuts" tabindex="-1" href="#"><i class="icon-question-sign"></i> Keyboard Shortcuts</a></li>
  68. <li><a id="btn-help" tabindex="-1" href="http://node-red.github.io/docs" target="_blank"><i class="icon-question-sign"></i> Help...</a></li>
  69. </ul>
  70. </div>
  71. <div class="btn-group pull-left">
  72. <a id="btn-deploy" class="btn action-deploy disabled" href="#"><i id="btn-icn-deploy" class="icon-upload"></i>Export</a>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div id="main-container" class="sidebar-closed">
  78. <div id="palette">
  79. <img src="spin.svg" class="palette-spinner"/>
  80. <div id="palette-container" class="palette-scroll">
  81. </div>
  82. <div id="palette-search">
  83. <i class="icon-search"></i><input id="palette-search-input" type="text" placeholder="filter"><a href="#" id="palette-search-clear"><i class="icon-remove"></i></a></input>
  84. </div>
  85. </div><!-- /palette -->
  86. <div id="workspace">
  87. <ul id="workspace-tabs"></ul>
  88. <!--<div id="workspace-add-tab"><a id="btn-workspace-add-tab" href="#"><i class="icon-plus"></i></a></div>-->
  89. <div id="chart"></div>
  90. <div id="workspace-toolbar">
  91. <div class="btn-group">
  92. <a class="btn btn-small" href="#"><i class="icon-zoom-out"></i></a>
  93. <a class="btn btn-small" href="#"><i class="icon-th"></i></a>
  94. <a class="btn btn-small" href="#"><i class="icon-zoom-in"></i></a>
  95. </div>
  96. </div>
  97. </div>
  98. <div id="chart-zoom-controls">
  99. <div class="btn-group">
  100. <a class="btn btn-mini" id="btn-zoom-out" href="#"><i class="icon-zoom-out"></i></a>
  101. <a class="btn btn-mini" id="btn-zoom-zero" href="#"><i class="icon-th"></i></a>
  102. <a class="btn btn-mini" id="btn-zoom-in" href="#"><i class="icon-zoom-in"></i></a>
  103. </div>
  104. </div>
  105. <div id="sidebar">
  106. <ul id="sidebar-tabs"></ul>
  107. <div id="sidebar-content"></div>
  108. </div>
  109. <div id="sidebar-separator"></div>
  110. </div>
  111. <div id="notifications"></div>
  112. <div id="dropTarget"><div>Drop the flow here</div></div>
  113. <div id="dialog" class="hide"><form id="dialog-form" class="form-horizontal"></form></div>
  114. <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>
  115. <div id="node-dialog-confirm-deploy" class="hide">
  116. <form class="form-horizontal">
  117. <div id="node-dialog-confirm-deploy-config" style="text-align: center; padding-top: 30px;">
  118. Some of the nodes are not properly configured. Are you sure you want to deploy?
  119. </div>
  120. <div id="node-dialog-confirm-deploy-unknown" style="text-align: center; padding-top: 10px;">
  121. The workspace contains some unknown node types:
  122. <ul style="width: 300px; margin: auto; text-align: left;" id="node-dialog-confirm-deploy-unknown-list"></ul>
  123. Are you sure you want to deploy?
  124. </div>
  125. </form>
  126. </div>
  127. <div id="node-help" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="node-help-label" aria-hidden="true">
  128. <div class="modal-header">
  129. <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></h5>
  130. </div>
  131. <div class="modal-body">
  132. <table>
  133. <tr>
  134. <td><span class="help-key">?</span></td><td>Help</td>
  135. <td><span class="help-key">Ctrl</span> <span class="help-key">a</span></td><td>Select all nodes</td>
  136. </tr>
  137. <tr>
  138. <td><span class="help-key">Ctrl</span> <span class="help-key">Space</span></td><td>Toggle sidebar</td>
  139. <td><span class="help-key">Shift</span> <span class="help-key">Click</span></td><td>Select all connected nodes</td>
  140. </tr>
  141. <tr>
  142. <td><span class="help-key">Ctrl</span> <span class="help-key">z</span></td><td>Undo</td>
  143. <td><span class="help-key">Ctrl</span> <span class="help-key">Click</span></td><td>Add/remove node from selection</td>
  144. </tr>
  145. <tr>
  146. <td></td><td></td>
  147. <td><span class="help-key">Delete</span></td><td>Delete selected nodes or link</td>
  148. </tr>
  149. <tr>
  150. <td><span class="help-key">Ctrl</span> <span class="help-key">x</span></td><td>Cut selected nodes</td>
  151. <td></td><td></td>
  152. </tr>
  153. <tr>
  154. <td><span class="help-key">Ctrl</span> <span class="help-key">c</span></td><td>Copy selected nodes</td>
  155. <td><span class="help-key">Ctrl</span> <span class="help-key">v</span></td><td>Paste nodes</td>
  156. </tr>
  157. <tr>
  158. <td><span class="help-key">Ctrl</span> <span class="help-key">i</span></td><td>Import nodes</td>
  159. <td><span class="help-key">Ctrl</span> <span class="help-key">e</span></td><td>Export selected nodes</td>
  160. </tr>
  161. <tr>
  162. <td colspan="2"></td>
  163. </tr>
  164. <tr>
  165. <td><span class="help-key">Ctrl</span> <span class="help-key">+</span></td><td>Zoom in</td>
  166. <td><span class="help-key">Ctrl</span> <span class="help-key">-</span></td><td>Zoom out</td>
  167. </tr>
  168. </table>
  169. </div>
  170. <div class="modal-footer">
  171. <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
  172. </div>
  173. </div>
  174. <div id="node-dialog-library-save-confirm" class="hide">
  175. <form class="form-horizontal">
  176. <div style="text-align: center; padding-top: 30px;">
  177. A <span id="node-dialog-library-save-type"></span> called <span id="node-dialog-library-save-name"></span> already exists. Overwrite?
  178. </div>
  179. </form>
  180. </div>
  181. <div id="node-dialog-library-save" class="hide">
  182. <form class="form-horizontal">
  183. <div class="form-row">
  184. <label for="node-dialog-library-save-folder"><i class="icon-folder-open"></i> Folder</label>
  185. <input type="text" id="node-dialog-library-save-folder" placeholder="Folder">
  186. </div>
  187. <div class="form-row">
  188. <label for="node-dialog-library-save-filename"><i class="icon-file"></i> Filename</label>
  189. <input type="text" id="node-dialog-library-save-filename" placeholder="Filename">
  190. </div>
  191. </form>
  192. </div>
  193. <div id="node-dialog-library-lookup" class="hide">
  194. <form class="form-horizontal">
  195. <div class="form-row">
  196. <ul id="node-dialog-library-breadcrumbs" class="breadcrumb">
  197. <li class="active"><a href="#">Library</a></li>
  198. </ul>
  199. </div>
  200. <div class="form-row">
  201. <div style="vertical-align: top; display: inline-block; height: 100%; width: 30%; padding-right: 20px;">
  202. <div id="node-select-library" style="border: 1px solid #999; width: 100%; height: 100%; overflow:scroll;"><ul></ul></div>
  203. </div>
  204. <div style="vertical-align: top; display: inline-block;width: 65%; height: 100%;">
  205. <div style="height: 100%; width: 95%;" class="node-text-editor" id="node-select-library-text" ></div>
  206. </div>
  207. </div>
  208. </form>
  209. </div>
  210. <div id="node-dialog-rename-workspace" class="hide">
  211. <form class="form-horizontal">
  212. <div class="form-row">
  213. <label for="node-input-workspace-name" ><i class="icon-tag"></i> Name:</label>
  214. <input type="text" id="node-input-workspace-name">
  215. </div>
  216. </form>
  217. </div>
  218. <div id="node-dialog-delete-workspace" class="hide">
  219. <form class="form-horizontal">
  220. <div style="text-align: center; padding-top: 30px;">
  221. Are you sure you want to delete '<span id="node-dialog-delete-workspace-name"></span>'?
  222. </div>
  223. </form>
  224. </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="icon-share"></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="icon-tag"></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-export"><i class="icon-share"></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, or lookup in the library"></textarea>
  244. </div>
  245. </script>
  246. <script src="jquery/js/jquery-1.9.1.js"></script>
  247. <script src="bootstrap/js/bootstrap.min.js"></script>
  248. <script src="jquery/js/jquery-ui-1.10.3.custom.min.js"></script>
  249. <script src="jquery/js/jquery.ui.touch-punch.min.js"></script>
  250. <script src="orion/built-editor.min.js"></script>
  251. <script src="d3.v3.min.js"></script>
  252. <script src="red/main.js"></script>
  253. <script src="red/comms.js"></script>
  254. <script src="red/ui/state.js"></script>
  255. <script src="red/nodes.js"></script>
  256. <script src="red/history.js"></script>
  257. <script src="red/validators.js"></script>
  258. <script src="red/ui/keyboard.js"></script>
  259. <script src="red/ui/tabs.js"></script>
  260. <script src="red/ui/view.js"></script>
  261. <script src="red/ui/sidebar.js"></script>
  262. <script src="red/ui/palette.js"></script>
  263. <script src="red/ui/tab-info.js"></script>
  264. <script src="red/ui/tab-config.js"></script>
  265. <script src="red/ui/editor.js"></script>
  266. <script src="red/ui/library.js"></script>
  267. <script src="red/ui/notifications.js"></script>
  268. <script src="red/ui/touch/radialMenu.js"></script>
  269. </body>
  270. </html>