dashing 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +202 -0
- data/bin/dashing +82 -0
- data/javascripts/batman.jquery.js +109 -0
- data/javascripts/batman.js +11811 -0
- data/javascripts/dashing.coffee +96 -0
- data/javascripts/es5-shim.js +1021 -0
- data/javascripts/jquery.js +4 -0
- data/lib/dashing.rb +109 -0
- data/templates/dashboard/%name%.erb.tt +7 -0
- data/templates/job/%name%.rb +4 -0
- data/templates/project/Gemfile +3 -0
- data/templates/project/README.md +0 -0
- data/templates/project/assets/fonts/fontawesome-webfont.eot +0 -0
- data/templates/project/assets/fonts/fontawesome-webfont.svg +255 -0
- data/templates/project/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/templates/project/assets/fonts/fontawesome-webfont.woff +0 -0
- data/templates/project/assets/images/favicon.ico +0 -0
- data/templates/project/assets/javascripts/application.coffee +24 -0
- data/templates/project/assets/javascripts/d3.v2.min.js +4 -0
- data/templates/project/assets/javascripts/dashing.gridster.coffee +32 -0
- data/templates/project/assets/javascripts/gridster/jquery.gridster.js +2890 -0
- data/templates/project/assets/javascripts/gridster/jquery.leanModal.min.js +5 -0
- data/templates/project/assets/javascripts/jquery.knob.js +646 -0
- data/templates/project/assets/javascripts/rickshaw.min.js +2 -0
- data/templates/project/assets/stylesheets/application.scss +229 -0
- data/templates/project/assets/stylesheets/font-awesome.css +303 -0
- data/templates/project/assets/stylesheets/jquery.gridster.css +57 -0
- data/templates/project/config.ru +18 -0
- data/templates/project/dashboards/layout.erb +32 -0
- data/templates/project/dashboards/sample.erb +25 -0
- data/templates/project/jobs/buzzwords.rb +9 -0
- data/templates/project/jobs/convergence.rb +13 -0
- data/templates/project/jobs/sample.rb +9 -0
- data/templates/project/lib/.empty_directory +1 -0
- data/templates/project/public/.empty_directory +1 -0
- data/templates/project/widgets/graph/graph.coffee +26 -0
- data/templates/project/widgets/graph/graph.html +5 -0
- data/templates/project/widgets/graph/graph.scss +51 -0
- data/templates/project/widgets/list/list.coffee +13 -0
- data/templates/project/widgets/list/list.html +15 -0
- data/templates/project/widgets/list/list.scss +52 -0
- data/templates/project/widgets/meter/meter.coffee +14 -0
- data/templates/project/widgets/meter/meter.html +5 -0
- data/templates/project/widgets/meter/meter.scss +37 -0
- data/templates/project/widgets/number/number.coffee +25 -0
- data/templates/project/widgets/number/number.html +9 -0
- data/templates/project/widgets/number/number.scss +35 -0
- data/templates/project/widgets/text/text.coffee +1 -0
- data/templates/project/widgets/text/text.html +5 -0
- data/templates/project/widgets/text/text.scss +25 -0
- data/templates/widget/%name%/%name%.coffee.tt +10 -0
- data/templates/widget/%name%/%name%.html +1 -0
- data/templates/widget/%name%/%name%.scss.tt +3 -0
- metadata +187 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
// ----------------------------------------------------------------------------
|
2
|
+
// Sass declarations
|
3
|
+
// ----------------------------------------------------------------------------
|
4
|
+
$background-color: #00b1a4;
|
5
|
+
$value-color: #fff;
|
6
|
+
|
7
|
+
$title-color: lighten($background-color, 75%);
|
8
|
+
$moreinfo-color: lighten($background-color, 45%);
|
9
|
+
|
10
|
+
// ----------------------------------------------------------------------------
|
11
|
+
// Widget-number styles
|
12
|
+
// ----------------------------------------------------------------------------
|
13
|
+
.widget-number {
|
14
|
+
|
15
|
+
background-color: $background-color;
|
16
|
+
|
17
|
+
.title {
|
18
|
+
color: $title-color;
|
19
|
+
}
|
20
|
+
|
21
|
+
.value {
|
22
|
+
color: $value-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
.change-rate {
|
26
|
+
font-weight: 300;
|
27
|
+
font-size: 30px;
|
28
|
+
color: $value-color;
|
29
|
+
}
|
30
|
+
|
31
|
+
.text-moreinfo {
|
32
|
+
color: $moreinfo-color;
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
class Dashing.Text extends Dashing.Widget
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// ----------------------------------------------------------------------------
|
2
|
+
// Sass declarations
|
3
|
+
// ----------------------------------------------------------------------------
|
4
|
+
$background-color: #ec663c;;
|
5
|
+
$value-color: #fff;
|
6
|
+
|
7
|
+
$title-color: lighten($background-color, 40%);
|
8
|
+
$moreinfo-color: lighten($background-color, 30%);
|
9
|
+
|
10
|
+
// ----------------------------------------------------------------------------
|
11
|
+
// Widget-text styles
|
12
|
+
// ----------------------------------------------------------------------------
|
13
|
+
.widget-text {
|
14
|
+
|
15
|
+
background-color: $background-color;
|
16
|
+
|
17
|
+
.title {
|
18
|
+
color: $title-color;
|
19
|
+
}
|
20
|
+
|
21
|
+
.text-moreinfo {
|
22
|
+
color: $moreinfo-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Dashing.<%= Thor::Util.camel_case(name) %> extends Dashing.Widget
|
2
|
+
|
3
|
+
ready: ->
|
4
|
+
# This is fired when the widget is done being rendered
|
5
|
+
|
6
|
+
onData: (data) ->
|
7
|
+
# Handle incoming data
|
8
|
+
# You can access the html node of this widget with `@node`
|
9
|
+
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
|
10
|
+
super
|
@@ -0,0 +1 @@
|
|
1
|
+
<div data-bind="value"></div>
|
metadata
ADDED
@@ -0,0 +1,187 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dashing
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Daniel Beauchamp
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sass
|
16
|
+
requirement: &70362542014960 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70362542014960
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: coffee-script
|
27
|
+
requirement: &70362542014520 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70362542014520
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sinatra
|
38
|
+
requirement: &70362541997720 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70362541997720
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sinatra-contrib
|
49
|
+
requirement: &70362541997120 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70362541997120
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: thin
|
60
|
+
requirement: &70362541996320 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70362541996320
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rufus-scheduler
|
71
|
+
requirement: &70362541995640 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70362541995640
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: thor
|
82
|
+
requirement: &70362541995120 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *70362541995120
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: sprockets
|
93
|
+
requirement: &70362541994400 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *70362541994400
|
102
|
+
description: An elegant, simple, beautiful, & flexible framework for creating dashboards.
|
103
|
+
email: daniel.beauchamp@shopify.com
|
104
|
+
executables:
|
105
|
+
- dashing
|
106
|
+
extensions: []
|
107
|
+
extra_rdoc_files: []
|
108
|
+
files:
|
109
|
+
- README.md
|
110
|
+
- javascripts/batman.jquery.js
|
111
|
+
- javascripts/batman.js
|
112
|
+
- javascripts/dashing.coffee
|
113
|
+
- javascripts/es5-shim.js
|
114
|
+
- javascripts/jquery.js
|
115
|
+
- templates/dashboard/%name%.erb.tt
|
116
|
+
- templates/job/%name%.rb
|
117
|
+
- templates/project/assets/fonts/fontawesome-webfont.eot
|
118
|
+
- templates/project/assets/fonts/fontawesome-webfont.svg
|
119
|
+
- templates/project/assets/fonts/fontawesome-webfont.ttf
|
120
|
+
- templates/project/assets/fonts/fontawesome-webfont.woff
|
121
|
+
- templates/project/assets/images/favicon.ico
|
122
|
+
- templates/project/assets/javascripts/application.coffee
|
123
|
+
- templates/project/assets/javascripts/d3.v2.min.js
|
124
|
+
- templates/project/assets/javascripts/dashing.gridster.coffee
|
125
|
+
- templates/project/assets/javascripts/gridster/jquery.gridster.js
|
126
|
+
- templates/project/assets/javascripts/gridster/jquery.leanModal.min.js
|
127
|
+
- templates/project/assets/javascripts/jquery.knob.js
|
128
|
+
- templates/project/assets/javascripts/rickshaw.min.js
|
129
|
+
- templates/project/assets/stylesheets/application.scss
|
130
|
+
- templates/project/assets/stylesheets/font-awesome.css
|
131
|
+
- templates/project/assets/stylesheets/jquery.gridster.css
|
132
|
+
- templates/project/config.ru
|
133
|
+
- templates/project/dashboards/layout.erb
|
134
|
+
- templates/project/dashboards/sample.erb
|
135
|
+
- templates/project/Gemfile
|
136
|
+
- templates/project/jobs/buzzwords.rb
|
137
|
+
- templates/project/jobs/convergence.rb
|
138
|
+
- templates/project/jobs/sample.rb
|
139
|
+
- templates/project/README.md
|
140
|
+
- templates/project/widgets/graph/graph.coffee
|
141
|
+
- templates/project/widgets/graph/graph.html
|
142
|
+
- templates/project/widgets/graph/graph.scss
|
143
|
+
- templates/project/widgets/list/list.coffee
|
144
|
+
- templates/project/widgets/list/list.html
|
145
|
+
- templates/project/widgets/list/list.scss
|
146
|
+
- templates/project/widgets/meter/meter.coffee
|
147
|
+
- templates/project/widgets/meter/meter.html
|
148
|
+
- templates/project/widgets/meter/meter.scss
|
149
|
+
- templates/project/widgets/number/number.coffee
|
150
|
+
- templates/project/widgets/number/number.html
|
151
|
+
- templates/project/widgets/number/number.scss
|
152
|
+
- templates/project/widgets/text/text.coffee
|
153
|
+
- templates/project/widgets/text/text.html
|
154
|
+
- templates/project/widgets/text/text.scss
|
155
|
+
- templates/widget/%name%/%name%.coffee.tt
|
156
|
+
- templates/widget/%name%/%name%.html
|
157
|
+
- templates/widget/%name%/%name%.scss.tt
|
158
|
+
- templates/project/lib/.empty_directory
|
159
|
+
- templates/project/public/.empty_directory
|
160
|
+
- lib/dashing.rb
|
161
|
+
- !binary |-
|
162
|
+
YmluL2Rhc2hpbmc=
|
163
|
+
homepage: http://Dashing.shopify.com
|
164
|
+
licenses: []
|
165
|
+
post_install_message:
|
166
|
+
rdoc_options: []
|
167
|
+
require_paths:
|
168
|
+
- lib
|
169
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
none: false
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
requirements: []
|
182
|
+
rubyforge_project:
|
183
|
+
rubygems_version: 1.8.11
|
184
|
+
signing_key:
|
185
|
+
specification_version: 3
|
186
|
+
summary: A simple & flexible framework for creating dashboards.
|
187
|
+
test_files: []
|