dbadmin 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +0 -1
- data/.ruby-version +1 -0
- data/README.md +21 -3
- data/TODO.md +11 -0
- data/bin/dbadmin +1 -0
- data/config.ru +4 -0
- data/dbadmin.gemspec +1 -1
- data/doc/screenshots/query.png +0 -0
- data/doc/screenshots/table_grid.png +0 -0
- data/doc/screenshots/table_list.png +0 -0
- data/doc/screenshots/tables.png +0 -0
- data/lib/dbadmin.rb +13 -68
- data/lib/dbadmin/app.rb +81 -0
- data/lib/dbadmin/public/css/bootstrap-theme.min.css +5 -0
- data/lib/dbadmin/public/css/bootstrap.min.css +5 -0
- data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.svg +229 -0
- data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/{public → dbadmin/public}/img/glyphicons-halflings-white.png +0 -0
- data/lib/{public → dbadmin/public}/img/glyphicons-halflings.png +0 -0
- data/lib/dbadmin/public/js/ace/ace.js +11 -0
- data/lib/dbadmin/public/js/ace/ext-beautify.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-chromevox.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-elastic_tabstops_lite.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-emmet.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-error_marker.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-keybinding_menu.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-language_tools.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-linking.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-modelist.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-old_ie.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-searchbox.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-settings_menu.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-spellcheck.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-split.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-static_highlight.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-statusbar.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-textarea.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-themelist.js +5 -0
- data/lib/dbadmin/public/js/ace/ext-whitespace.js +5 -0
- data/lib/dbadmin/public/js/ace/keybinding-emacs.js +1 -0
- data/lib/dbadmin/public/js/ace/keybinding-vim.js +1 -0
- data/lib/dbadmin/public/js/ace/mode-sql.js +1 -0
- data/lib/dbadmin/public/js/ace/snippets/sql.js +1 -0
- data/lib/dbadmin/public/js/ace/theme-tomorrow.js +1 -0
- data/lib/dbadmin/public/js/ace/theme-twilight.js +1 -0
- data/lib/dbadmin/public/js/ace/theme-vibrant_ink.js +1 -0
- data/lib/dbadmin/public/js/bootstrap.min.js +6 -0
- data/lib/dbadmin/public/js/jquery-1.11.1.min.js +4 -0
- data/lib/dbadmin/public/js/mousetrap-global-bind.min.js +1 -0
- data/lib/dbadmin/public/js/mousetrap.min.js +9 -0
- data/lib/dbadmin/views/grid.erb +13 -0
- data/lib/dbadmin/views/layout.erb +93 -0
- data/lib/dbadmin/views/list.erb +15 -0
- data/lib/dbadmin/views/query.erb +32 -0
- data/lib/dbadmin/views/tables.erb +27 -0
- metadata +81 -34
- data/.rvmrc +0 -1
- data/lib/public/css/bootstrap-responsive.css +0 -1058
- data/lib/public/css/bootstrap-responsive.min.css +0 -9
- data/lib/public/css/bootstrap.css +0 -5774
- data/lib/public/css/bootstrap.min.css +0 -9
- data/lib/public/js/bootstrap.js +0 -2027
- data/lib/public/js/bootstrap.min.js +0 -6
- data/lib/public/js/jquery-1.8.2.js +0 -9440
- data/lib/views/query.erb +0 -51
- data/lib/views/tables.erb +0 -53
data/lib/views/query.erb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<title><%= @page_title %></title>
|
5
|
-
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<div class="container-fluid">
|
9
|
-
<div class="navbar">
|
10
|
-
<div class="navbar-inner">
|
11
|
-
<a class="brand" href="#">DBAdmin</a>
|
12
|
-
<ul class="nav">
|
13
|
-
<li><a href="/tables">Tables</a></li>
|
14
|
-
<li class="active"><a href="/query">Query</a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="row-fluid">
|
19
|
-
<div class="span12">
|
20
|
-
<form action="/query" method="post">
|
21
|
-
<textarea name="sql" rows="7" class="span12"><%= @sql %></textarea>
|
22
|
-
|
23
|
-
<div class="form-actions" style="text-align: right">
|
24
|
-
<button type="submit" class="btn btn-primary">Execute</button>
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<% if @columns && @rows %>
|
28
|
-
<table class="table table-striped table-bordered">
|
29
|
-
<tr>
|
30
|
-
<% for column in @columns %>
|
31
|
-
<th><%= column %></th>
|
32
|
-
<% end %>
|
33
|
-
</tr>
|
34
|
-
|
35
|
-
<% for row in @rows %>
|
36
|
-
<tr>
|
37
|
-
<% for column in @columns %>
|
38
|
-
<td><%= row[column] %></td>
|
39
|
-
<% end %>
|
40
|
-
</tr>
|
41
|
-
<% end %>
|
42
|
-
</table>
|
43
|
-
<% end %>
|
44
|
-
</form>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
<script src="/js/jquery-1.8.2.js"></script>
|
49
|
-
<script src="/js/bootstrap.min.js"></script>
|
50
|
-
</body>
|
51
|
-
</html>
|
data/lib/views/tables.erb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<title><%= @page_title %></title>
|
5
|
-
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<div class="container-fluid">
|
9
|
-
<div class="navbar">
|
10
|
-
<div class="navbar-inner">
|
11
|
-
<a class="brand" href="#">DBAdmin</a>
|
12
|
-
<ul class="nav">
|
13
|
-
<li class="active"><a href="/tables">Tables</a></li>
|
14
|
-
<li><a href="/query">Query</a></li>
|
15
|
-
</ul>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
<div class="row-fluid">
|
19
|
-
<div class="span3">
|
20
|
-
<div class="well sidebar-nav">
|
21
|
-
<ul class="nav nav-list">
|
22
|
-
<li class="nav-header">Tables</li>
|
23
|
-
<% for table in @tables %>
|
24
|
-
<li<%= ' class="active"' if table == @table %>>
|
25
|
-
<a href="/tables/<%= table %>/content"><%= table %></a>
|
26
|
-
</li>
|
27
|
-
<% end %>
|
28
|
-
</ul>
|
29
|
-
</div>
|
30
|
-
</div>
|
31
|
-
<div class="span9">
|
32
|
-
<table class="table table-striped table-bordered">
|
33
|
-
<tr>
|
34
|
-
<% for column in @columns %>
|
35
|
-
<th><%= column %></th>
|
36
|
-
<% end %>
|
37
|
-
</tr>
|
38
|
-
|
39
|
-
<% for row in @rows %>
|
40
|
-
<tr>
|
41
|
-
<% for column in @columns %>
|
42
|
-
<td><%= row[column] %></td>
|
43
|
-
<% end %>
|
44
|
-
</tr>
|
45
|
-
<% end %>
|
46
|
-
</table>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
<script src="/js/jquery-1.8.2.js"></script>
|
51
|
-
<script src="/js/bootstrap.min.js"></script>
|
52
|
-
</body>
|
53
|
-
</html>
|