modal-info.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <div class="app-info markdown-body" v-html="content">
  3. <!--<section class="app-info__section app-info--view">
  4. <h4>Editor</h4>
  5. <ul>
  6. <li><b>Collaboration</b>: Using the same url address, others can join the session</li>
  7. <li><b>Pan</b>: Drag with Middle Mouse or Ctrl+left mouse button</li>
  8. <li><b>Zoom</b>: Mouse wheel up and down to zoom in and out</li>
  9. <li><b>Reset</b>: Reset view by pressing on the reset button</li>
  10. </ul>
  11. </section>
  12. <section class="app-info__section app-info--flow">
  13. <h4>Flow:</h4>
  14. <p>
  15. A flow works by requesting the previous nodes the results of its operation, so the starting node will
  16. be the node we want the result of, unattached nodes wont be executed
  17. </p>
  18. <p>
  19. All nodes are Go functions.
  20. here's an example of a Flow app with a node with a single output:
  21. <a target="_blank" :href="'http://'+ location.host +'/c1.html'">sample1</a><br>
  22. Every function can be registered including from external packages as shown in
  23. <a target="_blank" :href="'http://'+ location.host +'/c2.html'">sample2</a><br>
  24. Describing functions:
  25. <a target="_blank" :href="'http://'+ location.host +'/c3.html'">sample3</a><br>
  26. </p>
  27. <ul>
  28. <li><b>New Node</b>: Create a node by dragging a fn from left panel into area</li>
  29. <li><b>Remove Node</b>: Middle click in a node to remove a node</li>
  30. <li><b>Inspect node</b>: Double click on a node to get detailed information</li>
  31. <li><b>Move Node</b>: Mouse click and drag</li>
  32. <li><b>Links</b>: Press [shift] and Drag from a node/socket to a socket highlighted in green</li>
  33. <li><b>Links(alternative)</b>: Toggle socket visualisation in the panel and Drag from a socket to a socket highlighted in green</li>
  34. <li><b>Remove Link</b>: Simple click on the link when it turns red</li>
  35. </ul>
  36. </section>
  37. <div class="app-info__section app-info__triggers">
  38. <h4>Triggers</h4>
  39. <p>
  40. Triggers works when a node changes its status it will call the linked node, triggers will have filters
  41. such as (finish, error, start), this will be useful to create CI pipelines by triggering different processes
  42. (i.e: running a container to send an email informing the status of the build)
  43. </p>
  44. </div>
  45. <h4>TODO:</h4>
  46. <ul>
  47. <li>UX/UI: create undoer</li>
  48. <li>UX/UI: Special nodes with display capabilities (images,datatables,...)</li>
  49. <li>UX/UI: Group nodes into a single box, exposing inputs and outputs</li>
  50. <li>UX/UI: Implement touch</li>
  51. <li>UX/UI: drop link in node to link to next compatible available input</li>
  52. <li>Collaboration: Better concurrent editing/message passing (testing)</li>
  53. <li>FlowPkg: Create training mechanism</li>
  54. <li>FlowPkg: matrix pooling function example</li>
  55. </ul>
  56. <br>
  57. <small>&copy; Luis Figueiredo (luisf@hexasoftware.com)</small>
  58. -->
  59. </div>
  60. </template>
  61. <script>
  62. import md from '@/assets/doc/appinfo.md'
  63. import 'github-markdown-css'
  64. import 'highlight.js/styles/monokai.css'
  65. export default {
  66. data () {
  67. return {
  68. content: md
  69. }
  70. }
  71. }
  72. </script>
  73. <style>
  74. .app-info {
  75. flex:1;
  76. padding-top:20px;
  77. }
  78. .hx-modal__container {
  79. width:70%;
  80. }
  81. .markdown-body a {
  82. color: var(--primary);
  83. text-decoration: none;
  84. }
  85. /*
  86. .app-info--info {
  87. font-size:14px;
  88. }
  89. .app-info__section h4 {
  90. margin-top:20px;
  91. margin-bottom:5px;
  92. color: var(--primary);
  93. }
  94. .app-info__section p {
  95. font-size:14px;
  96. margin:5px 15px 15px 4px;
  97. padding:20px 10px;
  98. background: var(--background-secondary);
  99. }
  100. .app-info__section li {
  101. padding:4px;
  102. }*/
  103. </style>