nutella_framework 0.4.5 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +14 -15
  3. data/VERSION +1 -1
  4. data/framework_components/beacon-cloud-bot/README.md +27 -0
  5. data/framework_components/beacon-cloud-bot/beacon_cloud_bot.rb +154 -0
  6. data/framework_components/beacon-cloud-bot/nutella.json +6 -0
  7. data/framework_components/beacon-cloud-bot/startup +4 -0
  8. data/framework_components/beacon-cloud-interface/LICENSE +21 -0
  9. data/framework_components/beacon-cloud-interface/Readme.md +0 -0
  10. data/framework_components/beacon-cloud-interface/bower.json +29 -0
  11. data/framework_components/beacon-cloud-interface/bower_components/bower-mqttws/.bower.json +23 -0
  12. data/framework_components/beacon-cloud-interface/bower_components/bower-mqttws/bower.json +14 -0
  13. data/framework_components/beacon-cloud-interface/bower_components/bower-mqttws/mqttws31.js +2081 -0
  14. data/framework_components/beacon-cloud-interface/bower_components/bower-mqttws/readme.md +4 -0
  15. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/.bower.json +37 -0
  16. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/LICENSE +21 -0
  17. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/README.md +15 -0
  18. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/bower.json +28 -0
  19. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/examples/browser/mqtt_client_hello_world.html +23 -0
  20. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/examples/browser/nutella_hello_world.html +52 -0
  21. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js +14 -0
  22. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js +38 -0
  23. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/nutella_lib.js +789 -0
  24. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/package.json +30 -0
  25. data/framework_components/beacon-cloud-interface/bower_components/nutella_lib/simple-js-mqtt-client.js +428 -0
  26. data/framework_components/beacon-cloud-interface/css/animation.css +17 -0
  27. data/framework_components/beacon-cloud-interface/css/cursor.css +16 -0
  28. data/framework_components/beacon-cloud-interface/css/page_layout.css +73 -0
  29. data/framework_components/beacon-cloud-interface/index.html +157 -0
  30. data/framework_components/beacon-cloud-interface/js/lib/nutella_lib.js +4039 -0
  31. data/framework_components/beacon-cloud-interface/js/react/beacon-add.js +102 -0
  32. data/framework_components/beacon-cloud-interface/js/react/beacon-table.js +73 -0
  33. data/framework_components/beacon-cloud-interface/js/react/beacon.js +97 -0
  34. data/framework_components/beacon-cloud-interface/nutella.json +6 -0
  35. data/framework_components/example_framework_web_interface/index.html +11 -2
  36. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/.npmignore +10 -0
  37. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/.travis.yml +5 -0
  38. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/LICENSE +21 -0
  39. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/README.md +27 -0
  40. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js +4039 -0
  41. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map +1 -0
  42. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/examples/browser_hello_world.html +67 -0
  43. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/examples/node_hello_world.js +51 -0
  44. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/gulpfile.js +31 -0
  45. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/package.json +41 -0
  46. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/app_core.js +19 -0
  47. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/app_core_browser.js +17 -0
  48. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/app_log.js +50 -0
  49. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/app_net.js +279 -0
  50. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/app_persist.js +20 -0
  51. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/fr_core_browser.js +17 -0
  52. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/fr_log.js +50 -0
  53. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/fr_net.js +499 -0
  54. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/nutella_i.js +74 -0
  55. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/nutella_i_browser.js +130 -0
  56. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/nutella_lib.js +91 -0
  57. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/nutella_lib_browser.js +90 -0
  58. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/run_log.js +51 -0
  59. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/run_net.js +84 -0
  60. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/run_persist.js +20 -0
  61. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/src/util/net.js +327 -0
  62. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/test/nutella.test.js +16 -0
  63. data/framework_components/example_framework_web_interface/node_modules/nutella_lib/test/runner.html +22 -0
  64. data/framework_components/example_framework_web_interface/package.json +15 -0
  65. data/framework_components/{order.json.example → order.json} +0 -0
  66. data/framework_components/runs_list_bot/{app_runs_list_bot.rb → runs_list_bot.rb} +9 -3
  67. data/framework_components/runs_list_bot/startup +1 -1
  68. data/lib/commands/meta/run_command.rb +21 -36
  69. data/lib/commands/start.rb +9 -199
  70. data/lib/commands/util/components_list.rb +68 -0
  71. data/lib/commands/util/components_starter.rb +169 -0
  72. data/nutella_framework.gemspec +109 -47
  73. data/nutella_lib/framework_net.rb +17 -13
  74. metadata +84 -106
@@ -0,0 +1,157 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <!-- Your interface name here-->
6
+ <title>Beacon Cloud</title>
7
+ <!-- The description of this interfaces here -->
8
+ <meta name="description" content="">
9
+ <!-- Your CSS here -->
10
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
11
+ <link rel="stylesheet" href="css/animation.css">
12
+ <link rel="stylesheet" href="css/cursor.css">
13
+ <link rel="stylesheet" href="css/page_layout.css">
14
+
15
+ <script src="http://fb.me/react-with-addons-0.12.2.js"></script>
16
+ <script src="http://fb.me/JSXTransformer-0.12.2.js"></script>
17
+ <script src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
18
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
19
+
20
+ <script src="js/lib/nutella_lib.js" type="text/javascript" charset="utf-8"></script>
21
+
22
+ </head>
23
+ <body>
24
+
25
+ <div class="page-header" style="height: 20%">
26
+ <h1 class="text-center">Beacon Cloud</h1>
27
+ </div>
28
+
29
+ <div class="vertical-center" id="beacon_table">
30
+ </div>
31
+
32
+ <!--
33
+ <div class="vertical-center">
34
+ <div class="table-responsive col-md-6 col-md-offset-3 col-sm-12">
35
+ <table class="table table-bordered table-striped table-hover">
36
+ <thead>
37
+ <tr>
38
+ <th class="col-md-2 col-sm-2 col-xs-2">Resource Id</th>
39
+ <th class="col-md-6 col-sm-6 col-xs-6">UUID</th>
40
+ <th class="col-md-2 col-sm-2 col-xs-2">Major</th>
41
+ <th class="col-md-2 col-sm-2 col-xs-2">Minor</th>
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ <tr>
46
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
47
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
48
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
49
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
50
+ </tr>
51
+ <tr>
52
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
53
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
54
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
55
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
56
+ </tr>
57
+ <tr>
58
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
59
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
60
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
61
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
62
+ </tr>
63
+ <tr>
64
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
65
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
66
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
67
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
68
+ </tr>
69
+ <tr>
70
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
71
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
72
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
73
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
74
+ </tr>
75
+ <tr>
76
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
77
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
78
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
79
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
80
+ </tr>
81
+ <tr>
82
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
83
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
84
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
85
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
86
+ </tr>
87
+ <tr>
88
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
89
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
90
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
91
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
92
+ </tr>
93
+ <tr>
94
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
95
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
96
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
97
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
98
+ </tr>
99
+ <tr>
100
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
101
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
102
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
103
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
104
+ </tr>
105
+ <tr>
106
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
107
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
108
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
109
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
110
+ </tr>
111
+ <tr>
112
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
113
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
114
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
115
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
116
+ </tr>
117
+ <tr>
118
+ <td class="col-md-2 col-sm-2 col-xs-2">Giraffe</td>
119
+ <td class="col-md-6 col-sm-6 col-xs-6">550e8400-e29b-41d4-a716-446655440000</td>
120
+ <td class="col-md-2 col-sm-2 col-xs-2">30000</td>
121
+ <td class="col-md-2 col-sm-2 col-xs-2">15</td>
122
+ </tr>
123
+ <tr>
124
+ <td class="col-md-2 col-sm-2 col-xs-2"><input type="text" class="form-control" placeholder="ResourceId" /></td>
125
+ <td class="col-md-6 col-sm-6 col-xs-6"><input type="text" class="form-control" placeholder="UUID" /></td>
126
+ <td class="col-md-2 col-sm-2 col-xs-2"><input type="text" class="form-control" placeholder="Major" /></td>
127
+ <td class="col-md-2 col-sm-2 col-xs-2"><input type="text" class="form-control" placeholder="Minor" /></td>
128
+ </tr>
129
+ </tbody>
130
+ </table>
131
+ </div>
132
+ </div>
133
+
134
+ -->
135
+
136
+ <script type="text/jsx" src="js/react/beacon.js"></script>
137
+ <script type="text/jsx" src="js/react/beacon-add.js"></script>
138
+ <script type="text/jsx" src="js/react/beacon-table.js"></script>
139
+
140
+ <script type="text/jsx">
141
+
142
+ // Parse the query parameters
143
+ var query_parameters = NUTELLA.parseURLParameters();
144
+
145
+ var nutella = NUTELLA.initFramework(query_parameters.broker, 'beacon-cloud-interface');
146
+
147
+ //var nutella = NUTELLA.init(query_parameters.run_id, query_parameters.broker, 'beacon-cloud-interface-interface');
148
+
149
+ React.render(
150
+ <BeaconTable/>,
151
+ document.getElementById('beacon_table')
152
+ );
153
+
154
+ </script>
155
+
156
+ </body>
157
+ </html>