dbadmin 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +0 -1
  3. data/.ruby-version +1 -0
  4. data/README.md +21 -3
  5. data/TODO.md +11 -0
  6. data/bin/dbadmin +1 -0
  7. data/config.ru +4 -0
  8. data/dbadmin.gemspec +1 -1
  9. data/doc/screenshots/query.png +0 -0
  10. data/doc/screenshots/table_grid.png +0 -0
  11. data/doc/screenshots/table_list.png +0 -0
  12. data/doc/screenshots/tables.png +0 -0
  13. data/lib/dbadmin.rb +13 -68
  14. data/lib/dbadmin/app.rb +81 -0
  15. data/lib/dbadmin/public/css/bootstrap-theme.min.css +5 -0
  16. data/lib/dbadmin/public/css/bootstrap.min.css +5 -0
  17. data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.eot +0 -0
  18. data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.svg +229 -0
  19. data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.ttf +0 -0
  20. data/lib/dbadmin/public/fonts/glyphicons-halflings-regular.woff +0 -0
  21. data/lib/{public → dbadmin/public}/img/glyphicons-halflings-white.png +0 -0
  22. data/lib/{public → dbadmin/public}/img/glyphicons-halflings.png +0 -0
  23. data/lib/dbadmin/public/js/ace/ace.js +11 -0
  24. data/lib/dbadmin/public/js/ace/ext-beautify.js +5 -0
  25. data/lib/dbadmin/public/js/ace/ext-chromevox.js +5 -0
  26. data/lib/dbadmin/public/js/ace/ext-elastic_tabstops_lite.js +5 -0
  27. data/lib/dbadmin/public/js/ace/ext-emmet.js +5 -0
  28. data/lib/dbadmin/public/js/ace/ext-error_marker.js +5 -0
  29. data/lib/dbadmin/public/js/ace/ext-keybinding_menu.js +5 -0
  30. data/lib/dbadmin/public/js/ace/ext-language_tools.js +5 -0
  31. data/lib/dbadmin/public/js/ace/ext-linking.js +5 -0
  32. data/lib/dbadmin/public/js/ace/ext-modelist.js +5 -0
  33. data/lib/dbadmin/public/js/ace/ext-old_ie.js +5 -0
  34. data/lib/dbadmin/public/js/ace/ext-searchbox.js +5 -0
  35. data/lib/dbadmin/public/js/ace/ext-settings_menu.js +5 -0
  36. data/lib/dbadmin/public/js/ace/ext-spellcheck.js +5 -0
  37. data/lib/dbadmin/public/js/ace/ext-split.js +5 -0
  38. data/lib/dbadmin/public/js/ace/ext-static_highlight.js +5 -0
  39. data/lib/dbadmin/public/js/ace/ext-statusbar.js +5 -0
  40. data/lib/dbadmin/public/js/ace/ext-textarea.js +5 -0
  41. data/lib/dbadmin/public/js/ace/ext-themelist.js +5 -0
  42. data/lib/dbadmin/public/js/ace/ext-whitespace.js +5 -0
  43. data/lib/dbadmin/public/js/ace/keybinding-emacs.js +1 -0
  44. data/lib/dbadmin/public/js/ace/keybinding-vim.js +1 -0
  45. data/lib/dbadmin/public/js/ace/mode-sql.js +1 -0
  46. data/lib/dbadmin/public/js/ace/snippets/sql.js +1 -0
  47. data/lib/dbadmin/public/js/ace/theme-tomorrow.js +1 -0
  48. data/lib/dbadmin/public/js/ace/theme-twilight.js +1 -0
  49. data/lib/dbadmin/public/js/ace/theme-vibrant_ink.js +1 -0
  50. data/lib/dbadmin/public/js/bootstrap.min.js +6 -0
  51. data/lib/dbadmin/public/js/jquery-1.11.1.min.js +4 -0
  52. data/lib/dbadmin/public/js/mousetrap-global-bind.min.js +1 -0
  53. data/lib/dbadmin/public/js/mousetrap.min.js +9 -0
  54. data/lib/dbadmin/views/grid.erb +13 -0
  55. data/lib/dbadmin/views/layout.erb +93 -0
  56. data/lib/dbadmin/views/list.erb +15 -0
  57. data/lib/dbadmin/views/query.erb +32 -0
  58. data/lib/dbadmin/views/tables.erb +27 -0
  59. metadata +81 -34
  60. data/.rvmrc +0 -1
  61. data/lib/public/css/bootstrap-responsive.css +0 -1058
  62. data/lib/public/css/bootstrap-responsive.min.css +0 -9
  63. data/lib/public/css/bootstrap.css +0 -5774
  64. data/lib/public/css/bootstrap.min.css +0 -9
  65. data/lib/public/js/bootstrap.js +0 -2027
  66. data/lib/public/js/bootstrap.min.js +0 -6
  67. data/lib/public/js/jquery-1.8.2.js +0 -9440
  68. data/lib/views/query.erb +0 -51
  69. data/lib/views/tables.erb +0 -53
@@ -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>
@@ -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>