omf_web 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. data/lib/omf-web/content/content_proxy.rb +18 -18
  2. data/lib/omf-web/content/file_repository.rb +6 -2
  3. data/lib/omf-web/content/git_repository.rb +4 -0
  4. data/lib/omf-web/content/repository.rb +11 -0
  5. data/lib/omf-web/data_source_proxy.rb +0 -13
  6. data/lib/omf-web/session_store.rb +8 -3
  7. data/lib/omf-web/theme/abstract_page.rb +2 -10
  8. data/{example → lib/omf-web/theme}/web_rtc/web_rtc.yaml +0 -0
  9. data/{example → lib/omf-web/theme}/web_rtc/webrtc-exp_1381786573.sq3 +0 -0
  10. data/lib/omf-web/version.rb +1 -1
  11. data/lib/omf-web/widget/data_widget.rb +2 -37
  12. data/lib/omf-web/widget/layout/one_column_layout.rb +4 -4
  13. data/lib/omf-web/widget/layout/stacked_layout.rb +6 -14
  14. data/lib/omf-web/widget/text/maruku/output/to_html.rb +4 -2
  15. data/lib/omf-web/widget/text/maruku.rb +1 -1
  16. data/lib/omf_web.rb +15 -15
  17. data/share/htdocs/graph/js/abstract_nv_chart.js +2 -2
  18. data/share/htdocs/graph/js/histogram2.js +5 -1
  19. data/share/htdocs/js/data_source3.js +2 -1
  20. data/share/htdocs/vendor/jquery-1.8.3/jquery.js +9472 -0
  21. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/animated-overlay.gif +0 -0
  22. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
  31. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
  33. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
  34. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/jquery-ui-1.10.4.custom.css +558 -0
  36. data/share/htdocs/vendor/jquery-ui-1.10.4/css/smoothness/jquery-ui-1.10.4.custom.min.css +7 -0
  37. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/AUTHORS.txt +260 -0
  38. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/Gruntfile.js +240 -0
  39. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/MIT-LICENSE.txt +26 -0
  40. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/README.md +96 -0
  41. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/addClass/default.html +45 -0
  42. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/addClass/index.html +14 -0
  43. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/animate/default.html +55 -0
  44. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/animate/index.html +14 -0
  45. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/demos.css +19 -0
  46. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/constrain-movement.html +58 -0
  47. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/cursor-style.html +42 -0
  48. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/default.html +32 -0
  49. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/delay-start.html +38 -0
  50. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/events.html +70 -0
  51. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/handle.html +41 -0
  52. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/index.html +24 -0
  53. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/revert.html +37 -0
  54. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/scroll.html +44 -0
  55. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/snap-to.html +61 -0
  56. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/sortable.html +50 -0
  57. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/draggable/visual-feedback.html +70 -0
  58. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/accepted-elements.html +53 -0
  59. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/default.html +46 -0
  60. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  61. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  62. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  63. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  64. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  65. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  66. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  67. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  68. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/index.html +20 -0
  69. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/photo-manager.html +182 -0
  70. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/propagation.html +73 -0
  71. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/revert.html +54 -0
  72. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/shopping-cart.html +94 -0
  73. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/droppable/visual-feedback.html +72 -0
  74. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/effect/default.html +102 -0
  75. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/effect/easing.html +102 -0
  76. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/effect/index.html +15 -0
  77. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/hide/default.html +95 -0
  78. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/hide/index.html +14 -0
  79. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/calendar.gif +0 -0
  80. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  81. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/demo-config-on.gif +0 -0
  82. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  83. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  84. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/icon-docs-info.gif +0 -0
  85. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/images/pbar-ani.gif +0 -0
  86. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/index.html +29 -0
  87. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/cycler.html +107 -0
  88. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/default.html +137 -0
  89. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/images/earth.jpg +0 -0
  90. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/images/flight.jpg +0 -0
  91. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/images/rocket.jpg +0 -0
  92. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/position/index.html +15 -0
  93. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/removeClass/default.html +45 -0
  94. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/removeClass/index.html +14 -0
  95. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/animate.html +36 -0
  96. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/aspect-ratio.html +35 -0
  97. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/constrain-area.html +40 -0
  98. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/default.html +33 -0
  99. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/delay-start.html +45 -0
  100. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/helper.html +36 -0
  101. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/index.html +24 -0
  102. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/max-min.html +38 -0
  103. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/snap-to-grid.html +35 -0
  104. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/synchronous-resize.html +42 -0
  105. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/textarea.html +34 -0
  106. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/resizable/visual-feedback.html +36 -0
  107. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/selectable/default.html +43 -0
  108. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/selectable/display-grid.html +48 -0
  109. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/selectable/index.html +16 -0
  110. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/selectable/serialize.html +54 -0
  111. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/show/default.html +97 -0
  112. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/show/index.html +14 -0
  113. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/connect-lists-through-tabs.html +72 -0
  114. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/connect-lists.html +52 -0
  115. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/default.html +45 -0
  116. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/delay-start.html +61 -0
  117. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/display-grid.html +48 -0
  118. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/empty-lists.html +63 -0
  119. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/index.html +22 -0
  120. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/items.html +64 -0
  121. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/placeholder.html +50 -0
  122. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/sortable/portlets.html +115 -0
  123. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/switchClass/default.html +40 -0
  124. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/switchClass/index.html +14 -0
  125. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/toggle/default.html +103 -0
  126. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/toggle/index.html +14 -0
  127. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/toggleClass/default.html +39 -0
  128. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/toggleClass/index.html +14 -0
  129. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/widget/default.html +178 -0
  130. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/demos/widget/index.html +14 -0
  131. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/blind-effect.html +58 -0
  132. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/bounce-effect.html +61 -0
  133. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/clip-effect.html +55 -0
  134. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/draggable.html +741 -0
  135. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/drop-effect.html +55 -0
  136. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/droppable.html +548 -0
  137. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/explode-effect.html +52 -0
  138. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/fade-effect.html +43 -0
  139. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/fold-effect.html +61 -0
  140. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/highlight-effect.html +52 -0
  141. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/jQuery.widget.html +611 -0
  142. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/mouse.html +216 -0
  143. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/position.html +116 -0
  144. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/puff-effect.html +52 -0
  145. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/pulsate-effect.html +52 -0
  146. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/resizable.html +685 -0
  147. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/scale-effect.html +82 -0
  148. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/selectable.html +498 -0
  149. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/shake-effect.html +66 -0
  150. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/size-effect.html +65 -0
  151. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/slide-effect.html +59 -0
  152. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/sortable.html +1450 -0
  153. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/docs/transfer-effect.html +61 -0
  154. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/globalize.culture.de-DE.js +81 -0
  155. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/globalize.culture.ja-JP.js +100 -0
  156. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/globalize.js +1585 -0
  157. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/jquery.mousewheel.js +101 -0
  158. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/jshint.js +4835 -0
  159. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/qunit.css +244 -0
  160. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/external/qunit.js +2152 -0
  161. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/jquery-1.10.2.js +9789 -0
  162. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/package.json +73 -0
  163. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/animated-overlay.gif +0 -0
  164. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  165. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  166. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  167. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  168. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  169. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  170. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  171. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  172. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  173. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  174. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  175. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  176. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  177. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery-ui.css +557 -0
  178. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.all.css +12 -0
  179. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.base.css +25 -0
  180. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.core.css +93 -0
  181. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.resizable.css +76 -0
  182. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.selectable.css +13 -0
  183. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/jquery.ui.theme.css +410 -0
  184. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/animated-overlay.gif +0 -0
  185. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  186. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  187. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  188. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  189. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  190. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  191. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  192. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  193. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-icons_222222_256x240.png +0 -0
  194. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-icons_2e83ff_256x240.png +0 -0
  195. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-icons_454545_256x240.png +0 -0
  196. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-icons_888888_256x240.png +0 -0
  197. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/images/ui-icons_cd0a0a_256x240.png +0 -0
  198. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/jquery-ui.min.css +7 -0
  199. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/jquery.ui.core.min.css +5 -0
  200. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/jquery.ui.resizable.min.css +5 -0
  201. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/jquery.ui.selectable.min.css +5 -0
  202. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/base/minified/jquery.ui.theme.min.css +5 -0
  203. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/animated-overlay.gif +0 -0
  204. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  205. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  206. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  207. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  208. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  209. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  210. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  211. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  212. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-icons_222222_256x240.png +0 -0
  213. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  214. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-icons_454545_256x240.png +0 -0
  215. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-icons_888888_256x240.png +0 -0
  216. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  217. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery-ui.css +558 -0
  218. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.all.css +12 -0
  219. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.base.css +25 -0
  220. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.core.css +93 -0
  221. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.resizable.css +76 -0
  222. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.selectable.css +13 -0
  223. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/jquery.ui.theme.css +410 -0
  224. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/animated-overlay.gif +0 -0
  225. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  226. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  227. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  228. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  229. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  230. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  231. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  232. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  233. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-icons_222222_256x240.png +0 -0
  234. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-icons_2e83ff_256x240.png +0 -0
  235. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-icons_454545_256x240.png +0 -0
  236. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-icons_888888_256x240.png +0 -0
  237. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/images/ui-icons_cd0a0a_256x240.png +0 -0
  238. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/jquery-ui.min.css +7 -0
  239. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/jquery.ui.core.min.css +5 -0
  240. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/jquery.ui.resizable.min.css +5 -0
  241. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/jquery.ui.selectable.min.css +5 -0
  242. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/themes/smoothness/minified/jquery.ui.theme.min.css +5 -0
  243. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery-ui.custom.js +7544 -0
  244. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.core.js +320 -0
  245. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.draggable.js +958 -0
  246. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.droppable.js +389 -0
  247. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-blind.js +82 -0
  248. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-bounce.js +113 -0
  249. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-clip.js +67 -0
  250. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-drop.js +65 -0
  251. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-explode.js +97 -0
  252. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-fade.js +30 -0
  253. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-fold.js +76 -0
  254. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-highlight.js +50 -0
  255. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-pulsate.js +63 -0
  256. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-scale.js +318 -0
  257. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-shake.js +74 -0
  258. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-slide.js +64 -0
  259. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect-transfer.js +47 -0
  260. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.effect.js +1289 -0
  261. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.mouse.js +169 -0
  262. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.position.js +501 -0
  263. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.resizable.js +978 -0
  264. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.selectable.js +277 -0
  265. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.sortable.js +1289 -0
  266. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/jquery.ui.widget.js +521 -0
  267. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery-ui.custom.min.js +6 -0
  268. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.core.min.js +5 -0
  269. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.draggable.min.js +5 -0
  270. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.droppable.min.js +5 -0
  271. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-blind.min.js +5 -0
  272. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-bounce.min.js +5 -0
  273. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-clip.min.js +5 -0
  274. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-drop.min.js +5 -0
  275. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-explode.min.js +5 -0
  276. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-fade.min.js +5 -0
  277. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-fold.min.js +5 -0
  278. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-highlight.min.js +5 -0
  279. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-pulsate.min.js +5 -0
  280. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-scale.min.js +5 -0
  281. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-shake.min.js +5 -0
  282. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-slide.min.js +5 -0
  283. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect-transfer.min.js +5 -0
  284. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.effect.min.js +5 -0
  285. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.mouse.min.js +5 -0
  286. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.position.min.js +5 -0
  287. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.resizable.min.js +5 -0
  288. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.selectable.min.js +5 -0
  289. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.sortable.min.js +5 -0
  290. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui/minified/jquery.ui.widget.min.js +5 -0
  291. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.core.jquery.json +61 -0
  292. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.draggable.jquery.json +66 -0
  293. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.droppable.jquery.json +67 -0
  294. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-blind.jquery.json +65 -0
  295. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-bounce.jquery.json +65 -0
  296. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-clip.jquery.json +65 -0
  297. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-drop.jquery.json +65 -0
  298. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-explode.jquery.json +65 -0
  299. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-fade.jquery.json +65 -0
  300. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-fold.jquery.json +65 -0
  301. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-highlight.jquery.json +65 -0
  302. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-pulsate.jquery.json +65 -0
  303. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-scale.jquery.json +65 -0
  304. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-shake.jquery.json +65 -0
  305. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-slide.jquery.json +65 -0
  306. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect-transfer.jquery.json +63 -0
  307. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.effect.jquery.json +68 -0
  308. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.mouse.jquery.json +64 -0
  309. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.position.jquery.json +66 -0
  310. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.resizable.jquery.json +65 -0
  311. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.selectable.jquery.json +65 -0
  312. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.sortable.jquery.json +66 -0
  313. data/share/htdocs/vendor/jquery-ui-1.10.4/development-bundle/ui.widget.jquery.json +64 -0
  314. data/share/htdocs/vendor/jquery-ui-1.10.4/index.html +301 -0
  315. data/share/htdocs/vendor/jquery-ui-1.10.4/js/jquery-1.10.2.js +9789 -0
  316. data/share/htdocs/vendor/jquery-ui-1.10.4/js/jquery-ui-1.10.4.custom.js +7544 -0
  317. data/share/htdocs/vendor/jquery-ui-1.10.4/js/jquery-ui-1.10.4.custom.min.js +6 -0
  318. metadata +302 -4
@@ -4,19 +4,19 @@ require 'omf_base/lobject'
4
4
  require 'omf_web'
5
5
 
6
6
  module OMF::Web
7
-
8
- # This object maintains synchronization between a JS DataSource object
7
+
8
+ # This object maintains synchronization between a JS DataSource object
9
9
  # in a web browser and the corresponding +OmlTable+ in this server.
10
10
  #
11
11
  #
12
12
  class ContentProxy < OMF::Base::LObject
13
-
13
+
14
14
  @@proxies = {}
15
15
 
16
16
  def self.[](url)
17
17
  @@proxies[url.to_s]
18
18
  end
19
-
19
+
20
20
  def self.create(content_descr, repo)
21
21
  unless key = content_descr[:url_key]
22
22
  raise "Missing ':url_key' in content descriptor '#{content_descr.inspect}'"
@@ -27,21 +27,21 @@ module OMF::Web
27
27
  debug "Create content proxy for '#{key}' (#{content_descr.inspect})"
28
28
  @@proxies[key] = self.new(content_descr, repo)
29
29
  end
30
-
31
- attr_reader :content_descriptor, :content_url, :content_id, :name, :mime_type
32
-
33
-
30
+
31
+ attr_reader :content_descriptor, :content_url, :content_id, :name, :mime_type, :repository
32
+
33
+
34
34
  def on_get(req)
35
35
  c = content()
36
36
  [c.to_s, "text"]
37
37
  end
38
-
38
+
39
39
  def on_post(req)
40
40
  data = req.POST
41
41
  write(data['content'], data['message'])
42
42
  [true.to_json, "text/json"]
43
43
  end
44
-
44
+
45
45
  def write(content, message = "")
46
46
  if content != @content
47
47
  debug "Updating '#{@content_descriptor.inspect}'"
@@ -49,15 +49,15 @@ module OMF::Web
49
49
  @repository.write(@content_descriptor, content, message)
50
50
  end
51
51
  end
52
-
52
+
53
53
  def content()
54
54
  unless @content
55
55
  @content = @repository.read(@content_descriptor)
56
56
  end
57
57
  @content
58
58
  end
59
- alias :read :content
60
-
59
+ alias :read :content
60
+
61
61
  # Return a new proxy for a url relative to this one
62
62
  def create_proxy_for_url(url)
63
63
  unless url.match ':'
@@ -72,21 +72,21 @@ module OMF::Web
72
72
  end
73
73
 
74
74
  private
75
-
75
+
76
76
  def initialize(content_descriptor, repository)
77
77
  @content_descriptor = content_descriptor
78
78
  @repository = repository
79
79
  #@path = File.join(repository.top_dir, content_handle) # requires 1.9 File.absolute_path(@content_handle, @repository.top_dir)
80
-
80
+
81
81
  @content_id = content_descriptor[:url_key]
82
82
  @content_url = "/_content/#{@content_id}" # That most likley should come from the content handler
83
-
83
+
84
84
  @mime_type = @content_descriptor[:mime_type] ||= repository.mime_type_for_file(content_descriptor)
85
85
  @name = content_descriptor[:name]
86
86
 
87
87
  @@proxies[@content_id] = self
88
88
  end
89
-
89
+
90
90
  end
91
-
91
+
92
92
  end
@@ -45,9 +45,13 @@ module OMF::Web
45
45
  end
46
46
 
47
47
  def write(content_descr, content, message)
48
+ raise ReadOnlyContentRepositoryException.new if @read_only
49
+
48
50
  path = _get_path(content_descr)
49
51
  Dir.chdir(@top_dir) do
50
- unless File.writable?(path)
52
+ d_name = File.dirname(path)
53
+ FileUtils.mkpath(d_name) unless File.exist?(d_name)
54
+ unless File.writable?(path) || File.writable?(d_name)
51
55
  raise "Cannot write to file '#{path}'"
52
56
  end
53
57
  f = File.open(path, 'w')
@@ -89,4 +93,4 @@ module OMF::Web
89
93
  end
90
94
 
91
95
  end # class
92
- end # module
96
+ end # module
@@ -192,6 +192,10 @@ module OMF::Web
192
192
  unless path
193
193
  raise "Can't find path information in '#{content_descr.inspect}'"
194
194
  end
195
+ if path.start_with? '/'
196
+ # Remove leading '/' .. need to stay within git directory tree
197
+ path = path[1 .. -1]
198
+ end
195
199
  return path
196
200
  end
197
201
 
@@ -8,6 +8,9 @@ require 'omf-web/content/content_proxy'
8
8
 
9
9
  module OMF::Web
10
10
 
11
+ class ContentRepositoryException < Exception; end
12
+ class ReadOnlyContentRepositoryException < ContentRepositoryException; end
13
+
11
14
  # This class provides an interface to a particular content repository.
12
15
  # It retrieves, archives and versions content.
13
16
  #
@@ -153,8 +156,12 @@ module OMF::Web
153
156
 
154
157
  attr_reader :name, :top_dir
155
158
 
159
+ # params opts [Hash]
160
+ # opts read_only [Boolean] If true, write will fail
156
161
  def initialize(name, opts)
157
162
  @name = name
163
+ @read_only = (opts[:read_only] == true)
164
+
158
165
  if @top_dir = opts[:top_dir]
159
166
  @top_dir = File.expand_path(@top_dir)
160
167
  end
@@ -189,6 +196,10 @@ module OMF::Web
189
196
  end
190
197
  end
191
198
 
199
+ def write(content_descr, content, message)
200
+ raise "Missing implementation"
201
+ end
202
+
192
203
  def absolute_path(content_descr)
193
204
  path = _get_path(content_descr)
194
205
  File.join(@top_dir, path)
@@ -37,11 +37,6 @@ module OMF::Web
37
37
  if data_source.is_a? OMF::OML::OmlNetwork
38
38
  raise "Register link and node table separately "
39
39
  end
40
- # dsh = data_source.to_tables(opts)
41
- # @@datasources[name] = dsh
42
- # else
43
- # @@datasources[name] = data_source
44
- # end
45
40
  @@datasources[name] = data_source
46
41
  end
47
42
 
@@ -103,14 +98,6 @@ module OMF::Web
103
98
  OMF::Web::SessionStore[ds_name, :dsp] ||= self.new(ds_name, @@datasources[ds_name])
104
99
  end
105
100
  end
106
- # debug ">>>> #{dsa}"
107
- # # let's check for sub table, such as network/nodes
108
- # main, sub = ds_descr[:name].split('/')
109
- # if (sub)
110
- # if ds_top = @@datasources[main.to_sym]
111
- # ds = ds_top[sub.to_sym]
112
- # end
113
- # end
114
101
  unless ds
115
102
  raise "Unknown data source '#{ds_name}' (#{@@datasources.keys.inspect})"
116
103
  end
@@ -29,7 +29,7 @@ module OMF::Web
29
29
 
30
30
  def self.session_id
31
31
  sid = Thread.current["sessionID"]
32
- raise "Missing session id 'sid'" if sid.nil?
32
+ raise "Missing session ID in thread context" if sid.nil?
33
33
  sid
34
34
  end
35
35
 
@@ -63,8 +63,13 @@ module OMF::Web
63
63
  end
64
64
 
65
65
  def call(&block)
66
- Thread.current["sessionID"] = @sid
67
- block.call
66
+ begin
67
+ current_sid = Thread.current["sessionID"]
68
+ Thread.current["sessionID"] = @sid
69
+ block.call
70
+ ensure
71
+ Thread.current["sessionID"] = current_sid
72
+ end
68
73
  end
69
74
  end
70
75
 
@@ -14,11 +14,8 @@ module OMF::Web::Theme
14
14
  depends_on :js, '/resource/vendor/jquery/jquery.js'
15
15
  depends_on :js, '/resource/vendor/underscore/underscore.js'
16
16
  depends_on :js, '/resource/vendor/backbone/backbone.js'
17
-
18
- # depends_on :js, "/resource/js/require3.js"
19
- #
20
17
  depends_on :js, "/resource/theme/abstract/abstract.js"
21
- # depends_on :js, "/resource/js/data_source2.js"
18
+
22
19
  depends_on :script, %{
23
20
  // ABSTRACT PAGE
24
21
  if (typeof(OML) == "undefined") OML = {};
@@ -64,12 +61,7 @@ module OMF::Web::Theme
64
61
  # Return an array of widgets to collect data sources from
65
62
  #
66
63
  def data_source_widgets
67
- # puts ">>>>> #{@widget.class}"
68
- # if @widget.respond_to? :data_source_widgets
69
- # @widget.data_source_widgets
70
- # else
71
- [@widget]
72
- # end
64
+ [@widget]
73
65
  end
74
66
 
75
67
  def render_data_sources
File without changes
@@ -1,7 +1,7 @@
1
1
 
2
2
  module OMF
3
3
  module Web
4
- VERSION = '1.2.4'
4
+ VERSION = '1.2.5'
5
5
  # Used for finding the example directory
6
6
  TOP_DIR = File.dirname(File.dirname(File.dirname(__FILE__)))
7
7
  end
@@ -69,48 +69,13 @@ module OMF::Web::Widget
69
69
  OMF::Web::Theme::DataRenderer.new(self, @opts)
70
70
  end
71
71
 
72
- # A dynamic widget may open a web socket back to this service. Connect
73
- # to the respective table and feed back any changes.
74
- #
75
- # BUG ALERT: We send the entire content of the data table initially and only
76
- # start monitoring the table for new stuff when the web socket connects. Any
77
- # data added in between is not covered.
78
- #
79
- # def on_ws_open(ws)
80
- # raise "ARE WE STILL NEEDING THIS"
81
- # #puts ">>>> ON_WS_OPEN"
82
- # @ws = ws
83
- # @data_sources.each do |name, table|
84
- # table.on_row_added(self.object_id) do |row|
85
- # begin
86
- # # may want to queue events to group events into larger messages
87
- # msg = [{:stream => name, :events => [row]}]
88
- # ws.send_data msg.to_json
89
- # rescue Exception => ex
90
- # warn ex
91
- # end
92
- # end
93
- # end
94
- # end
95
- #
96
- # def on_ws_close(ws)
97
- # raise "ARE WE STILL NEEDING THIS"
98
- # @ws = nil
99
- # @data_sources.each do |name, table|
100
- # table.on_row_added(self.object_id)
101
- # end
102
- # end
103
-
104
72
  def collect_data_sources(ds_set)
105
- #puts "DATA_SOURCES>>>> #{@data_sources.values.inspect}"
106
73
  @opts[:data_sources].each do |ds|
107
- ds_set.add(ds[:stream])
74
+ #ds_set.add(ds[:id] || ds[:name] || ds[:stream])
75
+ ds_set.add(ds)
108
76
  end
109
77
  ds_set
110
78
  end
111
-
112
-
113
-
114
79
  end # DataWidget
115
80
 
116
81
  end
@@ -13,22 +13,22 @@ module OMF::Web::Widget::Layout
13
13
 
14
14
  def content()
15
15
  OMF::Web::Theme.require 'one_column_renderer'
16
- OMF::Web::Theme::OneColumnRenderer.new(@widgets, @opts)
16
+ OMF::Web::Theme::OneColumnRenderer.new(@widgets, @opts)
17
17
  end
18
18
 
19
19
  def collect_data_sources(ds_set)
20
20
  @widgets.each {|w| w.collect_data_sources(ds_set) }
21
21
  ds_set
22
22
  end
23
-
23
+
24
24
  def name
25
25
  @opts[:name] || @opts[:title]
26
26
  end
27
-
27
+
28
28
  def layout?
29
29
  return true
30
30
  end
31
31
 
32
- end
32
+ end
33
33
 
34
34
  end
@@ -7,18 +7,10 @@ module OMF::Web::Widget::Layout
7
7
  #
8
8
  class StackedLayout < OMF::Web::Widget::AbstractWidget
9
9
  attr_reader :active_index
10
-
10
+
11
11
  def initialize(opts)
12
12
  super opts
13
13
  widgets = opts[:widgets]
14
- # if (widgets.is_a? Hash)
15
- # puts "ERROR>>>> #{widgets.inspect}"
16
- # raise "NOT SURE WHY WE ARE COMING THROUGH HERE"
17
- # opts = widgets
18
- # #@wopts = opts[:wopts] || {}
19
- # #puts ">>>> #{widgets.inspect}"
20
- # widgets = @wopts[:widgets] || []
21
- # end
22
14
  @widgets = widgets.collect {|w| OMF::Web::Widget.create_widget(w) }
23
15
  @active_index = 0
24
16
  @active_widget = @widgets[0]
@@ -28,21 +20,21 @@ module OMF::Web::Widget::Layout
28
20
  OMF::Web::Theme.require 'stacked_renderer'
29
21
  OMF::Web::Theme::StackedRenderer.new(self, @widgets, @active_index, @opts)
30
22
  end
31
-
23
+
32
24
 
33
25
  def collect_data_sources(ds_set)
26
+ #puts "ACTIVE>>> #{@active_widget.class}"
34
27
  @active_widget.collect_data_sources(ds_set)
35
- #@widgets.each {|w| w.collect_data_sources(ds_set) }
36
28
  ds_set
37
29
  end
38
-
30
+
39
31
  def name
40
32
  @opts[:name] || @active_widget.name
41
33
  end
42
-
34
+
43
35
  def layout?
44
36
  return true
45
37
  end
46
-
38
+
47
39
  end
48
40
  end
@@ -160,7 +160,8 @@ Synonim for `title`.
160
160
 
161
161
 
162
162
  # Render to an HTML fragment (returns a REXML document tree)
163
- def to_html_tree
163
+ def to_html_tree(context={})
164
+ Thread.current['maruku_context'] = context
164
165
  div = Element.new 'div'
165
166
  div.attributes['class'] = 'maruku_wrapper_div'
166
167
  children_to_html.each do |e|
@@ -195,7 +196,8 @@ Example:
195
196
  end
196
197
 
197
198
  # Render to a complete HTML document (returns a REXML document tree)
198
- def to_html_document_tree
199
+ def to_html_document_tree(context={})
200
+ Thread.current['maruku_context'] = context
199
201
  doc = Document.new(nil,{:respect_whitespace =>:all})
200
202
  # doc << XMLDecl.new
201
203
 
@@ -80,7 +80,7 @@ module OMF::Web::Widget::Text
80
80
  h = content.to_html
81
81
  klass = ['embedded']
82
82
  if caption = @wdescr[:caption] || @widget.title
83
- if mt = @wdescr[:mime-type]
83
+ if mt = @wdescr[:'mime-type']
84
84
  klass << "embedded-#{mt.gsub('/', '-')}"
85
85
  end
86
86
  if ty = @wdescr[:type]
data/lib/omf_web.rb CHANGED
@@ -6,30 +6,30 @@ module OMF
6
6
  module Tab; end
7
7
  module Rack; end
8
8
  module Widget; end
9
-
9
+
10
10
  #VERSION = 'git:release-5.4'
11
-
11
+
12
12
  def self.start(opts, &block)
13
13
  require 'omf-web/thin/runner'
14
-
14
+
15
15
  if layout = opts.delete(:layout)
16
16
  load_widget_from_file(layout)
17
17
  end
18
-
18
+
19
19
  #Thin::Logging.debug = true
20
20
  runner = OMF::Web::Runner.new(ARGV, opts)
21
21
  block.call if block
22
- runner.run!
22
+ runner.run!
23
23
  end
24
-
24
+
25
25
  @@datasources = {}
26
26
  @@widgets = {}
27
27
  def self.register_datasource(data_source, opts = {})
28
28
  require 'omf-web/data_source_proxy'
29
29
  OMF::Web::DataSourceProxy.register_datasource(data_source, opts)
30
-
30
+
31
31
  end
32
-
32
+
33
33
  def self.register_widget(widget_descr)
34
34
  require 'omf-web/widget'
35
35
  wdescr = deep_symbolize_keys widget_descr
@@ -45,20 +45,20 @@ module OMF
45
45
  OMF::Base::LObject.error "Doesn't seem to be a widget definition. Expected 'widget' but found '#{y.keys.join(', ')}'"
46
46
  end
47
47
  end
48
-
48
+
49
49
  def self.use_tab(tab_id)
50
- OMF::Web::Tab.use_tab tab_id.to_sym
50
+ OMF::Web::Tab.use_tab tab_id.to_sym
51
51
  end
52
-
52
+
53
53
  private
54
-
54
+
55
55
  # Taken from active_support
56
56
  #
57
57
  def self.deep_symbolize_keys(obj)
58
58
  if obj.is_a? Hash
59
59
  obj.inject({}) do |result, (key, value)|
60
60
  if value.is_a?(Hash) || value.is_a?(Array)
61
- value = deep_symbolize_keys(value)
61
+ value = deep_symbolize_keys(value)
62
62
  end
63
63
  result[(key.to_sym rescue key) || key] = value
64
64
  result
@@ -69,8 +69,8 @@ module OMF
69
69
  obj
70
70
  end
71
71
  end
72
-
73
-
72
+
73
+
74
74
  end
75
75
  end
76
76
 
@@ -16,7 +16,7 @@ define(["graph/abstract_chart", 'vendor/nv_d3/js/nv.d3'], function (abstract_cha
16
16
  ticks: {
17
17
  // type: 'date',
18
18
  // format: '%I:%M', // hour:minutes
19
- format: ',.s',
19
+ format: ',.3s',
20
20
  // format: ",.0f" // integers with comma-grouping for thousands.
21
21
  //subdivide: 2, // the number of uniform subdivisions to make between major tick marks
22
22
  //size: [8, 4, 16], // set the size of major, minor and end ticks
@@ -118,7 +118,7 @@ define(["graph/abstract_chart", 'vendor/nv_d3/js/nv.d3'], function (abstract_cha
118
118
  if (this.chart) {
119
119
  this.chart.width(self.width);
120
120
  this.chart.height(self.height);
121
- this.chart.update();
121
+ //this.chart.update();
122
122
  }
123
123
  },
124
124
 
@@ -27,6 +27,10 @@ define(["graph/abstract_nv_chart"], function (abstract_nv_chart) {
27
27
  }, histogram2.__super__.defaults.call(this));
28
28
  },
29
29
 
30
+ initialize: function(opts) {
31
+ histogram2.__super__.initialize.call(this, opts);
32
+ },
33
+
30
34
  _create_model: function() {
31
35
  return nv.models.multiBarChart();
32
36
  },
@@ -111,4 +115,4 @@ define(["graph/abstract_nv_chart"], function (abstract_nv_chart) {
111
115
  tab-width: 2
112
116
  indent-tabs-mode: nil
113
117
  End:
114
- */
118
+ */
@@ -71,7 +71,8 @@ function omf_web_data_source(opts) {
71
71
  function start_web_socket() {
72
72
  if (ws) return; // already running
73
73
 
74
- var url = 'ws://' + window.location.host + '/_ws?sid=' + (opts.sid || OML.session_id);
74
+ var host = (typeof window_location_host == 'function') ? window_location_host() : window.location.host;
75
+ var url = 'ws://' + host + '/_ws?sid=' + (opts.sid || OML.session_id);
75
76
  ws = new WebSocket(url);
76
77
  ws.onopen = on_open;
77
78
  ws.onmessage = on_message;