nutella_framework 0.4.23 → 0.4.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/framework_components/monitoring-bot/monitoring-bot.rb +11 -2
- data/framework_components/monitoring-interface/.gitignore +2 -0
- data/framework_components/monitoring-interface/README.md +1 -0
- data/framework_components/monitoring-interface/bower.json +29 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/.bower.json +23 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/bower.json +14 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/mqttws31.js +2081 -0
- data/framework_components/monitoring-interface/bower_components/bower-mqttws/readme.md +4 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/.bower.json +37 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/LICENSE +21 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/README.md +15 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/bower.json +28 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +23 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +52 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +14 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +38 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/nutella_lib.js +789 -0
- data/framework_components/monitoring-interface/bower_components/nutella_lib/package.json +30 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface.html +215 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/animations.js +27 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/application-view-controller.js +232 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js +61 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js +7 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/cursor.css +7 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/d3.v3.min.js +5 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/graphics.js +156 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js +103 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js +2 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/instance-view-controller.js +104 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js +6 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js +63 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js +14 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/page.css +33 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js +175 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/tab-table.js +8 -0
- 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 +320 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css +10 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js +426 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-element.js +205 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js +94 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/ui-tab.js +229 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js +5 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js +68 -0
- data/framework_components/monitoring-interface/css/Monitoring Interface_files/window-view-controller.js +169 -0
- data/framework_components/monitoring-interface/css/alerts.css +3 -0
- data/framework_components/monitoring-interface/css/bootstrap.min.css +5 -0
- data/framework_components/monitoring-interface/css/cursor.css +7 -0
- data/framework_components/monitoring-interface/css/highlight.default.min.css +1 -0
- data/framework_components/monitoring-interface/css/page.css +41 -0
- data/framework_components/monitoring-interface/css/ui-application.css +0 -0
- data/framework_components/monitoring-interface/css/ui-connection-view.css +10 -0
- data/framework_components/monitoring-interface/css/ui-legend-view.css +7 -0
- data/framework_components/monitoring-interface/data/alert.json +8 -0
- data/framework_components/monitoring-interface/data/data.json +2118 -0
- data/framework_components/monitoring-interface/data/data2.json +814 -0
- data/framework_components/monitoring-interface/data/data3.json +823 -0
- data/framework_components/monitoring-interface/data/data4.json +848 -0
- data/framework_components/monitoring-interface/data/message.json +999 -0
- data/framework_components/monitoring-interface/gulpfile.js +29 -0
- data/framework_components/monitoring-interface/img/arrow_white.svg +120 -0
- data/framework_components/monitoring-interface/img/arrow_white_right.svg +104 -0
- data/framework_components/monitoring-interface/img/back.svg +164 -0
- data/framework_components/monitoring-interface/img/cross_red_border_white.svg +143 -0
- data/framework_components/monitoring-interface/img/cross_red_border_white_mouseover.svg +143 -0
- data/framework_components/monitoring-interface/img/email.svg +89 -0
- data/framework_components/monitoring-interface/img/email_highlighted.svg +89 -0
- data/framework_components/monitoring-interface/index.html +144 -0
- data/framework_components/monitoring-interface/js/d3/layout/grid-layout.js +103 -0
- data/framework_components/monitoring-interface/js/d3/layout/radial-layout.js +184 -0
- data/framework_components/monitoring-interface/js/d3/plugin/graphics.js +156 -0
- data/framework_components/monitoring-interface/js/d3/plugin/tab-table.js +8 -0
- data/framework_components/monitoring-interface/js/d3/ui/animations.js +27 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-application.js +471 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-connection-view.js +847 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-element.js +245 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-legend.js +174 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-notification.js +90 -0
- data/framework_components/monitoring-interface/js/d3/ui/ui-tab.js +309 -0
- data/framework_components/monitoring-interface/js/lib/JSXTransformer-0.12.2.js +15199 -0
- data/framework_components/monitoring-interface/js/lib/bootstrap.min.js +7 -0
- data/framework_components/monitoring-interface/js/lib/d3.v3.min.js +5 -0
- data/framework_components/monitoring-interface/js/lib/highlight.min.js +2 -0
- data/framework_components/monitoring-interface/js/lib/jquery-1.10.0.min.js +6 -0
- data/framework_components/monitoring-interface/js/lib/nutella_lib.js +5121 -0
- data/framework_components/monitoring-interface/js/lib/react-with-addons-0.12.2.js +19822 -0
- data/framework_components/monitoring-interface/js/lib/underscore-min.js +5 -0
- data/framework_components/monitoring-interface/js/model/alerts-model.js +74 -0
- data/framework_components/monitoring-interface/js/model/applications-model.js +78 -0
- data/framework_components/monitoring-interface/js/model/messages-model.js +112 -0
- data/framework_components/monitoring-interface/js/notification/notification-center.js +63 -0
- data/framework_components/monitoring-interface/js/notification/notifications.js +21 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-alerts.js +178 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-message-send.js +389 -0
- data/framework_components/monitoring-interface/js/react/dist/ui-messages.js +103 -0
- data/framework_components/monitoring-interface/js/react/src/ui-alerts.js +178 -0
- data/framework_components/monitoring-interface/js/react/src/ui-message-send.js +389 -0
- data/framework_components/monitoring-interface/js/react/src/ui-messages.js +103 -0
- data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js +256 -0
- data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js +112 -0
- data/framework_components/monitoring-interface/js/view-controller/view-controller.js +74 -0
- data/framework_components/monitoring-interface/js/view-controller/window-view-controller.js +169 -0
- data/framework_components/monitoring-interface/nutella.json +6 -0
- data/framework_components/order.json +1 -0
- data/framework_components/roomcast-bot/roomcast_bot.rb +139 -117
- data/framework_components/roomcast-channel-creator/dist/app.js +9 -7
- data/framework_components/roomcast-channel-creator/index.html +1 -1
- data/framework_components/roomcast-channel-creator/src/app/components/main.js +8 -6
- data/framework_components/roomcast-package-creator/dist/app.js +4 -4
- data/framework_components/roomcast-package-creator/index.html +1 -1
- data/framework_components/roomcast-package-creator/package.json +3 -3
- data/framework_components/roomcast-package-creator/src/app/components/ConfigurationsPanel.js +2 -2
- data/framework_components/roomcast-package-creator/src/app/components/PoolRow.js +1 -1
- data/framework_components/roomcast-teacher-controls/.gitignore +2 -0
- data/framework_components/roomcast-teacher-controls/README.md +9 -0
- data/framework_components/roomcast-teacher-controls/dist/app.js +38327 -0
- data/framework_components/roomcast-teacher-controls/dist/main.css +3052 -0
- data/framework_components/roomcast-teacher-controls/dist/nutella_lib.js +5121 -0
- data/framework_components/roomcast-teacher-controls/gulp/config.js +51 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/browserify.js +77 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/build.js +3 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/css.js +7 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/default.js +3 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/fonts.js +7 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/less.js +16 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/mui-fonts.js +7 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/nutella.js +7 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/setWatch.js +5 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/svgs.js +7 -0
- data/framework_components/roomcast-teacher-controls/gulp/tasks/watch.js +12 -0
- data/framework_components/roomcast-teacher-controls/gulp/util/bundleLogger.js +21 -0
- data/framework_components/roomcast-teacher-controls/gulp/util/handleErrors.js +15 -0
- data/framework_components/roomcast-teacher-controls/gulpfile.js +16 -0
- data/framework_components/roomcast-teacher-controls/index.html +51 -0
- data/framework_components/roomcast-teacher-controls/nutella.json +6 -0
- data/framework_components/roomcast-teacher-controls/package.json +38 -0
- data/framework_components/roomcast-teacher-controls/src/app/app.js +22 -0
- data/framework_components/roomcast-teacher-controls/src/app/components/ActivitiesGrid.js +87 -0
- data/framework_components/roomcast-teacher-controls/src/app/components/ActivityCard.js +141 -0
- data/framework_components/roomcast-teacher-controls/src/app/components/Channel.js +70 -0
- data/framework_components/roomcast-teacher-controls/src/app/components/Footer.js +34 -0
- data/framework_components/roomcast-teacher-controls/src/app/components/main.js +74 -0
- data/framework_components/roomcast-teacher-controls/src/less/main.less +186 -0
- data/framework_components/roomcast-teacher-controls/src/less/my_overrides.less +14 -0
- data/lib/commands/meta/run_command.rb +11 -9
- metadata +135 -2
@@ -0,0 +1,70 @@
|
|
1
|
+
var React = require('react');
|
2
|
+
var Mui = require('material-ui');
|
3
|
+
var Paper = Mui.Paper;
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @prop channel
|
7
|
+
*/
|
8
|
+
var Channel = React.createClass({
|
9
|
+
|
10
|
+
componentDidMount: function() {
|
11
|
+
|
12
|
+
},
|
13
|
+
|
14
|
+
handleClick: function() {
|
15
|
+
|
16
|
+
// JavaScript to send an action to iOS code
|
17
|
+
var appName = 'roomcast';
|
18
|
+
var actionType = 'playChannel';
|
19
|
+
// TODO generalize
|
20
|
+
var actionParameters = {
|
21
|
+
'name': this.props.channel.name,
|
22
|
+
'url': this.props.channel.url
|
23
|
+
};
|
24
|
+
var jsonString = (JSON.stringify(actionParameters));
|
25
|
+
var escapedJsonParameters = escape(jsonString);
|
26
|
+
var url = appName + '://' + actionType + "#" + escapedJsonParameters;
|
27
|
+
console.log('launching url: ', url);
|
28
|
+
document.location.href = url;
|
29
|
+
|
30
|
+
},
|
31
|
+
|
32
|
+
render: function() {
|
33
|
+
|
34
|
+
var broker = '52.1.142.215', runId = 'RoomQuake', imgType = 'screenshot';
|
35
|
+
|
36
|
+
var style = {
|
37
|
+
backgroundImage: 'url(' + 'http://' + broker + ':57880/roomcast/main-interface/assets/channels/' + runId + '/' + imgType + '/' + this.props.channel.screenshot + ')',
|
38
|
+
backgroundSize: '100% 100%'
|
39
|
+
};
|
40
|
+
|
41
|
+
return (
|
42
|
+
<Paper className='channel' style={style} ref='channelRef' onTouchTap={this.handleClick} >
|
43
|
+
|
44
|
+
<div className='channel-div' >
|
45
|
+
|
46
|
+
<div className='channel-caption'>
|
47
|
+
|
48
|
+
<div className='icon-name-wrapper'>
|
49
|
+
|
50
|
+
<img className='channel-icon'> </img>
|
51
|
+
|
52
|
+
<div className='name-wrapper'>
|
53
|
+
<p className='channel-name'> {this.props.channel.name} </p>
|
54
|
+
<p className='channel-description'> description... </p>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
</Paper>);
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
});
|
68
|
+
|
69
|
+
module.exports = Channel;
|
70
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
var React = require('react');
|
3
|
+
var Mui = require('material-ui');
|
4
|
+
var Paper = Mui.Paper;
|
5
|
+
var RaisedButton = Mui.RaisedButton;
|
6
|
+
|
7
|
+
var Footer = React.createClass({
|
8
|
+
|
9
|
+
handleLogoutAll: function() {
|
10
|
+
console.log('logout all');
|
11
|
+
},
|
12
|
+
|
13
|
+
render: function () {
|
14
|
+
|
15
|
+
var footerStyle = {
|
16
|
+
height: (window.innerHeight * 0.1)
|
17
|
+
//backgroundColor: 'grey'
|
18
|
+
};
|
19
|
+
|
20
|
+
return (
|
21
|
+
|
22
|
+
<div className='footer' style={footerStyle}>
|
23
|
+
|
24
|
+
<RaisedButton className='logout-button' label='Logout All' primary={true} onTouchTap={this.handleLogoutAll} />
|
25
|
+
|
26
|
+
</div>
|
27
|
+
|
28
|
+
);
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
});
|
33
|
+
|
34
|
+
module.exports = Footer;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
|
2
|
+
var React = require('react');
|
3
|
+
var Mui = require('material-ui');
|
4
|
+
var ActivitiesGrid = require('./ActivitiesGrid');
|
5
|
+
var Footer = require('./Footer');
|
6
|
+
|
7
|
+
var Main = React.createClass({
|
8
|
+
|
9
|
+
componentDidMount: function() {
|
10
|
+
var self = this;
|
11
|
+
|
12
|
+
// Get current configs
|
13
|
+
nutella.net.request('configs/retrieve', 'all', function (response) {
|
14
|
+
self.setConfigs(response);
|
15
|
+
|
16
|
+
// Subscribe for future changes
|
17
|
+
nutella.net.subscribe('configs/updated', function (message, from) {
|
18
|
+
self.setConfigs(message);
|
19
|
+
|
20
|
+
});
|
21
|
+
|
22
|
+
// Get current selected config
|
23
|
+
nutella.net.request('currentConfig/retrieve', '', function (response) {
|
24
|
+
self.setCurrentConfig(response);
|
25
|
+
|
26
|
+
// Subscribe for future changes
|
27
|
+
nutella.net.subscribe('currentConfig/ack_updated', function (message, from) {
|
28
|
+
self.setCurrentConfig(message);
|
29
|
+
});
|
30
|
+
|
31
|
+
});
|
32
|
+
|
33
|
+
});
|
34
|
+
},
|
35
|
+
|
36
|
+
getInitialState: function () {
|
37
|
+
return {
|
38
|
+
currentConfig: '1',
|
39
|
+
configs: []
|
40
|
+
}
|
41
|
+
},
|
42
|
+
|
43
|
+
setConfigs: function(configs) {
|
44
|
+
this.setState({
|
45
|
+
configs: configs
|
46
|
+
});
|
47
|
+
},
|
48
|
+
|
49
|
+
setCurrentConfig: function(config) {
|
50
|
+
this.setState({
|
51
|
+
currentConfig: config
|
52
|
+
});
|
53
|
+
},
|
54
|
+
|
55
|
+
render: function () {
|
56
|
+
|
57
|
+
return (
|
58
|
+
|
59
|
+
<div className='main-div' >
|
60
|
+
|
61
|
+
<ActivitiesGrid
|
62
|
+
configs={this.state.configs}
|
63
|
+
currentConfig={this.state.currentConfig} />
|
64
|
+
|
65
|
+
<Footer />
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
);
|
70
|
+
}
|
71
|
+
|
72
|
+
});
|
73
|
+
|
74
|
+
module.exports = Main;
|
@@ -0,0 +1,186 @@
|
|
1
|
+
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
2
|
+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
|
3
|
+
|
4
|
+
@import "node_modules/material-ui/src/less/scaffolding.less";
|
5
|
+
//Define a custom less file to override any variables defined in scaffolding.less
|
6
|
+
@import "my_overrides.less";
|
7
|
+
@import "node_modules/material-ui/src/less/components.less";
|
8
|
+
|
9
|
+
//////////// My custom app styles ////////////
|
10
|
+
|
11
|
+
// VARIABLES
|
12
|
+
@external-margin: 20px;
|
13
|
+
@card-margin: 20px;
|
14
|
+
|
15
|
+
// MIXINS
|
16
|
+
.clickable {
|
17
|
+
cursor: pointer;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
// CODE
|
22
|
+
|
23
|
+
html, body {
|
24
|
+
height: 100%;
|
25
|
+
width: 100%;
|
26
|
+
background-color: #e9eaed;
|
27
|
+
box-sizing: border-box;
|
28
|
+
}
|
29
|
+
*, *:before, *:after {
|
30
|
+
box-sizing: inherit;
|
31
|
+
-webkit-touch-callout: none;
|
32
|
+
-webkit-user-select: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
////////////////////////////////
|
36
|
+
|
37
|
+
.activities-grid {
|
38
|
+
//width: 100%;
|
39
|
+
margin-left: @external-margin;
|
40
|
+
//margin-top: @external-margin;
|
41
|
+
margin-right: @external-margin;
|
42
|
+
|
43
|
+
// flex container properties
|
44
|
+
display: flex;
|
45
|
+
flex-direction: row;
|
46
|
+
flex-wrap: wrap;
|
47
|
+
justify-content: flex-start;
|
48
|
+
align-items: center;
|
49
|
+
align-content: stretch;
|
50
|
+
|
51
|
+
.activity-card {
|
52
|
+
background: white;
|
53
|
+
.clickable;
|
54
|
+
margin: @card-margin;
|
55
|
+
|
56
|
+
// flex item properties
|
57
|
+
flex-grow: 0;
|
58
|
+
flex-shrink: 0;
|
59
|
+
//flex-basis: 0;
|
60
|
+
|
61
|
+
.mui-paper-container {
|
62
|
+
position: relative;
|
63
|
+
|
64
|
+
.card-svg {
|
65
|
+
position: absolute;
|
66
|
+
}
|
67
|
+
|
68
|
+
.card-name {
|
69
|
+
// flex container properties
|
70
|
+
height: 100%;
|
71
|
+
width: 100%;
|
72
|
+
position: absolute;
|
73
|
+
display: flex;
|
74
|
+
flex-direction: row;
|
75
|
+
flex-wrap: wrap;
|
76
|
+
justify-content: center;
|
77
|
+
align-items: center;
|
78
|
+
align-content: center;
|
79
|
+
|
80
|
+
span {
|
81
|
+
font-size: 1.5em;
|
82
|
+
font-weight: 300;
|
83
|
+
|
84
|
+
// flex item properties
|
85
|
+
flex-grow: 0;
|
86
|
+
flex-shrink: 0;
|
87
|
+
flex-basis: main-size;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.footer {
|
98
|
+
// flex container properties
|
99
|
+
display: flex;
|
100
|
+
flex-direction: row;
|
101
|
+
flex-wrap: wrap;
|
102
|
+
justify-content: center;
|
103
|
+
align-items: center;
|
104
|
+
align-content: center;
|
105
|
+
|
106
|
+
.logout-button {
|
107
|
+
width: 15%;
|
108
|
+
// flex item properties
|
109
|
+
flex-grow: 0;
|
110
|
+
flex-shrink: 0;
|
111
|
+
//flex-basis: 50px;
|
112
|
+
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
////////////////////////////////
|
117
|
+
|
118
|
+
.channel {
|
119
|
+
// aspect ratio: 10:7.23
|
120
|
+
width: 100%;
|
121
|
+
height: 0;
|
122
|
+
padding-bottom: 72.30%;
|
123
|
+
position: relative;
|
124
|
+
background: white;
|
125
|
+
margin-bottom: 20px;
|
126
|
+
.channel-div {
|
127
|
+
width: 100%;
|
128
|
+
height: 100%;
|
129
|
+
position: absolute;
|
130
|
+
.channel-caption {
|
131
|
+
width: 100%;
|
132
|
+
height: 27%;
|
133
|
+
position: absolute;
|
134
|
+
bottom: 0;
|
135
|
+
background-color: rgba(0,0,0,0.4);
|
136
|
+
.icon-name-wrapper {
|
137
|
+
width: 100%;
|
138
|
+
//height: 100%;
|
139
|
+
position: absolute;
|
140
|
+
bottom: 10%;
|
141
|
+
overflow: auto;
|
142
|
+
.channel-icon {
|
143
|
+
width: 15%;
|
144
|
+
height: 0;
|
145
|
+
padding-bottom: 15%;
|
146
|
+
margin-left: 2%;
|
147
|
+
background-color: white;
|
148
|
+
//position: absolute;
|
149
|
+
//bottom: 0;
|
150
|
+
vertical-align: bottom;
|
151
|
+
}
|
152
|
+
.name-wrapper {
|
153
|
+
//height: 100%;
|
154
|
+
width: 83%;
|
155
|
+
display: inline-block;
|
156
|
+
position: absolute;
|
157
|
+
top: 20%;
|
158
|
+
.channel-name {
|
159
|
+
color: #ffffff;
|
160
|
+
font-size: 1.3vw;
|
161
|
+
margin: 0 0 4% 3%;
|
162
|
+
padding: 0 0 0 0;
|
163
|
+
vertical-align: middle;
|
164
|
+
@media (min-width: 1025px) and (max-width: 1480px) {
|
165
|
+
margin: 0 0 3% 3%;
|
166
|
+
}
|
167
|
+
@media (max-width: 1024px) {
|
168
|
+
margin: 0 0 2% 3%;
|
169
|
+
}
|
170
|
+
@media (max-width: 900px) {
|
171
|
+
margin: 0 0 1% 3%;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
.channel-description {
|
175
|
+
color: #ffffff;
|
176
|
+
font-size: 0.8vw;
|
177
|
+
margin: 0 0 0 3%;
|
178
|
+
padding: 0 0 0 0;
|
179
|
+
line-height: 0;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
@@ -67,8 +67,10 @@ module Nutella
|
|
67
67
|
console.warn 'The current directory is not a nutella application'
|
68
68
|
return
|
69
69
|
end
|
70
|
-
# Run script
|
71
|
-
return unless
|
70
|
+
# Run script for all bots
|
71
|
+
return unless run_script_for_components_in( "#{Dir.pwd}/bots", script, in_progress_message )
|
72
|
+
# Run script for all interfaces
|
73
|
+
return unless run_script_for_components_in( "#{Dir.pwd}/interfaces", script, in_progress_message )
|
72
74
|
# Output success message
|
73
75
|
console.success "All #{complete_message} for #{Nutella.current_app.config['name']}"
|
74
76
|
end
|
@@ -77,17 +79,17 @@ module Nutella
|
|
77
79
|
private
|
78
80
|
|
79
81
|
|
80
|
-
# Runs a script for each
|
82
|
+
# Runs a script for each component in a certain directory.
|
81
83
|
# Message is displayed in case something goes wrong
|
82
|
-
def
|
83
|
-
ComponentsList.for_each_component_in_dir dir do |
|
84
|
-
# Skip
|
85
|
-
next unless File.exist? "#{dir}
|
84
|
+
def run_script_for_components_in( dir, script, message )
|
85
|
+
ComponentsList.for_each_component_in_dir dir do |component|
|
86
|
+
# Skip component if there is no script
|
87
|
+
next unless File.exist? "#{dir}/#{component}/#{script}"
|
86
88
|
# Output message
|
87
|
-
console.info "#{message}
|
89
|
+
console.info "#{message} #{component}."
|
88
90
|
# Execute 'script' script
|
89
91
|
cur_dir = Dir.pwd
|
90
|
-
Dir.chdir "#{dir}
|
92
|
+
Dir.chdir "#{dir}/#{component}"
|
91
93
|
system "./#{script}"
|
92
94
|
Dir.chdir cur_dir
|
93
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutella_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Gnoli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|
@@ -357,6 +357,108 @@ files:
|
|
357
357
|
- framework_components/monitoring-bot/monitoring-bot.rb
|
358
358
|
- framework_components/monitoring-bot/nutella.json
|
359
359
|
- framework_components/monitoring-bot/startup
|
360
|
+
- framework_components/monitoring-interface/.gitignore
|
361
|
+
- framework_components/monitoring-interface/README.md
|
362
|
+
- framework_components/monitoring-interface/bower.json
|
363
|
+
- framework_components/monitoring-interface/bower_components/bower-mqttws/.bower.json
|
364
|
+
- framework_components/monitoring-interface/bower_components/bower-mqttws/bower.json
|
365
|
+
- framework_components/monitoring-interface/bower_components/bower-mqttws/mqttws31.js
|
366
|
+
- framework_components/monitoring-interface/bower_components/bower-mqttws/readme.md
|
367
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/.bower.json
|
368
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/LICENSE
|
369
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/README.md
|
370
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/bower.json
|
371
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html
|
372
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html
|
373
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
|
374
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
|
375
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/nutella_lib.js
|
376
|
+
- framework_components/monitoring-interface/bower_components/nutella_lib/package.json
|
377
|
+
- framework_components/monitoring-interface/css/Monitoring Interface.html
|
378
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/animations.js
|
379
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/application-view-controller.js
|
380
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/applications-model.js
|
381
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/bootstrap.min.js
|
382
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/cursor.css
|
383
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/d3.v3.min.js
|
384
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/graphics.js
|
385
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/grid-layout.js
|
386
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/highlight.min.js
|
387
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/instance-view-controller.js
|
388
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/jquery-1.10.0.min.js
|
389
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/notification-center.js
|
390
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/notifications.js
|
391
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/page.css
|
392
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/radial-layout.js
|
393
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/tab-table.js
|
394
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.css
|
395
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-application.js
|
396
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.css
|
397
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-connection-view.js
|
398
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-element.js
|
399
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-notification.js
|
400
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/ui-tab.js
|
401
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/underscore-min.js
|
402
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/view-controller.js
|
403
|
+
- framework_components/monitoring-interface/css/Monitoring Interface_files/window-view-controller.js
|
404
|
+
- framework_components/monitoring-interface/css/alerts.css
|
405
|
+
- framework_components/monitoring-interface/css/bootstrap.min.css
|
406
|
+
- framework_components/monitoring-interface/css/cursor.css
|
407
|
+
- framework_components/monitoring-interface/css/highlight.default.min.css
|
408
|
+
- framework_components/monitoring-interface/css/page.css
|
409
|
+
- framework_components/monitoring-interface/css/ui-application.css
|
410
|
+
- framework_components/monitoring-interface/css/ui-connection-view.css
|
411
|
+
- framework_components/monitoring-interface/css/ui-legend-view.css
|
412
|
+
- framework_components/monitoring-interface/data/alert.json
|
413
|
+
- framework_components/monitoring-interface/data/data.json
|
414
|
+
- framework_components/monitoring-interface/data/data2.json
|
415
|
+
- framework_components/monitoring-interface/data/data3.json
|
416
|
+
- framework_components/monitoring-interface/data/data4.json
|
417
|
+
- framework_components/monitoring-interface/data/message.json
|
418
|
+
- framework_components/monitoring-interface/gulpfile.js
|
419
|
+
- framework_components/monitoring-interface/img/arrow_white.svg
|
420
|
+
- framework_components/monitoring-interface/img/arrow_white_right.svg
|
421
|
+
- framework_components/monitoring-interface/img/back.svg
|
422
|
+
- framework_components/monitoring-interface/img/cross_red_border_white.svg
|
423
|
+
- framework_components/monitoring-interface/img/cross_red_border_white_mouseover.svg
|
424
|
+
- framework_components/monitoring-interface/img/email.svg
|
425
|
+
- framework_components/monitoring-interface/img/email_highlighted.svg
|
426
|
+
- framework_components/monitoring-interface/index.html
|
427
|
+
- framework_components/monitoring-interface/js/d3/layout/grid-layout.js
|
428
|
+
- framework_components/monitoring-interface/js/d3/layout/radial-layout.js
|
429
|
+
- framework_components/monitoring-interface/js/d3/plugin/graphics.js
|
430
|
+
- framework_components/monitoring-interface/js/d3/plugin/tab-table.js
|
431
|
+
- framework_components/monitoring-interface/js/d3/ui/animations.js
|
432
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-application.js
|
433
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-connection-view.js
|
434
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-element.js
|
435
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-legend.js
|
436
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-notification.js
|
437
|
+
- framework_components/monitoring-interface/js/d3/ui/ui-tab.js
|
438
|
+
- framework_components/monitoring-interface/js/lib/JSXTransformer-0.12.2.js
|
439
|
+
- framework_components/monitoring-interface/js/lib/bootstrap.min.js
|
440
|
+
- framework_components/monitoring-interface/js/lib/d3.v3.min.js
|
441
|
+
- framework_components/monitoring-interface/js/lib/highlight.min.js
|
442
|
+
- framework_components/monitoring-interface/js/lib/jquery-1.10.0.min.js
|
443
|
+
- framework_components/monitoring-interface/js/lib/nutella_lib.js
|
444
|
+
- framework_components/monitoring-interface/js/lib/react-with-addons-0.12.2.js
|
445
|
+
- framework_components/monitoring-interface/js/lib/underscore-min.js
|
446
|
+
- framework_components/monitoring-interface/js/model/alerts-model.js
|
447
|
+
- framework_components/monitoring-interface/js/model/applications-model.js
|
448
|
+
- framework_components/monitoring-interface/js/model/messages-model.js
|
449
|
+
- framework_components/monitoring-interface/js/notification/notification-center.js
|
450
|
+
- framework_components/monitoring-interface/js/notification/notifications.js
|
451
|
+
- framework_components/monitoring-interface/js/react/dist/ui-alerts.js
|
452
|
+
- framework_components/monitoring-interface/js/react/dist/ui-message-send.js
|
453
|
+
- framework_components/monitoring-interface/js/react/dist/ui-messages.js
|
454
|
+
- framework_components/monitoring-interface/js/react/src/ui-alerts.js
|
455
|
+
- framework_components/monitoring-interface/js/react/src/ui-message-send.js
|
456
|
+
- framework_components/monitoring-interface/js/react/src/ui-messages.js
|
457
|
+
- framework_components/monitoring-interface/js/view-controller/application-view-controller.js
|
458
|
+
- framework_components/monitoring-interface/js/view-controller/instance-view-controller.js
|
459
|
+
- framework_components/monitoring-interface/js/view-controller/view-controller.js
|
460
|
+
- framework_components/monitoring-interface/js/view-controller/window-view-controller.js
|
461
|
+
- framework_components/monitoring-interface/nutella.json
|
360
462
|
- framework_components/order.json
|
361
463
|
- framework_components/roomcast-bot/data/default/channels.json
|
362
464
|
- framework_components/roomcast-bot/data/default/configs.json
|
@@ -527,6 +629,37 @@ files:
|
|
527
629
|
- framework_components/roomcast-package-creator/src/less/my_overrides.less
|
528
630
|
- framework_components/roomcast-package-creator/src/less/svg-icon.less
|
529
631
|
- framework_components/roomcast-package-creator/src/less/text-field.less
|
632
|
+
- framework_components/roomcast-teacher-controls/.gitignore
|
633
|
+
- framework_components/roomcast-teacher-controls/README.md
|
634
|
+
- framework_components/roomcast-teacher-controls/dist/app.js
|
635
|
+
- framework_components/roomcast-teacher-controls/dist/main.css
|
636
|
+
- framework_components/roomcast-teacher-controls/dist/nutella_lib.js
|
637
|
+
- framework_components/roomcast-teacher-controls/gulp/config.js
|
638
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/browserify.js
|
639
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/build.js
|
640
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/css.js
|
641
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/default.js
|
642
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/fonts.js
|
643
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/less.js
|
644
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/mui-fonts.js
|
645
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/nutella.js
|
646
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/setWatch.js
|
647
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/svgs.js
|
648
|
+
- framework_components/roomcast-teacher-controls/gulp/tasks/watch.js
|
649
|
+
- framework_components/roomcast-teacher-controls/gulp/util/bundleLogger.js
|
650
|
+
- framework_components/roomcast-teacher-controls/gulp/util/handleErrors.js
|
651
|
+
- framework_components/roomcast-teacher-controls/gulpfile.js
|
652
|
+
- framework_components/roomcast-teacher-controls/index.html
|
653
|
+
- framework_components/roomcast-teacher-controls/nutella.json
|
654
|
+
- framework_components/roomcast-teacher-controls/package.json
|
655
|
+
- framework_components/roomcast-teacher-controls/src/app/app.js
|
656
|
+
- framework_components/roomcast-teacher-controls/src/app/components/ActivitiesGrid.js
|
657
|
+
- framework_components/roomcast-teacher-controls/src/app/components/ActivityCard.js
|
658
|
+
- framework_components/roomcast-teacher-controls/src/app/components/Channel.js
|
659
|
+
- framework_components/roomcast-teacher-controls/src/app/components/Footer.js
|
660
|
+
- framework_components/roomcast-teacher-controls/src/app/components/main.js
|
661
|
+
- framework_components/roomcast-teacher-controls/src/less/main.less
|
662
|
+
- framework_components/roomcast-teacher-controls/src/less/my_overrides.less
|
530
663
|
- framework_components/runs_list_bot/runs_list_bot.rb
|
531
664
|
- framework_components/runs_list_bot/startup
|
532
665
|
- lib/commands/broker.rb
|