nutella_framework 0.6.17 → 0.6.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/framework_components/roomcast-main-app/dist/app.js +143 -88
- data/framework_components/roomcast-main-app/dist/main.css +30 -23
- data/framework_components/roomcast-main-app/index.html +0 -1
- data/framework_components/roomcast-main-app/src/app/components/NutellaMixin.js +54 -0
- data/framework_components/roomcast-main-app/src/app/components/app/Channel.js +1 -5
- data/framework_components/roomcast-main-app/src/app/components/app/Player.js +10 -2
- data/framework_components/roomcast-main-app/src/app/components/app/main.js +52 -14
- data/framework_components/roomcast-main-app/src/app/components/login/main.js +5 -0
- data/framework_components/roomcast-main-app/src/less/main.less +16 -15
- data/framework_components/roomcast-main-app/src/less/my_overrides.less +23 -9
- data/framework_components/roomcast-package-creator/dist/app.js +1056 -883
- data/framework_components/roomcast-package-creator/dist/main.css +271 -600
- data/framework_components/roomcast-package-creator/package.json +1 -1
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/floating-action-button_.jsx +1 -1
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/raised-button_.jsx +1 -1
- data/framework_components/roomcast-package-creator/src/app/components/material-ui/ripple.jsx +52 -0
- data/framework_components/roomcast-package-creator/src/less/main.less +8 -4
- metadata +6 -5
- data/framework_components/roomcast-main-app/src/app/components/app/NutellaMixin.js +0 -23
@@ -4,7 +4,7 @@ var Classable = require('../../../../node_modules/material-ui/src/js/mixins/clas
|
|
4
4
|
var EnhancedButton = require('../../../../node_modules/material-ui/src/js/enhanced-button.jsx');
|
5
5
|
var Icon = require('../../../../node_modules/material-ui/src/js/icon.jsx');
|
6
6
|
var Paper = require('../../../../node_modules/material-ui/src/js/paper.jsx');
|
7
|
-
var Ripple = require('
|
7
|
+
var Ripple = require('./ripple.jsx');
|
8
8
|
|
9
9
|
var FloatingActionButton_ = React.createClass({
|
10
10
|
|
data/framework_components/roomcast-package-creator/src/app/components/material-ui/raised-button_.jsx
CHANGED
@@ -4,7 +4,7 @@ var CssEvent = require('../../../../node_modules/material-ui/src/js/utils/css-ev
|
|
4
4
|
var Classable = require('../../../../node_modules/material-ui/src/js/mixins/classable');
|
5
5
|
var EnhancedButton = require('../../../../node_modules/material-ui/src/js/enhanced-button.jsx');
|
6
6
|
var Paper = require('../../../../node_modules/material-ui/src/js/paper.jsx');
|
7
|
-
var Ripple = require('
|
7
|
+
var Ripple = require('./ripple.jsx');
|
8
8
|
|
9
9
|
var RaisedButton_ = React.createClass({
|
10
10
|
|
@@ -0,0 +1,52 @@
|
|
1
|
+
var React = require('react'),
|
2
|
+
CssEvent = require('./utils/css-event.js'),
|
3
|
+
Dom = require('./utils/dom.js'),
|
4
|
+
Classable = require('../../../../node_modules/material-ui/src/js/mixins/classable');
|
5
|
+
|
6
|
+
var Ripple = React.createClass({
|
7
|
+
|
8
|
+
mixins: [Classable],
|
9
|
+
|
10
|
+
render: function() {
|
11
|
+
var classes = this.getClasses('mui-ripple');
|
12
|
+
|
13
|
+
return (
|
14
|
+
<div className={classes} />
|
15
|
+
);
|
16
|
+
},
|
17
|
+
|
18
|
+
animate: function(e, callback) {
|
19
|
+
var el = this.getDOMNode(),
|
20
|
+
offset = Dom.offset(el.parentNode),
|
21
|
+
pageX = e.pageX == undefined ? e.nativeEvent.pageX : e.pageX,
|
22
|
+
pageY = e.pageY == undefined ? e.nativeEvent.pageY : e.pageY,
|
23
|
+
x = pageX - offset.left,
|
24
|
+
y = pageY - offset.top;
|
25
|
+
|
26
|
+
this._animateRipple(el, x, y, callback);
|
27
|
+
},
|
28
|
+
|
29
|
+
animateFromCenter: function(callback) {
|
30
|
+
var el = this.getDOMNode(),
|
31
|
+
x = el.parentNode.offsetWidth / 2,
|
32
|
+
y = el.parentNode.offsetHeight / 2;
|
33
|
+
|
34
|
+
this._animateRipple(el, x, y, callback);
|
35
|
+
},
|
36
|
+
|
37
|
+
_animateRipple: function(el, x, y, callback) {
|
38
|
+
el.style.transition = 'none';
|
39
|
+
el.style.top = y + 'px';
|
40
|
+
el.style.left = x + 'px';
|
41
|
+
|
42
|
+
Dom.addClass(el, 'mui-is-visible');
|
43
|
+
|
44
|
+
CssEvent.onAnimationEnd(el, function() {
|
45
|
+
Dom.removeClass(el, 'mui-is-visible');
|
46
|
+
if (callback) callback();
|
47
|
+
});
|
48
|
+
}
|
49
|
+
|
50
|
+
});
|
51
|
+
|
52
|
+
module.exports = Ripple;
|
@@ -51,6 +51,7 @@ html, body {
|
|
51
51
|
overflow-y: scroll;
|
52
52
|
background-color: #e9eaed;
|
53
53
|
-webkit-user-select: none;
|
54
|
+
//min-width: 1160px;
|
54
55
|
}
|
55
56
|
.resources-panel {
|
56
57
|
width: 50%;
|
@@ -232,11 +233,14 @@ html, body {
|
|
232
233
|
margin-right: 10px;
|
233
234
|
margin-bottom: 10px;
|
234
235
|
//line-height: 10px;
|
235
|
-
|
236
|
+
}
|
237
|
+
.mui-raised-button {
|
238
|
+
//height: 50%;
|
239
|
+
.mui-raised-button-label {
|
240
|
+
font-size: 0.75vw !important;
|
241
|
+
}
|
242
|
+
.mui-raised-button-container {
|
236
243
|
//height: 50%;
|
237
|
-
.mui-raised-button-container {
|
238
|
-
//height: 50%;
|
239
|
-
}
|
240
244
|
}
|
241
245
|
}
|
242
246
|
|
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.6.
|
4
|
+
version: 0.6.18
|
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-10-
|
11
|
+
date: 2015-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.4.
|
131
|
+
version: 0.4.24
|
132
132
|
- - "~>"
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0.4'
|
@@ -138,7 +138,7 @@ dependencies:
|
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: 0.4.
|
141
|
+
version: 0.4.24
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0.4'
|
@@ -697,8 +697,8 @@ files:
|
|
697
697
|
- framework_components/roomcast-main-app/package.json
|
698
698
|
- framework_components/roomcast-main-app/roomcast-default.png
|
699
699
|
- framework_components/roomcast-main-app/src/app/app.js
|
700
|
+
- framework_components/roomcast-main-app/src/app/components/NutellaMixin.js
|
700
701
|
- framework_components/roomcast-main-app/src/app/components/app/Channel.js
|
701
|
-
- framework_components/roomcast-main-app/src/app/components/app/NutellaMixin.js
|
702
702
|
- framework_components/roomcast-main-app/src/app/components/app/Player.js
|
703
703
|
- framework_components/roomcast-main-app/src/app/components/app/iOSMixin.js
|
704
704
|
- framework_components/roomcast-main-app/src/app/components/app/main.js
|
@@ -786,6 +786,7 @@ files:
|
|
786
786
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/overlay.jsx
|
787
787
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/raised-button_.jsx
|
788
788
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/right-nav.jsx
|
789
|
+
- framework_components/roomcast-package-creator/src/app/components/material-ui/ripple.jsx
|
789
790
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/drop-down-arrow.jsx
|
790
791
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-left.jsx
|
791
792
|
- framework_components/roomcast-package-creator/src/app/components/material-ui/svg-icons/navigation-chevron-right.jsx
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
var NutellaMixin = {
|
3
|
-
|
4
|
-
getChannelsForRid: function(message, rid) {
|
5
|
-
var myChannelsId = [];
|
6
|
-
var myChannels = [];
|
7
|
-
message.forEach(function(f) {
|
8
|
-
for (var i in f.items) {
|
9
|
-
var item = f.items[i];
|
10
|
-
if (item.name === 'iPad1') {
|
11
|
-
myChannelsId = item.channels;
|
12
|
-
break;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
});
|
16
|
-
myChannelsId.forEach(function(id) {
|
17
|
-
myChannels.push(CHANNELS[id]);
|
18
|
-
});
|
19
|
-
},
|
20
|
-
|
21
|
-
};
|
22
|
-
|
23
|
-
module.exports = NutellaMixin;
|