stream.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <div id="stream" class="clearfix">
  16. <div id="form">
  17. <form>
  18. <label for="expr" title="The expression string">
  19. Streaming Expression (expr)
  20. </label>
  21. <textarea name="expr" ng-model="expr" id="expr" title="The expression string.">search(....)</textarea>
  22. <button type="submit" ng-click="doStream()">Execute</button>
  23. <input type="checkbox" ng-model="doExplanation" name="doExplanation" id="doExplanation" value="true">
  24. <label for="explain" class="checkbox" title="Enable Explanation." ng-click="doExplanation = !doExplanation">
  25. with explanation
  26. </label>
  27. </form>
  28. </div>
  29. <div id="result">
  30. <a ng-show="response.data" id="url" class="address-bar" ng-href="{{url}}">{{hostPortContext}}{{url}}</a>
  31. <div ng-show="showExplanation" id="explanation" class="clearfix">
  32. <div id="frame">
  33. <div explanation-graph id="explanation-content" data="explanationData" depth="depth" leaf-count="leafCount" class="content clearfix" ng-show="showGraph">
  34. <div id="legend">
  35. <svg width="100%" height="15">
  36. <g transform="translate(5,10)" class="stream-decorator"><circle r="4.5"></circle></g>
  37. <g transform="translate(15,14)"><text>Stream Decorator</text></g>
  38. <g transform="translate(140,10)" class="stream-source"><circle r="4.5"></circle></g>
  39. <g transform="translate(150,14)"><text>Stream Source</text></g>
  40. <g transform="translate(260,10)" class="graph-source"><circle r="4.5"></circle></g>
  41. <g transform="translate(270,14)"><text>Graph Source</text></g>
  42. <g transform="translate(375,10)" class="datastore"><circle r="4.5"></circle></g>
  43. <g transform="translate(385,14)"><text>Datastore</text></g>
  44. </svg>
  45. </div>
  46. <div id="canvas"></div>
  47. </div>
  48. </div>
  49. </div>
  50. <div id="response">
  51. <pre class="syntax language-json"><code ng-bind-html="response.data | highlight:json | unsafe"></code></pre>
  52. </div>
  53. </div>
  54. </div>