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.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/framework_components/order.json +1 -6
- data/nutella_framework.gemspec +7 -507
- metadata +5 -505
- data/framework_components/beacon-cloud-bot/README.md +0 -27
- data/framework_components/beacon-cloud-bot/beacon_cloud_bot.rb +0 -150
- data/framework_components/beacon-cloud-bot/beacons.json +0 -1
- data/framework_components/beacon-cloud-bot/startup +0 -5
- data/framework_components/logging_bot/logging_bot.rb +0 -42
- data/framework_components/logging_bot/startup +0 -5
- data/framework_components/logging_bot/utils.rb +0 -8
- data/framework_components/monitoring-bot/.gitignore +0 -34
- data/framework_components/monitoring-bot/README.md +0 -1
- data/framework_components/monitoring-bot/monitoring-bot.rb +0 -472
- data/framework_components/monitoring-bot/nutella.json +0 -6
- data/framework_components/monitoring-bot/startup +0 -6
- data/framework_components/monitoring-interface/.gitignore +0 -2
- data/framework_components/monitoring-interface/README.md +0 -1
- data/framework_components/monitoring-interface/bower.json +0 -29
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/.bower.json +0 -23
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/bower.json +0 -14
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/readme.md +0 -4
- data/framework_components/monitoring-interface/bower_components/nutella_lib/.bower.json +0 -37
- data/framework_components/monitoring-interface/bower_components/nutella_lib/LICENSE +0 -21
- data/framework_components/monitoring-interface/bower_components/nutella_lib/README.md +0 -15
- data/framework_components/monitoring-interface/bower_components/nutella_lib/bower.json +0 -28
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
- data/framework_components/monitoring-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
- data/framework_components/monitoring-interface/bower_components/nutella_lib/package.json +0 -30
- data/framework_components/monitoring-interface/css/Monitoring Interface.html +0 -215
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/animations.js +0 -27
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/application-view-controller.js +0 -232
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js +0 -61
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js +0 -7
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/cursor.css +0 -7
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/d3.v3.min.js +0 -5
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/graphics.js +0 -156
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js +0 -103
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js +0 -2
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/instance-view-controller.js +0 -104
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js +0 -6
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js +0 -63
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js +0 -14
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/page.css +0 -33
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js +0 -175
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/tab-table.js +0 -8
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.css +0 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.js +0 -320
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css +0 -10
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js +0 -426
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-element.js +0 -205
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js +0 -94
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-tab.js +0 -229
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js +0 -5
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js +0 -68
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/window-view-controller.js +0 -169
- data/framework_components/monitoring-interface/css/alerts.css +0 -3
- data/framework_components/monitoring-interface/css/bootstrap.min.css +0 -5
- data/framework_components/monitoring-interface/css/cursor.css +0 -7
- data/framework_components/monitoring-interface/css/highlight.default.min.css +0 -1
- data/framework_components/monitoring-interface/css/page.css +0 -41
- data/framework_components/monitoring-interface/css/ui-application.css +0 -0
- data/framework_components/monitoring-interface/css/ui-connection-view.css +0 -10
- data/framework_components/monitoring-interface/css/ui-legend-view.css +0 -7
- data/framework_components/monitoring-interface/data/alert.json +0 -8
- data/framework_components/monitoring-interface/data/data.json +0 -2118
- data/framework_components/monitoring-interface/data/data2.json +0 -814
- data/framework_components/monitoring-interface/data/data3.json +0 -823
- data/framework_components/monitoring-interface/data/data4.json +0 -848
- data/framework_components/monitoring-interface/data/message.json +0 -999
- data/framework_components/monitoring-interface/gulpfile.js +0 -29
- data/framework_components/monitoring-interface/img/arrow_white.svg +0 -120
- data/framework_components/monitoring-interface/img/arrow_white_right.svg +0 -104
- data/framework_components/monitoring-interface/img/back.svg +0 -164
- data/framework_components/monitoring-interface/img/cross_red_border_white.svg +0 -143
- data/framework_components/monitoring-interface/img/cross_red_border_white_mouseover.svg +0 -143
- data/framework_components/monitoring-interface/img/email.svg +0 -89
- data/framework_components/monitoring-interface/img/email_highlighted.svg +0 -89
- data/framework_components/monitoring-interface/index.html +0 -144
- data/framework_components/monitoring-interface/js/d3/layout/grid-layout.js +0 -103
- data/framework_components/monitoring-interface/js/d3/layout/radial-layout.js +0 -184
- data/framework_components/monitoring-interface/js/d3/plugin/graphics.js +0 -156
- data/framework_components/monitoring-interface/js/d3/plugin/tab-table.js +0 -8
- data/framework_components/monitoring-interface/js/d3/ui/animations.js +0 -27
- data/framework_components/monitoring-interface/js/d3/ui/ui-application.js +0 -471
- data/framework_components/monitoring-interface/js/d3/ui/ui-connection-view.js +0 -861
- data/framework_components/monitoring-interface/js/d3/ui/ui-element.js +0 -245
- data/framework_components/monitoring-interface/js/d3/ui/ui-legend.js +0 -174
- data/framework_components/monitoring-interface/js/d3/ui/ui-notification.js +0 -90
- data/framework_components/monitoring-interface/js/d3/ui/ui-tab.js +0 -309
- data/framework_components/monitoring-interface/js/lib/JSXTransformer-0.12.2.js +0 -15199
- data/framework_components/monitoring-interface/js/lib/bootstrap.min.js +0 -7
- data/framework_components/monitoring-interface/js/lib/d3.v3.min.js +0 -5
- data/framework_components/monitoring-interface/js/lib/highlight.min.js +0 -2
- data/framework_components/monitoring-interface/js/lib/jquery-1.10.0.min.js +0 -6
- data/framework_components/monitoring-interface/js/lib/nutella_lib.js +0 -5121
- data/framework_components/monitoring-interface/js/lib/react-with-addons-0.12.2.js +0 -19822
- data/framework_components/monitoring-interface/js/lib/underscore-min.js +0 -5
- data/framework_components/monitoring-interface/js/model/alerts-model.js +0 -74
- data/framework_components/monitoring-interface/js/model/applications-model.js +0 -78
- data/framework_components/monitoring-interface/js/model/messages-model.js +0 -112
- data/framework_components/monitoring-interface/js/notification/notification-center.js +0 -63
- data/framework_components/monitoring-interface/js/notification/notifications.js +0 -21
- data/framework_components/monitoring-interface/js/react/dist/ui-alerts.js +0 -178
- data/framework_components/monitoring-interface/js/react/dist/ui-message-send.js +0 -389
- data/framework_components/monitoring-interface/js/react/dist/ui-messages.js +0 -103
- data/framework_components/monitoring-interface/js/react/src/ui-alerts.js +0 -178
- data/framework_components/monitoring-interface/js/react/src/ui-message-send.js +0 -389
- data/framework_components/monitoring-interface/js/react/src/ui-messages.js +0 -103
- data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js +0 -259
- data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js +0 -112
- data/framework_components/monitoring-interface/js/view-controller/view-controller.js +0 -74
- data/framework_components/monitoring-interface/js/view-controller/window-view-controller.js +0 -169
- data/framework_components/monitoring-interface/nutella.json +0 -6
- data/framework_components/room-places-beacon-cloud-interface/LICENSE +0 -21
- data/framework_components/room-places-beacon-cloud-interface/Readme.md +0 -0
- data/framework_components/room-places-beacon-cloud-interface/bower.json +0 -29
- data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/.bower.json +0 -23
- data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/bower.json +0 -14
- data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
- data/framework_components/room-places-beacon-cloud-interface/bower_components/bower-mqttws/readme.md +0 -4
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/.bower.json +0 -37
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/LICENSE +0 -21
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/README.md +0 -15
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/bower.json +0 -28
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/package.json +0 -30
- data/framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/simple-js-mqtt-client.js +0 -428
- data/framework_components/room-places-beacon-cloud-interface/css/animation.css +0 -17
- data/framework_components/room-places-beacon-cloud-interface/css/cursor.css +0 -16
- data/framework_components/room-places-beacon-cloud-interface/css/page_layout.css +0 -73
- data/framework_components/room-places-beacon-cloud-interface/index.html +0 -157
- data/framework_components/room-places-beacon-cloud-interface/js/lib/nutella_lib.js +0 -5121
- data/framework_components/room-places-beacon-cloud-interface/js/react/beacon-add.js +0 -102
- data/framework_components/room-places-beacon-cloud-interface/js/react/beacon-table.js +0 -73
- data/framework_components/room-places-beacon-cloud-interface/js/react/beacon.js +0 -97
- data/framework_components/room-places-beacon-cloud-interface/nutella.json +0 -6
- data/framework_components/room-places-bot/.gitignore +0 -4
- data/framework_components/room-places-bot/Gemfile +0 -3
- data/framework_components/room-places-bot/README.md +0 -66
- data/framework_components/room-places-bot/nutella.json +0 -6
- data/framework_components/room-places-bot/room_places_bot.rb +0 -766
- data/framework_components/room-places-bot/startup +0 -6
- data/framework_components/room-places-bot/virtual_beacons.rb +0 -124
- data/framework_components/room-places-interface/.gitignore +0 -3
- data/framework_components/room-places-interface/LICENSE +0 -21
- data/framework_components/room-places-interface/Readme.md +0 -0
- data/framework_components/room-places-interface/bower.json +0 -29
- data/framework_components/room-places-interface/bower_components/bower-mqttws/.bower.json +0 -23
- data/framework_components/room-places-interface/bower_components/bower-mqttws/bower.json +0 -14
- data/framework_components/room-places-interface/bower_components/bower-mqttws/mqttws31.js +0 -2081
- data/framework_components/room-places-interface/bower_components/bower-mqttws/readme.md +0 -4
- data/framework_components/room-places-interface/bower_components/nutella_lib/.bower.json +0 -37
- data/framework_components/room-places-interface/bower_components/nutella_lib/LICENSE +0 -21
- data/framework_components/room-places-interface/bower_components/nutella_lib/README.md +0 -15
- data/framework_components/room-places-interface/bower_components/nutella_lib/bower.json +0 -28
- data/framework_components/room-places-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +0 -23
- data/framework_components/room-places-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +0 -52
- data/framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +0 -14
- data/framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +0 -38
- data/framework_components/room-places-interface/bower_components/nutella_lib/nutella_lib.js +0 -789
- data/framework_components/room-places-interface/bower_components/nutella_lib/package.json +0 -30
- data/framework_components/room-places-interface/css/animation.css +0 -22
- data/framework_components/room-places-interface/css/bootstrap.min.css +0 -5
- data/framework_components/room-places-interface/css/cursor.css +0 -22
- data/framework_components/room-places-interface/css/font-awesome/css/font-awesome.css +0 -1801
- data/framework_components/room-places-interface/css/font-awesome/css/font-awesome.min.css +0 -4
- data/framework_components/room-places-interface/css/font-awesome/fonts/FontAwesome.otf +0 -0
- data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.svg +0 -565
- data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/framework_components/room-places-interface/css/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/framework_components/room-places-interface/css/font-awesome/less/animated.less +0 -34
- data/framework_components/room-places-interface/css/font-awesome/less/bordered-pulled.less +0 -16
- data/framework_components/room-places-interface/css/font-awesome/less/core.less +0 -13
- data/framework_components/room-places-interface/css/font-awesome/less/fixed-width.less +0 -6
- data/framework_components/room-places-interface/css/font-awesome/less/font-awesome.less +0 -17
- data/framework_components/room-places-interface/css/font-awesome/less/icons.less +0 -596
- data/framework_components/room-places-interface/css/font-awesome/less/larger.less +0 -13
- data/framework_components/room-places-interface/css/font-awesome/less/list.less +0 -19
- data/framework_components/room-places-interface/css/font-awesome/less/mixins.less +0 -27
- data/framework_components/room-places-interface/css/font-awesome/less/path.less +0 -15
- data/framework_components/room-places-interface/css/font-awesome/less/rotated-flipped.less +0 -20
- data/framework_components/room-places-interface/css/font-awesome/less/stacked.less +0 -20
- data/framework_components/room-places-interface/css/font-awesome/less/variables.less +0 -606
- data/framework_components/room-places-interface/css/font-awesome/scss/_animated.scss +0 -34
- data/framework_components/room-places-interface/css/font-awesome/scss/_bordered-pulled.scss +0 -16
- data/framework_components/room-places-interface/css/font-awesome/scss/_core.scss +0 -13
- data/framework_components/room-places-interface/css/font-awesome/scss/_fixed-width.scss +0 -6
- data/framework_components/room-places-interface/css/font-awesome/scss/_icons.scss +0 -596
- data/framework_components/room-places-interface/css/font-awesome/scss/_larger.scss +0 -13
- data/framework_components/room-places-interface/css/font-awesome/scss/_list.scss +0 -19
- data/framework_components/room-places-interface/css/font-awesome/scss/_mixins.scss +0 -27
- data/framework_components/room-places-interface/css/font-awesome/scss/_path.scss +0 -15
- data/framework_components/room-places-interface/css/font-awesome/scss/_rotated-flipped.scss +0 -20
- data/framework_components/room-places-interface/css/font-awesome/scss/_stacked.scss +0 -20
- data/framework_components/room-places-interface/css/font-awesome/scss/_variables.scss +0 -606
- data/framework_components/room-places-interface/css/font-awesome/scss/font-awesome.scss +0 -17
- data/framework_components/room-places-interface/css/icomoon.css +0 -57
- data/framework_components/room-places-interface/css/page_layout.css +0 -82
- data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.eot +0 -0
- data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.svg +0 -288
- data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.woff +0 -0
- data/framework_components/room-places-interface/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/framework_components/room-places-interface/fonts/icomoon.eot +0 -0
- data/framework_components/room-places-interface/fonts/icomoon.svg +0 -17
- data/framework_components/room-places-interface/fonts/icomoon.ttf +0 -0
- data/framework_components/room-places-interface/fonts/icomoon.woff +0 -0
- data/framework_components/room-places-interface/gulpfile.js +0 -24
- data/framework_components/room-places-interface/index.html +0 -73
- data/framework_components/room-places-interface/index2.html +0 -1753
- data/framework_components/room-places-interface/js/component.js +0 -438
- data/framework_components/room-places-interface/js/lib/JSXTransformer-0.12.2.js +0 -15199
- data/framework_components/room-places-interface/js/lib/bootstrap.min.js +0 -7
- data/framework_components/room-places-interface/js/lib/d3.v3.min.js +0 -5
- data/framework_components/room-places-interface/js/lib/jquery-1.10.0.min.js +0 -6
- data/framework_components/room-places-interface/js/lib/nutella_lib.js +0 -4145
- data/framework_components/room-places-interface/js/lib/react-with-addons-0.12.2.js +0 -19822
- data/framework_components/room-places-interface/js/lib/underscore.js +0 -6
- data/framework_components/room-places-interface/js/map.js +0 -1593
- data/framework_components/room-places-interface/js/position.js +0 -6
- data/framework_components/room-places-interface/js/react/dist/beacon.js +0 -30
- data/framework_components/room-places-interface/js/react/dist/discrete.js +0 -282
- data/framework_components/room-places-interface/js/react/dist/interactive-label.js +0 -54
- data/framework_components/room-places-interface/js/react/dist/resource-add.js +0 -203
- data/framework_components/room-places-interface/js/react/dist/resource-table.js +0 -227
- data/framework_components/room-places-interface/js/react/dist/resource.js +0 -433
- data/framework_components/room-places-interface/js/react/src/beacon.js +0 -30
- data/framework_components/room-places-interface/js/react/src/discrete.js +0 -282
- data/framework_components/room-places-interface/js/react/src/interactive-label.js +0 -54
- data/framework_components/room-places-interface/js/react/src/resource-add.js +0 -203
- data/framework_components/room-places-interface/js/react/src/resource-table.js +0 -227
- data/framework_components/room-places-interface/js/react/src/resource.js +0 -433
- data/framework_components/room-places-interface/js/room.js +0 -65
- data/framework_components/room-places-interface/nutella.json +0 -6
- data/framework_components/roomcast-bot/data/default/channels.json +0 -1
- data/framework_components/roomcast-bot/data/default/configs.json +0 -1
- data/framework_components/roomcast-bot/roomcast_bot.rb +0 -284
- data/framework_components/roomcast-bot/startup +0 -6
- data/framework_components/roomcast-channel-creator/.gitignore +0 -2
- data/framework_components/roomcast-channel-creator/README.md +0 -9
- data/framework_components/roomcast-channel-creator/dist/app.js +0 -44376
- data/framework_components/roomcast-channel-creator/dist/css/font-awesome.min.css +0 -4
- data/framework_components/roomcast-channel-creator/dist/css/ionicons.min.css +0 -11
- data/framework_components/roomcast-channel-creator/dist/fonts/FontAwesome.otf +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.eot +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.svg +0 -565
- data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.ttf +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.woff +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/fontawesome-webfont.woff2 +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.svg +0 -2230
- data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.ttf +0 -0
- data/framework_components/roomcast-channel-creator/dist/fonts/ionicons.woff +0 -0
- data/framework_components/roomcast-channel-creator/dist/main.css +0 -3310
- data/framework_components/roomcast-channel-creator/dist/nutella_lib.js +0 -5128
- data/framework_components/roomcast-channel-creator/gulp/config.js +0 -51
- data/framework_components/roomcast-channel-creator/gulp/tasks/browserify.js +0 -77
- data/framework_components/roomcast-channel-creator/gulp/tasks/build.js +0 -3
- data/framework_components/roomcast-channel-creator/gulp/tasks/css.js +0 -7
- data/framework_components/roomcast-channel-creator/gulp/tasks/default.js +0 -3
- data/framework_components/roomcast-channel-creator/gulp/tasks/fonts.js +0 -7
- data/framework_components/roomcast-channel-creator/gulp/tasks/less.js +0 -16
- data/framework_components/roomcast-channel-creator/gulp/tasks/mui-fonts.js +0 -7
- data/framework_components/roomcast-channel-creator/gulp/tasks/nutella.js +0 -7
- data/framework_components/roomcast-channel-creator/gulp/tasks/setWatch.js +0 -5
- data/framework_components/roomcast-channel-creator/gulp/tasks/svgs.js +0 -7
- data/framework_components/roomcast-channel-creator/gulp/tasks/watch.js +0 -12
- data/framework_components/roomcast-channel-creator/gulp/util/bundleLogger.js +0 -21
- data/framework_components/roomcast-channel-creator/gulp/util/handleErrors.js +0 -15
- data/framework_components/roomcast-channel-creator/gulpfile.js +0 -16
- data/framework_components/roomcast-channel-creator/index.html +0 -40
- data/framework_components/roomcast-channel-creator/nutella.json +0 -6
- data/framework_components/roomcast-channel-creator/package.json +0 -38
- data/framework_components/roomcast-channel-creator/roomcast-default.png +0 -0
- data/framework_components/roomcast-channel-creator/src/app/app.js +0 -28
- data/framework_components/roomcast-channel-creator/src/app/components/AnimationMixin.js +0 -44
- data/framework_components/roomcast-channel-creator/src/app/components/CataloguePage.js +0 -148
- data/framework_components/roomcast-channel-creator/src/app/components/Channel.js +0 -406
- data/framework_components/roomcast-channel-creator/src/app/components/ColorCell.js +0 -28
- data/framework_components/roomcast-channel-creator/src/app/components/ColorPicker.js +0 -53
- data/framework_components/roomcast-channel-creator/src/app/components/DetailPage.js +0 -66
- data/framework_components/roomcast-channel-creator/src/app/components/NutellaMixin.js +0 -40
- data/framework_components/roomcast-channel-creator/src/app/components/PageSliderMixin.js +0 -68
- data/framework_components/roomcast-channel-creator/src/app/components/Router.js +0 -52
- data/framework_components/roomcast-channel-creator/src/app/components/TopBar.js +0 -86
- data/framework_components/roomcast-channel-creator/src/app/components/UploadingScreen.js +0 -74
- data/framework_components/roomcast-channel-creator/src/app/components/main.js +0 -342
- data/framework_components/roomcast-channel-creator/src/css/font-awesome.min.css +0 -4
- data/framework_components/roomcast-channel-creator/src/css/ionicons.min.css +0 -11
- data/framework_components/roomcast-channel-creator/src/fonts/FontAwesome.otf +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.eot +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.svg +0 -565
- data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.ttf +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.woff +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/fontawesome-webfont.woff2 +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/ionicons.svg +0 -2230
- data/framework_components/roomcast-channel-creator/src/fonts/ionicons.ttf +0 -0
- data/framework_components/roomcast-channel-creator/src/fonts/ionicons.woff +0 -0
- data/framework_components/roomcast-channel-creator/src/less/main.less +0 -506
- data/framework_components/roomcast-channel-creator/src/less/my_overrides.less +0 -14
- data/framework_components/roomcast-channel-creator/upload.svg +0 -216
- data/framework_components/roomcast-main-app/.gitignore +0 -2
- data/framework_components/roomcast-main-app/README.md +0 -9
- data/framework_components/roomcast-main-app/dist/LICENSE +0 -21
- data/framework_components/roomcast-main-app/dist/app.js +0 -54373
- data/framework_components/roomcast-main-app/dist/assets/Logo.png +0 -0
- data/framework_components/roomcast-main-app/dist/assets/Logo_alpha.png +0 -0
- data/framework_components/roomcast-main-app/dist/assets/Logo_grid.svg +0 -216
- data/framework_components/roomcast-main-app/dist/css/ionicons.min.css +0 -11
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.svg +0 -2230
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.ttf +0 -0
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.woff +0 -0
- data/framework_components/roomcast-main-app/dist/main.css +0 -3234
- data/framework_components/roomcast-main-app/gulp/config.js +0 -47
- data/framework_components/roomcast-main-app/gulp/tasks/browserify.js +0 -77
- data/framework_components/roomcast-main-app/gulp/tasks/build.js +0 -3
- data/framework_components/roomcast-main-app/gulp/tasks/css.js +0 -7
- data/framework_components/roomcast-main-app/gulp/tasks/default.js +0 -3
- data/framework_components/roomcast-main-app/gulp/tasks/fonts.js +0 -7
- data/framework_components/roomcast-main-app/gulp/tasks/less.js +0 -16
- data/framework_components/roomcast-main-app/gulp/tasks/markup.js +0 -7
- data/framework_components/roomcast-main-app/gulp/tasks/setWatch.js +0 -5
- data/framework_components/roomcast-main-app/gulp/tasks/svgs.js +0 -7
- data/framework_components/roomcast-main-app/gulp/tasks/watch.js +0 -12
- data/framework_components/roomcast-main-app/gulp/util/bundleLogger.js +0 -21
- data/framework_components/roomcast-main-app/gulp/util/handleErrors.js +0 -15
- data/framework_components/roomcast-main-app/gulpfile.js +0 -16
- data/framework_components/roomcast-main-app/index.html +0 -37
- data/framework_components/roomcast-main-app/nutella.json +0 -6
- data/framework_components/roomcast-main-app/package.json +0 -47
- data/framework_components/roomcast-main-app/roomcast-default.png +0 -0
- data/framework_components/roomcast-main-app/src/app/app.js +0 -15
- data/framework_components/roomcast-main-app/src/app/components/NutellaMixin.js +0 -56
- data/framework_components/roomcast-main-app/src/app/components/app/Channel.js +0 -68
- data/framework_components/roomcast-main-app/src/app/components/app/Player.js +0 -139
- data/framework_components/roomcast-main-app/src/app/components/app/iOSMixin.js +0 -22
- data/framework_components/roomcast-main-app/src/app/components/app/main.js +0 -567
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu-item.jsx +0 -79
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu.jsx +0 -177
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/overlay.jsx +0 -21
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/right-nav.jsx +0 -108
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentitiesGrid.js +0 -95
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentityCard.js +0 -103
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/iOSMixin.js +0 -19
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/main.js +0 -109
- data/framework_components/roomcast-main-app/src/app/components/login/AppIdPage.js +0 -97
- data/framework_components/roomcast-main-app/src/app/components/login/BrokerPage.js +0 -139
- data/framework_components/roomcast-main-app/src/app/components/login/IdentitiesGrid.js +0 -93
- data/framework_components/roomcast-main-app/src/app/components/login/IdentityCard.js +0 -99
- data/framework_components/roomcast-main-app/src/app/components/login/RunIdPage.js +0 -78
- data/framework_components/roomcast-main-app/src/app/components/login/iOSMixin.js +0 -23
- data/framework_components/roomcast-main-app/src/app/components/login/main.js +0 -125
- data/framework_components/roomcast-main-app/src/app/components/main.js +0 -64
- data/framework_components/roomcast-main-app/src/less/main.less +0 -365
- data/framework_components/roomcast-main-app/src/less/my_overrides.less +0 -53
- data/framework_components/roomcast-main-app/src/less/right-nav.less +0 -31
- data/framework_components/roomcast-package-creator/.gitignore +0 -2
- data/framework_components/roomcast-package-creator/README.md +0 -9
- data/framework_components/roomcast-package-creator/dist/app.js +0 -51196
- data/framework_components/roomcast-package-creator/dist/css/font-awesome.min.css +0 -4
- data/framework_components/roomcast-package-creator/dist/css/ionicons.min.css +0 -11
- data/framework_components/roomcast-package-creator/dist/fonts/FontAwesome.otf +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.eot +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.svg +0 -565
- data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.ttf +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.woff +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/fontawesome-webfont.woff2 +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/ionicons.svg +0 -2230
- data/framework_components/roomcast-package-creator/dist/fonts/ionicons.ttf +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/ionicons.woff +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.eot +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.svg +0 -14
- data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.ttf +0 -0
- data/framework_components/roomcast-package-creator/dist/fonts/material-ui-icons.woff +0 -0
- data/framework_components/roomcast-package-creator/dist/main.css +0 -5682
- data/framework_components/roomcast-package-creator/dist/nutella_lib.js +0 -5128
- data/framework_components/roomcast-package-creator/gulp/config.js +0 -51
- data/framework_components/roomcast-package-creator/gulp/tasks/browserify.js +0 -77
- data/framework_components/roomcast-package-creator/gulp/tasks/build.js +0 -3
- data/framework_components/roomcast-package-creator/gulp/tasks/css.js +0 -7
- data/framework_components/roomcast-package-creator/gulp/tasks/default.js +0 -3
- data/framework_components/roomcast-package-creator/gulp/tasks/fonts.js +0 -7
- data/framework_components/roomcast-package-creator/gulp/tasks/less.js +0 -16
- data/framework_components/roomcast-package-creator/gulp/tasks/mui-fonts.js +0 -7
- data/framework_components/roomcast-package-creator/gulp/tasks/nutella.js +0 -7
- data/framework_components/roomcast-package-creator/gulp/tasks/setWatch.js +0 -5
- data/framework_components/roomcast-package-creator/gulp/tasks/svgs.js +0 -7
- data/framework_components/roomcast-package-creator/gulp/tasks/watch.js +0 -12
- data/framework_components/roomcast-package-creator/gulp/util/bundleLogger.js +0 -21
- data/framework_components/roomcast-package-creator/gulp/util/handleErrors.js +0 -15
- data/framework_components/roomcast-package-creator/gulpfile.js +0 -16
- data/framework_components/roomcast-package-creator/index.html +0 -38
- data/framework_components/roomcast-package-creator/nutella.json +0 -6
- data/framework_components/roomcast-package-creator/package.json +0 -39
- data/framework_components/roomcast-package-creator/roomcast-default.png +0 -0
- data/framework_components/roomcast-package-creator/src/app/app.js +0 -30
- data/framework_components/roomcast-package-creator/src/app/components/ButtonInteractionsMixin.js +0 -45
- data/framework_components/roomcast-package-creator/src/app/components/ChannelCard.js +0 -100
- data/framework_components/roomcast-package-creator/src/app/components/ChannelItem.js +0 -71
- data/framework_components/roomcast-package-creator/src/app/components/ChannelsCatalogue.js +0 -51
- data/framework_components/roomcast-package-creator/src/app/components/ChannelsPanel.js +0 -127
- data/framework_components/roomcast-package-creator/src/app/components/ConfigField.js +0 -50
- data/framework_components/roomcast-package-creator/src/app/components/ConfigurationsPanel.js +0 -112
- data/framework_components/roomcast-package-creator/src/app/components/ContextButton.js +0 -37
- data/framework_components/roomcast-package-creator/src/app/components/GlobalButton.js +0 -28
- data/framework_components/roomcast-package-creator/src/app/components/NutellaMixin.js +0 -58
- data/framework_components/roomcast-package-creator/src/app/components/PoolHeader.js +0 -67
- data/framework_components/roomcast-package-creator/src/app/components/PoolRow.js +0 -160
- data/framework_components/roomcast-package-creator/src/app/components/ResourceFamilyPool.js +0 -168
- data/framework_components/roomcast-package-creator/src/app/components/ResourcesPanel.js +0 -76
- data/framework_components/roomcast-package-creator/src/app/components/main.js +0 -239
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/dialog_.jsx +0 -66
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/drop-down-menu.jsx +0 -159
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/enhanced-textarea.jsx +0 -113
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/floating-action-button_.jsx +0 -73
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/menu-item.jsx +0 -100
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/menu.jsx +0 -211
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/overlay.jsx +0 -21
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/raised-button_.jsx +0 -72
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/right-nav.jsx +0 -108
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/ripple.jsx +0 -52
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/drop-down-arrow.jsx +0 -17
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-left.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-right.jsx +0 -17
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-menu.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/svg-icon.jsx +0 -23
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-check-box-checked.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-check-box-outline-blank.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-radio-button-off.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/toggle-radio-button-on.jsx +0 -16
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/text-field.jsx +0 -215
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/css-event.js +0 -52
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/date-time.js +0 -132
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/dom.js +0 -71
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/events.js +0 -34
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/key-code.js +0 -10
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/key-line.js +0 -13
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/utils/unique-id.js +0 -7
- data/framework_components/roomcast-package-creator/src/css/font-awesome.min.css +0 -4
- data/framework_components/roomcast-package-creator/src/css/ionicons.min.css +0 -11
- data/framework_components/roomcast-package-creator/src/fonts/FontAwesome.otf +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.eot +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.svg +0 -565
- data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.ttf +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.woff +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/fontawesome-webfont.woff2 +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/ionicons.svg +0 -2230
- data/framework_components/roomcast-package-creator/src/fonts/ionicons.ttf +0 -0
- data/framework_components/roomcast-package-creator/src/fonts/ionicons.woff +0 -0
- data/framework_components/roomcast-package-creator/src/less/drop-down-icon.less +0 -43
- data/framework_components/roomcast-package-creator/src/less/drop-down-menu.less +0 -77
- data/framework_components/roomcast-package-creator/src/less/enhanced-textarea.less +0 -16
- data/framework_components/roomcast-package-creator/src/less/main.less +0 -514
- data/framework_components/roomcast-package-creator/src/less/menu-item.less +0 -71
- data/framework_components/roomcast-package-creator/src/less/menu.less +0 -50
- data/framework_components/roomcast-package-creator/src/less/my_overrides.less +0 -15
- data/framework_components/roomcast-package-creator/src/less/svg-icon.less +0 -11
- data/framework_components/roomcast-package-creator/src/less/text-field.less +0 -168
- data/framework_components/roomcast-teacher-controls/.gitignore +0 -2
- data/framework_components/roomcast-teacher-controls/README.md +0 -9
- data/framework_components/roomcast-teacher-controls/dist/app.js +0 -43614
- data/framework_components/roomcast-teacher-controls/dist/main.css +0 -3043
- data/framework_components/roomcast-teacher-controls/dist/nutella_lib.js +0 -5128
- data/framework_components/roomcast-teacher-controls/gulp/config.js +0 -51
- data/framework_components/roomcast-teacher-controls/gulp/tasks/browserify.js +0 -77
- data/framework_components/roomcast-teacher-controls/gulp/tasks/build.js +0 -3
- data/framework_components/roomcast-teacher-controls/gulp/tasks/css.js +0 -7
- data/framework_components/roomcast-teacher-controls/gulp/tasks/default.js +0 -3
- data/framework_components/roomcast-teacher-controls/gulp/tasks/fonts.js +0 -7
- data/framework_components/roomcast-teacher-controls/gulp/tasks/less.js +0 -16
- data/framework_components/roomcast-teacher-controls/gulp/tasks/mui-fonts.js +0 -7
- data/framework_components/roomcast-teacher-controls/gulp/tasks/nutella.js +0 -7
- data/framework_components/roomcast-teacher-controls/gulp/tasks/setWatch.js +0 -5
- data/framework_components/roomcast-teacher-controls/gulp/tasks/svgs.js +0 -7
- data/framework_components/roomcast-teacher-controls/gulp/tasks/watch.js +0 -12
- data/framework_components/roomcast-teacher-controls/gulp/util/bundleLogger.js +0 -21
- data/framework_components/roomcast-teacher-controls/gulp/util/handleErrors.js +0 -15
- data/framework_components/roomcast-teacher-controls/gulpfile.js +0 -16
- data/framework_components/roomcast-teacher-controls/index.html +0 -37
- data/framework_components/roomcast-teacher-controls/nutella.json +0 -6
- data/framework_components/roomcast-teacher-controls/package.json +0 -38
- data/framework_components/roomcast-teacher-controls/src/app/app.js +0 -28
- data/framework_components/roomcast-teacher-controls/src/app/components/ActivitiesGrid.js +0 -87
- data/framework_components/roomcast-teacher-controls/src/app/components/ActivityCard.js +0 -183
- data/framework_components/roomcast-teacher-controls/src/app/components/Footer.js +0 -37
- data/framework_components/roomcast-teacher-controls/src/app/components/NutellaMixin.js +0 -58
- data/framework_components/roomcast-teacher-controls/src/app/components/main.js +0 -125
- data/framework_components/roomcast-teacher-controls/src/less/main.less +0 -196
- data/framework_components/roomcast-teacher-controls/src/less/my_overrides.less +0 -14
@@ -1,37 +0,0 @@
|
|
1
|
-
var React = require('react');
|
2
|
-
var Mui = require('material-ui');
|
3
|
-
var FloatingActionButton_ = require('./material-ui/floating-action-button_.jsx');
|
4
|
-
|
5
|
-
/**
|
6
|
-
* @prop type
|
7
|
-
* @prop selectedChannel
|
8
|
-
* @prop onAddedChannel
|
9
|
-
* @prop onRemovedChannel
|
10
|
-
*/
|
11
|
-
var ContextButton = React.createClass({
|
12
|
-
|
13
|
-
addChannel: function() {
|
14
|
-
this.props.onAddedChannel(this.props.selectedChannel.id);
|
15
|
-
},
|
16
|
-
|
17
|
-
removeChannel: function() {
|
18
|
-
this.props.onRemovedChannel(this.props.selectedChannel.id);
|
19
|
-
},
|
20
|
-
|
21
|
-
render: function() {
|
22
|
-
|
23
|
-
var button = this.props.type==='add'? <FloatingActionButton_ icon='content-add' secondary={true} onTouchTap={this.addChannel} /> :
|
24
|
-
<FloatingActionButton_ icon='content-remove' primary={true} onTouchTap={this.removeChannel} />;
|
25
|
-
|
26
|
-
return (
|
27
|
-
<div className='div-button-container'>
|
28
|
-
{button}
|
29
|
-
</div>
|
30
|
-
);
|
31
|
-
|
32
|
-
}
|
33
|
-
|
34
|
-
});
|
35
|
-
|
36
|
-
module.exports = ContextButton;
|
37
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var React = require('react');
|
2
|
-
var Mui = require('material-ui');
|
3
|
-
var RaisedButton = require('./material-ui/raised-button_.jsx');
|
4
|
-
|
5
|
-
/**
|
6
|
-
* @prop type
|
7
|
-
* @prop onRemovedChannels
|
8
|
-
*/
|
9
|
-
var GlobalButton = React.createClass({
|
10
|
-
|
11
|
-
removeChannels: function() {
|
12
|
-
this.props.onRemovedChannels();
|
13
|
-
},
|
14
|
-
|
15
|
-
render: function(){
|
16
|
-
|
17
|
-
var button = this.props.type==='add'? <RaisedButton label='Add' secondary={true} /> :
|
18
|
-
this.props.type==='remove' ? <RaisedButton label='Clear Row' primary={true} onTouchTap={this.removeChannels} /> :
|
19
|
-
<RaisedButton label='Clear All' primary={true} onTouchTap={this.removeChannels} />;
|
20
|
-
return (<div className='div-button-container'>
|
21
|
-
{button}
|
22
|
-
</div>);
|
23
|
-
}
|
24
|
-
|
25
|
-
});
|
26
|
-
|
27
|
-
module.exports = GlobalButton;
|
28
|
-
|
@@ -1,58 +0,0 @@
|
|
1
|
-
var NUTELLA = require('nutella_lib');
|
2
|
-
|
3
|
-
var NutellaMixin = {
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Stores a user interaction as a document in the MongoDB database.
|
7
|
-
* @param action name of the action fired
|
8
|
-
* @param info additional properties to be stored for the specific interaction
|
9
|
-
*/
|
10
|
-
logAction: function(action, info) {
|
11
|
-
var query_parameters = NUTELLA.parseURLParameters();
|
12
|
-
var app_id = query_parameters.app_id;
|
13
|
-
var run_id = query_parameters.run_id;
|
14
|
-
var cookie = this.getCookie('roomcast_device');
|
15
|
-
if(cookie === '') {
|
16
|
-
cookie = (+new Date * Math.random()).toString(36).substring(0, 15);
|
17
|
-
this.setCookie('roomcast_device', cookie, 365);
|
18
|
-
}
|
19
|
-
var date = new Date();
|
20
|
-
var doc = {};
|
21
|
-
doc.action = action;
|
22
|
-
doc.app_id = app_id;
|
23
|
-
doc.run_id = run_id;
|
24
|
-
doc.device_id = cookie;
|
25
|
-
doc.time = {
|
26
|
-
timestamp: date,
|
27
|
-
year: date.getFullYear(),
|
28
|
-
month: date.getMonth() + 1,
|
29
|
-
day: date.getDate(),
|
30
|
-
time: date.getHours() + ":" +date.getMinutes() + ":" +date.getSeconds()
|
31
|
-
};
|
32
|
-
if(Object.keys(info).length !== 0) {
|
33
|
-
doc.info = info;
|
34
|
-
}
|
35
|
-
nutella.net.publish('roomcast-log-bot/store', doc);
|
36
|
-
},
|
37
|
-
|
38
|
-
setCookie: function(cname, cvalue, exdays) {
|
39
|
-
var d = new Date();
|
40
|
-
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
41
|
-
var expires = "expires="+d.toUTCString();
|
42
|
-
document.cookie = cname + "=" + cvalue + "; " + expires;
|
43
|
-
},
|
44
|
-
|
45
|
-
getCookie: function(cname) {
|
46
|
-
var name = cname + "=";
|
47
|
-
var ca = document.cookie.split(';');
|
48
|
-
for(var i=0; i<ca.length; i++) {
|
49
|
-
var c = ca[i];
|
50
|
-
while (c.charAt(0)==' ') c = c.substring(1);
|
51
|
-
if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
|
52
|
-
}
|
53
|
-
return "";
|
54
|
-
}
|
55
|
-
|
56
|
-
};
|
57
|
-
|
58
|
-
module.exports = NutellaMixin;
|
@@ -1,67 +0,0 @@
|
|
1
|
-
var React = require('react');
|
2
|
-
var Mui = require('material-ui');
|
3
|
-
var RaisedButton_ = require('./material-ui/raised-button_.jsx');
|
4
|
-
var ContextButton = require('./ContextButton');
|
5
|
-
var GlobalButton = require('./GlobalButton');
|
6
|
-
|
7
|
-
/**
|
8
|
-
* @prop familyName
|
9
|
-
* @prop selectedChannel
|
10
|
-
* @prop onRemovedAllChannels
|
11
|
-
* @prop onAddedChannelToPool
|
12
|
-
* @prop onRemovedChannelFromPool
|
13
|
-
*/
|
14
|
-
var PoolHeader = React.createClass({
|
15
|
-
|
16
|
-
handleAddedChannel: function(chId) {
|
17
|
-
this.props.onAddedChannelToPool(chId);
|
18
|
-
},
|
19
|
-
|
20
|
-
handleRemovedChannel: function(chId) {
|
21
|
-
this.props.onRemovedChannelFromPool(chId);
|
22
|
-
},
|
23
|
-
|
24
|
-
handleRemovedChannels: function() {
|
25
|
-
this.props.onRemovedAllChannels();
|
26
|
-
},
|
27
|
-
|
28
|
-
render: function() {
|
29
|
-
|
30
|
-
var buttonStyle = {
|
31
|
-
marginRight:'10px'
|
32
|
-
};
|
33
|
-
|
34
|
-
var buttonAdd, buttonRemove, headerButtons;
|
35
|
-
if(this.props.selectedChannel) {
|
36
|
-
buttonAdd = <ContextButton
|
37
|
-
type='add'
|
38
|
-
onAddedChannel={this.handleAddedChannel}
|
39
|
-
selectedChannel={this.props.selectedChannel} />;
|
40
|
-
buttonRemove = <ContextButton
|
41
|
-
type='remove'
|
42
|
-
onRemovedChannel={this.handleRemovedChannel}
|
43
|
-
selectedChannel={this.props.selectedChannel} />;
|
44
|
-
headerButtons = <th>
|
45
|
-
{buttonAdd}
|
46
|
-
{buttonRemove}
|
47
|
-
</th>
|
48
|
-
} else {
|
49
|
-
buttonRemove = <GlobalButton type='remove-all' onRemovedChannels={this.handleRemovedChannels} />;
|
50
|
-
headerButtons = <th>
|
51
|
-
{buttonRemove}
|
52
|
-
</th>
|
53
|
-
}
|
54
|
-
|
55
|
-
return (
|
56
|
-
|
57
|
-
<tr className='pool-header'>
|
58
|
-
<th></th>
|
59
|
-
<th> {this.props.familyName} </th>
|
60
|
-
{headerButtons}
|
61
|
-
<th></th>
|
62
|
-
</tr>);
|
63
|
-
|
64
|
-
}
|
65
|
-
});
|
66
|
-
|
67
|
-
module.exports = PoolHeader;
|
@@ -1,160 +0,0 @@
|
|
1
|
-
var React = require('react');
|
2
|
-
var Mui = require('material-ui');
|
3
|
-
var ChannelItem = require('./ChannelItem');
|
4
|
-
var ContextButton = require('./ContextButton');
|
5
|
-
var GlobalButton = require('./GlobalButton');
|
6
|
-
var ButtonInteractionsMixin = require('./ButtonInteractionsMixin');
|
7
|
-
var TextField = require('./material-ui/text-field.jsx');
|
8
|
-
var FloatingActionButton = Mui.FloatingActionButton;
|
9
|
-
|
10
|
-
var PoolRow = React.createClass({
|
11
|
-
|
12
|
-
mixins: [ButtonInteractionsMixin],
|
13
|
-
|
14
|
-
handleSelectedChannel: function(ch) {
|
15
|
-
this.props.onSelectedChannel(ch);
|
16
|
-
},
|
17
|
-
|
18
|
-
handleAddedChannel: function(chId) {
|
19
|
-
var newChannels = this.insertNewChannel(this.props.resourceWithChannels.channels, chId);
|
20
|
-
this.handleUpdatedChannel(newChannels);
|
21
|
-
},
|
22
|
-
|
23
|
-
handleRemovedChannel: function(chId) {
|
24
|
-
var newChannels = this.removeChannel(this.props.resourceWithChannels.channels, chId);
|
25
|
-
this.handleUpdatedChannel(newChannels);
|
26
|
-
},
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Deep copies data structure at this level with the local changes.
|
30
|
-
* Has to be reimplemented at each level of the hierarchy.
|
31
|
-
* @param newChannels
|
32
|
-
*/
|
33
|
-
handleUpdatedChannel: function(newChannels) {
|
34
|
-
|
35
|
-
var textFieldValue = this.refs['textField' + this.props.rowIndex].getValue();
|
36
|
-
|
37
|
-
// create new object for single resource
|
38
|
-
var resourceMapping = {
|
39
|
-
name: textFieldValue,
|
40
|
-
channels: newChannels
|
41
|
-
};
|
42
|
-
|
43
|
-
// pass update upwards
|
44
|
-
this.props.onUpdatedMapping(resourceMapping, this.props.rowIndex);
|
45
|
-
},
|
46
|
-
|
47
|
-
/**
|
48
|
-
* Removes all the channels from this row.
|
49
|
-
*/
|
50
|
-
handleRemovedChannels: function() {
|
51
|
-
var newChannels = [];
|
52
|
-
this.handleUpdatedChannel(newChannels);
|
53
|
-
},
|
54
|
-
|
55
|
-
/**
|
56
|
-
* Updates the mapping structure at each text field input change.
|
57
|
-
* TODO performance?
|
58
|
-
*/
|
59
|
-
handleTextFieldChange: function() {
|
60
|
-
this.handleUpdatedChannel(this.props.resourceWithChannels.channels);
|
61
|
-
},
|
62
|
-
|
63
|
-
handleDeleteRow: function() {
|
64
|
-
this.props.onDeleteRow(this.props.rowIndex);
|
65
|
-
},
|
66
|
-
|
67
|
-
render: function () {
|
68
|
-
|
69
|
-
var self=this;
|
70
|
-
|
71
|
-
// populate row of channels
|
72
|
-
var channelsList = [];
|
73
|
-
this.props.resourceWithChannels.channels.forEach(function (chId) {
|
74
|
-
|
75
|
-
// set selected channel in resources list
|
76
|
-
var resourcesSelected = null;
|
77
|
-
if(self.props.selectedChannel && self.props.selectedChannel.imgNode == self.refs.channel) {
|
78
|
-
resourcesSelected = true;
|
79
|
-
}
|
80
|
-
|
81
|
-
var itsChannel = self.props.channels[chId];
|
82
|
-
if(itsChannel) {
|
83
|
-
channelsList.push(<ChannelItem
|
84
|
-
ref={'channel'}
|
85
|
-
id={chId}
|
86
|
-
key={chId}
|
87
|
-
channelData={itsChannel}
|
88
|
-
name={itsChannel.name}
|
89
|
-
imgPath={itsChannel.screenshot}
|
90
|
-
onSelectedChannel={self.handleSelectedChannel}
|
91
|
-
currentSelectedChannel={self.props.selectedChannel}
|
92
|
-
belongsTo='resources'
|
93
|
-
resourcesSelected={true} />);
|
94
|
-
}
|
95
|
-
});
|
96
|
-
|
97
|
-
// check if the selected channel is already present in this row
|
98
|
-
var itsChannels = self.props.resourceWithChannels.channels;
|
99
|
-
var isChannelAllowed = function(ch) {
|
100
|
-
if(!self.props.selectedChannel.id) return;
|
101
|
-
for(var i=0; i<itsChannels.length; i++){
|
102
|
-
if(itsChannels[i]===self.props.selectedChannel.id) return true;
|
103
|
-
}
|
104
|
-
return false;
|
105
|
-
};
|
106
|
-
|
107
|
-
// set type of button based on context
|
108
|
-
var button;
|
109
|
-
if( this.props.selectedChannel ) {
|
110
|
-
if( isChannelAllowed(this.props.selectedChannel) ) {
|
111
|
-
button=<ContextButton
|
112
|
-
type='remove'
|
113
|
-
selectedChannel={self.props.selectedChannel}
|
114
|
-
onRemovedChannel={self.handleRemovedChannel} />;
|
115
|
-
} else {
|
116
|
-
button=<ContextButton
|
117
|
-
type='add'
|
118
|
-
selectedChannel={self.props.selectedChannel}
|
119
|
-
onAddedChannel={self.handleAddedChannel} />;
|
120
|
-
}
|
121
|
-
} else {
|
122
|
-
button=<GlobalButton
|
123
|
-
type='remove'
|
124
|
-
onRemovedChannels={self.handleRemovedChannels} />;
|
125
|
-
}
|
126
|
-
|
127
|
-
var tdButtonStyle = {
|
128
|
-
'textAlign': 'center'
|
129
|
-
};
|
130
|
-
|
131
|
-
return (
|
132
|
-
|
133
|
-
<tr className='pool-row'>
|
134
|
-
|
135
|
-
<td>
|
136
|
-
|
137
|
-
<div className='remove-row-div' onTouchTap={this.handleDeleteRow}> </div>
|
138
|
-
|
139
|
-
</td>
|
140
|
-
|
141
|
-
<td>
|
142
|
-
<div className='text-field-div'>
|
143
|
-
<TextField
|
144
|
-
ref={'textField' + this.props.rowIndex}
|
145
|
-
hintText={'Package name'}
|
146
|
-
value={this.props.resourceWithChannels.name}
|
147
|
-
multiLine={true}
|
148
|
-
onChange={this.handleTextFieldChange}/>
|
149
|
-
</div>
|
150
|
-
</td>
|
151
|
-
|
152
|
-
<td> {channelsList} </td>
|
153
|
-
<td style={tdButtonStyle}> {button} </td>
|
154
|
-
|
155
|
-
</tr>);
|
156
|
-
|
157
|
-
}
|
158
|
-
});
|
159
|
-
|
160
|
-
module.exports = PoolRow;
|
@@ -1,168 +0,0 @@
|
|
1
|
-
var React = require('react');
|
2
|
-
var PoolHeader = require('./PoolHeader');
|
3
|
-
var PoolRow = require('./PoolRow');
|
4
|
-
var Mui = require('material-ui');
|
5
|
-
var Paper = Mui.Paper;
|
6
|
-
var ButtonInteractionsMixin = require('./ButtonInteractionsMixin');
|
7
|
-
var d3 = require('d3');
|
8
|
-
|
9
|
-
var ResourceFamilyPool = React.createClass({
|
10
|
-
|
11
|
-
mixins: [ButtonInteractionsMixin],
|
12
|
-
|
13
|
-
handleAddRow: function() {
|
14
|
-
this.props.onAddRow(this.props.familyName);
|
15
|
-
},
|
16
|
-
|
17
|
-
handleSelectedChannel: function(ch) {
|
18
|
-
this.props.onSelectedChannel(ch);
|
19
|
-
},
|
20
|
-
|
21
|
-
handleRemovedAllChannels: function() {
|
22
|
-
var familyItems=[];
|
23
|
-
this.props.resourcesWithChannels.forEach(function(res) {
|
24
|
-
familyItems.push({
|
25
|
-
name: res.name,
|
26
|
-
channels: []
|
27
|
-
});
|
28
|
-
});
|
29
|
-
this.handleUpdatedFamily(familyItems);
|
30
|
-
},
|
31
|
-
|
32
|
-
handleAddedChannelToPool: function(chId) {
|
33
|
-
var self=this;
|
34
|
-
var familyItems=[];
|
35
|
-
this.props.resourcesWithChannels.forEach(function(res) {
|
36
|
-
var newChannels = self.insertNewChannel(res.channels, chId);
|
37
|
-
familyItems.push({
|
38
|
-
name: res.name,
|
39
|
-
channels: newChannels
|
40
|
-
});
|
41
|
-
});
|
42
|
-
this.handleUpdatedFamily(familyItems);
|
43
|
-
},
|
44
|
-
|
45
|
-
handleRemovedChannelFromPool: function(chId) {
|
46
|
-
var self=this;
|
47
|
-
var familyItems=[];
|
48
|
-
this.props.resourcesWithChannels.forEach(function(res) {
|
49
|
-
var newChannels = self.removeChannel(res.channels, chId);
|
50
|
-
familyItems.push({
|
51
|
-
name: res.name,
|
52
|
-
channels: newChannels
|
53
|
-
});
|
54
|
-
});
|
55
|
-
this.handleUpdatedFamily(familyItems);
|
56
|
-
},
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Handles updates at row level and pushes them upwards.
|
60
|
-
* @param resourceMapping
|
61
|
-
* @param rowIndex
|
62
|
-
*/
|
63
|
-
handleUpdatedMapping: function(resourceMapping, rowIndex) {
|
64
|
-
|
65
|
-
// create new object for single family of resources
|
66
|
-
var familyItems = [];
|
67
|
-
var added = false;
|
68
|
-
if(rowIndex != null) {
|
69
|
-
this.props.resourcesWithChannels.forEach(function(item, i) {
|
70
|
-
if(i===rowIndex) {
|
71
|
-
familyItems.push(resourceMapping);
|
72
|
-
added = true;
|
73
|
-
} else {
|
74
|
-
familyItems.push({
|
75
|
-
name: item.name,
|
76
|
-
channels: item.channels
|
77
|
-
});
|
78
|
-
}
|
79
|
-
});
|
80
|
-
} else {
|
81
|
-
// handle new empty row
|
82
|
-
if(!added) {
|
83
|
-
familyItems.push(resourceMapping);
|
84
|
-
}
|
85
|
-
}
|
86
|
-
this.handleUpdatedFamily(familyItems);
|
87
|
-
},
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Wraps the items and pushes new data upwards.
|
91
|
-
* @param familyItems
|
92
|
-
*/
|
93
|
-
handleUpdatedFamily: function(familyItems) {
|
94
|
-
var familyMapping = {
|
95
|
-
family: this.props.familyName,
|
96
|
-
items: familyItems
|
97
|
-
};
|
98
|
-
this.props.onUpdatedMapping(familyMapping);
|
99
|
-
},
|
100
|
-
|
101
|
-
handleDeleteRow: function(rowIndex) {
|
102
|
-
var familyItems = [];
|
103
|
-
this.props.resourcesWithChannels.forEach(function(item, i) {
|
104
|
-
if(i!==rowIndex) {
|
105
|
-
familyItems.push(item)
|
106
|
-
}
|
107
|
-
});
|
108
|
-
this.handleUpdatedFamily(familyItems);
|
109
|
-
},
|
110
|
-
|
111
|
-
render: function() {
|
112
|
-
|
113
|
-
var self=this;
|
114
|
-
var rows=[];
|
115
|
-
var i = 0;
|
116
|
-
this.props.resourcesWithChannels.forEach(function(resource, k) {
|
117
|
-
rows.push(<PoolRow
|
118
|
-
key={k}
|
119
|
-
mapping={self.props.mapping}
|
120
|
-
resourceWithChannels={resource}
|
121
|
-
channels={self.props.channels}
|
122
|
-
selectedChannel={self.props.selectedChannel}
|
123
|
-
onSelectedChannel={self.handleSelectedChannel}
|
124
|
-
onUpdatedMapping={self.handleUpdatedMapping}
|
125
|
-
onDeleteRow={self.handleDeleteRow}
|
126
|
-
rowIndex={i} />
|
127
|
-
);
|
128
|
-
i++;
|
129
|
-
});
|
130
|
-
|
131
|
-
return (
|
132
|
-
|
133
|
-
<div className="resource-family-pool">
|
134
|
-
|
135
|
-
<Paper>
|
136
|
-
|
137
|
-
<table>
|
138
|
-
|
139
|
-
<thead>
|
140
|
-
|
141
|
-
<PoolHeader familyName={this.props.familyName}
|
142
|
-
selectedChannel={self.props.selectedChannel}
|
143
|
-
onRemovedAllChannels={this.handleRemovedAllChannels}
|
144
|
-
onAddedChannelToPool={this.handleAddedChannelToPool}
|
145
|
-
onRemovedChannelFromPool={this.handleRemovedChannelFromPool} />
|
146
|
-
|
147
|
-
</thead>
|
148
|
-
|
149
|
-
<tbody>
|
150
|
-
|
151
|
-
{rows}
|
152
|
-
<tr className='pool-row pool-add-row' ref={this.props.familyName + 'pool'} onTouchTap={this.handleAddRow}> <td colSpan='4'> Add Row </td> </tr>
|
153
|
-
|
154
|
-
</tbody>
|
155
|
-
|
156
|
-
</table>
|
157
|
-
|
158
|
-
</Paper>
|
159
|
-
|
160
|
-
|
161
|
-
</div> );
|
162
|
-
|
163
|
-
}
|
164
|
-
|
165
|
-
});
|
166
|
-
|
167
|
-
module.exports = ResourceFamilyPool;
|
168
|
-
|