nutella_framework 0.4.29 → 0.4.30
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/monitoring-interface/js/d3/ui/ui-connection-view.js +14 -0
- data/framework_components/monitoring-interface/js/view-controller/application-view-controller.js +5 -2
- data/framework_components/monitoring-interface/js/view-controller/instance-view-controller.js +1 -1
- data/framework_components/room-debugger/README.md +3 -0
- data/framework_components/room-debugger/css/bootstrap-theme.css +476 -0
- data/framework_components/room-debugger/css/bootstrap-theme.css.map +1 -0
- data/framework_components/room-debugger/css/bootstrap-theme.min.css +5 -0
- data/framework_components/room-debugger/css/bootstrap.css +6584 -0
- data/framework_components/room-debugger/css/bootstrap.css.map +1 -0
- data/framework_components/room-debugger/css/bootstrap.min.css +5 -0
- data/framework_components/room-debugger/fonts/glyphicons-halflings-regular.eot +0 -0
- data/framework_components/room-debugger/fonts/glyphicons-halflings-regular.svg +288 -0
- data/framework_components/room-debugger/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/framework_components/room-debugger/fonts/glyphicons-halflings-regular.woff +0 -0
- data/framework_components/room-debugger/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/framework_components/room-debugger/index.html +204 -0
- data/framework_components/room-debugger/js/bootstrap.js +2317 -0
- data/framework_components/room-debugger/js/bootstrap.min.js +7 -0
- data/framework_components/room-debugger/js/jquery.min.js +5 -0
- data/framework_components/room-debugger/js/npm.js +13 -0
- data/framework_components/room-debugger/js/nutella_lib.js +5128 -0
- data/framework_components/room-debugger/main.css +4 -0
- data/framework_components/room-debugger/main.js +145 -0
- data/framework_components/room-debugger/nutella.json +6 -0
- data/framework_components/room-debugger/package.json +14 -0
- data/framework_components/room-debugger/room_places_simulator.js +74 -0
- data/nutella_framework.gemspec +26 -3
- metadata +25 -2
@@ -0,0 +1,204 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
7
|
+
<title>Room Debugger</title>
|
8
|
+
<meta name="description" content="A debugger to help you build your nutella applications">
|
9
|
+
<link rel="stylesheet" href="css/bootstrap.min.css">
|
10
|
+
<link rel="stylesheet" href="main.css">
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
|
14
|
+
|
15
|
+
<!-- Fixed navbar -->
|
16
|
+
<nav class="navbar navbar-default navbar-fixed-top">
|
17
|
+
<div class="container">
|
18
|
+
<div class="navbar-header">
|
19
|
+
<a class="navbar-brand" href="#">Room Debugger</a>
|
20
|
+
</div>
|
21
|
+
<div id="navbar" class="navbar-collapse collapse">
|
22
|
+
<ul class="nav navbar-nav">
|
23
|
+
<li class="active"><a href="#pubsub">Pub/Sub</a></li>
|
24
|
+
<li><a href="#reqres">Request/Response</a></li>
|
25
|
+
<li><a href="#roomplaces">RoomPlaces</a></li>
|
26
|
+
</ul>
|
27
|
+
<ul class="nav navbar-nav navbar-right">
|
28
|
+
</ul>
|
29
|
+
</div><!--/.nav-collapse -->
|
30
|
+
</div>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<div class="container">
|
36
|
+
|
37
|
+
<section id="pubsub">
|
38
|
+
<h1>Publish/Subscribe debugger</h1>
|
39
|
+
|
40
|
+
<div class="panel panel-default">
|
41
|
+
<div class="panel-heading">
|
42
|
+
<h3 class="panel-title">Publish</h3>
|
43
|
+
</div>
|
44
|
+
<div class="panel-body">
|
45
|
+
<form id="publish_frm" class="navbar-form navbar-left" role="search">
|
46
|
+
<div class="form-group">
|
47
|
+
<input type="text" class="form-control" placeholder="Channel">
|
48
|
+
</div>
|
49
|
+
<div class="form-group">
|
50
|
+
<input type="text" class="form-control" placeholder="Message">
|
51
|
+
</div>
|
52
|
+
<button type="submit" class="btn btn-default">Submit</button>
|
53
|
+
</form>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="panel panel-default">
|
58
|
+
<div class="panel-heading">
|
59
|
+
<h3 class="panel-title">Subscribe</h3>
|
60
|
+
</div>
|
61
|
+
<div class="panel-body">
|
62
|
+
<form id="sub_frm" class="navbar-form navbar-left">
|
63
|
+
<div class="form-group">
|
64
|
+
<input type="text" class="form-control" placeholder="Channel">
|
65
|
+
</div>
|
66
|
+
<button type="submit" class="btn btn-default">Subscribe</button>
|
67
|
+
<div id="sub_list" class="form-group"> </div>
|
68
|
+
</form>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
|
73
|
+
<div class="panel panel-default">
|
74
|
+
<div class="panel-heading clearfix">
|
75
|
+
<h3 class="panel-title pull-left" style="padding-top: 7px;">Incoming messages</h3>
|
76
|
+
<div class="btn-group pull-right">
|
77
|
+
<a id="remove_messages" class="btn btn-default btn-sm">Clear all</a>
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
<table id="messages" class="table">
|
81
|
+
<thead>
|
82
|
+
<tr>
|
83
|
+
<th>Channel</th>
|
84
|
+
<th>From</th>
|
85
|
+
<th>Message</th>
|
86
|
+
</tr>
|
87
|
+
</thead>
|
88
|
+
<tbody>
|
89
|
+
</tbody>
|
90
|
+
</table>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</section>
|
94
|
+
|
95
|
+
<!-- ----------------------------------------------- -->
|
96
|
+
|
97
|
+
<section id="reqres">
|
98
|
+
<h1>Request/Response debugger</h1>
|
99
|
+
|
100
|
+
<div class="panel panel-default">
|
101
|
+
<div class="panel-heading">
|
102
|
+
<h3 class="panel-title">Request</h3>
|
103
|
+
</div>
|
104
|
+
<div class="panel-body">
|
105
|
+
<form id="request_frm" class="form-inline">
|
106
|
+
<div class="form-group">
|
107
|
+
<input type="text" class="form-control" placeholder="Channel">
|
108
|
+
</div>
|
109
|
+
<div class="form-group">
|
110
|
+
<input type="text" class="form-control" placeholder="Message">
|
111
|
+
</div>
|
112
|
+
<button type="submit" class="btn btn-default">Send</button>
|
113
|
+
</form>
|
114
|
+
<h5>Response</h5>
|
115
|
+
<pre id="response">
|
116
|
+
|
117
|
+
</pre>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="panel panel-default">
|
122
|
+
<div class="panel-heading">
|
123
|
+
<h3 class="panel-title">Handle requests</h3>
|
124
|
+
</div>
|
125
|
+
<div class="panel-body">
|
126
|
+
<form id="handle_frm">
|
127
|
+
<div class="form-group">
|
128
|
+
<label for="handle_req_ch">Channel</label>
|
129
|
+
<input type="text" class="form-control" id="handle_req_ch" placeholder="Enter channel">
|
130
|
+
</div>
|
131
|
+
<div class="form-group">
|
132
|
+
<label for="handle_req_cb">Response</label>
|
133
|
+
<textarea id="handle_req_cb" class="form-control" placeholder="Enter the response" rows="3"></textarea>
|
134
|
+
</div>
|
135
|
+
<button id="handle_btn" type="submit" class="btn btn-default">Handle request</button>
|
136
|
+
</form>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</section>
|
141
|
+
|
142
|
+
<!-- ----------------------------------------------- -->
|
143
|
+
|
144
|
+
<section id="roomplaces">
|
145
|
+
<h1>RoomPlaces simulator</h1>
|
146
|
+
<!-- Interface for rp sim goes here -->
|
147
|
+
|
148
|
+
<div class="panel panel-default">
|
149
|
+
<div class="panel-heading">
|
150
|
+
<h3 class="panel-title">Simulator parameters</h3>
|
151
|
+
</div>
|
152
|
+
<div class="panel-body">
|
153
|
+
<form id="sim_frm">
|
154
|
+
<div class="form-group">
|
155
|
+
<label for="hotsp_ls">Hotspots (static resources)</label>
|
156
|
+
<input type="text" class="form-control" id="hotsp_ls" >
|
157
|
+
</div>
|
158
|
+
<div class="form-group">
|
159
|
+
<label for="beacon_ls">Beacons (dynamic resources)</label>
|
160
|
+
<input type="text" class="form-control" id="beacon_ls" >
|
161
|
+
</div>
|
162
|
+
<div class="form-group">
|
163
|
+
<label for="distance_fr">Distance (in meters ± .1)</label>
|
164
|
+
<input type="text" class="form-control" id="distance_fr" >
|
165
|
+
</div>
|
166
|
+
<button id="start_sim_btn" type="submit" class="btn btn-success">Start simulator</button>
|
167
|
+
</form>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
</section>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
<script src="js/jquery.min.js"></script>
|
180
|
+
<script src="js/bootstrap.min.js"></script>
|
181
|
+
<script src="js/nutella_lib.js"></script>
|
182
|
+
<script src="room_places_simulator.js"></script>
|
183
|
+
<script src="main.js"></script>
|
184
|
+
<script>
|
185
|
+
// Utility function to handle vertical scrolling
|
186
|
+
function scrollNav() {
|
187
|
+
$('.nav a').click(function(){
|
188
|
+
//Toggle Class
|
189
|
+
$(".active").removeClass("active");
|
190
|
+
$(this).closest('li').addClass("active");
|
191
|
+
var theClass = $(this).attr("class");
|
192
|
+
$('.'+theClass).parent('li').addClass('active');
|
193
|
+
//Animate
|
194
|
+
$('html, body').stop().animate({
|
195
|
+
scrollTop: $( $(this).attr('href') ).offset().top - 160
|
196
|
+
}, 400);
|
197
|
+
return false;
|
198
|
+
});
|
199
|
+
$('.scrollTop a').scrollTop();
|
200
|
+
}
|
201
|
+
scrollNav();
|
202
|
+
</script>
|
203
|
+
</body>
|
204
|
+
</html>
|