dbviewer 0.6.7 → 0.7.0

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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/dbviewer/entity_relationship_diagram.js +553 -0
  3. data/app/assets/javascripts/dbviewer/home.js +287 -0
  4. data/app/assets/javascripts/dbviewer/layout.js +194 -0
  5. data/app/assets/javascripts/dbviewer/query.js +277 -0
  6. data/app/assets/javascripts/dbviewer/table.js +1563 -0
  7. data/app/assets/stylesheets/dbviewer/application.css +1460 -21
  8. data/app/assets/stylesheets/dbviewer/entity_relationship_diagram.css +181 -0
  9. data/app/assets/stylesheets/dbviewer/home.css +229 -0
  10. data/app/assets/stylesheets/dbviewer/logs.css +64 -0
  11. data/app/assets/stylesheets/dbviewer/query.css +171 -0
  12. data/app/assets/stylesheets/dbviewer/table.css +1144 -0
  13. data/app/views/dbviewer/connections/index.html.erb +0 -30
  14. data/app/views/dbviewer/entity_relationship_diagrams/index.html.erb +14 -713
  15. data/app/views/dbviewer/home/index.html.erb +9 -499
  16. data/app/views/dbviewer/logs/index.html.erb +5 -220
  17. data/app/views/dbviewer/tables/index.html.erb +0 -65
  18. data/app/views/dbviewer/tables/query.html.erb +129 -565
  19. data/app/views/dbviewer/tables/show.html.erb +4 -2429
  20. data/app/views/layouts/dbviewer/application.html.erb +13 -1544
  21. data/lib/dbviewer/version.rb +1 -1
  22. metadata +12 -7
  23. data/app/assets/javascripts/dbviewer/connections.js +0 -70
  24. data/app/assets/stylesheets/dbviewer/dbviewer.css +0 -0
  25. data/app/assets/stylesheets/dbviewer/enhanced.css +0 -0
  26. data/app/views/dbviewer/connections/new.html.erb +0 -79
  27. data/app/views/dbviewer/tables/mini_erd.html.erb +0 -517
@@ -87,33 +87,3 @@
87
87
  <% end %>
88
88
  </div>
89
89
  </div>
90
-
91
- <script>
92
- // Form validation script
93
- document.addEventListener('DOMContentLoaded', function() {
94
- const forms = document.querySelectorAll('.needs-validation')
95
-
96
- // Loop over them and prevent submission
97
- Array.from(forms).forEach(form => {
98
- form.addEventListener('submit', event => {
99
- if (!form.checkValidity()) {
100
- event.preventDefault()
101
- event.stopPropagation()
102
- }
103
-
104
- form.classList.add('was-validated')
105
- }, false)
106
- })
107
-
108
- // Auto-generate a key from the name
109
- const nameInput = document.getElementById('connection_name')
110
- const keyInput = document.getElementById('connection_key')
111
-
112
- nameInput.addEventListener('input', function() {
113
- keyInput.value = this.value
114
- .toLowerCase()
115
- .replace(/\s+/g, '_')
116
- .replace(/[^a-z0-9_]/g, '')
117
- })
118
- })
119
- </script>