elasticsearch-paramedic-rack 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +9 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +38 -0
  6. data/Rakefile +24 -0
  7. data/elasticsearch-paramedic-rack.gemspec +24 -0
  8. data/lib/elasticsearch-paramedic-rack.rb +10 -0
  9. data/lib/elasticsearch-paramedic-rack/middelware.rb +23 -0
  10. data/lib/elasticsearch-paramedic-rack/version.rb +7 -0
  11. data/public/elasticsearch-paramedic/audio/alert-green.mp3 +0 -0
  12. data/public/elasticsearch-paramedic/audio/alert-red.mp3 +0 -0
  13. data/public/elasticsearch-paramedic/audio/alert-yellow.mp3 +0 -0
  14. data/public/elasticsearch-paramedic/css/app.css +312 -0
  15. data/public/elasticsearch-paramedic/css/libs/cubism.css +57 -0
  16. data/public/elasticsearch-paramedic/css/libs/style.css +499 -0
  17. data/public/elasticsearch-paramedic/img/apple-touch-icon.png +0 -0
  18. data/public/elasticsearch-paramedic/img/glyphicons-halflings-white.png +0 -0
  19. data/public/elasticsearch-paramedic/img/glyphicons-halflings.png +0 -0
  20. data/public/elasticsearch-paramedic/img/spinner.gif +0 -0
  21. data/public/elasticsearch-paramedic/index.html +196 -0
  22. data/public/elasticsearch-paramedic/js/app.js +474 -0
  23. data/public/elasticsearch-paramedic/js/cubism.js +109 -0
  24. data/public/elasticsearch-paramedic/js/libs/colorbrewer.min.js +1 -0
  25. data/public/elasticsearch-paramedic/js/libs/cubism.elasticsearch.js +273 -0
  26. data/public/elasticsearch-paramedic/js/libs/cubism.v1.js +986 -0
  27. data/public/elasticsearch-paramedic/js/libs/cubism.v1.min.js +1 -0
  28. data/public/elasticsearch-paramedic/js/libs/d3.v2.min.js +4 -0
  29. data/public/elasticsearch-paramedic/js/libs/ember-0.9.8.js +20150 -0
  30. data/public/elasticsearch-paramedic/js/libs/ember-0.9.8.min.js +14 -0
  31. data/public/elasticsearch-paramedic/js/libs/jquery-1.7.2.min.js +4 -0
  32. data/test/middelware_test.rb +63 -0
  33. data/test/test_helper.rb +12 -0
  34. metadata +134 -0
@@ -0,0 +1,57 @@
1
+ svg
2
+ { font: 10px sans-serif; }
3
+
4
+ .axis
5
+ { font: 10px sans-serif; }
6
+
7
+ .axis.top
8
+ { border-bottom: solid 1px #333; }
9
+
10
+ .axis path, .axis line
11
+ { fill: none;
12
+ stroke: #000;
13
+ shape-rendering: crispEdges; }
14
+
15
+ .axis text
16
+ { -webkit-transition: fill-opacity 250ms linear; }
17
+
18
+ .axis path
19
+ { display: none; }
20
+
21
+ .axis line
22
+ { stroke: #000;
23
+ shape-rendering: crispEdges; }
24
+
25
+ .horizon
26
+ { border-bottom: solid 1px #000;
27
+ overflow: hidden;
28
+ position: relative; }
29
+
30
+ .horizon
31
+ { border-bottom: solid 1px #000; }
32
+
33
+ .horizon + .horizon
34
+ { border-top: none; }
35
+
36
+ .horizon canvas
37
+ { display: block; }
38
+
39
+ .horizon .title,
40
+ .horizon .value
41
+ { bottom: 0;
42
+ line-height: 30px;
43
+ margin: 0 6px;
44
+ position: absolute;
45
+ text-shadow: 0 1px 0 rgba(255,255,255,.5);
46
+ white-space: nowrap; }
47
+
48
+ .horizon .title
49
+ { left: 0; }
50
+
51
+ .horizon .value
52
+ { right: 0; }
53
+
54
+ .line
55
+ { background: #000;
56
+ opacity: .2;
57
+ z-index: 2; }
@@ -0,0 +1,499 @@
1
+
2
+ /* ==== Scroll down to find where to put your styles :) ==== */
3
+
4
+ /* HTML5 ✰ Boilerplate */
5
+
6
+ html, body, div, span, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
9
+ small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
10
+ fieldset, form, label, legend,
11
+ table, caption, tbody, tfoot, thead, tr, th, td,
12
+ article, aside, canvas, details, figcaption, figure,
13
+ footer, header, hgroup, menu, nav, section, summary,
14
+ time, mark, audio, video {
15
+ margin: 0;
16
+ padding: 0;
17
+ border: 0;
18
+ font-size: 100%;
19
+ font: inherit;
20
+ vertical-align: baseline;
21
+ }
22
+
23
+ article, aside, details, figcaption, figure,
24
+ footer, header, hgroup, menu, nav, section {
25
+ display: block;
26
+ }
27
+
28
+ blockquote, q { quotes: none; }
29
+ blockquote:before, blockquote:after,
30
+ q:before, q:after { content: ''; content: none; }
31
+ ins { background-color: #ff9; color: #000; text-decoration: none; }
32
+ mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
33
+ del { text-decoration: line-through; }
34
+ abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
35
+ table { border-collapse: collapse; border-spacing: 0; }
36
+ hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
37
+ input, select { vertical-align: middle; }
38
+
39
+ body { font:13px/1.231 sans-serif; *font-size:small; }
40
+ select, input, textarea, button { font:99% sans-serif; }
41
+ pre, code, kbd, samp { font-family: monospace, sans-serif; }
42
+
43
+ html { overflow-y: scroll; }
44
+ a:hover, a:active { outline: none; }
45
+ ul, ol { margin-left: 2em; }
46
+ ol { list-style-type: decimal; }
47
+ nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
48
+ small { font-size: 85%; }
49
+ strong, th { font-weight: bold; }
50
+ td { vertical-align: top; }
51
+
52
+ sub, sup { font-size: 75%; line-height: 0; position: relative; }
53
+ sup { top: -0.5em; }
54
+ sub { bottom: -0.25em; }
55
+
56
+ pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; }
57
+ textarea { overflow: auto; }
58
+ .ie6 legend, .ie7 legend { margin-left: -7px; }
59
+ input[type="radio"] { vertical-align: text-bottom; }
60
+ input[type="checkbox"] { vertical-align: bottom; }
61
+ .ie7 input[type="checkbox"] { vertical-align: baseline; }
62
+ .ie6 input { vertical-align: text-bottom; }
63
+ label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
64
+ button, input, select, textarea { margin: 0; }
65
+ input:valid, textarea:valid { }
66
+ input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
67
+ .no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
68
+
69
+ ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
70
+ ::selection { background:#FF5E99; color:#fff; text-shadow: none; }
71
+ a:link { -webkit-tap-highlight-color: #FF5E99; }
72
+
73
+ button { width: auto; overflow: visible; }
74
+ .ie7 img { -ms-interpolation-mode: bicubic; }
75
+
76
+ body, select, input, textarea { color: #444; }
77
+ h1, h2, h3, h4, h5, h6 { font-weight: bold; }
78
+ a, a:active, a:visited { color: #607890; }
79
+ a:hover { color: #036; }
80
+
81
+
82
+ /* Bootstrap icons */
83
+ [class^="icon-"], [class*=" icon-"] {
84
+ display: inline-block;
85
+ width: 14px;
86
+ height: 14px;
87
+ line-height: 14px;
88
+ vertical-align: text-top;
89
+ background-image: url("../../img/glyphicons-halflings.png");
90
+ background-position: 14px 14px;
91
+ background-repeat: no-repeat;
92
+ *margin-right: .3em;
93
+ }
94
+ [class^="icon-"]:last-child, [class*=" icon-"]:last-child {
95
+ *margin-left: 0;
96
+ }
97
+ .icon-white {
98
+ background-image: url("../img/glyphicons-halflings-white.png");
99
+ }
100
+ .icon-glass {
101
+ background-position: 0 0;
102
+ }
103
+ .icon-music {
104
+ background-position: -24px 0;
105
+ }
106
+ .icon-search {
107
+ background-position: -48px 0;
108
+ }
109
+ .icon-envelope {
110
+ background-position: -72px 0;
111
+ }
112
+ .icon-heart {
113
+ background-position: -96px 0;
114
+ }
115
+ .icon-star {
116
+ background-position: -120px 0;
117
+ }
118
+ .icon-star-empty {
119
+ background-position: -144px 0;
120
+ }
121
+ .icon-user {
122
+ background-position: -168px 0;
123
+ }
124
+ .icon-film {
125
+ background-position: -192px 0;
126
+ }
127
+ .icon-th-large {
128
+ background-position: -216px 0;
129
+ }
130
+ .icon-th {
131
+ background-position: -240px 0;
132
+ }
133
+ .icon-th-list {
134
+ background-position: -264px 0;
135
+ }
136
+ .icon-ok {
137
+ background-position: -288px 0;
138
+ }
139
+ .icon-remove {
140
+ background-position: -312px 0;
141
+ }
142
+ .icon-zoom-in {
143
+ background-position: -336px 0;
144
+ }
145
+ .icon-zoom-out {
146
+ background-position: -360px 0;
147
+ }
148
+ .icon-off {
149
+ background-position: -384px 0;
150
+ }
151
+ .icon-signal {
152
+ background-position: -408px 0;
153
+ }
154
+ .icon-cog {
155
+ background-position: -432px 0;
156
+ }
157
+ .icon-trash {
158
+ background-position: -456px 0;
159
+ }
160
+ .icon-home {
161
+ background-position: 0 -24px;
162
+ }
163
+ .icon-file {
164
+ background-position: -24px -24px;
165
+ }
166
+ .icon-time {
167
+ background-position: -48px -24px;
168
+ }
169
+ .icon-road {
170
+ background-position: -72px -24px;
171
+ }
172
+ .icon-download-alt {
173
+ background-position: -96px -24px;
174
+ }
175
+ .icon-download {
176
+ background-position: -120px -24px;
177
+ }
178
+ .icon-upload {
179
+ background-position: -144px -24px;
180
+ }
181
+ .icon-inbox {
182
+ background-position: -168px -24px;
183
+ }
184
+ .icon-play-circle {
185
+ background-position: -192px -24px;
186
+ }
187
+ .icon-repeat {
188
+ background-position: -216px -24px;
189
+ }
190
+ .icon-refresh {
191
+ background-position: -240px -24px;
192
+ }
193
+ .icon-list-alt {
194
+ background-position: -264px -24px;
195
+ }
196
+ .icon-lock {
197
+ background-position: -287px -24px;
198
+ }
199
+ .icon-flag {
200
+ background-position: -312px -24px;
201
+ }
202
+ .icon-headphones {
203
+ background-position: -336px -24px;
204
+ }
205
+ .icon-volume-off {
206
+ background-position: -360px -24px;
207
+ }
208
+ .icon-volume-down {
209
+ background-position: -384px -24px;
210
+ }
211
+ .icon-volume-up {
212
+ background-position: -408px -24px;
213
+ }
214
+ .icon-qrcode {
215
+ background-position: -432px -24px;
216
+ }
217
+ .icon-barcode {
218
+ background-position: -456px -24px;
219
+ }
220
+ .icon-tag {
221
+ background-position: 0 -48px;
222
+ }
223
+ .icon-tags {
224
+ background-position: -25px -48px;
225
+ }
226
+ .icon-book {
227
+ background-position: -48px -48px;
228
+ }
229
+ .icon-bookmark {
230
+ background-position: -72px -48px;
231
+ }
232
+ .icon-print {
233
+ background-position: -96px -48px;
234
+ }
235
+ .icon-camera {
236
+ background-position: -120px -48px;
237
+ }
238
+ .icon-font {
239
+ background-position: -144px -48px;
240
+ }
241
+ .icon-bold {
242
+ background-position: -167px -48px;
243
+ }
244
+ .icon-italic {
245
+ background-position: -192px -48px;
246
+ }
247
+ .icon-text-height {
248
+ background-position: -216px -48px;
249
+ }
250
+ .icon-text-width {
251
+ background-position: -240px -48px;
252
+ }
253
+ .icon-align-left {
254
+ background-position: -264px -48px;
255
+ }
256
+ .icon-align-center {
257
+ background-position: -288px -48px;
258
+ }
259
+ .icon-align-right {
260
+ background-position: -312px -48px;
261
+ }
262
+ .icon-align-justify {
263
+ background-position: -336px -48px;
264
+ }
265
+ .icon-list {
266
+ background-position: -360px -48px;
267
+ }
268
+ .icon-indent-left {
269
+ background-position: -384px -48px;
270
+ }
271
+ .icon-indent-right {
272
+ background-position: -408px -48px;
273
+ }
274
+ .icon-facetime-video {
275
+ background-position: -432px -48px;
276
+ }
277
+ .icon-picture {
278
+ background-position: -456px -48px;
279
+ }
280
+ .icon-pencil {
281
+ background-position: 0 -72px;
282
+ }
283
+ .icon-map-marker {
284
+ background-position: -24px -72px;
285
+ }
286
+ .icon-adjust {
287
+ background-position: -48px -72px;
288
+ }
289
+ .icon-tint {
290
+ background-position: -72px -72px;
291
+ }
292
+ .icon-edit {
293
+ background-position: -96px -72px;
294
+ }
295
+ .icon-share {
296
+ background-position: -120px -72px;
297
+ }
298
+ .icon-check {
299
+ background-position: -144px -72px;
300
+ }
301
+ .icon-move {
302
+ background-position: -168px -72px;
303
+ }
304
+ .icon-step-backward {
305
+ background-position: -192px -72px;
306
+ }
307
+ .icon-fast-backward {
308
+ background-position: -216px -72px;
309
+ }
310
+ .icon-backward {
311
+ background-position: -240px -72px;
312
+ }
313
+ .icon-play {
314
+ background-position: -264px -72px;
315
+ }
316
+ .icon-pause {
317
+ background-position: -288px -72px;
318
+ }
319
+ .icon-stop {
320
+ background-position: -312px -72px;
321
+ }
322
+ .icon-forward {
323
+ background-position: -336px -72px;
324
+ }
325
+ .icon-fast-forward {
326
+ background-position: -360px -72px;
327
+ }
328
+ .icon-step-forward {
329
+ background-position: -384px -72px;
330
+ }
331
+ .icon-eject {
332
+ background-position: -408px -72px;
333
+ }
334
+ .icon-chevron-left {
335
+ background-position: -432px -72px;
336
+ }
337
+ .icon-chevron-right {
338
+ background-position: -456px -72px;
339
+ }
340
+ .icon-plus-sign {
341
+ background-position: 0 -96px;
342
+ }
343
+ .icon-minus-sign {
344
+ background-position: -24px -96px;
345
+ }
346
+ .icon-remove-sign {
347
+ background-position: -48px -96px;
348
+ }
349
+ .icon-ok-sign {
350
+ background-position: -72px -96px;
351
+ }
352
+ .icon-question-sign {
353
+ background-position: -96px -96px;
354
+ }
355
+ .icon-info-sign {
356
+ background-position: -120px -96px;
357
+ }
358
+ .icon-screenshot {
359
+ background-position: -144px -96px;
360
+ }
361
+ .icon-remove-circle {
362
+ background-position: -168px -96px;
363
+ }
364
+ .icon-ok-circle {
365
+ background-position: -192px -96px;
366
+ }
367
+ .icon-ban-circle {
368
+ background-position: -216px -96px;
369
+ }
370
+ .icon-arrow-left {
371
+ background-position: -240px -96px;
372
+ }
373
+ .icon-arrow-right {
374
+ background-position: -264px -96px;
375
+ }
376
+ .icon-arrow-up {
377
+ background-position: -289px -96px;
378
+ }
379
+ .icon-arrow-down {
380
+ background-position: -312px -96px;
381
+ }
382
+ .icon-share-alt {
383
+ background-position: -336px -96px;
384
+ }
385
+ .icon-resize-full {
386
+ background-position: -360px -96px;
387
+ }
388
+ .icon-resize-small {
389
+ background-position: -384px -96px;
390
+ }
391
+ .icon-plus {
392
+ background-position: -408px -96px;
393
+ }
394
+ .icon-minus {
395
+ background-position: -433px -96px;
396
+ }
397
+ .icon-asterisk {
398
+ background-position: -456px -96px;
399
+ }
400
+ .icon-exclamation-sign {
401
+ background-position: 0 -120px;
402
+ }
403
+ .icon-gift {
404
+ background-position: -24px -120px;
405
+ }
406
+ .icon-leaf {
407
+ background-position: -48px -120px;
408
+ }
409
+ .icon-fire {
410
+ background-position: -72px -120px;
411
+ }
412
+ .icon-eye-open {
413
+ background-position: -96px -120px;
414
+ }
415
+ .icon-eye-close {
416
+ background-position: -120px -120px;
417
+ }
418
+ .icon-warning-sign {
419
+ background-position: -144px -120px;
420
+ }
421
+ .icon-plane {
422
+ background-position: -168px -120px;
423
+ }
424
+ .icon-calendar {
425
+ background-position: -192px -120px;
426
+ }
427
+ .icon-random {
428
+ background-position: -216px -120px;
429
+ }
430
+ .icon-comment {
431
+ background-position: -240px -120px;
432
+ }
433
+ .icon-magnet {
434
+ background-position: -264px -120px;
435
+ }
436
+ .icon-chevron-up {
437
+ background-position: -288px -120px;
438
+ }
439
+ .icon-chevron-down {
440
+ background-position: -313px -119px;
441
+ }
442
+ .icon-retweet {
443
+ background-position: -336px -120px;
444
+ }
445
+ .icon-shopping-cart {
446
+ background-position: -360px -120px;
447
+ }
448
+ .icon-folder-close {
449
+ background-position: -384px -120px;
450
+ }
451
+ .icon-folder-open {
452
+ background-position: -408px -120px;
453
+ }
454
+ .icon-resize-vertical {
455
+ background-position: -432px -119px;
456
+ }
457
+ .icon-resize-horizontal {
458
+ background-position: -456px -118px;
459
+ }
460
+
461
+ .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
462
+ .hidden { display: none; visibility: hidden; }
463
+ .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
464
+ .visuallyhidden.focusable:active,
465
+ .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
466
+ .invisible { visibility: hidden; }
467
+ .clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
468
+ .clearfix:after { clear: both; }
469
+ .clearfix { zoom: 1; }
470
+
471
+
472
+ @media all and (orientation:portrait) {
473
+
474
+ }
475
+
476
+ @media all and (orientation:landscape) {
477
+
478
+ }
479
+
480
+ @media screen and (max-device-width: 480px) {
481
+
482
+ /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
483
+ }
484
+
485
+
486
+ @media print {
487
+ * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
488
+ -ms-filter: none !important; }
489
+ a, a:visited { color: #444 !important; text-decoration: underline; }
490
+ a[href]:after { content: " (" attr(href) ")"; }
491
+ abbr[title]:after { content: " (" attr(title) ")"; }
492
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
493
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
494
+ thead { display: table-header-group; }
495
+ tr, img { page-break-inside: avoid; }
496
+ @page { margin: 0.5cm; }
497
+ p, h2, h3 { orphans: 3; widows: 3; }
498
+ h2, h3{ page-break-after: avoid; }
499
+ }