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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/dbviewer/entity_relationship_diagram.js +553 -0
- data/app/assets/javascripts/dbviewer/home.js +287 -0
- data/app/assets/javascripts/dbviewer/layout.js +194 -0
- data/app/assets/javascripts/dbviewer/query.js +277 -0
- data/app/assets/javascripts/dbviewer/table.js +1563 -0
- data/app/assets/stylesheets/dbviewer/application.css +1460 -21
- data/app/assets/stylesheets/dbviewer/entity_relationship_diagram.css +181 -0
- data/app/assets/stylesheets/dbviewer/home.css +229 -0
- data/app/assets/stylesheets/dbviewer/logs.css +64 -0
- data/app/assets/stylesheets/dbviewer/query.css +171 -0
- data/app/assets/stylesheets/dbviewer/table.css +1144 -0
- data/app/views/dbviewer/connections/index.html.erb +0 -30
- data/app/views/dbviewer/entity_relationship_diagrams/index.html.erb +14 -713
- data/app/views/dbviewer/home/index.html.erb +9 -499
- data/app/views/dbviewer/logs/index.html.erb +5 -220
- data/app/views/dbviewer/tables/index.html.erb +0 -65
- data/app/views/dbviewer/tables/query.html.erb +129 -565
- data/app/views/dbviewer/tables/show.html.erb +4 -2429
- data/app/views/layouts/dbviewer/application.html.erb +13 -1544
- data/lib/dbviewer/version.rb +1 -1
- metadata +12 -7
- data/app/assets/javascripts/dbviewer/connections.js +0 -70
- data/app/assets/stylesheets/dbviewer/dbviewer.css +0 -0
- data/app/assets/stylesheets/dbviewer/enhanced.css +0 -0
- data/app/views/dbviewer/connections/new.html.erb +0 -79
- 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>
|