blazer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of blazer might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +144 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/blazer/ace/ace.js +11 -0
- data/app/assets/javascripts/blazer/ace/ext-language_tools.js +5 -0
- data/app/assets/javascripts/blazer/ace/mode-sql.js +1 -0
- data/app/assets/javascripts/blazer/ace/snippets/sql.js +1 -0
- data/app/assets/javascripts/blazer/ace/snippets/text.js +1 -0
- data/app/assets/javascripts/blazer/ace/theme-twilight.js +1 -0
- data/app/assets/javascripts/blazer/application.js +15 -0
- data/app/assets/javascripts/blazer/daterangepicker.js +1026 -0
- data/app/assets/javascripts/blazer/highlight.pack.js +1 -0
- data/app/assets/javascripts/blazer/jquery.js +10308 -0
- data/app/assets/javascripts/blazer/jquery.stickytableheaders.js +263 -0
- data/app/assets/javascripts/blazer/jquery_ujs.js +469 -0
- data/app/assets/javascripts/blazer/list.js +1474 -0
- data/app/assets/javascripts/blazer/moment.js +2400 -0
- data/app/assets/javascripts/blazer/selectize.js +3477 -0
- data/app/assets/javascripts/blazer/stupidtable.js +114 -0
- data/app/assets/stylesheets/blazer/application.css +66 -0
- data/app/assets/stylesheets/blazer/bootstrap.css +6203 -0
- data/app/assets/stylesheets/blazer/bootstrap.css.map +1 -0
- data/app/assets/stylesheets/blazer/daterangepicker-bs3.css +267 -0
- data/app/assets/stylesheets/blazer/github.css +126 -0
- data/app/assets/stylesheets/blazer/selectize.default.css +386 -0
- data/app/controllers/blazer/queries_controller.rb +216 -0
- data/app/helpers/blazer/queries_helper.rb +21 -0
- data/app/models/blazer/audit.rb +5 -0
- data/app/models/blazer/connection.rb +5 -0
- data/app/models/blazer/query.rb +13 -0
- data/app/views/blazer/queries/_form.html.erb +84 -0
- data/app/views/blazer/queries/edit.html.erb +1 -0
- data/app/views/blazer/queries/index.html.erb +47 -0
- data/app/views/blazer/queries/new.html.erb +1 -0
- data/app/views/blazer/queries/run.html.erb +50 -0
- data/app/views/blazer/queries/show.html.erb +138 -0
- data/app/views/layouts/blazer/application.html.erb +17 -0
- data/blazer.gemspec +25 -0
- data/config/routes.rb +6 -0
- data/lib/blazer/engine.rb +11 -0
- data/lib/blazer/version.rb +3 -0
- data/lib/blazer.rb +16 -0
- data/lib/generators/blazer/install_generator.rb +33 -0
- data/lib/generators/blazer/templates/config.yml +8 -0
- data/lib/generators/blazer/templates/install.rb +17 -0
- metadata +134 -0
@@ -0,0 +1,267 @@
|
|
1
|
+
/*!
|
2
|
+
* Stylesheet for the Date Range Picker, for use with Bootstrap 3.x
|
3
|
+
*
|
4
|
+
* Copyright 2013 Dan Grossman ( http://www.dangrossman.info )
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Built for http://www.improvely.com
|
9
|
+
*/
|
10
|
+
|
11
|
+
.daterangepicker.dropdown-menu {
|
12
|
+
max-width: none;
|
13
|
+
z-index: 3000;
|
14
|
+
}
|
15
|
+
|
16
|
+
.daterangepicker.opensleft .ranges, .daterangepicker.opensleft .calendar {
|
17
|
+
float: left;
|
18
|
+
margin: 4px;
|
19
|
+
}
|
20
|
+
|
21
|
+
.daterangepicker.opensright .ranges, .daterangepicker.opensright .calendar {
|
22
|
+
float: right;
|
23
|
+
margin: 4px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.daterangepicker .ranges {
|
27
|
+
width: 160px;
|
28
|
+
text-align: left;
|
29
|
+
}
|
30
|
+
|
31
|
+
.daterangepicker .ranges .range_inputs>div {
|
32
|
+
float: left;
|
33
|
+
}
|
34
|
+
|
35
|
+
.daterangepicker .ranges .range_inputs>div:nth-child(2) {
|
36
|
+
padding-left: 11px;
|
37
|
+
}
|
38
|
+
|
39
|
+
.daterangepicker .calendar {
|
40
|
+
display: none;
|
41
|
+
max-width: 270px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.daterangepicker.show-calendar .calendar {
|
45
|
+
display: block;
|
46
|
+
}
|
47
|
+
|
48
|
+
.daterangepicker .calendar.single .calendar-date {
|
49
|
+
border: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
.daterangepicker .calendar th, .daterangepicker .calendar td {
|
53
|
+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
54
|
+
white-space: nowrap;
|
55
|
+
text-align: center;
|
56
|
+
min-width: 32px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.daterangepicker .daterangepicker_start_input label,
|
60
|
+
.daterangepicker .daterangepicker_end_input label {
|
61
|
+
color: #333;
|
62
|
+
display: block;
|
63
|
+
font-size: 11px;
|
64
|
+
font-weight: normal;
|
65
|
+
height: 20px;
|
66
|
+
line-height: 20px;
|
67
|
+
margin-bottom: 2px;
|
68
|
+
text-shadow: #fff 1px 1px 0px;
|
69
|
+
text-transform: uppercase;
|
70
|
+
width: 74px;
|
71
|
+
}
|
72
|
+
|
73
|
+
.daterangepicker .ranges input {
|
74
|
+
font-size: 11px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.daterangepicker .ranges .input-mini {
|
78
|
+
background-color: #eee;
|
79
|
+
border: 1px solid #ccc;
|
80
|
+
border-radius: 4px;
|
81
|
+
color: #555;
|
82
|
+
display: block;
|
83
|
+
font-size: 11px;
|
84
|
+
height: 30px;
|
85
|
+
line-height: 30px;
|
86
|
+
vertical-align: middle;
|
87
|
+
margin: 0 0 10px 0;
|
88
|
+
padding: 0 6px;
|
89
|
+
width: 74px;
|
90
|
+
}
|
91
|
+
|
92
|
+
.daterangepicker .ranges ul {
|
93
|
+
list-style: none;
|
94
|
+
margin: 0;
|
95
|
+
padding: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
.daterangepicker .ranges li {
|
99
|
+
font-size: 13px;
|
100
|
+
background: #f5f5f5;
|
101
|
+
border: 1px solid #f5f5f5;
|
102
|
+
color: #08c;
|
103
|
+
padding: 3px 12px;
|
104
|
+
margin-bottom: 8px;
|
105
|
+
-webkit-border-radius: 5px;
|
106
|
+
-moz-border-radius: 5px;
|
107
|
+
border-radius: 5px;
|
108
|
+
cursor: pointer;
|
109
|
+
}
|
110
|
+
|
111
|
+
.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover {
|
112
|
+
background: #08c;
|
113
|
+
border: 1px solid #08c;
|
114
|
+
color: #fff;
|
115
|
+
}
|
116
|
+
|
117
|
+
.daterangepicker .calendar-date {
|
118
|
+
border: 1px solid #ddd;
|
119
|
+
padding: 4px;
|
120
|
+
border-radius: 4px;
|
121
|
+
background: #fff;
|
122
|
+
}
|
123
|
+
|
124
|
+
.daterangepicker .calendar-time {
|
125
|
+
text-align: center;
|
126
|
+
margin: 8px auto 0 auto;
|
127
|
+
line-height: 30px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.daterangepicker {
|
131
|
+
position: absolute;
|
132
|
+
background: #fff;
|
133
|
+
top: 100px;
|
134
|
+
left: 20px;
|
135
|
+
padding: 4px;
|
136
|
+
margin-top: 1px;
|
137
|
+
-webkit-border-radius: 4px;
|
138
|
+
-moz-border-radius: 4px;
|
139
|
+
border-radius: 4px;
|
140
|
+
}
|
141
|
+
|
142
|
+
.daterangepicker.opensleft:before {
|
143
|
+
position: absolute;
|
144
|
+
top: -7px;
|
145
|
+
right: 9px;
|
146
|
+
display: inline-block;
|
147
|
+
border-right: 7px solid transparent;
|
148
|
+
border-bottom: 7px solid #ccc;
|
149
|
+
border-left: 7px solid transparent;
|
150
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
151
|
+
content: '';
|
152
|
+
}
|
153
|
+
|
154
|
+
.daterangepicker.opensleft:after {
|
155
|
+
position: absolute;
|
156
|
+
top: -6px;
|
157
|
+
right: 10px;
|
158
|
+
display: inline-block;
|
159
|
+
border-right: 6px solid transparent;
|
160
|
+
border-bottom: 6px solid #fff;
|
161
|
+
border-left: 6px solid transparent;
|
162
|
+
content: '';
|
163
|
+
}
|
164
|
+
|
165
|
+
.daterangepicker.opensright:before {
|
166
|
+
position: absolute;
|
167
|
+
top: -7px;
|
168
|
+
left: 9px;
|
169
|
+
display: inline-block;
|
170
|
+
border-right: 7px solid transparent;
|
171
|
+
border-bottom: 7px solid #ccc;
|
172
|
+
border-left: 7px solid transparent;
|
173
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
174
|
+
content: '';
|
175
|
+
}
|
176
|
+
|
177
|
+
.daterangepicker.opensright:after {
|
178
|
+
position: absolute;
|
179
|
+
top: -6px;
|
180
|
+
left: 10px;
|
181
|
+
display: inline-block;
|
182
|
+
border-right: 6px solid transparent;
|
183
|
+
border-bottom: 6px solid #fff;
|
184
|
+
border-left: 6px solid transparent;
|
185
|
+
content: '';
|
186
|
+
}
|
187
|
+
|
188
|
+
.daterangepicker table {
|
189
|
+
width: 100%;
|
190
|
+
margin: 0;
|
191
|
+
}
|
192
|
+
|
193
|
+
.daterangepicker td, .daterangepicker th {
|
194
|
+
text-align: center;
|
195
|
+
width: 20px;
|
196
|
+
height: 20px;
|
197
|
+
-webkit-border-radius: 4px;
|
198
|
+
-moz-border-radius: 4px;
|
199
|
+
border-radius: 4px;
|
200
|
+
cursor: pointer;
|
201
|
+
white-space: nowrap;
|
202
|
+
}
|
203
|
+
|
204
|
+
.daterangepicker td.off {
|
205
|
+
color: #999;
|
206
|
+
}
|
207
|
+
|
208
|
+
.daterangepicker td.disabled {
|
209
|
+
color: #999;
|
210
|
+
}
|
211
|
+
|
212
|
+
.daterangepicker td.available:hover, .daterangepicker th.available:hover {
|
213
|
+
background: #eee;
|
214
|
+
}
|
215
|
+
|
216
|
+
.daterangepicker td.in-range {
|
217
|
+
background: #ebf4f8;
|
218
|
+
-webkit-border-radius: 0;
|
219
|
+
-moz-border-radius: 0;
|
220
|
+
border-radius: 0;
|
221
|
+
}
|
222
|
+
|
223
|
+
.daterangepicker td.active, .daterangepicker td.active:hover {
|
224
|
+
background-color: #357ebd;
|
225
|
+
border-color: #3071a9;
|
226
|
+
color: #fff;
|
227
|
+
}
|
228
|
+
|
229
|
+
.daterangepicker td.week, .daterangepicker th.week {
|
230
|
+
font-size: 80%;
|
231
|
+
color: #ccc;
|
232
|
+
}
|
233
|
+
|
234
|
+
.daterangepicker select.monthselect, .daterangepicker select.yearselect {
|
235
|
+
font-size: 12px;
|
236
|
+
padding: 1px;
|
237
|
+
height: auto;
|
238
|
+
margin: 0;
|
239
|
+
cursor: default;
|
240
|
+
}
|
241
|
+
|
242
|
+
.daterangepicker select.monthselect {
|
243
|
+
margin-right: 2%;
|
244
|
+
width: 56%;
|
245
|
+
}
|
246
|
+
|
247
|
+
.daterangepicker select.yearselect {
|
248
|
+
width: 40%;
|
249
|
+
}
|
250
|
+
|
251
|
+
.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.ampmselect {
|
252
|
+
width: 50px;
|
253
|
+
margin-bottom: 0;
|
254
|
+
}
|
255
|
+
|
256
|
+
.daterangepicker_start_input {
|
257
|
+
float: left;
|
258
|
+
}
|
259
|
+
|
260
|
+
.daterangepicker_end_input {
|
261
|
+
float: left;
|
262
|
+
padding-left: 11px
|
263
|
+
}
|
264
|
+
|
265
|
+
.daterangepicker th.month {
|
266
|
+
width: auto;
|
267
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
.hljs {
|
8
|
+
display: block; padding: 0.5em;
|
9
|
+
color: #333;
|
10
|
+
background: #f8f8f8
|
11
|
+
}
|
12
|
+
|
13
|
+
.hljs-comment,
|
14
|
+
.hljs-template_comment,
|
15
|
+
.diff .hljs-header,
|
16
|
+
.hljs-javadoc {
|
17
|
+
color: #998;
|
18
|
+
font-style: italic
|
19
|
+
}
|
20
|
+
|
21
|
+
.hljs-keyword,
|
22
|
+
.css .rule .hljs-keyword,
|
23
|
+
.hljs-winutils,
|
24
|
+
.javascript .hljs-title,
|
25
|
+
.nginx .hljs-title,
|
26
|
+
.hljs-subst,
|
27
|
+
.hljs-request,
|
28
|
+
.hljs-status {
|
29
|
+
color: #333;
|
30
|
+
font-weight: bold
|
31
|
+
}
|
32
|
+
|
33
|
+
.hljs-number,
|
34
|
+
.hljs-hexcolor,
|
35
|
+
.ruby .hljs-constant {
|
36
|
+
color: #099;
|
37
|
+
}
|
38
|
+
|
39
|
+
.hljs-string,
|
40
|
+
.hljs-tag .hljs-value,
|
41
|
+
.hljs-phpdoc,
|
42
|
+
.tex .hljs-formula {
|
43
|
+
color: #d14
|
44
|
+
}
|
45
|
+
|
46
|
+
.hljs-title,
|
47
|
+
.hljs-id,
|
48
|
+
.coffeescript .hljs-params,
|
49
|
+
.scss .hljs-preprocessor {
|
50
|
+
color: #900;
|
51
|
+
font-weight: bold
|
52
|
+
}
|
53
|
+
|
54
|
+
.javascript .hljs-title,
|
55
|
+
.lisp .hljs-title,
|
56
|
+
.clojure .hljs-title,
|
57
|
+
.hljs-subst {
|
58
|
+
font-weight: normal
|
59
|
+
}
|
60
|
+
|
61
|
+
.hljs-class .hljs-title,
|
62
|
+
.haskell .hljs-type,
|
63
|
+
.vhdl .hljs-literal,
|
64
|
+
.tex .hljs-command {
|
65
|
+
color: #458;
|
66
|
+
font-weight: bold
|
67
|
+
}
|
68
|
+
|
69
|
+
.hljs-tag,
|
70
|
+
.hljs-tag .hljs-title,
|
71
|
+
.hljs-rules .hljs-property,
|
72
|
+
.django .hljs-tag .hljs-keyword {
|
73
|
+
color: #000080;
|
74
|
+
font-weight: normal
|
75
|
+
}
|
76
|
+
|
77
|
+
.hljs-attribute,
|
78
|
+
.lisp .hljs-body {
|
79
|
+
color: #008080
|
80
|
+
}
|
81
|
+
|
82
|
+
.hljs-variable,
|
83
|
+
.hljs-regexp {
|
84
|
+
color: #009926;
|
85
|
+
font-weight: bold
|
86
|
+
}
|
87
|
+
|
88
|
+
.hljs-symbol,
|
89
|
+
.ruby .hljs-symbol .hljs-string,
|
90
|
+
.lisp .hljs-keyword,
|
91
|
+
.tex .hljs-special,
|
92
|
+
.hljs-prompt {
|
93
|
+
color: #990073
|
94
|
+
}
|
95
|
+
|
96
|
+
.hljs-built_in,
|
97
|
+
.lisp .hljs-title,
|
98
|
+
.clojure .hljs-built_in {
|
99
|
+
color: #0086b3
|
100
|
+
}
|
101
|
+
|
102
|
+
.hljs-preprocessor,
|
103
|
+
.hljs-pragma,
|
104
|
+
.hljs-pi,
|
105
|
+
.hljs-doctype,
|
106
|
+
.hljs-shebang,
|
107
|
+
.hljs-cdata {
|
108
|
+
color: #999;
|
109
|
+
font-weight: bold
|
110
|
+
}
|
111
|
+
|
112
|
+
.hljs-deletion {
|
113
|
+
background: #fdd
|
114
|
+
}
|
115
|
+
|
116
|
+
.hljs-addition {
|
117
|
+
background: #dfd
|
118
|
+
}
|
119
|
+
|
120
|
+
.diff .hljs-change {
|
121
|
+
background: #0086b3
|
122
|
+
}
|
123
|
+
|
124
|
+
.hljs-chunk {
|
125
|
+
color: #aaa
|
126
|
+
}
|