visage-app 0.3.3 → 0.9.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENCE +27 -0
- data/README.md +11 -0
- data/VERSION +1 -1
- data/lib/visage-app.rb +2 -10
- data/lib/visage-app/collectd/json.rb +11 -42
- data/lib/visage-app/profile.rb +7 -3
- data/lib/visage-app/public/images/active.png +0 -0
- data/lib/visage-app/public/images/loader.gif +0 -0
- data/lib/visage-app/public/javascripts/graph.js +409 -450
- data/lib/visage-app/public/javascripts/highcharts.js +135 -0
- data/lib/visage-app/public/javascripts/highcharts.src.js +8724 -0
- data/lib/visage-app/public/javascripts/keyboard.js +151 -0
- data/lib/visage-app/public/javascripts/mootools-1.2.5.1-more.js +350 -0
- data/lib/visage-app/public/stylesheets/screen.css +68 -19
- data/lib/visage-app/views/layout.haml +16 -6
- data/lib/visage-app/views/profile.haml +1 -5
- data/lib/visage-app/views/profiles.haml +3 -3
- metadata +18 -17
- data/lib/visage-app/config/fallback-colors.yaml +0 -82
- data/lib/visage-app/config/plugin-colors.yaml +0 -60
- data/lib/visage-app/public/javascripts/g.line-min.js +0 -7
- data/lib/visage-app/public/javascripts/g.line.js +0 -218
- data/lib/visage-app/public/javascripts/g.raphael-min.js +0 -7
- data/lib/visage-app/public/javascripts/g.raphael.js +0 -475
- data/lib/visage-app/public/javascripts/mootools-1.2.3.1-more.js +0 -104
- data/lib/visage-app/public/javascripts/raphael-min.js +0 -113
- data/lib/visage-app/public/javascripts/raphael.js +0 -3395
@@ -29,34 +29,50 @@ body {
|
|
29
29
|
}
|
30
30
|
|
31
31
|
div#header {
|
32
|
-
height: 40px;
|
33
|
-
background-color: #3465a4;
|
34
32
|
margin-bottom: 16px;
|
35
|
-
border-bottom:
|
36
|
-
background:
|
37
|
-
background: -
|
33
|
+
border-bottom: 2px solid #C5D6ED;
|
34
|
+
background-color: #3465a4;
|
35
|
+
background: -moz-linear-gradient(100% 100% 90deg, #244671, #4C94F0);
|
36
|
+
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4C94F0), to(#244671));
|
37
|
+
-moz-box-shadow: -7px 0 7px rgba(0,0,0,0.4);
|
38
|
+
-webkit-box-shadow: -7px 0 7px rgba(0,0,0,0.4);
|
38
39
|
}
|
39
40
|
|
40
41
|
div#nav {
|
41
|
-
padding-top: 10px;
|
42
42
|
color: white;
|
43
|
-
font-family: sans-serif;
|
43
|
+
font-family: Bitstream Vera Sans, Helvetica Neue, sans-serif;
|
44
44
|
text-align: right;
|
45
45
|
font-size: 16px;
|
46
46
|
}
|
47
47
|
|
48
|
-
div#nav
|
49
|
-
|
50
|
-
|
48
|
+
div#nav ul {
|
49
|
+
padding: 8px 0px;
|
50
|
+
}
|
51
|
+
|
52
|
+
div#nav ul li {
|
53
|
+
display: inline;
|
54
|
+
padding: 8px 0px;
|
55
|
+
}
|
56
|
+
|
57
|
+
div#nav ul li a {
|
58
|
+
padding: 8px 16px;
|
51
59
|
color: white;
|
60
|
+
text-shadow: 0 2px 1px rgba(0,0,0,0.5);
|
52
61
|
font-weight: bold;
|
53
62
|
}
|
54
63
|
|
55
|
-
div#nav a:hover {
|
56
|
-
text-shadow: 0 1px
|
64
|
+
div#nav ul li a:hover {
|
65
|
+
text-shadow: 0 2px 1px rgba(255,255,255,0.1);
|
66
|
+
background: -webkit-gradient(linear, left top, left bottom, from(#529EFF), to(#274C7A));
|
67
|
+
background: -moz-linear-gradient(top, #529EFF, #274C7A);
|
57
68
|
text-decoration: none;
|
58
69
|
}
|
59
70
|
|
71
|
+
div#nav span.title {
|
72
|
+
font-weight: bold;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
60
76
|
div#content, div#nav {
|
61
77
|
width: 950px;
|
62
78
|
margin: auto;
|
@@ -86,7 +102,6 @@ div#profile-meta input.create.profile {
|
|
86
102
|
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
|
87
103
|
-moz-border-radius: 5px;
|
88
104
|
-webkit-border-radius: 5px;
|
89
|
-
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
|
90
105
|
background: #888;
|
91
106
|
color: white;
|
92
107
|
padding: 5px 10px 6px;
|
@@ -94,8 +109,8 @@ div#profile-meta input.create.profile {
|
|
94
109
|
border-bottom: 1px solid rgba(0,0,0,0.25);
|
95
110
|
position: relative;
|
96
111
|
cursor: pointer;
|
97
|
-
font-weight: bold;
|
98
|
-
background-image: -webkit-gradient(
|
112
|
+
font-weight: bold;
|
113
|
+
background-image: -webkit-gradient(
|
99
114
|
linear,
|
100
115
|
left bottom,
|
101
116
|
left top,
|
@@ -116,8 +131,8 @@ p.error {
|
|
116
131
|
|
117
132
|
div.builder {
|
118
133
|
float: left;
|
119
|
-
margin-left: 25px;
|
120
134
|
width: 450px;
|
135
|
+
margin-left: 25px;
|
121
136
|
margin-bottom: 24px;
|
122
137
|
}
|
123
138
|
|
@@ -190,15 +205,13 @@ span.glob.example {
|
|
190
205
|
}
|
191
206
|
|
192
207
|
div#graphs {
|
193
|
-
clear: both;
|
194
208
|
padding: 0 2em;
|
195
209
|
border-top: 1px dashed #babdb6;
|
196
210
|
margin-top: 2em;
|
197
211
|
}
|
198
212
|
|
199
213
|
div.graph {
|
200
|
-
margin: 0
|
201
|
-
clear: both;
|
214
|
+
margin: 32px 0 48px;
|
202
215
|
}
|
203
216
|
|
204
217
|
h1, h2, h3, h4, h5 {
|
@@ -244,6 +257,7 @@ div#bottom_nav {
|
|
244
257
|
}
|
245
258
|
|
246
259
|
div#footer {
|
260
|
+
clear: both;
|
247
261
|
font-size: 0.6em;
|
248
262
|
color: gray;
|
249
263
|
text-align: center;
|
@@ -269,9 +283,15 @@ div#profiles div#sort {
|
|
269
283
|
|
270
284
|
div#profiles ul li {
|
271
285
|
margin-bottom: 8px;
|
286
|
+
padding-left: 24px;
|
287
|
+
margin-left: -24px;
|
272
288
|
list-style-type: none;
|
273
289
|
}
|
274
290
|
|
291
|
+
div#profiles ul li.active {
|
292
|
+
background: url("/images/active.png") no-repeat scroll 10px;
|
293
|
+
}
|
294
|
+
|
275
295
|
div#profiles ul {
|
276
296
|
margin-bottom: 16px;
|
277
297
|
}
|
@@ -282,3 +302,32 @@ div#profiles p.create {
|
|
282
302
|
margin-top: 24px;
|
283
303
|
font-size: 85%;
|
284
304
|
}
|
305
|
+
|
306
|
+
.mask {
|
307
|
+
position: absolute;
|
308
|
+
opacity: 0.7;
|
309
|
+
filter: alpha(opacity=90);
|
310
|
+
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=90);
|
311
|
+
z-index: 999;
|
312
|
+
background: #000;
|
313
|
+
}
|
314
|
+
|
315
|
+
div#shortcuts {
|
316
|
+
font-family: Bitstream Vera Sans, Helvetica Neue, sans-serif;
|
317
|
+
z-index: 1000;
|
318
|
+
width: 600px;
|
319
|
+
position: absolute;
|
320
|
+
top: 100px;
|
321
|
+
left: 50%;
|
322
|
+
margin-left: -300px;
|
323
|
+
background-color: white;
|
324
|
+
padding: 8px;
|
325
|
+
}
|
326
|
+
|
327
|
+
div#shortcuts table td, div#shortcuts table th {
|
328
|
+
padding: 4px 8px;
|
329
|
+
}
|
330
|
+
|
331
|
+
div#shortcuts table th {
|
332
|
+
text-align: left;
|
333
|
+
}
|
@@ -4,20 +4,30 @@
|
|
4
4
|
%title= include_page_title
|
5
5
|
%link{:rel => "icon", :type => "image/gif", :href => "/favicon.gif"}
|
6
6
|
%link{:rel => 'stylesheet', :href => '/stylesheets/screen.css', :type => 'text/css'}
|
7
|
-
%script{:type => "text/javascript", :src => link_to("/javascripts/raphael.js")}
|
8
|
-
%script{:type => "text/javascript", :src => link_to("/javascripts/g.raphael.js")}
|
9
|
-
%script{:type => "text/javascript", :src => link_to("/javascripts/g.line.js")}
|
10
7
|
%script{:type => "text/javascript", :src => link_to("/javascripts/mootools-1.2.3-core.js")}
|
11
|
-
%script{:type => "text/javascript", :src => link_to("/javascripts/mootools-1.2.
|
8
|
+
%script{:type => "text/javascript", :src => link_to("/javascripts/mootools-1.2.5.1-more.js")}
|
9
|
+
%script{:type => "text/javascript", :src => link_to("/javascripts/highcharts.js")}
|
12
10
|
%script{:type => "text/javascript", :src => link_to("/javascripts/graph.js")}
|
11
|
+
%script{:type => "text/javascript", :src => link_to("/javascripts/keyboard.js")}
|
13
12
|
|
14
13
|
%body
|
15
14
|
%div#wrapper
|
16
15
|
%div#header
|
17
16
|
%div#nav
|
18
|
-
%
|
19
|
-
|
17
|
+
%ul
|
18
|
+
%li
|
19
|
+
%a{:href => link_to("/profiles")} profiles
|
20
|
+
%li
|
21
|
+
%a{:href => link_to("/builder")} builder
|
20
22
|
|
21
23
|
%div#content
|
22
24
|
= yield
|
23
25
|
|
26
|
+
%div#footer
|
27
|
+
Visage
|
28
|
+
|
|
29
|
+
%a{:href => link_to("/profiles")} Profiles
|
30
|
+
|
|
31
|
+
%a{:href => link_to("/builder")} Builder
|
32
|
+
|
33
|
+
|
@@ -5,14 +5,10 @@
|
|
5
5
|
%h2#profile_name= profile_name
|
6
6
|
- @profile.graphs.each do |graph|
|
7
7
|
%div{:id => graph.id, :class => 'graph'}
|
8
|
+
%img{:src => "/images/loader.gif"}
|
8
9
|
:javascript
|
9
10
|
window.addEvent('domready', function() {
|
10
11
|
var graph = new visageGraph('#{graph.id}', '#{graph.host}', '#{graph.plugin}', {
|
11
|
-
width: 900,
|
12
|
-
height: 220,
|
13
|
-
gridWidth: 800,
|
14
|
-
gridHeight: 200,
|
15
|
-
shade: false,
|
16
12
|
pluginInstance: '#{graph.instances.join(',')}',
|
17
13
|
name: '#{graph.plugin} on #{graph.host}',
|
18
14
|
start: '#{@start}',
|
@@ -8,9 +8,9 @@
|
|
8
8
|
|
|
9
9
|
%a{:href => link_to("/profiles?sort=created")} created
|
10
10
|
|
11
|
-
%ul
|
12
|
-
- @profiles.
|
13
|
-
%li
|
11
|
+
%ul#navigation
|
12
|
+
- @profiles.each_with_index do |prof,index|
|
13
|
+
%li{:class => index == 0 ? 'active shortcut' : 'shortcut'}
|
14
14
|
%a{:href => link_to("/profiles/#{prof.url}")}= prof.profile_name
|
15
15
|
|
16
16
|
%p.create
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visage-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: true
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
|
7
|
+
- 9
|
8
|
+
- 0
|
9
|
+
- pre1
|
10
|
+
version: 0.9.0.pre1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Lindsay Holmwood
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-11-05 00:00:00 +11:00
|
18
19
|
default_executable: visage-app
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -97,6 +98,7 @@ extra_rdoc_files:
|
|
97
98
|
files:
|
98
99
|
- .gitignore
|
99
100
|
- AUTHORS
|
101
|
+
- LICENCE
|
100
102
|
- README.md
|
101
103
|
- Rakefile
|
102
104
|
- VERSION
|
@@ -119,27 +121,24 @@ files:
|
|
119
121
|
- lib/visage-app/collectd/rrds.rb
|
120
122
|
- lib/visage-app/config.rb
|
121
123
|
- lib/visage-app/config.ru
|
122
|
-
- lib/visage-app/config/fallback-colors.yaml
|
123
124
|
- lib/visage-app/config/file.rb
|
124
|
-
- lib/visage-app/config/plugin-colors.yaml
|
125
125
|
- lib/visage-app/graph.rb
|
126
126
|
- lib/visage-app/helpers.rb
|
127
127
|
- lib/visage-app/patches.rb
|
128
128
|
- lib/visage-app/profile.rb
|
129
129
|
- lib/visage-app/public/favicon.gif
|
130
|
+
- lib/visage-app/public/images/active.png
|
130
131
|
- lib/visage-app/public/images/add.png
|
131
132
|
- lib/visage-app/public/images/hosts.png
|
133
|
+
- lib/visage-app/public/images/loader.gif
|
132
134
|
- lib/visage-app/public/images/metrics.png
|
133
135
|
- lib/visage-app/public/images/search.png
|
134
|
-
- lib/visage-app/public/javascripts/g.line-min.js
|
135
|
-
- lib/visage-app/public/javascripts/g.line.js
|
136
|
-
- lib/visage-app/public/javascripts/g.raphael-min.js
|
137
|
-
- lib/visage-app/public/javascripts/g.raphael.js
|
138
136
|
- lib/visage-app/public/javascripts/graph.js
|
137
|
+
- lib/visage-app/public/javascripts/highcharts.js
|
138
|
+
- lib/visage-app/public/javascripts/highcharts.src.js
|
139
|
+
- lib/visage-app/public/javascripts/keyboard.js
|
139
140
|
- lib/visage-app/public/javascripts/mootools-1.2.3-core.js
|
140
|
-
- lib/visage-app/public/javascripts/mootools-1.2.
|
141
|
-
- lib/visage-app/public/javascripts/raphael-min.js
|
142
|
-
- lib/visage-app/public/javascripts/raphael.js
|
141
|
+
- lib/visage-app/public/javascripts/mootools-1.2.5.1-more.js
|
143
142
|
- lib/visage-app/public/stylesheets/screen.css
|
144
143
|
- lib/visage-app/views/builder.haml
|
145
144
|
- lib/visage-app/views/layout.haml
|
@@ -165,11 +164,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
164
|
version: "0"
|
166
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
166
|
requirements:
|
168
|
-
- - "
|
167
|
+
- - ">"
|
169
168
|
- !ruby/object:Gem::Version
|
170
169
|
segments:
|
171
|
-
-
|
172
|
-
|
170
|
+
- 1
|
171
|
+
- 3
|
172
|
+
- 1
|
173
|
+
version: 1.3.1
|
173
174
|
requirements: []
|
174
175
|
|
175
176
|
rubyforge_project:
|
@@ -1,82 +0,0 @@
|
|
1
|
-
---
|
2
|
-
Aluminium 1:
|
3
|
-
color: "#eeeeec"
|
4
|
-
fallback_order: 20
|
5
|
-
Aluminium 2:
|
6
|
-
color: "#d3d7cf"
|
7
|
-
fallback_order: 20
|
8
|
-
Aluminium 3:
|
9
|
-
color: "#babdb6"
|
10
|
-
fallback_order: 15
|
11
|
-
Aluminium 4:
|
12
|
-
color: "#888a85"
|
13
|
-
fallback_order: 20
|
14
|
-
Aluminium 5:
|
15
|
-
color: "#555753"
|
16
|
-
fallback_order: 20
|
17
|
-
Aluminium 6:
|
18
|
-
color: "#2e3436"
|
19
|
-
fallback_order: 7
|
20
|
-
Butter 1:
|
21
|
-
color: "#fce94f"
|
22
|
-
fallback_order: 12
|
23
|
-
Butter 2:
|
24
|
-
color: "#edd400"
|
25
|
-
fallback_order: 4
|
26
|
-
Butter 3:
|
27
|
-
color: "#c4a000"
|
28
|
-
fallback_order: 20
|
29
|
-
Chameleon 1:
|
30
|
-
color: "#8ae234"
|
31
|
-
fallback_order: 11
|
32
|
-
Chameleon 2:
|
33
|
-
color: "#73d216"
|
34
|
-
fallback_order: 1
|
35
|
-
Chameleon 3:
|
36
|
-
color: "#4e9a06"
|
37
|
-
fallback_order: 20
|
38
|
-
Chocolate 1:
|
39
|
-
color: "#e9b96e"
|
40
|
-
fallback_order: 14
|
41
|
-
Chocolate 2:
|
42
|
-
color: "#c17d11"
|
43
|
-
fallback_order: 5
|
44
|
-
Chocolate 3:
|
45
|
-
color: "#8f5902"
|
46
|
-
fallback_order: 20
|
47
|
-
Orange 1:
|
48
|
-
color: "#fcaf3e"
|
49
|
-
fallback_order: 13
|
50
|
-
Orange 2:
|
51
|
-
color: "#f57900"
|
52
|
-
fallback_order: 5
|
53
|
-
Orange 3:
|
54
|
-
color: "#ce5c00"
|
55
|
-
fallback_order: 20
|
56
|
-
Plum 1:
|
57
|
-
color: "#ad7fa8"
|
58
|
-
fallback_order: 9
|
59
|
-
Plum 2:
|
60
|
-
color: "#5c3566"
|
61
|
-
fallback_order: 20
|
62
|
-
Plum 3:
|
63
|
-
color: "#5c3566"
|
64
|
-
fallback_order: 1
|
65
|
-
Scarlet Red 1:
|
66
|
-
color: "#ef2929"
|
67
|
-
fallback_order: 8
|
68
|
-
Scarlet Red 2:
|
69
|
-
color: "#cc0000"
|
70
|
-
fallback_order: 0
|
71
|
-
Scarlet Red 3:
|
72
|
-
color: "#a40000"
|
73
|
-
fallback_order: 20
|
74
|
-
Sky Blue 1:
|
75
|
-
color: "#729fcf"
|
76
|
-
fallback_order: 10
|
77
|
-
Sky Blue 2:
|
78
|
-
color: "#3465a4"
|
79
|
-
fallback_order: 2
|
80
|
-
Sky Blue 3:
|
81
|
-
color: "#204a87"
|
82
|
-
fallback_order: 20
|
@@ -1,60 +0,0 @@
|
|
1
|
-
---
|
2
|
-
memory:
|
3
|
-
memory-used:
|
4
|
-
value: "#cc0000"
|
5
|
-
memory-buffered:
|
6
|
-
value: "#edd400"
|
7
|
-
memory-cached:
|
8
|
-
value: "#3465a4"
|
9
|
-
memory-free:
|
10
|
-
value: "#73d216"
|
11
|
-
cpu:
|
12
|
-
cpu-idle:
|
13
|
-
value: "#eeeeec"
|
14
|
-
cpu-wait:
|
15
|
-
value: "#edd400"
|
16
|
-
cpu-user:
|
17
|
-
value: "#3465a4"
|
18
|
-
cpu-system:
|
19
|
-
value: "#cc0000"
|
20
|
-
cpu-nice:
|
21
|
-
value: "#73d216"
|
22
|
-
cpu-softirq:
|
23
|
-
value: "#ad7fa8"
|
24
|
-
cpu-interrupt:
|
25
|
-
value: "#5c3566"
|
26
|
-
cpu-steal:
|
27
|
-
value: "#2e3436"
|
28
|
-
swap:
|
29
|
-
swap-used:
|
30
|
-
value: "#cc0000"
|
31
|
-
swap-free:
|
32
|
-
value: "#73d216"
|
33
|
-
swap-cached:
|
34
|
-
value: "#3465a4"
|
35
|
-
swap_io-in:
|
36
|
-
value: "#edd400"
|
37
|
-
swap_io-out:
|
38
|
-
value: "#5c3566"
|
39
|
-
load:
|
40
|
-
load:
|
41
|
-
longterm: "#ef2929"
|
42
|
-
shortterm: "#73d216"
|
43
|
-
midterm: "#3465a4"
|
44
|
-
df:
|
45
|
-
df:
|
46
|
-
used: "#cc0000"
|
47
|
-
free: "#73d216"
|
48
|
-
disk:
|
49
|
-
disk_merged:
|
50
|
-
read: "#8ae234"
|
51
|
-
write: "#ef2929"
|
52
|
-
disk_time:
|
53
|
-
read: "#729fcf"
|
54
|
-
write: "#fcaf3e"
|
55
|
-
disk_ops:
|
56
|
-
read: "#ad7fa8"
|
57
|
-
write: "#fce94f"
|
58
|
-
disk_octets:
|
59
|
-
read: "#c17d11"
|
60
|
-
write: "#888a85"
|