nutella_framework 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/framework_components/roomcast-main-app/.gitignore +2 -0
- data/framework_components/roomcast-main-app/README.md +9 -0
- data/framework_components/roomcast-main-app/dist/LICENSE +21 -0
- data/framework_components/roomcast-main-app/dist/app.js +54280 -0
- 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 +216 -0
- data/framework_components/roomcast-main-app/dist/css/ionicons.min.css +11 -0
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.eot +0 -0
- data/framework_components/roomcast-main-app/dist/fonts/ionicons.svg +2230 -0
- 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 +3227 -0
- data/framework_components/roomcast-main-app/gulp/config.js +47 -0
- data/framework_components/roomcast-main-app/gulp/tasks/browserify.js +77 -0
- data/framework_components/roomcast-main-app/gulp/tasks/build.js +3 -0
- data/framework_components/roomcast-main-app/gulp/tasks/css.js +7 -0
- data/framework_components/roomcast-main-app/gulp/tasks/default.js +3 -0
- data/framework_components/roomcast-main-app/gulp/tasks/fonts.js +7 -0
- data/framework_components/roomcast-main-app/gulp/tasks/less.js +16 -0
- data/framework_components/roomcast-main-app/gulp/tasks/markup.js +7 -0
- data/framework_components/roomcast-main-app/gulp/tasks/setWatch.js +5 -0
- data/framework_components/roomcast-main-app/gulp/tasks/svgs.js +7 -0
- data/framework_components/roomcast-main-app/gulp/tasks/watch.js +12 -0
- data/framework_components/roomcast-main-app/gulp/util/bundleLogger.js +21 -0
- data/framework_components/roomcast-main-app/gulp/util/handleErrors.js +15 -0
- data/framework_components/roomcast-main-app/gulpfile.js +16 -0
- data/framework_components/roomcast-main-app/index.html +38 -0
- data/framework_components/roomcast-main-app/nutella.json +6 -0
- data/framework_components/roomcast-main-app/package.json +47 -0
- data/framework_components/roomcast-main-app/src/app/app.js +15 -0
- data/framework_components/roomcast-main-app/src/app/components/app/Channel.js +72 -0
- data/framework_components/roomcast-main-app/src/app/components/app/NutellaMixin.js +23 -0
- data/framework_components/roomcast-main-app/src/app/components/app/Player.js +129 -0
- data/framework_components/roomcast-main-app/src/app/components/app/iOSMixin.js +22 -0
- data/framework_components/roomcast-main-app/src/app/components/app/main.js +519 -0
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu-item.jsx +79 -0
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/menu.jsx +177 -0
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/overlay.jsx +21 -0
- data/framework_components/roomcast-main-app/src/app/components/app/material-ui/right-nav.jsx +108 -0
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentitiesGrid.js +91 -0
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/IdentityCard.js +86 -0
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/iOSMixin.js +19 -0
- data/framework_components/roomcast-main-app/src/app/components/identity-selector/main.js +105 -0
- data/framework_components/roomcast-main-app/src/app/components/login/AppIdPage.js +97 -0
- data/framework_components/roomcast-main-app/src/app/components/login/BrokerPage.js +139 -0
- data/framework_components/roomcast-main-app/src/app/components/login/IdentitiesGrid.js +93 -0
- data/framework_components/roomcast-main-app/src/app/components/login/IdentityCard.js +99 -0
- data/framework_components/roomcast-main-app/src/app/components/login/RunIdPage.js +78 -0
- data/framework_components/roomcast-main-app/src/app/components/login/iOSMixin.js +23 -0
- data/framework_components/roomcast-main-app/src/app/components/login/main.js +121 -0
- data/framework_components/roomcast-main-app/src/app/components/main.js +64 -0
- data/framework_components/roomcast-main-app/src/less/main.less +364 -0
- data/framework_components/roomcast-main-app/src/less/my_overrides.less +39 -0
- data/framework_components/roomcast-main-app/src/less/right-nav.less +31 -0
- data/framework_components/roomcast-package-creator/dist/app.js +17830 -3473
- 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 -0
- 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 +2 -1
- data/framework_components/roomcast-package-creator/dist/nutella_lib.js +4110 -4050
- data/framework_components/roomcast-package-creator/index.html +0 -13
- data/framework_components/roomcast-package-creator/package.json +33 -32
- data/framework_components/roomcast-package-creator/src/app/app.js +14 -4
- data/framework_components/roomcast-package-creator/src/app/components/ChannelCard.js +14 -1
- data/framework_components/roomcast-package-creator/src/app/components/main.js +0 -4
- data/framework_components/roomcast-package-creator/src/less/main.less +1 -0
- metadata +57 -2
|
@@ -14,19 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
<body>
|
|
16
16
|
|
|
17
|
-
<!-- Nutella -->
|
|
18
|
-
<script src="dist/nutella_lib.js" type="text/javascript" charset="utf-8"></script>
|
|
19
|
-
<script type="text/javascript">
|
|
20
|
-
|
|
21
|
-
// Parse the query parameters
|
|
22
|
-
var query_parameters = NUTELLA.parseURLParameters();
|
|
23
|
-
|
|
24
|
-
// Get an instance of nutella.
|
|
25
|
-
var nutella = NUTELLA.init(query_parameters.broker, query_parameters.app_id, query_parameters.run_id, 'configuration-interface');
|
|
26
|
-
|
|
27
|
-
</script>
|
|
28
|
-
|
|
29
|
-
<!-- This script adds the Roboto font to our project. For more detail go to this site: http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500 -->
|
|
30
17
|
<script>
|
|
31
18
|
var WebFontConfig = {
|
|
32
19
|
google: {
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "roomcast-package-creator",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"browserify": {
|
|
6
|
+
"transform": [
|
|
7
7
|
[
|
|
8
8
|
"reactify",
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
{
|
|
10
|
+
"es6": true
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
]
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"browser-sync": "^1.8.1",
|
|
17
|
+
"browserify": "^7.0.3",
|
|
18
|
+
"gulp": "^3.8.10",
|
|
19
|
+
"gulp-autoprefixer": "^2.0.0",
|
|
20
|
+
"gulp-less": "^3.0.3",
|
|
21
|
+
"gulp-notify": "^2.1.0",
|
|
22
|
+
"gulp-sourcemaps": "^1.2.8",
|
|
23
|
+
"gulp-util": "^3.0.1",
|
|
24
|
+
"pretty-hrtime": "^0.2.2",
|
|
25
|
+
"reactify": "^0.17.1",
|
|
26
|
+
"require-dir": "^0.1.0",
|
|
27
|
+
"underscore": "^1.7.0",
|
|
28
|
+
"vinyl-source-stream": "^1.0.0",
|
|
29
|
+
"watchify": "^2.2.1"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"d3": "^3.5.5",
|
|
33
|
+
"jquery": "^2.1.4",
|
|
34
|
+
"material-ui": "^0.4.1",
|
|
35
|
+
"nutella_lib": "^0.5.10",
|
|
36
|
+
"react": "^0.12.2",
|
|
37
|
+
"react-tap-event-plugin": "^0.1.3"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
var React = require('react'),
|
|
3
3
|
injectTapEventPlugin = require("react-tap-event-plugin"),
|
|
4
|
-
Main = require('./components/main.js')
|
|
4
|
+
Main = require('./components/main.js'),
|
|
5
|
+
NUTELLA = require('nutella_lib');
|
|
5
6
|
|
|
6
7
|
//Needed for React Developer Tools
|
|
7
8
|
window.React = React;
|
|
@@ -12,8 +13,17 @@
|
|
|
12
13
|
//https://github.com/zilverline/react-tap-event-plugin
|
|
13
14
|
injectTapEventPlugin();
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
var query_parameters = NUTELLA.parseURLParameters();
|
|
17
|
+
if(query_parameters[0]) {
|
|
18
|
+
window.nutella = NUTELLA.init(query_parameters.broker, query_parameters.app_id, query_parameters.run_id, 'roomcast-package-creator', function(connected) {
|
|
19
|
+
if(connected) {
|
|
20
|
+
window.ReactMain = React.render( <Main /> , document.body);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
} else {
|
|
24
|
+
window.nutella = NUTELLA.init('52.1.142.215', 't1', 'default', 'roomcast-package-creator', function(connected) {
|
|
25
|
+
window.ReactMain = React.render( <Main /> , document.body);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
18
28
|
|
|
19
29
|
})();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var React = require('react');
|
|
2
2
|
var Mui = require('material-ui');
|
|
3
3
|
var Paper = Mui.Paper;
|
|
4
|
+
var $ = require('jquery');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @prop selectedChannel
|
|
@@ -8,6 +9,18 @@ var Paper = Mui.Paper;
|
|
|
8
9
|
*/
|
|
9
10
|
var ChannelCard = React.createClass({
|
|
10
11
|
|
|
12
|
+
componentDidMount: function() {
|
|
13
|
+
// Font-size adaptation based on card width
|
|
14
|
+
$('.text-fit').each(function() {
|
|
15
|
+
$(this).css('font-size', '2em');
|
|
16
|
+
var i =0;
|
|
17
|
+
while( $(this).width() > $('.name-wrapper').width() - 10 ) {
|
|
18
|
+
$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + "px" );
|
|
19
|
+
i++;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
|
|
11
24
|
handleSelectCard: function() {
|
|
12
25
|
|
|
13
26
|
if(this.props.currentSelectedChannel && this.props.currentSelectedChannel.id === this.props.channelId) {
|
|
@@ -66,7 +79,7 @@ var ChannelCard = React.createClass({
|
|
|
66
79
|
<div className='channel-icon' ref='channelIcon' style={iconStyle} > </div>
|
|
67
80
|
|
|
68
81
|
<div className='name-wrapper'>
|
|
69
|
-
<
|
|
82
|
+
<span className='channel-name text-fit'>{this.props.channelData.name}</span>
|
|
70
83
|
</div>
|
|
71
84
|
|
|
72
85
|
</div>
|
|
@@ -9,7 +9,6 @@ var Main = React.createClass({
|
|
|
9
9
|
|
|
10
10
|
componentDidMount: function() {
|
|
11
11
|
var self = this;
|
|
12
|
-
|
|
13
12
|
// Get current channels catalogue
|
|
14
13
|
nutella.net.request('channels/retrieve', 'all', function (response) {
|
|
15
14
|
self.handleUpdatedChannelsCatalogue(response);
|
|
@@ -18,11 +17,8 @@ var Main = React.createClass({
|
|
|
18
17
|
nutella.net.subscribe('channels/updated', function (message, from) {
|
|
19
18
|
self.handleUpdatedChannelsCatalogue(message);
|
|
20
19
|
});
|
|
21
|
-
|
|
22
20
|
});
|
|
23
|
-
|
|
24
21
|
// TODO subscribe to changed configs
|
|
25
|
-
|
|
26
22
|
},
|
|
27
23
|
|
|
28
24
|
/**
|
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.7
|
|
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-09-
|
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: semantic
|
|
@@ -665,6 +665,61 @@ files:
|
|
|
665
665
|
- framework_components/roomcast-channel-creator/src/less/main.less
|
|
666
666
|
- framework_components/roomcast-channel-creator/src/less/my_overrides.less
|
|
667
667
|
- framework_components/roomcast-channel-creator/upload.svg
|
|
668
|
+
- framework_components/roomcast-main-app/.gitignore
|
|
669
|
+
- framework_components/roomcast-main-app/README.md
|
|
670
|
+
- framework_components/roomcast-main-app/dist/LICENSE
|
|
671
|
+
- framework_components/roomcast-main-app/dist/app.js
|
|
672
|
+
- framework_components/roomcast-main-app/dist/assets/Logo.png
|
|
673
|
+
- framework_components/roomcast-main-app/dist/assets/Logo_alpha.png
|
|
674
|
+
- framework_components/roomcast-main-app/dist/assets/Logo_grid.svg
|
|
675
|
+
- framework_components/roomcast-main-app/dist/css/ionicons.min.css
|
|
676
|
+
- framework_components/roomcast-main-app/dist/fonts/ionicons.eot
|
|
677
|
+
- framework_components/roomcast-main-app/dist/fonts/ionicons.svg
|
|
678
|
+
- framework_components/roomcast-main-app/dist/fonts/ionicons.ttf
|
|
679
|
+
- framework_components/roomcast-main-app/dist/fonts/ionicons.woff
|
|
680
|
+
- framework_components/roomcast-main-app/dist/main.css
|
|
681
|
+
- framework_components/roomcast-main-app/gulp/config.js
|
|
682
|
+
- framework_components/roomcast-main-app/gulp/tasks/browserify.js
|
|
683
|
+
- framework_components/roomcast-main-app/gulp/tasks/build.js
|
|
684
|
+
- framework_components/roomcast-main-app/gulp/tasks/css.js
|
|
685
|
+
- framework_components/roomcast-main-app/gulp/tasks/default.js
|
|
686
|
+
- framework_components/roomcast-main-app/gulp/tasks/fonts.js
|
|
687
|
+
- framework_components/roomcast-main-app/gulp/tasks/less.js
|
|
688
|
+
- framework_components/roomcast-main-app/gulp/tasks/markup.js
|
|
689
|
+
- framework_components/roomcast-main-app/gulp/tasks/setWatch.js
|
|
690
|
+
- framework_components/roomcast-main-app/gulp/tasks/svgs.js
|
|
691
|
+
- framework_components/roomcast-main-app/gulp/tasks/watch.js
|
|
692
|
+
- framework_components/roomcast-main-app/gulp/util/bundleLogger.js
|
|
693
|
+
- framework_components/roomcast-main-app/gulp/util/handleErrors.js
|
|
694
|
+
- framework_components/roomcast-main-app/gulpfile.js
|
|
695
|
+
- framework_components/roomcast-main-app/index.html
|
|
696
|
+
- framework_components/roomcast-main-app/nutella.json
|
|
697
|
+
- framework_components/roomcast-main-app/package.json
|
|
698
|
+
- framework_components/roomcast-main-app/src/app/app.js
|
|
699
|
+
- framework_components/roomcast-main-app/src/app/components/app/Channel.js
|
|
700
|
+
- framework_components/roomcast-main-app/src/app/components/app/NutellaMixin.js
|
|
701
|
+
- framework_components/roomcast-main-app/src/app/components/app/Player.js
|
|
702
|
+
- framework_components/roomcast-main-app/src/app/components/app/iOSMixin.js
|
|
703
|
+
- framework_components/roomcast-main-app/src/app/components/app/main.js
|
|
704
|
+
- framework_components/roomcast-main-app/src/app/components/app/material-ui/menu-item.jsx
|
|
705
|
+
- framework_components/roomcast-main-app/src/app/components/app/material-ui/menu.jsx
|
|
706
|
+
- framework_components/roomcast-main-app/src/app/components/app/material-ui/overlay.jsx
|
|
707
|
+
- framework_components/roomcast-main-app/src/app/components/app/material-ui/right-nav.jsx
|
|
708
|
+
- framework_components/roomcast-main-app/src/app/components/identity-selector/IdentitiesGrid.js
|
|
709
|
+
- framework_components/roomcast-main-app/src/app/components/identity-selector/IdentityCard.js
|
|
710
|
+
- framework_components/roomcast-main-app/src/app/components/identity-selector/iOSMixin.js
|
|
711
|
+
- framework_components/roomcast-main-app/src/app/components/identity-selector/main.js
|
|
712
|
+
- framework_components/roomcast-main-app/src/app/components/login/AppIdPage.js
|
|
713
|
+
- framework_components/roomcast-main-app/src/app/components/login/BrokerPage.js
|
|
714
|
+
- framework_components/roomcast-main-app/src/app/components/login/IdentitiesGrid.js
|
|
715
|
+
- framework_components/roomcast-main-app/src/app/components/login/IdentityCard.js
|
|
716
|
+
- framework_components/roomcast-main-app/src/app/components/login/RunIdPage.js
|
|
717
|
+
- framework_components/roomcast-main-app/src/app/components/login/iOSMixin.js
|
|
718
|
+
- framework_components/roomcast-main-app/src/app/components/login/main.js
|
|
719
|
+
- framework_components/roomcast-main-app/src/app/components/main.js
|
|
720
|
+
- framework_components/roomcast-main-app/src/less/main.less
|
|
721
|
+
- framework_components/roomcast-main-app/src/less/my_overrides.less
|
|
722
|
+
- framework_components/roomcast-main-app/src/less/right-nav.less
|
|
668
723
|
- framework_components/roomcast-package-creator/.gitignore
|
|
669
724
|
- framework_components/roomcast-package-creator/README.md
|
|
670
725
|
- framework_components/roomcast-package-creator/dist/app.js
|