nutella_framework 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (506) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/VERSION +1 -1
  4. data/framework_components/order.json +1 -6
  5. data/nutella_framework.gemspec +7 -507
  6. metadata +5 -505
  7. data/framework_components/beacon-cloud-bot/README.md +0 -27
  8. data/framework_components/beacon-cloud-bot/beacon_cloud_bot.rb +0 -150
  9. data/framework_components/beacon-cloud-bot/beacons.json +0 -1
  10. data/framework_components/beacon-cloud-bot/startup +0 -5
  11. data/framework_components/logging_bot/logging_bot.rb +0 -42
  12. data/framework_components/logging_bot/startup +0 -5
  13. data/framework_components/logging_bot/utils.rb +0 -8
  14. data/framework_components/monitoring-bot/.gitignore +0 -34
  15. data/framework_components/monitoring-bot/README.md +0 -1
  16. data/framework_components/monitoring-bot/monitoring-bot.rb +0 -472
  17. data/framework_components/monitoring-bot/nutella.json +0 -6
  18. data/framework_components/monitoring-bot/startup +0 -6
  19. data/framework_components/monitoring-interface/.gitignore +0 -2
  20. data/framework_components/monitoring-interface/README.md +0 -1
  21. data/framework_components/monitoring-interface/bower.json +0 -29
  22. data/framework_components/monitoring-interface/bower_components/bower-mqttws/.bower.json +0 -23
  23. data/framework_components/monitoring-interface/bower_components/bower-mqttws/bower.json +0 -14
  24. data/framework_components/monitoring-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
  25. data/framework_components/monitoring-interface/bower_components/bower-mqttws/readme.md +0 -4
  26. data/framework_components/monitoring-interface/bower_components/nutella_lib/.bower.json +0 -37
  27. data/framework_components/monitoring-interface/bower_components/nutella_lib/LICENSE +0 -21
  28. data/framework_components/monitoring-interface/bower_components/nutella_lib/README.md +0 -15
  29. data/framework_components/monitoring-interface/bower_components/nutella_lib/bower.json +0 -28
  30. data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
  31. data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
  32. data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
  33. data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
  34. data/framework_components/monitoring-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
  35. data/framework_components/monitoring-interface/bower_components/nutella_lib/package.json +0 -30
  36. data/framework_components/monitoring-interface/css/Monitoring Interface.html +0 -215
  37. data/framework_components/monitoring-interface/css/Monitoring Interface_files/animations.js +0 -27
  38. data/framework_components/monitoring-interface/css/Monitoring Interface_files/application-view-controller.js +0 -232
  39. data/framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js +0 -61
  40. data/framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js +0 -7
  41. data/framework_components/monitoring-interface/css/Monitoring Interface_files/cursor.css +0 -7
  42. data/framework_components/monitoring-interface/css/Monitoring Interface_files/d3.v3.min.js +0 -5
  43. data/framework_components/monitoring-interface/css/Monitoring Interface_files/graphics.js +0 -156
  44. data/framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js +0 -103
  45. data/framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js +0 -2
  46. data/framework_components/monitoring-interface/css/Monitoring Interface_files/instance-view-controller.js +0 -104
  47. data/framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js +0 -6
  48. data/framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js +0 -63
  49. data/framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js +0 -14
  50. data/framework_components/monitoring-interface/css/Monitoring Interface_files/page.css +0 -33
  51. data/framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js +0 -175
  52. data/framework_components/monitoring-interface/css/Monitoring Interface_files/tab-table.js +0 -8
  53. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.css +0 -0
  54. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.js +0 -320
  55. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css +0 -10
  56. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js +0 -426
  57. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-element.js +0 -205
  58. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js +0 -94
  59. data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-tab.js +0 -229
  60. data/framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js +0 -5
  61. data/framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js +0 -68
  62. data/framework_components/monitoring-interface/css/Monitoring Interface_files/window-view-controller.js +0 -169
  63. data/framework_components/monitoring-interface/css/alerts.css +0 -3
  64. data/framework_components/monitoring-interface/css/bootstrap.min.css +0 -5
  65. data/framework_components/monitoring-interface/css/cursor.css +0 -7
  66. data/framework_components/monitoring-interface/css/highlight.default.min.css +0 -1
  67. data/framework_components/monitoring-interface/css/page.css +0 -41
  68. data/framework_components/monitoring-interface/css/ui-application.css +0 -0
  69. data/framework_components/monitoring-interface/css/ui-connection-view.css +0 -10
  70. data/framework_components/monitoring-interface/css/ui-legend-view.css +0 -7
  71. data/framework_components/monitoring-interface/data/alert.json +0 -8
  72. data/framework_components/monitoring-interface/data/data.json +0 -2118
  73. data/framework_components/monitoring-interface/data/data2.json +0 -814
  74. data/framework_components/monitoring-interface/data/data3.json +0 -823
  75. data/framework_components/monitoring-interface/data/data4.json +0 -848
  76. data/framework_components/monitoring-interface/data/message.json +0 -999
  77. data/framework_components/monitoring-interface/gulpfile.js +0 -29
  78. data/framework_components/monitoring-interface/img/arrow_white.svg +0 -120
  79. data/framework_components/monitoring-interface/img/arrow_white_right.svg +0 -104
  80. data/framework_components/monitoring-interface/img/back.svg +0 -164
  81. data/framework_components/monitoring-interface/img/cross_red_border_white.svg +0 -143
  82. data/framework_components/monitoring-interface/img/cross_red_border_white_mouseover.svg +0 -143
  83. data/framework_components/monitoring-interface/img/email.svg +0 -89
  84. data/framework_components/monitoring-interface/img/email_highlighted.svg +0 -89
  85. data/framework_components/monitoring-interface/index.html +0 -144
  86. data/framework_components/monitoring-interface/js/d3/layout/grid-layout.js +0 -103
  87. data/framework_components/monitoring-interface/js/d3/layout/radial-layout.js +0 -184
  88. data/framework_components/monitoring-interface/js/d3/plugin/graphics.js +0 -156
  89. data/framework_components/monitoring-interface/js/d3/plugin/tab-table.js +0 -8
  90. data/framework_components/monitoring-interface/js/d3/ui/animations.js +0 -27
  91. data/framework_components/monitoring-interface/js/d3/ui/ui-application.js +0 -471
  92. data/framework_components/monitoring-interface/js/d3/ui/ui-connection-view.js +0 -861
  93. data/framework_components/monitoring-interface/js/d3/ui/ui-element.js +0 -245
  94. data/framework_components/monitoring-interface/js/d3/ui/ui-legend.js +0 -174
  95. data/framework_components/monitoring-interface/js/d3/ui/ui-notification.js +0 -90
  96. data/framework_components/monitoring-interface/js/d3/ui/ui-tab.js +0 -309
  97. data/framework_components/monitoring-interface/js/lib/JSXTransformer-0.12.2.js +0 -15199
  98. data/framework_components/monitoring-interface/js/lib/bootstrap.min.js +0 -7
  99. data/framework_components/monitoring-interface/js/lib/d3.v3.min.js +0 -5
  100. data/framework_components/monitoring-interface/js/lib/highlight.min.js +0 -2
  101. data/framework_components/monitoring-interface/js/lib/jquery-1.10.0.min.js +0 -6
  102. data/framework_components/monitoring-interface/js/lib/nutella_lib.js +0 -5121
  103. data/framework_components/monitoring-interface/js/lib/react-with-addons-0.12.2.js +0 -19822
  104. data/framework_components/monitoring-interface/js/lib/underscore-min.js +0 -5
  105. data/framework_components/monitoring-interface/js/model/alerts-model.js +0 -74
  106. data/framework_components/monitoring-interface/js/model/applications-model.js +0 -78
  107. data/framework_components/monitoring-interface/js/model/messages-model.js +0 -112
  108. data/framework_components/monitoring-interface/js/notification/notification-center.js +0 -63
  109. data/framework_components/monitoring-interface/js/notification/notifications.js +0 -21
  110. data/framework_components/monitoring-interface/js/react/dist/ui-alerts.js +0 -178
  111. data/framework_components/monitoring-interface/js/react/dist/ui-message-send.js +0 -389
  112. data/framework_components/monitoring-interface/js/react/dist/ui-messages.js +0 -103
  113. data/framework_components/monitoring-interface/js/react/src/ui-alerts.js +0 -178
  114. data/framework_components/monitoring-interface/js/react/src/ui-message-send.js +0 -389
  115. data/framework_components/monitoring-interface/js/react/src/ui-messages.js +0 -103
  116. data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js +0 -259
  117. data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js +0 -112
  118. data/framework_components/monitoring-interface/js/view-controller/view-controller.js +0 -74
  119. data/framework_components/monitoring-interface/js/view-controller/window-view-controller.js +0 -169
  120. data/framework_components/monitoring-interface/nutella.json +0 -6
  121. data/framework_components/room-places-beacon-cloud-interface/LICENSE +0 -21
  122. data/framework_components/room-places-beacon-cloud-interface/Readme.md +0 -0
  123. data/framework_components/room-places-beacon-cloud-interface/bower.json +0 -29
  124. data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/.bower.json +0 -23
  125. data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/bower.json +0 -14
  126. data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
  127. data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/readme.md +0 -4
  128. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/.bower.json +0 -37
  129. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/LICENSE +0 -21
  130. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/README.md +0 -15
  131. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/bower.json +0 -28
  132. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
  133. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
  134. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
  135. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
  136. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
  137. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/package.json +0 -30
  138. data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/simple-js-mqtt-client.js +0 -428
  139. data/framework_components/room-places-beacon-cloud-interface/css/animation.css +0 -17
  140. data/framework_components/room-places-beacon-cloud-interface/css/cursor.css +0 -16
  141. data/framework_components/room-places-beacon-cloud-interface/css/page_layout.css +0 -73
  142. data/framework_components/room-places-beacon-cloud-interface/index.html +0 -157
  143. data/framework_components/room-places-beacon-cloud-interface/js/lib/nutella_lib.js +0 -5121
  144. data/framework_components/room-places-beacon-cloud-interface/js/react/beacon-add.js +0 -102
  145. data/framework_components/room-places-beacon-cloud-interface/js/react/beacon-table.js +0 -73
  146. data/framework_components/room-places-beacon-cloud-interface/js/react/beacon.js +0 -97
  147. data/framework_components/room-places-beacon-cloud-interface/nutella.json +0 -6
  148. data/framework_components/room-places-bot/.gitignore +0 -4
  149. data/framework_components/room-places-bot/Gemfile +0 -3
  150. data/framework_components/room-places-bot/README.md +0 -66
  151. data/framework_components/room-places-bot/nutella.json +0 -6
  152. data/framework_components/room-places-bot/room_places_bot.rb +0 -766
  153. data/framework_components/room-places-bot/startup +0 -6
  154. data/framework_components/room-places-bot/virtual_beacons.rb +0 -124
  155. data/framework_components/room-places-interface/.gitignore +0 -3
  156. data/framework_components/room-places-interface/LICENSE +0 -21
  157. data/framework_components/room-places-interface/Readme.md +0 -0
  158. data/framework_components/room-places-interface/bower.json +0 -29
  159. data/framework_components/room-places-interface/bower_components/bower-mqttws/.bower.json +0 -23
  160. data/framework_components/room-places-interface/bower_components/bower-mqttws/bower.json +0 -14
  161. data/framework_components/room-places-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
  162. data/framework_components/room-places-interface/bower_components/bower-mqttws/readme.md +0 -4
  163. data/framework_components/room-places-interface/bower_components/nutella_lib/.bower.json +0 -37
  164. data/framework_components/room-places-interface/bower_components/nutella_lib/LICENSE +0 -21
  165. data/framework_components/room-places-interface/bower_components/nutella_lib/README.md +0 -15
  166. data/framework_components/room-places-interface/bower_components/nutella_lib/bower.json +0 -28
  167. data/framework_components/room-places-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
  168. data/framework_components/room-places-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
  169. data/framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
  170. data/framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
  171. data/framework_components/room-places-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
  172. data/framework_components/room-places-interface/bower_components/nutella_lib/package.json +0 -30
  173. data/framework_components/room-places-interface/css/animation.css +0 -22
  174. data/framework_components/room-places-interface/css/bootstrap.min.css +0 -5
  175. data/framework_components/room-places-interface/css/cursor.css +0 -22
  176. data/framework_components/room-places-interface/css/font-awesome/css/font-awesome.css +0 -1801
  177. data/framework_components/room-places-interface/css/font-awesome/css/font-awesome.min.css +0 -4
  178. data/framework_components/room-places-interface/css/font-awesome/fonts/FontAwesome.otf +0 -0
  179. data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  180. data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.svg +0 -565
  181. data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  182. data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  183. data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  184. data/framework_components/room-places-interface/css/font-awesome/less/animated.less +0 -34
  185. data/framework_components/room-places-interface/css/font-awesome/less/bordered-pulled.less +0 -16
  186. data/framework_components/room-places-interface/css/font-awesome/less/core.less +0 -13
  187. data/framework_components/room-places-interface/css/font-awesome/less/fixed-width.less +0 -6
  188. data/framework_components/room-places-interface/css/font-awesome/less/font-awesome.less +0 -17
  189. data/framework_components/room-places-interface/css/font-awesome/less/icons.less +0 -596
  190. data/framework_components/room-places-interface/css/font-awesome/less/larger.less +0 -13
  191. data/framework_components/room-places-interface/css/font-awesome/less/list.less +0 -19
  192. data/framework_components/room-places-interface/css/font-awesome/less/mixins.less +0 -27
  193. data/framework_components/room-places-interface/css/font-awesome/less/path.less +0 -15
  194. data/framework_components/room-places-interface/css/font-awesome/less/rotated-flipped.less +0 -20
  195. data/framework_components/room-places-interface/css/font-awesome/less/stacked.less +0 -20
  196. data/framework_components/room-places-interface/css/font-awesome/less/variables.less +0 -606
  197. data/framework_components/room-places-interface/css/font-awesome/scss/_animated.scss +0 -34
  198. data/framework_components/room-places-interface/css/font-awesome/scss/_bordered-pulled.scss +0 -16
  199. data/framework_components/room-places-interface/css/font-awesome/scss/_core.scss +0 -13
  200. data/framework_components/room-places-interface/css/font-awesome/scss/_fixed-width.scss +0 -6
  201. data/framework_components/room-places-interface/css/font-awesome/scss/_icons.scss +0 -596
  202. data/framework_components/room-places-interface/css/font-awesome/scss/_larger.scss +0 -13
  203. data/framework_components/room-places-interface/css/font-awesome/scss/_list.scss +0 -19
  204. data/framework_components/room-places-interface/css/font-awesome/scss/_mixins.scss +0 -27
  205. data/framework_components/room-places-interface/css/font-awesome/scss/_path.scss +0 -15
  206. data/framework_components/room-places-interface/css/font-awesome/scss/_rotated-flipped.scss +0 -20
  207. data/framework_components/room-places-interface/css/font-awesome/scss/_stacked.scss +0 -20
  208. data/framework_components/room-places-interface/css/font-awesome/scss/_variables.scss +0 -606
  209. data/framework_components/room-places-interface/css/font-awesome/scss/font-awesome.scss +0 -17
  210. data/framework_components/room-places-interface/css/icomoon.css +0 -57
  211. data/framework_components/room-places-interface/css/page_layout.css +0 -82
  212. data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.eot +0 -0
  213. data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.svg +0 -288
  214. data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.ttf +0 -0
  215. data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.woff +0 -0
  216. data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.woff2 +0 -0
  217. data/framework_components/room-places-interface/fonts/icomoon.eot +0 -0
  218. data/framework_components/room-places-interface/fonts/icomoon.svg +0 -17
  219. data/framework_components/room-places-interface/fonts/icomoon.ttf +0 -0
  220. data/framework_components/room-places-interface/fonts/icomoon.woff +0 -0
  221. data/framework_components/room-places-interface/gulpfile.js +0 -24
  222. data/framework_components/room-places-interface/index.html +0 -73
  223. data/framework_components/room-places-interface/index2.html +0 -1753
  224. data/framework_components/room-places-interface/js/component.js +0 -438
  225. data/framework_components/room-places-interface/js/lib/JSXTransformer-0.12.2.js +0 -15199
  226. data/framework_components/room-places-interface/js/lib/bootstrap.min.js +0 -7
  227. data/framework_components/room-places-interface/js/lib/d3.v3.min.js +0 -5
  228. data/framework_components/room-places-interface/js/lib/jquery-1.10.0.min.js +0 -6
  229. data/framework_components/room-places-interface/js/lib/nutella_lib.js +0 -4145
  230. data/framework_components/room-places-interface/js/lib/react-with-addons-0.12.2.js +0 -19822
  231. data/framework_components/room-places-interface/js/lib/underscore.js +0 -6
  232. data/framework_components/room-places-interface/js/map.js +0 -1593
  233. data/framework_components/room-places-interface/js/position.js +0 -6
  234. data/framework_components/room-places-interface/js/react/dist/beacon.js +0 -30
  235. data/framework_components/room-places-interface/js/react/dist/discrete.js +0 -282
  236. data/framework_components/room-places-interface/js/react/dist/interactive-label.js +0 -54
  237. data/framework_components/room-places-interface/js/react/dist/resource-add.js +0 -203
  238. data/framework_components/room-places-interface/js/react/dist/resource-table.js +0 -227
  239. data/framework_components/room-places-interface/js/react/dist/resource.js +0 -433
  240. data/framework_components/room-places-interface/js/react/src/beacon.js +0 -30
  241. data/framework_components/room-places-interface/js/react/src/discrete.js +0 -282
  242. data/framework_components/room-places-interface/js/react/src/interactive-label.js +0 -54
  243. data/framework_components/room-places-interface/js/react/src/resource-add.js +0 -203
  244. data/framework_components/room-places-interface/js/react/src/resource-table.js +0 -227
  245. data/framework_components/room-places-interface/js/react/src/resource.js +0 -433
  246. data/framework_components/room-places-interface/js/room.js +0 -65
  247. data/framework_components/room-places-interface/nutella.json +0 -6
  248. data/framework_components/roomcast-bot/data/default/channels.json +0 -1
  249. data/framework_components/roomcast-bot/data/default/configs.json +0 -1
  250. data/framework_components/roomcast-bot/roomcast_bot.rb +0 -284
  251. data/framework_components/roomcast-bot/startup +0 -6
  252. data/framework_components/roomcast-channel-creator/.gitignore +0 -2
  253. data/framework_components/roomcast-channel-creator/README.md +0 -9
  254. data/framework_components/roomcast-channel-creator/dist/app.js +0 -44376
  255. data/framework_components/roomcast-channel-creator/dist/css/font-awesome.min.css +0 -4
  256. data/framework_components/roomcast-channel-creator/dist/css/ionicons.min.css +0 -11
  257. data/framework_components/roomcast-channel-creator/dist/fonts/FontAwesome.otf +0 -0
  258. data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.eot +0 -0
  259. data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.svg +0 -565
  260. data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.ttf +0 -0
  261. data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.woff +0 -0
  262. data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.woff2 +0 -0
  263. data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.eot +0 -0
  264. data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.svg +0 -2230
  265. data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.ttf +0 -0
  266. data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.woff +0 -0
  267. data/framework_components/roomcast-channel-creator/dist/main.css +0 -3310
  268. data/framework_components/roomcast-channel-creator/dist/nutella_lib.js +0 -5128
  269. data/framework_components/roomcast-channel-creator/gulp/config.js +0 -51
  270. data/framework_components/roomcast-channel-creator/gulp/tasks/browserify.js +0 -77
  271. data/framework_components/roomcast-channel-creator/gulp/tasks/build.js +0 -3
  272. data/framework_components/roomcast-channel-creator/gulp/tasks/css.js +0 -7
  273. data/framework_components/roomcast-channel-creator/gulp/tasks/default.js +0 -3
  274. data/framework_components/roomcast-channel-creator/gulp/tasks/fonts.js +0 -7
  275. data/framework_components/roomcast-channel-creator/gulp/tasks/less.js +0 -16
  276. data/framework_components/roomcast-channel-creator/gulp/tasks/mui-fonts.js +0 -7
  277. data/framework_components/roomcast-channel-creator/gulp/tasks/nutella.js +0 -7
  278. data/framework_components/roomcast-channel-creator/gulp/tasks/setWatch.js +0 -5
  279. data/framework_components/roomcast-channel-creator/gulp/tasks/svgs.js +0 -7
  280. data/framework_components/roomcast-channel-creator/gulp/tasks/watch.js +0 -12
  281. data/framework_components/roomcast-channel-creator/gulp/util/bundleLogger.js +0 -21
  282. data/framework_components/roomcast-channel-creator/gulp/util/handleErrors.js +0 -15
  283. data/framework_components/roomcast-channel-creator/gulpfile.js +0 -16
  284. data/framework_components/roomcast-channel-creator/index.html +0 -40
  285. data/framework_components/roomcast-channel-creator/nutella.json +0 -6
  286. data/framework_components/roomcast-channel-creator/package.json +0 -38
  287. data/framework_components/roomcast-channel-creator/roomcast-default.png +0 -0
  288. data/framework_components/roomcast-channel-creator/src/app/app.js +0 -28
  289. data/framework_components/roomcast-channel-creator/src/app/components/AnimationMixin.js +0 -44
  290. data/framework_components/roomcast-channel-creator/src/app/components/CataloguePage.js +0 -148
  291. data/framework_components/roomcast-channel-creator/src/app/components/Channel.js +0 -406
  292. data/framework_components/roomcast-channel-creator/src/app/components/ColorCell.js +0 -28
  293. data/framework_components/roomcast-channel-creator/src/app/components/ColorPicker.js +0 -53
  294. data/framework_components/roomcast-channel-creator/src/app/components/DetailPage.js +0 -66
  295. data/framework_components/roomcast-channel-creator/src/app/components/NutellaMixin.js +0 -40
  296. data/framework_components/roomcast-channel-creator/src/app/components/PageSliderMixin.js +0 -68
  297. data/framework_components/roomcast-channel-creator/src/app/components/Router.js +0 -52
  298. data/framework_components/roomcast-channel-creator/src/app/components/TopBar.js +0 -86
  299. data/framework_components/roomcast-channel-creator/src/app/components/UploadingScreen.js +0 -74
  300. data/framework_components/roomcast-channel-creator/src/app/components/main.js +0 -342
  301. data/framework_components/roomcast-channel-creator/src/css/font-awesome.min.css +0 -4
  302. data/framework_components/roomcast-channel-creator/src/css/ionicons.min.css +0 -11
  303. data/framework_components/roomcast-channel-creator/src/fonts/FontAwesome.otf +0 -0
  304. data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.eot +0 -0
  305. data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.svg +0 -565
  306. data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.ttf +0 -0
  307. data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.woff +0 -0
  308. data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.woff2 +0 -0
  309. data/framework_components/roomcast-channel-creator/src/fonts/ionicons.eot +0 -0
  310. data/framework_components/roomcast-channel-creator/src/fonts/ionicons.svg +0 -2230
  311. data/framework_components/roomcast-channel-creator/src/fonts/ionicons.ttf +0 -0
  312. data/framework_components/roomcast-channel-creator/src/fonts/ionicons.woff +0 -0
  313. data/framework_components/roomcast-channel-creator/src/less/main.less +0 -506
  314. data/framework_components/roomcast-channel-creator/src/less/my_overrides.less +0 -14
  315. data/framework_components/roomcast-channel-creator/upload.svg +0 -216
  316. data/framework_components/roomcast-main-app/.gitignore +0 -2
  317. data/framework_components/roomcast-main-app/README.md +0 -9
  318. data/framework_components/roomcast-main-app/dist/LICENSE +0 -21
  319. data/framework_components/roomcast-main-app/dist/app.js +0 -54373
  320. data/framework_components/roomcast-main-app/dist/assets/Logo.png +0 -0
  321. data/framework_components/roomcast-main-app/dist/assets/Logo_alpha.png +0 -0
  322. data/framework_components/roomcast-main-app/dist/assets/Logo_grid.svg +0 -216
  323. data/framework_components/roomcast-main-app/dist/css/ionicons.min.css +0 -11
  324. data/framework_components/roomcast-main-app/dist/fonts/ionicons.eot +0 -0
  325. data/framework_components/roomcast-main-app/dist/fonts/ionicons.svg +0 -2230
  326. data/framework_components/roomcast-main-app/dist/fonts/ionicons.ttf +0 -0
  327. data/framework_components/roomcast-main-app/dist/fonts/ionicons.woff +0 -0
  328. data/framework_components/roomcast-main-app/dist/main.css +0 -3234
  329. data/framework_components/roomcast-main-app/gulp/config.js +0 -47
  330. data/framework_components/roomcast-main-app/gulp/tasks/browserify.js +0 -77
  331. data/framework_components/roomcast-main-app/gulp/tasks/build.js +0 -3
  332. data/framework_components/roomcast-main-app/gulp/tasks/css.js +0 -7
  333. data/framework_components/roomcast-main-app/gulp/tasks/default.js +0 -3
  334. data/framework_components/roomcast-main-app/gulp/tasks/fonts.js +0 -7
  335. data/framework_components/roomcast-main-app/gulp/tasks/less.js +0 -16
  336. data/framework_components/roomcast-main-app/gulp/tasks/markup.js +0 -7
  337. data/framework_components/roomcast-main-app/gulp/tasks/setWatch.js +0 -5
  338. data/framework_components/roomcast-main-app/gulp/tasks/svgs.js +0 -7
  339. data/framework_components/roomcast-main-app/gulp/tasks/watch.js +0 -12
  340. data/framework_components/roomcast-main-app/gulp/util/bundleLogger.js +0 -21
  341. data/framework_components/roomcast-main-app/gulp/util/handleErrors.js +0 -15
  342. data/framework_components/roomcast-main-app/gulpfile.js +0 -16
  343. data/framework_components/roomcast-main-app/index.html +0 -37
  344. data/framework_components/roomcast-main-app/nutella.json +0 -6
  345. data/framework_components/roomcast-main-app/package.json +0 -47
  346. data/framework_components/roomcast-main-app/roomcast-default.png +0 -0
  347. data/framework_components/roomcast-main-app/src/app/app.js +0 -15
  348. data/framework_components/roomcast-main-app/src/app/components/NutellaMixin.js +0 -56
  349. data/framework_components/roomcast-main-app/src/app/components/app/Channel.js +0 -68
  350. data/framework_components/roomcast-main-app/src/app/components/app/Player.js +0 -139
  351. data/framework_components/roomcast-main-app/src/app/components/app/iOSMixin.js +0 -22
  352. data/framework_components/roomcast-main-app/src/app/components/app/main.js +0 -567
  353. data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu-item.jsx +0 -79
  354. data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu.jsx +0 -177
  355. data/framework_components/roomcast-main-app/src/app/components/app/material-ui/overlay.jsx +0 -21
  356. data/framework_components/roomcast-main-app/src/app/components/app/material-ui/right-nav.jsx +0 -108
  357. data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentitiesGrid.js +0 -95
  358. data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentityCard.js +0 -103
  359. data/framework_components/roomcast-main-app/src/app/components/identity-selector/iOSMixin.js +0 -19
  360. data/framework_components/roomcast-main-app/src/app/components/identity-selector/main.js +0 -109
  361. data/framework_components/roomcast-main-app/src/app/components/login/AppIdPage.js +0 -97
  362. data/framework_components/roomcast-main-app/src/app/components/login/BrokerPage.js +0 -139
  363. data/framework_components/roomcast-main-app/src/app/components/login/IdentitiesGrid.js +0 -93
  364. data/framework_components/roomcast-main-app/src/app/components/login/IdentityCard.js +0 -99
  365. data/framework_components/roomcast-main-app/src/app/components/login/RunIdPage.js +0 -78
  366. data/framework_components/roomcast-main-app/src/app/components/login/iOSMixin.js +0 -23
  367. data/framework_components/roomcast-main-app/src/app/components/login/main.js +0 -125
  368. data/framework_components/roomcast-main-app/src/app/components/main.js +0 -64
  369. data/framework_components/roomcast-main-app/src/less/main.less +0 -365
  370. data/framework_components/roomcast-main-app/src/less/my_overrides.less +0 -53
  371. data/framework_components/roomcast-main-app/src/less/right-nav.less +0 -31
  372. data/framework_components/roomcast-package-creator/.gitignore +0 -2
  373. data/framework_components/roomcast-package-creator/README.md +0 -9
  374. data/framework_components/roomcast-package-creator/dist/app.js +0 -51196
  375. data/framework_components/roomcast-package-creator/dist/css/font-awesome.min.css +0 -4
  376. data/framework_components/roomcast-package-creator/dist/css/ionicons.min.css +0 -11
  377. data/framework_components/roomcast-package-creator/dist/fonts/FontAwesome.otf +0 -0
  378. data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.eot +0 -0
  379. data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.svg +0 -565
  380. data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.ttf +0 -0
  381. data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.woff +0 -0
  382. data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.woff2 +0 -0
  383. data/framework_components/roomcast-package-creator/dist/fonts/ionicons.eot +0 -0
  384. data/framework_components/roomcast-package-creator/dist/fonts/ionicons.svg +0 -2230
  385. data/framework_components/roomcast-package-creator/dist/fonts/ionicons.ttf +0 -0
  386. data/framework_components/roomcast-package-creator/dist/fonts/ionicons.woff +0 -0
  387. data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.eot +0 -0
  388. data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.svg +0 -14
  389. data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.ttf +0 -0
  390. data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.woff +0 -0
  391. data/framework_components/roomcast-package-creator/dist/main.css +0 -5682
  392. data/framework_components/roomcast-package-creator/dist/nutella_lib.js +0 -5128
  393. data/framework_components/roomcast-package-creator/gulp/config.js +0 -51
  394. data/framework_components/roomcast-package-creator/gulp/tasks/browserify.js +0 -77
  395. data/framework_components/roomcast-package-creator/gulp/tasks/build.js +0 -3
  396. data/framework_components/roomcast-package-creator/gulp/tasks/css.js +0 -7
  397. data/framework_components/roomcast-package-creator/gulp/tasks/default.js +0 -3
  398. data/framework_components/roomcast-package-creator/gulp/tasks/fonts.js +0 -7
  399. data/framework_components/roomcast-package-creator/gulp/tasks/less.js +0 -16
  400. data/framework_components/roomcast-package-creator/gulp/tasks/mui-fonts.js +0 -7
  401. data/framework_components/roomcast-package-creator/gulp/tasks/nutella.js +0 -7
  402. data/framework_components/roomcast-package-creator/gulp/tasks/setWatch.js +0 -5
  403. data/framework_components/roomcast-package-creator/gulp/tasks/svgs.js +0 -7
  404. data/framework_components/roomcast-package-creator/gulp/tasks/watch.js +0 -12
  405. data/framework_components/roomcast-package-creator/gulp/util/bundleLogger.js +0 -21
  406. data/framework_components/roomcast-package-creator/gulp/util/handleErrors.js +0 -15
  407. data/framework_components/roomcast-package-creator/gulpfile.js +0 -16
  408. data/framework_components/roomcast-package-creator/index.html +0 -38
  409. data/framework_components/roomcast-package-creator/nutella.json +0 -6
  410. data/framework_components/roomcast-package-creator/package.json +0 -39
  411. data/framework_components/roomcast-package-creator/roomcast-default.png +0 -0
  412. data/framework_components/roomcast-package-creator/src/app/app.js +0 -30
  413. data/framework_components/roomcast-package-creator/src/app/components/ButtonInteractionsMixin.js +0 -45
  414. data/framework_components/roomcast-package-creator/src/app/components/ChannelCard.js +0 -100
  415. data/framework_components/roomcast-package-creator/src/app/components/ChannelItem.js +0 -71
  416. data/framework_components/roomcast-package-creator/src/app/components/ChannelsCatalogue.js +0 -51
  417. data/framework_components/roomcast-package-creator/src/app/components/ChannelsPanel.js +0 -127
  418. data/framework_components/roomcast-package-creator/src/app/components/ConfigField.js +0 -50
  419. data/framework_components/roomcast-package-creator/src/app/components/ConfigurationsPanel.js +0 -112
  420. data/framework_components/roomcast-package-creator/src/app/components/ContextButton.js +0 -37
  421. data/framework_components/roomcast-package-creator/src/app/components/GlobalButton.js +0 -28
  422. data/framework_components/roomcast-package-creator/src/app/components/NutellaMixin.js +0 -58
  423. data/framework_components/roomcast-package-creator/src/app/components/PoolHeader.js +0 -67
  424. data/framework_components/roomcast-package-creator/src/app/components/PoolRow.js +0 -160
  425. data/framework_components/roomcast-package-creator/src/app/components/ResourceFamilyPool.js +0 -168
  426. data/framework_components/roomcast-package-creator/src/app/components/ResourcesPanel.js +0 -76
  427. data/framework_components/roomcast-package-creator/src/app/components/main.js +0 -239
  428. data/framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx +0 -66
  429. data/framework_components/roomcast-package-creator/src/app/components/material-ui/drop-down-menu.jsx +0 -159
  430. data/framework_components/roomcast-package-creator/src/app/components/material-ui/enhanced-textarea.jsx +0 -113
  431. data/framework_components/roomcast-package-creator/src/app/components/material-ui/floating-action-button_.jsx +0 -73
  432. data/framework_components/roomcast-package-creator/src/app/components/material-ui/menu-item.jsx +0 -100
  433. data/framework_components/roomcast-package-creator/src/app/components/material-ui/menu.jsx +0 -211
  434. data/framework_components/roomcast-package-creator/src/app/components/material-ui/overlay.jsx +0 -21
  435. data/framework_components/roomcast-package-creator/src/app/components/material-ui/raised-button_.jsx +0 -72
  436. data/framework_components/roomcast-package-creator/src/app/components/material-ui/right-nav.jsx +0 -108
  437. data/framework_components/roomcast-package-creator/src/app/components/material-ui/ripple.jsx +0 -52
  438. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/drop-down-arrow.jsx +0 -17
  439. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-left.jsx +0 -16
  440. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-right.jsx +0 -17
  441. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-menu.jsx +0 -16
  442. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/svg-icon.jsx +0 -23
  443. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-check-box-checked.jsx +0 -16
  444. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-check-box-outline-blank.jsx +0 -16
  445. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-radio-button-off.jsx +0 -16
  446. data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-radio-button-on.jsx +0 -16
  447. data/framework_components/roomcast-package-creator/src/app/components/material-ui/text-field.jsx +0 -215
  448. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/css-event.js +0 -52
  449. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/date-time.js +0 -132
  450. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/dom.js +0 -71
  451. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/events.js +0 -34
  452. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/key-code.js +0 -10
  453. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/key-line.js +0 -13
  454. data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/unique-id.js +0 -7
  455. data/framework_components/roomcast-package-creator/src/css/font-awesome.min.css +0 -4
  456. data/framework_components/roomcast-package-creator/src/css/ionicons.min.css +0 -11
  457. data/framework_components/roomcast-package-creator/src/fonts/FontAwesome.otf +0 -0
  458. data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.eot +0 -0
  459. data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.svg +0 -565
  460. data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.ttf +0 -0
  461. data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.woff +0 -0
  462. data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.woff2 +0 -0
  463. data/framework_components/roomcast-package-creator/src/fonts/ionicons.eot +0 -0
  464. data/framework_components/roomcast-package-creator/src/fonts/ionicons.svg +0 -2230
  465. data/framework_components/roomcast-package-creator/src/fonts/ionicons.ttf +0 -0
  466. data/framework_components/roomcast-package-creator/src/fonts/ionicons.woff +0 -0
  467. data/framework_components/roomcast-package-creator/src/less/drop-down-icon.less +0 -43
  468. data/framework_components/roomcast-package-creator/src/less/drop-down-menu.less +0 -77
  469. data/framework_components/roomcast-package-creator/src/less/enhanced-textarea.less +0 -16
  470. data/framework_components/roomcast-package-creator/src/less/main.less +0 -514
  471. data/framework_components/roomcast-package-creator/src/less/menu-item.less +0 -71
  472. data/framework_components/roomcast-package-creator/src/less/menu.less +0 -50
  473. data/framework_components/roomcast-package-creator/src/less/my_overrides.less +0 -15
  474. data/framework_components/roomcast-package-creator/src/less/svg-icon.less +0 -11
  475. data/framework_components/roomcast-package-creator/src/less/text-field.less +0 -168
  476. data/framework_components/roomcast-teacher-controls/.gitignore +0 -2
  477. data/framework_components/roomcast-teacher-controls/README.md +0 -9
  478. data/framework_components/roomcast-teacher-controls/dist/app.js +0 -43614
  479. data/framework_components/roomcast-teacher-controls/dist/main.css +0 -3043
  480. data/framework_components/roomcast-teacher-controls/dist/nutella_lib.js +0 -5128
  481. data/framework_components/roomcast-teacher-controls/gulp/config.js +0 -51
  482. data/framework_components/roomcast-teacher-controls/gulp/tasks/browserify.js +0 -77
  483. data/framework_components/roomcast-teacher-controls/gulp/tasks/build.js +0 -3
  484. data/framework_components/roomcast-teacher-controls/gulp/tasks/css.js +0 -7
  485. data/framework_components/roomcast-teacher-controls/gulp/tasks/default.js +0 -3
  486. data/framework_components/roomcast-teacher-controls/gulp/tasks/fonts.js +0 -7
  487. data/framework_components/roomcast-teacher-controls/gulp/tasks/less.js +0 -16
  488. data/framework_components/roomcast-teacher-controls/gulp/tasks/mui-fonts.js +0 -7
  489. data/framework_components/roomcast-teacher-controls/gulp/tasks/nutella.js +0 -7
  490. data/framework_components/roomcast-teacher-controls/gulp/tasks/setWatch.js +0 -5
  491. data/framework_components/roomcast-teacher-controls/gulp/tasks/svgs.js +0 -7
  492. data/framework_components/roomcast-teacher-controls/gulp/tasks/watch.js +0 -12
  493. data/framework_components/roomcast-teacher-controls/gulp/util/bundleLogger.js +0 -21
  494. data/framework_components/roomcast-teacher-controls/gulp/util/handleErrors.js +0 -15
  495. data/framework_components/roomcast-teacher-controls/gulpfile.js +0 -16
  496. data/framework_components/roomcast-teacher-controls/index.html +0 -37
  497. data/framework_components/roomcast-teacher-controls/nutella.json +0 -6
  498. data/framework_components/roomcast-teacher-controls/package.json +0 -38
  499. data/framework_components/roomcast-teacher-controls/src/app/app.js +0 -28
  500. data/framework_components/roomcast-teacher-controls/src/app/components/ActivitiesGrid.js +0 -87
  501. data/framework_components/roomcast-teacher-controls/src/app/components/ActivityCard.js +0 -183
  502. data/framework_components/roomcast-teacher-controls/src/app/components/Footer.js +0 -37
  503. data/framework_components/roomcast-teacher-controls/src/app/components/NutellaMixin.js +0 -58
  504. data/framework_components/roomcast-teacher-controls/src/app/components/main.js +0 -125
  505. data/framework_components/roomcast-teacher-controls/src/less/main.less +0 -196
  506. data/framework_components/roomcast-teacher-controls/src/less/my_overrides.less +0 -14
@@ -1,227 +0,0 @@
1
- var ResourceTable = React.createClass({
2
- table: {
3
- resource: "table.resource",
4
- addResource: "table.addResource",
5
- beacon: "table.beacon",
6
- discrete: "table.discrete"
7
- },
8
- getInitialState: function () {
9
- return {
10
- resourceData: [],
11
- beaconData: [],
12
- tableOpen: this.table.resource
13
- };
14
- },
15
- resourcesBuffer: undefined, // Used for not updating the interface every time a resource change
16
- componentDidMount: function () {
17
- self = this;
18
-
19
- // Download all resources
20
- nutella.net.request("location/resources", {}, function(reply) {
21
- self.setState({resourceData: reply.resources});
22
- });
23
-
24
- // Wait for new added resources
25
- nutella.net.subscribe("location/resources/added", function(message) {
26
- var data = self.state.resourceData;
27
- data = data.concat(message.resources);
28
-
29
- self.setState({resourceData: data});
30
- });
31
-
32
- // Update the interface if the buffer is not empty
33
- setInterval(function() {
34
- if(self.resourceBuffer == undefined) {
35
- return; // Return if buffer empty
36
- }
37
-
38
- var data = self.state.resourceData;
39
-
40
- // Remove updated resources
41
- data = data.filter(function(d) {
42
- return $.inArray(d.rid, self.resourceBuffer.map(function(r) {
43
- return r.rid;
44
- })) == -1;
45
- });
46
-
47
- // Add updated resources from the buffer
48
- data = data.concat(self.resourceBuffer);
49
-
50
- self.setState({resourceData: data});
51
-
52
- self.resourceBuffer = undefined; // Empty the buffer
53
- }, 200);
54
-
55
- // Wait for updated resources
56
- nutella.net.subscribe("location/resources/updated", function(message) {
57
- if(self.resourceBuffer == undefined) {
58
- self.resourceBuffer = [];
59
- }
60
- self.resourceBuffer = self.resourceBuffer.filter(function(d) {
61
- return $.inArray(d.rid, message.resources.map(function(r) {
62
- return r.rid;
63
- })) == -1;
64
- });
65
- self.resourceBuffer = self.resourceBuffer.concat(message.resources);
66
- });
67
-
68
- // Wait for removed resources
69
- nutella.net.subscribe("location/resources/removed", function(message) {
70
- var data = self.state.resourceData;
71
- data = data.filter(function(d) {
72
- return $.inArray(d.rid, message.resources.map(function(r) {
73
- return r.rid;
74
- })) == -1;
75
- });
76
-
77
- self.setState({resourceData: data});
78
- });
79
-
80
-
81
- // Download all beacons
82
- nutella.net.request("beacon/beacons", {}, function(reply) {
83
- self.setState({beaconData: reply.beacons});
84
- });
85
-
86
- // Wait for new added beacons
87
- nutella.net.subscribe("beacon/beacons/added", function(message) {
88
- var data = self.state.beaconData;
89
- data = data.concat(message.beacons);
90
-
91
- self.setState({beaconData: data});
92
- });
93
-
94
- // Wait for removed beacons
95
- nutella.net.subscribe("beacon/beacons/removed", function(message) {
96
- var data = self.state.beaconData;
97
- data = data.filter(function(d) {
98
- return $.inArray(d.rid, message.beacons.map(function(r) {
99
- return r.rid;
100
- })) == -1;
101
- });
102
-
103
- self.setState({beaconData: data});
104
- });
105
- },
106
- updateResource: function(resource) {
107
- nutella.net.publish("location/resource/update", resource);
108
- },
109
- removeResource: function(resource) {
110
- nutella.net.publish("location/resource/remove", resource);
111
- },
112
- addResource: function(resource) {
113
- nutella.net.publish("location/resource/add", resource);
114
- },
115
- showTable: function(table) {
116
- if(this.state.tableOpen == table) {
117
- this.setState({tableOpen: undefined});
118
- }
119
- else {
120
- this.setState({tableOpen: table});
121
- }
122
- },
123
- render: function() {
124
- var self = this;
125
-
126
- // Order the resource list
127
- var resources = this.state.resourceData;
128
- resources = resources.sort(function(a, b) {
129
- if(a.type == "STATIC" && b.type == "DYNAMIC") {
130
- return -1;
131
- }
132
- else if(a.type == "DYNAMIC" && b.type == "STATIC") {
133
- return 1;
134
- }
135
- else {
136
- return a.rid.localeCompare(b.rid);
137
- }
138
- });
139
-
140
- var resourceRows = resources.map(function (resource, index) {
141
- return (
142
- <Resource resource={resource}
143
- key={resource.rid}
144
- updateResource={self.updateResource}
145
- removeResource={self.removeResource}
146
- room={self.props.room}/>
147
- );
148
- });
149
-
150
- // Order the resource list
151
- var beacons = this.state.beaconData;
152
- beacons = beacons.sort(function(a, b) {
153
- return a.rid.localeCompare(b.rid)
154
- });
155
- beacons = beacons.filter(function(b) {
156
-
157
- return $.inArray(b.rid, resources.map(function(r) {
158
- return r.rid;
159
- })) == -1;
160
-
161
- });
162
-
163
- var beaconRows = beacons.map(function (beacon, index) {
164
- return (
165
- <Beacon beacon={beacon}
166
- key={beacon.rid}
167
- addResource={self.addResource}
168
- updateResource={self.updateResource}/>
169
- );
170
- });
171
-
172
- var resourceTableHeight = "40px";
173
- var addResourceTableHeight = "40px";
174
- var beaconTableHeight = "40px";
175
- var discreteTableHeight = "40px";
176
-
177
- switch(this.state.tableOpen) {
178
- case this.table.resource:
179
- resourceTableHeight = "500px";
180
- break;
181
- case this.table.addResource:
182
- addResourceTableHeight = "300px";
183
- break;
184
- case this.table.beacon:
185
- beaconTableHeight = "500px";
186
- break;
187
- case this.table.discrete:
188
- discreteTableHeight = "500px";
189
- break;
190
- }
191
-
192
- return(
193
- <div>
194
- <div className="col-md-12 table-responsive table_container animated" style={{"overflowX": "scroll", maxHeight: resourceTableHeight}}>
195
- <table className="table table-bordered table-striped table-hover" id="resource_table">
196
- <thead onClick={_.partial(this.showTable, this.table.resource)} className="pointer">
197
- <tr>
198
- <th className="col-md-12 col-sm-12 col-xs-12 text-center">Resources</th>
199
- </tr>
200
- </thead>
201
- <tbody>
202
- {resourceRows}
203
- </tbody>
204
- </table>
205
- </div>
206
- <ResourceAdd room={this.props.room} tableHeight={addResourceTableHeight} showTable={this.showTable}/>
207
- <div className="col-md-12 table-responsive table_container animated"
208
- style={{
209
- "overflowX": "scroll",
210
- maxHeight: beaconTableHeight
211
- }}>
212
- <table className="table table-bordered table-striped table-hover" id="resource_table">
213
- <thead onClick={_.partial(this.showTable, this.table.beacon)} className="pointer">
214
- <tr>
215
- <th className="col-md-12 col-sm-12 col-xs-12 text-center">Beacons</th>
216
- </tr>
217
- </thead>
218
- <tbody>
219
- {beaconRows}
220
- </tbody>
221
- </table>
222
- </div>
223
- <Discrete room={this.props.room} tableHeight={discreteTableHeight} showTable={this.showTable}/>
224
- </div>
225
- );
226
- }
227
- });
@@ -1,433 +0,0 @@
1
-
2
- var Resource = React.createClass({
3
- componentDidMount: function () {
4
-
5
- },
6
- handleParameterChange: function(event) {
7
- var text = $("#"+event.target.id).text();
8
-
9
- // Pressed return
10
- if(event.which == 13) {
11
- $("#"+event.target.id).blur();
12
- $("#"+event.target.id).text(text);
13
- }
14
- },
15
- handleUpdateParameters: function() {
16
- var resource = this.props.resource;
17
- delete resource["parameters"];
18
-
19
- if(resource.continuous != undefined) {
20
- if(resource.continuous.x != undefined) {
21
- var number = parseFloat($("#"+this.props.resource.rid+"_parameter_x").attr("v"));
22
- if(!isNaN(number))
23
- resource.continuous.x = number;
24
- }
25
- if(resource.continuous.y != undefined) {
26
- var number = parseFloat($("#"+this.props.resource.rid+"_parameter_y").attr("v"));
27
- if(!isNaN(number))
28
- resource.continuous.y = number;
29
- }
30
- }
31
-
32
- if(resource.discrete != undefined) {
33
- if(resource.discrete.x != undefined) {
34
- var value = $("#"+this.props.resource.rid+"_parameter_x").attr("v");
35
- value = value || $("#"+this.props.resource.rid+"_parameter_x").attr("value");
36
- var number = parseFloat(value);
37
- if(!isNaN(number))
38
- resource.discrete.x = number;
39
- else if(value.length > 0)
40
- resource.discrete.x = value;
41
- }
42
- if(resource.discrete.y != undefined) {
43
- var value = $("#"+this.props.resource.rid+"_parameter_y").attr("v");
44
- value = value || $("#"+this.props.resource.rid+"_parameter_y").attr("value");
45
- var number = parseFloat(value);
46
- if(!isNaN(number))
47
- resource.discrete.y = number;
48
- else if(value.length > 0)
49
- resource.discrete.y = value;
50
- }
51
- }
52
-
53
- if(resource.proximity_range != undefined) {
54
- var number = parseFloat($("#"+this.props.resource.rid+"_parameter_proximity").attr("v"));
55
- if(!isNaN(number))
56
- resource.proximity_range = number;
57
- else
58
- $("#"+this.props.resource.rid+"_parameter_proximity").val(resource.proximity_range);
59
- }
60
- this.props.updateResource(resource);
61
- },
62
- handleContinousPressed: function() {
63
- var resource = this.props.resource;
64
- delete resource["discrete"];
65
- delete resource["proximity"];
66
- delete resource["parameters"];
67
- resource.continuous = {
68
- x: this.props.room.x/2,
69
- y: this.props.room.y/2
70
- };
71
- this.props.updateResource(resource);
72
- },
73
- handleDiscretePressed: function() {
74
- var resource = this.props.resource;
75
- delete resource["parameters"];
76
- delete resource["continuous"];
77
- delete resource["proximity"];
78
- resource.discrete = {
79
- x: 0,
80
- y: 0
81
- };
82
- this.props.updateResource(resource);
83
- },
84
- handleProximityPressed: function() {
85
- var resource = this.props.resource;
86
- delete resource["parameters"];
87
- delete resource["continuous"];
88
- delete resource["discrete"];
89
- resource.proximity = {};
90
- this.props.updateResource(resource);
91
- },
92
- handleDisablePressed: function() {
93
- var resource = this.props.resource;
94
- delete resource["continuous"];
95
- delete resource["discrete"];
96
- delete resource["parameters"];
97
- this.props.updateResource(resource);
98
- },
99
- handleDeletePressed: function() {
100
- this.props.removeResource(this.props.resource);
101
- },
102
- handleStaticPressed: function() {
103
- var resource = this.props.resource;
104
- delete resource["parameters"];
105
- if(resource.type == "STATIC")
106
- return;
107
-
108
- resource.type = "STATIC";
109
- resource.proximity_range = 1;
110
- delete resource["proximity"];
111
- delete resource["parameters"];
112
- this.props.updateResource(resource);
113
- },
114
- handleDynamicPressed: function() {
115
- var resource = this.props.resource;
116
- delete resource["parameters"];
117
- if(resource.type == "DYNAMIC")
118
- return;
119
-
120
- resource.type = "DYNAMIC";
121
- delete resource["proximity_range"];
122
- this.props.updateResource(resource);
123
- },
124
- handleAddKey: function() {
125
- var key = this.refs.key.getDOMNode().value.trim();
126
- var value = this.refs.value.getDOMNode().value.trim();
127
-
128
- this.refs.key.getDOMNode().value = "";
129
- this.refs.value.getDOMNode().value = "";
130
-
131
- var resource = this.props.resource;
132
-
133
- resource.parameters = [];
134
-
135
- resource.parameters.push({key: key, value: value});
136
-
137
- this.props.updateResource(resource);
138
- },
139
- handleKeyEnterPressed: function(event) {
140
- // Pressed return
141
- if(event.which == 13) {
142
- this.handleAddKey();
143
- }
144
- },
145
- handleModifyKey: function(name, _key, _value) {
146
- var key, value, prev_key = undefined;
147
-
148
- var resource = this.props.resource;
149
-
150
- switch(name) {
151
- case "key":
152
- key = _value;
153
- prev_key = _key;
154
- value = resource.parameters[prev_key];
155
- break;
156
- case "value":
157
- prev_key = _key;
158
- key = _key;
159
- value = _value;
160
- break;
161
- }
162
-
163
- /*
164
- if(key == "") {
165
- $("#" + event.target.id.substring(0, event.target.id.length - 1) + "k").focus();
166
- return;
167
- }
168
- if(value == "") {
169
- $("#" + event.target.id.substring(0, event.target.id.length - 1) + "v").focus();
170
- return;
171
- }
172
- */
173
-
174
-
175
- resource.parameters = [];
176
-
177
- resource.parameters.push({key: prev_key, delete: true});
178
- resource.parameters.push({key: key, value: value});
179
-
180
- this.props.updateResource(resource);
181
- },
182
- handleDeleteKey: function(event) {
183
- var key = event.target.id;
184
-
185
- var resource = this.props.resource;
186
-
187
- resource.parameters = [];
188
-
189
- resource.parameters.push({key: key, delete: true});
190
-
191
- this.props.updateResource(resource);
192
- },
193
- render: function () {
194
- var self = this;
195
-
196
- var parameters = [];
197
-
198
- if(this.props.resource.continuous != undefined ) {
199
-
200
- if(this.props.resource.continuous.x != undefined) {
201
- parameters.push({key: "x", value: parseFloat(this.props.resource.continuous.x).toFixed(2)});
202
- }
203
-
204
- if(this.props.resource.continuous.y != undefined) {
205
- parameters.push({key: "y", value: parseFloat(this.props.resource.continuous.y).toFixed(2)});
206
- }
207
- }
208
-
209
- if(this.props.resource.discrete != undefined ) {
210
-
211
- if(this.props.resource.discrete.x != undefined) {
212
- var value = this.props.resource.discrete.x;
213
-
214
- if(!isNaN(parseInt(value))) {
215
- // Reduce precision
216
- value = parseInt(value);
217
- }
218
-
219
- parameters.push({key: "x", value: value});
220
- }
221
-
222
- if(this.props.resource.discrete.y != undefined) {
223
- var value = this.props.resource.discrete.y;
224
-
225
- if(!isNaN(parseInt(value))) {
226
- // Reduce precision
227
- value = parseInt(value);
228
- }
229
-
230
- parameters.push({key: "y", value: value});
231
- }
232
- }
233
-
234
- if(this.props.resource.proximity_range != undefined) {
235
- parameters.push({key: "proximity", value: parseFloat(this.props.resource.proximity_range).toFixed(2)});
236
- }
237
-
238
-
239
-
240
- var parameterRows = parameters.map(function (parameter, index) {
241
- return(
242
- <tr>
243
- <td className="col-md-6 col-sm-6 col-xs-6"><span>{parameter.key}</span></td>
244
- <td className="col-md-6 col-sm-6 col-xs-6">
245
- <InteractiveLabel
246
- id={self.props.resource.rid+"_parameter_"+parameter.key}
247
- onKeyPress={self.handleParameterChange}
248
- onValueChange={self.handleUpdateParameters}
249
- labelValue={parameter.value}
250
- labelKey={parameter.key}/>
251
- </td>
252
- </tr>
253
- );
254
- });
255
-
256
- var parameterTable =
257
- <table className="table table-bordered table-striped table-hover" id="resource_table">
258
- <thead>
259
- <tr>
260
- <td className="col-md-6 col-sm-6 col-xs-6">Variable</td>
261
- <td className="col-md-6 col-sm-6 col-xs-6">Value</td>
262
- </tr>
263
- </thead>
264
- <tbody>
265
- {parameterRows}
266
- </tbody>
267
- </table>;
268
-
269
- if(parameterRows.length == 0)
270
- parameterTable = [];
271
-
272
- var keyValueRows = [];
273
-
274
- if(this.props.resource.parameters != undefined) {
275
- keyValueRows = Object.keys(this.props.resource.parameters).map(function (key, index) {
276
- return (
277
- <tr>
278
- <td className="col-md-6 key-values">
279
- <InteractiveLabel
280
- id={self.props.resource.rid+"_"+key+"_k"}
281
- onKeyPress={self.handleParameterChange}
282
- onValueChange={self.handleModifyKey}
283
- labelName="key"
284
- labelValue={key}
285
- labelKey={key}/>
286
- </td>
287
- <td className="col-md-6 key-values">
288
- <InteractiveLabel
289
- id={self.props.resource.rid+"_"+key+"_k"}
290
- onKeyPress={self.handleParameterChange}
291
- onValueChange={self.handleModifyKey}
292
- labelName="value"
293
- labelValue={self.props.resource.parameters[key]}
294
- labelKey={key}/>
295
- <button
296
- type="button"
297
- onClick={self.handleDeleteKey}
298
- id={key} className="btn btn-default btn-xs right">
299
- <span className="glyphicon glyphicon-remove" id={key} aria-hidden="true"></span>
300
- </button>
301
- </td>
302
- </tr>
303
- );
304
- });
305
- }
306
-
307
- var type = "";
308
-
309
- if(this.props.resource.type == "STATIC") {
310
- type = <b>S</b>;
311
- }
312
- else if(this.props.resource.type == "DYNAMIC") {
313
- type = <b>D</b>;
314
- }
315
-
316
- var trackingSystem = "";
317
-
318
- if(this.props.resource.continuous != undefined) {
319
- trackingSystem = <i className="fa fa-arrows fa-fw"></i>;
320
- }
321
- else if(this.props.resource.discrete != undefined) {
322
- trackingSystem = <i className="fa fa-th-large fa-fw"></i>;
323
- }
324
- else if(this.props.resource.proximity != undefined) {
325
- trackingSystem = <i className="fa fa-location-arrow fa-fw"></i>;
326
- }
327
- else {
328
- trackingSystem = <i className="fa fa-ban fa-fw"></i>;
329
- }
330
-
331
- var model = "";
332
- switch(this.props.resource.model) {
333
- case "IMAC":
334
- model = "icon-iMac";
335
- break;
336
- case "IPHONE":
337
- model = "icon-iPhone";
338
- break;
339
- case "IPAD":
340
- model = "icon-iPad";
341
- break;
342
- case "IBEACON":
343
- model = "icon-iBeacon";
344
- break;
345
- case "ADISPLAY":
346
- model = "icon-aDisplay";
347
- break;
348
- case "TTABLE":
349
- model = "icon-tTable";
350
- break;
351
- case "OTHER":
352
- model = "icon-other";
353
- break;
354
- }
355
-
356
- var proximity = {};
357
- if(this.props.resource.type == "DYNAMIC")
358
- proximity = <li onClick={this.handleProximityPressed}><a href="#"><i className="fa fa-location-arrow fa-fw"></i> Proximity</a></li>;
359
-
360
- return(
361
-
362
- <tr>
363
- <td className="col-md-12 col-sm-12 col-xs-12">
364
- <div className="col-md-4 col-sm-4 col-xs-4">
365
- <div className="vertical-center">
366
- <span className={model} style={{fontSize: "20"}}></span>
367
- <span> {this.props.resource.rid}</span>
368
- </div>
369
- </div>
370
-
371
- <div className="col-md-8 col-sm-8 col-xs-8 right">
372
- <div className="btn-group">
373
- <a className="btn btn-default" href="#">{trackingSystem}</a>
374
- <a className="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
375
- <span className="fa fa-caret-down"></span></a>
376
- <ul className="dropdown-menu">
377
- <li onClick={this.handleContinousPressed}><a href="#"><i className="fa fa-arrows fa-fw"></i> Continuous</a></li>
378
- <li onClick={this.handleDiscretePressed}><a href="#"><i className="fa fa-th-large fa-fw"></i> Discrete</a></li>
379
- {proximity}
380
- {/*<li onClick={this.handleDisablePressed}><a href="#"><i className="fa fa-ban fa-fw"></i> Disable</a></li>*/}
381
- <li className="divider"></li>
382
- <li onClick={this.handleDeletePressed}><a href="#"><i className="fa fa-trash-o fa-fw"></i> Delete</a></li>
383
- </ul>
384
- </div>
385
-
386
- <div className="btn-group" role="group">
387
- <div className="btn-group" role="group">
388
- <button type="button" className="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
389
- {type}
390
- <span className="caret"></span>
391
- </button>
392
- <ul className="dropdown-menu" role="menu">
393
- <li onClick={this.handleStaticPressed}><a href="#"><b>S</b> Static</a></li>
394
- <li onClick={this.handleDynamicPressed}><a href="#"><b>D</b> Dynamic</a></li>
395
- </ul>
396
- </div>
397
- </div>
398
-
399
- <div className="right" data-toggle="collapse" data-target={"#collapse-"+this.props.resource.rid}>
400
- <button type="button" className="btn btn-default"><span className="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></button>
401
- </div>
402
- </div>
403
-
404
- <div className="collapse" id={"collapse-"+this.props.resource.rid}>
405
- <div style={{"padding": "20px"}}>
406
- {parameterTable}
407
- <table className="table table-bordered table-striped table-hover" id="resource_table">
408
- <thead>
409
- <tr>
410
- <td className="col-md-6 col-sm-6 col-xs-6">Key</td>
411
- <td className="col-md-6 col-sm-6 col-xs-6">Value</td>
412
- </tr>
413
- </thead>
414
- <tbody>
415
- {keyValueRows}
416
- <tr>
417
- <form onSubmit={this.handleAddKey}>
418
- <td className="col-md-6"><input onKeyPress={this.handleKeyEnterPressed} type="text" className="form-control" placeholder="key" ref="key" /></td>
419
- <td className="col-md-6"><input onKeyPress={this.handleKeyEnterPressed} type="text" className="form-control" placeholder="value" ref="value"/></td>
420
- </form>
421
- </tr>
422
- </tbody>
423
- </table>
424
- </div>
425
- </div>
426
-
427
- </td>
428
- </tr>
429
- );
430
-
431
- }
432
- });
433
-