skybox 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ class Skybox
2
+ VERSION = "0.2.3"
3
+ end
@@ -0,0 +1,22 @@
1
+ <div class="content row">
2
+ <div class="span12">
3
+ <h3>Manage Actions</h3>
4
+
5
+ <table class="table table-striped">
6
+ <thead>
7
+ <tr>
8
+ <th>Name</td>
9
+ </tr>
10
+ </thead>
11
+
12
+ <tbody>
13
+ <% @actions.sort{|a,b| a['name'] <=> b['name']}.each do |action| %>
14
+ <tr>
15
+ <td><%= action['name'] %></td>
16
+ </tr>
17
+ <% end %>
18
+ </tbody>
19
+ </table>
20
+ </div>
21
+ </div>
22
+
@@ -0,0 +1,26 @@
1
+ <div class="content row">
2
+ <div class="span12">
3
+ <h3>Manage Properties</h3>
4
+
5
+ <table class="table table-striped">
6
+ <thead>
7
+ <tr>
8
+ <th>Name</td>
9
+ <th>Type</td>
10
+ <th>Data Type</td>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @properties.sort{|a,b| a['name'] <=> b['name']}.each do |property| %>
16
+ <tr>
17
+ <td><%= property['name'] %></td>
18
+ <td><%= (property['type'] == 1 ? 'Object' : 'Action') %></td>
19
+ <td><%= property['dataType'] %></td>
20
+ </tr>
21
+ <% end %>
22
+ </tbody>
23
+ </table>
24
+ </div>
25
+ </div>
26
+
@@ -0,0 +1,9 @@
1
+ <div class="content row">
2
+ <div class="span12">
3
+ <p id="query-text" class="lead"></p>
4
+ </div>
5
+ </div>
6
+
7
+ <div class="content row">
8
+ <div id="chart" class="span12"></div>
9
+ </div>
@@ -0,0 +1,24 @@
1
+ <div class="content row">
2
+ <div class="span6 offset3">
3
+ <header style="margin-top:100px;">
4
+ <h1>Welcome to Skybox</h1>
5
+ <p class="lead">Please select a table to begin.</p>
6
+ </header>
7
+
8
+ <select class="span6 table-name">
9
+ <option></option>
10
+ <% @tables.each do |table| %>
11
+ <option><%= table['name'] %></option>
12
+ <% end %>
13
+ </select>
14
+ </div>
15
+ </div>
16
+
17
+ <script>
18
+ $(".table-name").on("change", function() {
19
+ var table = $(this).val();
20
+ if(table != "") {
21
+ document.location = "/" + table;
22
+ }
23
+ });
24
+ </script>
@@ -0,0 +1,62 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Skybox</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="">
8
+ <meta name="author" content="">
9
+
10
+ <link href="/css/bootstrap.css" rel="stylesheet">
11
+ <link href="/css/bootstrap-responsive.css" rel="stylesheet">
12
+ <link href="/css/skybox.css" rel="stylesheet">
13
+ <% if File.exists?("#{settings.public_folder}/css/skybox.#{@action}.css") %>
14
+ <link href="/css/skybox.<%= @action %>.css" rel="stylesheet">
15
+ <% end %>
16
+
17
+ <script src="/js/jquery-1.9.1.js"></script>
18
+ <script src="/js/bootstrap.js"></script>
19
+ <script src="/js/d3.v3.js"></script>
20
+ <script src="/js/d3.flow.js"></script>
21
+ <script src="/js/humanize.js"></script>
22
+ <script src="/js/skybox.js"></script>
23
+ <% if File.exists?("#{settings.public_folder}/css/skybox.#{@action}.css") %>
24
+ <script src="/js/skybox.<%= @action %>.js"></script>
25
+ <% end %>
26
+
27
+ <script>
28
+ skybox.table(<%= @table.to_json %>);
29
+ </script>
30
+
31
+ <!--[if lt IE 9]>
32
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
33
+ <![endif]-->
34
+ </head>
35
+
36
+ <body>
37
+ <div class="container">
38
+ <% if request.path != '/' %>
39
+ <div class="navbar">
40
+ <div class="navbar-inner">
41
+ <a class="brand" href="/"><%= @table.nil? ? 'Skybox' : @table %></a>
42
+ <ul class="nav">
43
+ <li class="<%= @action == 'explore' ? 'active' : '' %>"><a href="/<%=@table%>/explore">Explore</a></li>
44
+ <li class="dropdown">
45
+ <a href="#" role="button" class="dropdown-toggle <%= request.path.index(/[^\/]+\/admin/i).nil? ? '' : 'active' %>" data-toggle="dropdown">Admin <b class="caret"></b></a>
46
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
47
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="/<%= @table %>/admin/actions">Manage Actions</a></li>
48
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="/<%= @table %>/admin/properties">Manage Properties</a></li>
49
+ </ul>
50
+ </li>
51
+
52
+ </ul>
53
+
54
+ <div class="pull-right"><img class="loading" src="/img/loading.gif"/></div>
55
+ </div>
56
+ </div>
57
+ <% end %>
58
+
59
+ <%= yield %>
60
+ </div>
61
+ </body>
62
+ </html>
metadata ADDED
@@ -0,0 +1,251 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: skybox
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ben Johnson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sinatra
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.3.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.3.3
30
+ - !ruby/object:Gem::Dependency
31
+ name: thin
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.5.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.5.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: commander
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 4.1.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 4.1.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: skydb
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 0.2.3
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 0.2.3
78
+ - !ruby/object:Gem::Dependency
79
+ name: unindentable
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 0.1.0
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 0.1.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: rake
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 10.0.3
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 10.0.3
110
+ - !ruby/object:Gem::Dependency
111
+ name: minitest
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 4.3.3
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 4.3.3
126
+ - !ruby/object:Gem::Dependency
127
+ name: mocha
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 0.13.1
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 0.13.1
142
+ - !ruby/object:Gem::Dependency
143
+ name: rerun
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 0.7.1
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.7.1
158
+ - !ruby/object:Gem::Dependency
159
+ name: rb-fsevent
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 0.9.1
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 0.9.1
174
+ - !ruby/object:Gem::Dependency
175
+ name: rack-test
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ~>
180
+ - !ruby/object:Gem::Version
181
+ version: 0.6.2
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: 0.6.2
190
+ description:
191
+ email:
192
+ - benbjohnson@yahoo.com
193
+ executables: []
194
+ extensions: []
195
+ extra_rdoc_files: []
196
+ files:
197
+ - lib/skybox/app.rb
198
+ - lib/skybox/static/css/bootstrap-responsive.css
199
+ - lib/skybox/static/css/bootstrap.css
200
+ - lib/skybox/static/css/skybox.css
201
+ - lib/skybox/static/css/skybox.explore.css
202
+ - lib/skybox/static/favicon.ico
203
+ - lib/skybox/static/img/glyphicons-halflings-white.png
204
+ - lib/skybox/static/img/glyphicons-halflings.png
205
+ - lib/skybox/static/img/loading.gif
206
+ - lib/skybox/static/js/bootstrap.js
207
+ - lib/skybox/static/js/d3.flow.js
208
+ - lib/skybox/static/js/d3.v3.js
209
+ - lib/skybox/static/js/humanize.js
210
+ - lib/skybox/static/js/jquery-1.9.1.js
211
+ - lib/skybox/static/js/skybox.explore.js
212
+ - lib/skybox/static/js/skybox.js
213
+ - lib/skybox/version.rb
214
+ - lib/skybox/views/admin/actions/index.erb
215
+ - lib/skybox/views/admin/properties/index.erb
216
+ - lib/skybox/views/explore.erb
217
+ - lib/skybox/views/index.erb
218
+ - lib/skybox/views/layout.erb
219
+ - lib/skybox.rb
220
+ - README.md
221
+ homepage: http://github.com/skydb/skybox
222
+ licenses: []
223
+ post_install_message:
224
+ rdoc_options: []
225
+ require_paths:
226
+ - lib
227
+ required_ruby_version: !ruby/object:Gem::Requirement
228
+ none: false
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ segments:
234
+ - 0
235
+ hash: 2921241129543838116
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ none: false
238
+ requirements:
239
+ - - ! '>='
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ segments:
243
+ - 0
244
+ hash: 2921241129543838116
245
+ requirements: []
246
+ rubyforge_project:
247
+ rubygems_version: 1.8.25
248
+ signing_key:
249
+ specification_version: 3
250
+ summary: Sky-based Analytics Frontend
251
+ test_files: []