dbconsole 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/assets/javascripts/dbconsole/jquery-1.10.2.js +9789 -0
- data/app/assets/javascripts/dbconsole/jquery-ui-1.10.4.custom.min.js +7 -0
- data/app/assets/javascripts/dbconsole/jquery.tablesorter.min.js +4 -0
- data/app/assets/javascripts/dbconsole/jquery.ui.core.js +320 -0
- data/app/assets/javascripts/dbconsole/jquery.ui.tabs.js +849 -0
- data/app/assets/javascripts/dbconsole/jquery.ui.widget.js +521 -0
- data/app/assets/stylesheets/dbconsole/asc.gif +0 -0
- data/app/assets/stylesheets/dbconsole/bg.gif +0 -0
- data/app/assets/stylesheets/dbconsole/demos.css +19 -0
- data/app/assets/stylesheets/dbconsole/desc.gif +0 -0
- data/app/assets/stylesheets/dbconsole/images/animated-overlay.gif +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-icons_888888_256x240.png +0 -0
- data/app/assets/stylesheets/dbconsole/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/stylesheets/dbconsole/jquery.ui.core.css +93 -0
- data/app/assets/stylesheets/dbconsole/jquery.ui.tabs.css +51 -0
- data/app/assets/stylesheets/dbconsole/jquery.ui.theme.css +410 -0
- data/app/assets/stylesheets/dbconsole/style.css +98 -0
- data/app/controllers/dbconsole/databases_controller.rb +74 -10
- data/app/controllers/dbconsole/style.css +85 -0
- data/app/views/dbconsole/databases/create.html.erb +155 -0
- data/app/views/dbconsole/databases/index.html.erb +5 -2
- data/app/views/dbconsole/databases/show.html.erb +155 -0
- data/app/views/layouts/dbconsole/application.html.erb +3 -1
- data/lib/dbconsole/version.rb +1 -1
- metadata +47 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jQuery UI Tabs 1.10.4
|
|
3
|
+
* http://jqueryui.com
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
6
|
+
* Released under the MIT license.
|
|
7
|
+
* http://jquery.org/license
|
|
8
|
+
*
|
|
9
|
+
* http://api.jqueryui.com/tabs/#theming
|
|
10
|
+
*/
|
|
11
|
+
.ui-tabs {
|
|
12
|
+
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
|
13
|
+
padding: .2em;
|
|
14
|
+
}
|
|
15
|
+
.ui-tabs .ui-tabs-nav {
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: .2em .2em 0;
|
|
18
|
+
}
|
|
19
|
+
.ui-tabs .ui-tabs-nav li {
|
|
20
|
+
list-style: none;
|
|
21
|
+
float: left;
|
|
22
|
+
position: relative;
|
|
23
|
+
top: 0;
|
|
24
|
+
margin: 1px .2em 0 0;
|
|
25
|
+
border-bottom-width: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
|
|
30
|
+
float: left;
|
|
31
|
+
padding: .5em 1em;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
}
|
|
34
|
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
|
|
35
|
+
margin-bottom: -1px;
|
|
36
|
+
padding-bottom: 1px;
|
|
37
|
+
}
|
|
38
|
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
|
|
39
|
+
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
|
|
40
|
+
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
|
|
41
|
+
cursor: text;
|
|
42
|
+
}
|
|
43
|
+
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.ui-tabs .ui-tabs-panel {
|
|
47
|
+
display: block;
|
|
48
|
+
border-width: 0;
|
|
49
|
+
padding: 1em 1.4em;
|
|
50
|
+
background: none;
|
|
51
|
+
}
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jQuery UI CSS Framework 1.10.4
|
|
3
|
+
* http://jqueryui.com
|
|
4
|
+
*
|
|
5
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
6
|
+
* Released under the MIT license.
|
|
7
|
+
* http://jquery.org/license
|
|
8
|
+
*
|
|
9
|
+
* http://api.jqueryui.com/category/theming/
|
|
10
|
+
*
|
|
11
|
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/* Component containers
|
|
16
|
+
----------------------------------*/
|
|
17
|
+
.ui-widget {
|
|
18
|
+
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
|
19
|
+
font-size: 1.1em/*{fsDefault}*/;
|
|
20
|
+
}
|
|
21
|
+
.ui-widget .ui-widget {
|
|
22
|
+
font-size: 1em;
|
|
23
|
+
}
|
|
24
|
+
.ui-widget input,
|
|
25
|
+
.ui-widget select,
|
|
26
|
+
.ui-widget textarea,
|
|
27
|
+
.ui-widget button {
|
|
28
|
+
font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
|
|
29
|
+
font-size: 1em;
|
|
30
|
+
}
|
|
31
|
+
.ui-widget-content {
|
|
32
|
+
border: 1px solid #aaaaaa/*{borderColorContent}*/;
|
|
33
|
+
background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/;
|
|
34
|
+
color: #222222/*{fcContent}*/;
|
|
35
|
+
}
|
|
36
|
+
.ui-widget-content a {
|
|
37
|
+
color: #222222/*{fcContent}*/;
|
|
38
|
+
}
|
|
39
|
+
.ui-widget-header {
|
|
40
|
+
border: 1px solid #aaaaaa/*{borderColorHeader}*/;
|
|
41
|
+
background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/;
|
|
42
|
+
color: #222222/*{fcHeader}*/;
|
|
43
|
+
font-weight: bold;
|
|
44
|
+
}
|
|
45
|
+
.ui-widget-header a {
|
|
46
|
+
color: #222222/*{fcHeader}*/;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Interaction states
|
|
50
|
+
----------------------------------*/
|
|
51
|
+
.ui-state-default,
|
|
52
|
+
.ui-widget-content .ui-state-default,
|
|
53
|
+
.ui-widget-header .ui-state-default {
|
|
54
|
+
border: 1px solid #d3d3d3/*{borderColorDefault}*/;
|
|
55
|
+
background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/;
|
|
56
|
+
font-weight: normal/*{fwDefault}*/;
|
|
57
|
+
color: #555555/*{fcDefault}*/;
|
|
58
|
+
}
|
|
59
|
+
.ui-state-default a,
|
|
60
|
+
.ui-state-default a:link,
|
|
61
|
+
.ui-state-default a:visited {
|
|
62
|
+
color: #555555/*{fcDefault}*/;
|
|
63
|
+
text-decoration: none;
|
|
64
|
+
}
|
|
65
|
+
.ui-state-hover,
|
|
66
|
+
.ui-widget-content .ui-state-hover,
|
|
67
|
+
.ui-widget-header .ui-state-hover,
|
|
68
|
+
.ui-state-focus,
|
|
69
|
+
.ui-widget-content .ui-state-focus,
|
|
70
|
+
.ui-widget-header .ui-state-focus {
|
|
71
|
+
border: 1px solid #999999/*{borderColorHover}*/;
|
|
72
|
+
background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/;
|
|
73
|
+
font-weight: normal/*{fwDefault}*/;
|
|
74
|
+
color: #212121/*{fcHover}*/;
|
|
75
|
+
}
|
|
76
|
+
.ui-state-hover a,
|
|
77
|
+
.ui-state-hover a:hover,
|
|
78
|
+
.ui-state-hover a:link,
|
|
79
|
+
.ui-state-hover a:visited,
|
|
80
|
+
.ui-state-focus a,
|
|
81
|
+
.ui-state-focus a:hover,
|
|
82
|
+
.ui-state-focus a:link,
|
|
83
|
+
.ui-state-focus a:visited {
|
|
84
|
+
color: #212121/*{fcHover}*/;
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
.ui-state-active,
|
|
88
|
+
.ui-widget-content .ui-state-active,
|
|
89
|
+
.ui-widget-header .ui-state-active {
|
|
90
|
+
border: 1px solid #aaaaaa/*{borderColorActive}*/;
|
|
91
|
+
background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/;
|
|
92
|
+
font-weight: normal/*{fwDefault}*/;
|
|
93
|
+
color: #212121/*{fcActive}*/;
|
|
94
|
+
}
|
|
95
|
+
.ui-state-active a,
|
|
96
|
+
.ui-state-active a:link,
|
|
97
|
+
.ui-state-active a:visited {
|
|
98
|
+
color: #212121/*{fcActive}*/;
|
|
99
|
+
text-decoration: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Interaction Cues
|
|
103
|
+
----------------------------------*/
|
|
104
|
+
.ui-state-highlight,
|
|
105
|
+
.ui-widget-content .ui-state-highlight,
|
|
106
|
+
.ui-widget-header .ui-state-highlight {
|
|
107
|
+
border: 1px solid #fcefa1/*{borderColorHighlight}*/;
|
|
108
|
+
background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/;
|
|
109
|
+
color: #363636/*{fcHighlight}*/;
|
|
110
|
+
}
|
|
111
|
+
.ui-state-highlight a,
|
|
112
|
+
.ui-widget-content .ui-state-highlight a,
|
|
113
|
+
.ui-widget-header .ui-state-highlight a {
|
|
114
|
+
color: #363636/*{fcHighlight}*/;
|
|
115
|
+
}
|
|
116
|
+
.ui-state-error,
|
|
117
|
+
.ui-widget-content .ui-state-error,
|
|
118
|
+
.ui-widget-header .ui-state-error {
|
|
119
|
+
border: 1px solid #cd0a0a/*{borderColorError}*/;
|
|
120
|
+
background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/;
|
|
121
|
+
color: #cd0a0a/*{fcError}*/;
|
|
122
|
+
}
|
|
123
|
+
.ui-state-error a,
|
|
124
|
+
.ui-widget-content .ui-state-error a,
|
|
125
|
+
.ui-widget-header .ui-state-error a {
|
|
126
|
+
color: #cd0a0a/*{fcError}*/;
|
|
127
|
+
}
|
|
128
|
+
.ui-state-error-text,
|
|
129
|
+
.ui-widget-content .ui-state-error-text,
|
|
130
|
+
.ui-widget-header .ui-state-error-text {
|
|
131
|
+
color: #cd0a0a/*{fcError}*/;
|
|
132
|
+
}
|
|
133
|
+
.ui-priority-primary,
|
|
134
|
+
.ui-widget-content .ui-priority-primary,
|
|
135
|
+
.ui-widget-header .ui-priority-primary {
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
}
|
|
138
|
+
.ui-priority-secondary,
|
|
139
|
+
.ui-widget-content .ui-priority-secondary,
|
|
140
|
+
.ui-widget-header .ui-priority-secondary {
|
|
141
|
+
opacity: .7;
|
|
142
|
+
filter:Alpha(Opacity=70);
|
|
143
|
+
font-weight: normal;
|
|
144
|
+
}
|
|
145
|
+
.ui-state-disabled,
|
|
146
|
+
.ui-widget-content .ui-state-disabled,
|
|
147
|
+
.ui-widget-header .ui-state-disabled {
|
|
148
|
+
opacity: .35;
|
|
149
|
+
filter:Alpha(Opacity=35);
|
|
150
|
+
background-image: none;
|
|
151
|
+
}
|
|
152
|
+
.ui-state-disabled .ui-icon {
|
|
153
|
+
filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Icons
|
|
157
|
+
----------------------------------*/
|
|
158
|
+
|
|
159
|
+
/* states and images */
|
|
160
|
+
.ui-icon {
|
|
161
|
+
width: 16px;
|
|
162
|
+
height: 16px;
|
|
163
|
+
}
|
|
164
|
+
.ui-icon,
|
|
165
|
+
.ui-widget-content .ui-icon {
|
|
166
|
+
background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/;
|
|
167
|
+
}
|
|
168
|
+
.ui-widget-header .ui-icon {
|
|
169
|
+
background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/;
|
|
170
|
+
}
|
|
171
|
+
.ui-state-default .ui-icon {
|
|
172
|
+
background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/;
|
|
173
|
+
}
|
|
174
|
+
.ui-state-hover .ui-icon,
|
|
175
|
+
.ui-state-focus .ui-icon {
|
|
176
|
+
background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/;
|
|
177
|
+
}
|
|
178
|
+
.ui-state-active .ui-icon {
|
|
179
|
+
background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/;
|
|
180
|
+
}
|
|
181
|
+
.ui-state-highlight .ui-icon {
|
|
182
|
+
background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/;
|
|
183
|
+
}
|
|
184
|
+
.ui-state-error .ui-icon,
|
|
185
|
+
.ui-state-error-text .ui-icon {
|
|
186
|
+
background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* positioning */
|
|
190
|
+
.ui-icon-blank { background-position: 16px 16px; }
|
|
191
|
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
|
192
|
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
|
193
|
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
|
194
|
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
|
195
|
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
|
196
|
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
|
197
|
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
|
198
|
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
|
199
|
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
|
200
|
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
|
201
|
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
|
202
|
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
|
203
|
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
|
204
|
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
|
205
|
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
|
206
|
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
|
207
|
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
|
208
|
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
|
209
|
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
|
210
|
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
|
211
|
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
|
212
|
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
|
213
|
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
|
214
|
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
|
215
|
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
|
216
|
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
|
217
|
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
|
218
|
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
|
219
|
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
|
220
|
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
|
221
|
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
|
222
|
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
|
223
|
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
|
224
|
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
|
225
|
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
|
226
|
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
|
227
|
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
|
228
|
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
|
229
|
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
|
230
|
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
|
231
|
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
|
232
|
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
|
233
|
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
|
234
|
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
|
235
|
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
|
236
|
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
|
237
|
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
|
238
|
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
|
239
|
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
|
240
|
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
|
241
|
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
|
242
|
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
|
243
|
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
|
244
|
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
|
245
|
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
|
246
|
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
|
247
|
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
|
248
|
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
|
249
|
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
|
250
|
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
|
251
|
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
|
252
|
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
|
253
|
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
|
254
|
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
|
255
|
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
|
256
|
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
|
257
|
+
.ui-icon-extlink { background-position: -32px -80px; }
|
|
258
|
+
.ui-icon-newwin { background-position: -48px -80px; }
|
|
259
|
+
.ui-icon-refresh { background-position: -64px -80px; }
|
|
260
|
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
|
261
|
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
|
262
|
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
|
263
|
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
|
264
|
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
|
265
|
+
.ui-icon-document { background-position: -32px -96px; }
|
|
266
|
+
.ui-icon-document-b { background-position: -48px -96px; }
|
|
267
|
+
.ui-icon-note { background-position: -64px -96px; }
|
|
268
|
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
|
269
|
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
|
270
|
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
|
271
|
+
.ui-icon-comment { background-position: -128px -96px; }
|
|
272
|
+
.ui-icon-person { background-position: -144px -96px; }
|
|
273
|
+
.ui-icon-print { background-position: -160px -96px; }
|
|
274
|
+
.ui-icon-trash { background-position: -176px -96px; }
|
|
275
|
+
.ui-icon-locked { background-position: -192px -96px; }
|
|
276
|
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
|
277
|
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
|
278
|
+
.ui-icon-tag { background-position: -240px -96px; }
|
|
279
|
+
.ui-icon-home { background-position: 0 -112px; }
|
|
280
|
+
.ui-icon-flag { background-position: -16px -112px; }
|
|
281
|
+
.ui-icon-calendar { background-position: -32px -112px; }
|
|
282
|
+
.ui-icon-cart { background-position: -48px -112px; }
|
|
283
|
+
.ui-icon-pencil { background-position: -64px -112px; }
|
|
284
|
+
.ui-icon-clock { background-position: -80px -112px; }
|
|
285
|
+
.ui-icon-disk { background-position: -96px -112px; }
|
|
286
|
+
.ui-icon-calculator { background-position: -112px -112px; }
|
|
287
|
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
|
288
|
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
|
289
|
+
.ui-icon-search { background-position: -160px -112px; }
|
|
290
|
+
.ui-icon-wrench { background-position: -176px -112px; }
|
|
291
|
+
.ui-icon-gear { background-position: -192px -112px; }
|
|
292
|
+
.ui-icon-heart { background-position: -208px -112px; }
|
|
293
|
+
.ui-icon-star { background-position: -224px -112px; }
|
|
294
|
+
.ui-icon-link { background-position: -240px -112px; }
|
|
295
|
+
.ui-icon-cancel { background-position: 0 -128px; }
|
|
296
|
+
.ui-icon-plus { background-position: -16px -128px; }
|
|
297
|
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
|
298
|
+
.ui-icon-minus { background-position: -48px -128px; }
|
|
299
|
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
|
300
|
+
.ui-icon-close { background-position: -80px -128px; }
|
|
301
|
+
.ui-icon-closethick { background-position: -96px -128px; }
|
|
302
|
+
.ui-icon-key { background-position: -112px -128px; }
|
|
303
|
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
|
304
|
+
.ui-icon-scissors { background-position: -144px -128px; }
|
|
305
|
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
|
306
|
+
.ui-icon-copy { background-position: -176px -128px; }
|
|
307
|
+
.ui-icon-contact { background-position: -192px -128px; }
|
|
308
|
+
.ui-icon-image { background-position: -208px -128px; }
|
|
309
|
+
.ui-icon-video { background-position: -224px -128px; }
|
|
310
|
+
.ui-icon-script { background-position: -240px -128px; }
|
|
311
|
+
.ui-icon-alert { background-position: 0 -144px; }
|
|
312
|
+
.ui-icon-info { background-position: -16px -144px; }
|
|
313
|
+
.ui-icon-notice { background-position: -32px -144px; }
|
|
314
|
+
.ui-icon-help { background-position: -48px -144px; }
|
|
315
|
+
.ui-icon-check { background-position: -64px -144px; }
|
|
316
|
+
.ui-icon-bullet { background-position: -80px -144px; }
|
|
317
|
+
.ui-icon-radio-on { background-position: -96px -144px; }
|
|
318
|
+
.ui-icon-radio-off { background-position: -112px -144px; }
|
|
319
|
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
|
320
|
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
|
321
|
+
.ui-icon-play { background-position: 0 -160px; }
|
|
322
|
+
.ui-icon-pause { background-position: -16px -160px; }
|
|
323
|
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
|
324
|
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
|
325
|
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
|
326
|
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
|
327
|
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
|
328
|
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
|
329
|
+
.ui-icon-stop { background-position: -96px -160px; }
|
|
330
|
+
.ui-icon-eject { background-position: -112px -160px; }
|
|
331
|
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
|
332
|
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
|
333
|
+
.ui-icon-power { background-position: 0 -176px; }
|
|
334
|
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
|
335
|
+
.ui-icon-signal { background-position: -32px -176px; }
|
|
336
|
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
|
337
|
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
|
338
|
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
|
339
|
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
|
340
|
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
|
341
|
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
|
342
|
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
|
343
|
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
|
344
|
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
|
345
|
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
|
346
|
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
|
347
|
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
|
348
|
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
|
349
|
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
|
350
|
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
|
351
|
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
|
352
|
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
|
353
|
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
|
354
|
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
|
355
|
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
|
356
|
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
|
357
|
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
|
358
|
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
|
359
|
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
|
360
|
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
|
361
|
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
|
362
|
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
|
363
|
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
|
364
|
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
|
365
|
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
/* Misc visuals
|
|
369
|
+
----------------------------------*/
|
|
370
|
+
|
|
371
|
+
/* Corner radius */
|
|
372
|
+
.ui-corner-all,
|
|
373
|
+
.ui-corner-top,
|
|
374
|
+
.ui-corner-left,
|
|
375
|
+
.ui-corner-tl {
|
|
376
|
+
border-top-left-radius: 4px/*{cornerRadius}*/;
|
|
377
|
+
}
|
|
378
|
+
.ui-corner-all,
|
|
379
|
+
.ui-corner-top,
|
|
380
|
+
.ui-corner-right,
|
|
381
|
+
.ui-corner-tr {
|
|
382
|
+
border-top-right-radius: 4px/*{cornerRadius}*/;
|
|
383
|
+
}
|
|
384
|
+
.ui-corner-all,
|
|
385
|
+
.ui-corner-bottom,
|
|
386
|
+
.ui-corner-left,
|
|
387
|
+
.ui-corner-bl {
|
|
388
|
+
border-bottom-left-radius: 4px/*{cornerRadius}*/;
|
|
389
|
+
}
|
|
390
|
+
.ui-corner-all,
|
|
391
|
+
.ui-corner-bottom,
|
|
392
|
+
.ui-corner-right,
|
|
393
|
+
.ui-corner-br {
|
|
394
|
+
border-bottom-right-radius: 4px/*{cornerRadius}*/;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* Overlays */
|
|
398
|
+
.ui-widget-overlay {
|
|
399
|
+
background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/;
|
|
400
|
+
opacity: .3/*{opacityOverlay}*/;
|
|
401
|
+
filter: Alpha(Opacity=30)/*{opacityFilterOverlay}*/;
|
|
402
|
+
}
|
|
403
|
+
.ui-widget-shadow {
|
|
404
|
+
margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/;
|
|
405
|
+
padding: 8px/*{thicknessShadow}*/;
|
|
406
|
+
background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/;
|
|
407
|
+
opacity: .3/*{opacityShadow}*/;
|
|
408
|
+
filter: Alpha(Opacity=30)/*{opacityFilterShadow}*/;
|
|
409
|
+
border-radius: 8px/*{cornerRadiusShadow}*/;
|
|
410
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tables */
|
|
2
|
+
table.tablesorter {
|
|
3
|
+
font-family:arial;
|
|
4
|
+
background-color: #CDCDCD;
|
|
5
|
+
margin:10px 0pt 15px;
|
|
6
|
+
font-size: 8pt;
|
|
7
|
+
width: 100%;
|
|
8
|
+
text-align: left;
|
|
9
|
+
}
|
|
10
|
+
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
|
|
11
|
+
background-color: #e6EEEE;
|
|
12
|
+
border: 1px solid #FFF;
|
|
13
|
+
font-size: 8pt;
|
|
14
|
+
padding: 4px;
|
|
15
|
+
}
|
|
16
|
+
table.tablesorter thead tr .header {
|
|
17
|
+
background-image: url(bg.gif);
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
background-position: center right;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
table.tablesorter tbody td {
|
|
23
|
+
color: #3D3D3D;
|
|
24
|
+
padding: 4px;
|
|
25
|
+
background-color: #FFF;
|
|
26
|
+
vertical-align: top;
|
|
27
|
+
}
|
|
28
|
+
table.tablesorter tbody tr.odd td {
|
|
29
|
+
background-color:#F0F0F6;
|
|
30
|
+
}
|
|
31
|
+
table.tablesorter thead tr .headerSortUp {
|
|
32
|
+
background-image: url(asc.gif);
|
|
33
|
+
}
|
|
34
|
+
table.tablesorter thead tr .headerSortDown {
|
|
35
|
+
background-image: url(desc.gif);
|
|
36
|
+
}
|
|
37
|
+
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
|
|
38
|
+
background-color: #8dbdd8;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.deletebtn {
|
|
42
|
+
cursor:pointer;
|
|
43
|
+
-moz-box-shadow:inset 0px 0px 0px 3px #ffffff;
|
|
44
|
+
-webkit-box-shadow:inset 0px 0px 0px 3px #ffffff;
|
|
45
|
+
box-shadow:inset 0px 0px 0px 3px #ffffff;
|
|
46
|
+
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #E6EEEE), color-stop(1, #e9e9e9) );
|
|
47
|
+
background:-moz-linear-gradient( center top, #E6EEEE 5%, #e9e9e9 100% );
|
|
48
|
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#E6EEEE', endColorstr='#e9e9e9');
|
|
49
|
+
background-color:#E6EEEE;
|
|
50
|
+
-webkit-border-top-left-radius:15px;
|
|
51
|
+
-moz-border-radius-topleft:15px;
|
|
52
|
+
border-top-left-radius:15px;
|
|
53
|
+
-webkit-border-top-right-radius:15px;
|
|
54
|
+
-moz-border-radius-topright:15px;
|
|
55
|
+
border-top-right-radius:15px;
|
|
56
|
+
-webkit-border-bottom-right-radius:15px;
|
|
57
|
+
-moz-border-radius-bottomright:15px;
|
|
58
|
+
border-bottom-right-radius:15px;
|
|
59
|
+
-webkit-border-bottom-left-radius:15px;
|
|
60
|
+
-moz-border-radius-bottomleft:15px;
|
|
61
|
+
border-bottom-left-radius:15px;
|
|
62
|
+
text-indent:-1.31px;
|
|
63
|
+
border:1px solid #dcdcdc;
|
|
64
|
+
display:inline-block;
|
|
65
|
+
color:#666666;
|
|
66
|
+
font-family:Arial;
|
|
67
|
+
font-size:12px;
|
|
68
|
+
font-weight:bold;
|
|
69
|
+
font-style:normal;
|
|
70
|
+
height:28px;
|
|
71
|
+
line-height:28px;
|
|
72
|
+
width:60px;
|
|
73
|
+
text-decoration:none;
|
|
74
|
+
text-align:center;
|
|
75
|
+
text-shadow:2px 1px 0px #ffffff;
|
|
76
|
+
}
|
|
77
|
+
.deletebtn:hover {
|
|
78
|
+
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #E6EEEE) );
|
|
79
|
+
background:-moz-linear-gradient( center top, #e9e9e9 5%, #E6EEEE 100% );
|
|
80
|
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#E6EEEE');
|
|
81
|
+
background-color:#e9e9e9;
|
|
82
|
+
}.deletebtn:active {
|
|
83
|
+
position:relative;
|
|
84
|
+
top:1px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.hrefbutton{
|
|
88
|
+
display: block;
|
|
89
|
+
width: 115px;
|
|
90
|
+
height: 25px;
|
|
91
|
+
background: #4E9CAF;
|
|
92
|
+
padding: 10px;
|
|
93
|
+
text-align: center;
|
|
94
|
+
border-radius: 5px;
|
|
95
|
+
color: white;
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
}
|
|
@@ -3,19 +3,21 @@ require_dependency "dbconsole/application_controller"
|
|
|
3
3
|
module Dbconsole
|
|
4
4
|
class DatabasesController < ApplicationController
|
|
5
5
|
def index
|
|
6
|
-
|
|
6
|
+
#env = ENV["RAILS_ENV"]
|
|
7
7
|
|
|
8
|
-
@
|
|
9
|
-
|
|
10
|
-
:database => "db/development.sqlite3",
|
|
11
|
-
)
|
|
8
|
+
@tables = ActiveRecord::Base.connection.tables
|
|
9
|
+
@tables.delete_if {|value| value == "schema_migrations" }
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
#@connection = ActiveRecord::Base.establish_connection(
|
|
12
|
+
# :adapter => "sqlite3",
|
|
13
|
+
# :database => "db/development.sqlite3",
|
|
14
|
+
#)
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
#@tables = @connection.connection.tables
|
|
17
|
+
|
|
18
|
+
#ActiveRecord::Base.connection.tables.map do |model|
|
|
17
19
|
#puts model.capitalize.singularize.camelize
|
|
18
|
-
end
|
|
20
|
+
#end
|
|
19
21
|
|
|
20
22
|
#sql = "SHOW TABLES"
|
|
21
23
|
#@result = @connection.connection.execute(sql);
|
|
@@ -25,8 +27,70 @@ module Dbconsole
|
|
|
25
27
|
|
|
26
28
|
respond_to do |format|
|
|
27
29
|
format.html # index.html.erb
|
|
28
|
-
format.json { render json: @tables }
|
|
30
|
+
#format.json { render json: @tables }
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def show
|
|
35
|
+
@colinfo = Hash.new("")
|
|
36
|
+
@colidinfo = Hash.new("")
|
|
37
|
+
|
|
38
|
+
@tables = ActiveRecord::Base.connection.tables
|
|
39
|
+
|
|
40
|
+
@tables.delete_if {|value| value == "schema_migrations" }
|
|
41
|
+
|
|
42
|
+
conn = ActiveRecord::Base.connection
|
|
43
|
+
|
|
44
|
+
@class_name_org = params[:id]
|
|
45
|
+
@class_name= params[:id].capitalize.singularize.camelize.constantize
|
|
46
|
+
|
|
47
|
+
@col_names= @class_name.column_names
|
|
48
|
+
@col_names.each_with_index do | col_name, index|
|
|
49
|
+
@colinfo[col_name] = @class_name.columns_hash[col_name].type
|
|
50
|
+
@colidinfo[index] = col_name
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
@records = conn.execute("select * from "+params[:id])
|
|
54
|
+
#@records =@class_name.all
|
|
55
|
+
puts @records
|
|
56
|
+
respond_to do |format|
|
|
57
|
+
format.html # show.html.erb
|
|
58
|
+
format.json { render json: @records }
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def destroy
|
|
64
|
+
@class_name = params[:tablename].capitalize.singularize.camelize.constantize
|
|
65
|
+
if @class_name.delete(params[:recordid].to_i) == 1
|
|
66
|
+
flash[:notice] = "Record successfully deleted"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
redirect_to({ :action=>'show', :id => params[:tablename] })
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def update
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def create
|
|
77
|
+
@class_name_org = params[:tablename]
|
|
78
|
+
@class_name= params[:tablename].capitalize.singularize.camelize.constantize
|
|
79
|
+
|
|
80
|
+
@col_names= @class_name.column_names
|
|
81
|
+
@tabinst = @class_name.new
|
|
82
|
+
@col_names.each_with_index do | col_name, index|
|
|
83
|
+
@tabinst[col_name] = params[col_name]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if @tabinst.save
|
|
87
|
+
flash[:notice] = "Record successfully inserted and id is "+@tabinst.id.to_s
|
|
88
|
+
else
|
|
89
|
+
flash[:notice] = "Record not successfully inserted"
|
|
29
90
|
end
|
|
91
|
+
|
|
92
|
+
redirect_to({ :action=>'show', :id => params[:tablename] })
|
|
30
93
|
end
|
|
94
|
+
|
|
31
95
|
end
|
|
32
96
|
end
|