quick_admin 0.1.0 → 0.1.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad5f8e560cb45b34dba0e30fa353912c5dd1db62dd8935f7823c253fd9196f3e
|
|
4
|
+
data.tar.gz: 20086b4c332deb6cd63e630602b3e56b673bd3797f4712b3a8320b85c244392c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b310f44ce9cc48ff1118a5dca67cbf1d9bf7e58acd289d208862aa6d78078ba8425b2648c07873230bf11cadf46c629eb2258b10b53093879d63e850d19ee590
|
|
7
|
+
data.tar.gz: a2dd9e3a3d9361e3db42360ef9c1b7e68121840c775a0758ac6189a9eef5f2d3d67b7c7a53a0146f49a8f7bad2762e704949f64668dea8345bdcafefdb30b49f
|
data/CHANGELOG.md
CHANGED
|
@@ -34,6 +34,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
34
34
|
|
|
35
35
|
## [Unreleased]
|
|
36
36
|
|
|
37
|
+
## [0.1.1] - 2025-11-03
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
- Added missing `new.turbo_stream.erb` and `edit.turbo_stream.erb` templates to handle form validation errors properly in turbo_stream requests
|
|
41
|
+
- Resolved "Missing template" error when resource creation or update fails validation
|
|
42
|
+
|
|
37
43
|
### Changed
|
|
38
44
|
- Improved SQL injection protection in ORDER BY clause
|
|
39
45
|
- Enhanced error handling in attachment handling
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%= turbo_stream.update "modal" do %>
|
|
2
|
+
<div class="modal-overlay" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">
|
|
3
|
+
<div class="modal-content" onclick="event.stopPropagation()">
|
|
4
|
+
<div class="modal-header">
|
|
5
|
+
<h2>Edit <%= @resource_config.model_name.singularize.humanize %></h2>
|
|
6
|
+
<button type="button" class="modal-close" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">×</button>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="modal-body">
|
|
10
|
+
<%= render "form", resource: @resource %>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%= turbo_stream.update "modal" do %>
|
|
2
|
+
<div class="modal-overlay" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">
|
|
3
|
+
<div class="modal-content" onclick="event.stopPropagation()">
|
|
4
|
+
<div class="modal-header">
|
|
5
|
+
<h2>New <%= @resource_config.model_name.singularize.humanize %></h2>
|
|
6
|
+
<button type="button" class="modal-close" onclick="document.getElementById('modal').innerHTML = ''; document.body.style.overflow = '';">×</button>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div class="modal-body">
|
|
10
|
+
<%= render "form", resource: @resource %>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
data/lib/quick_admin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quick_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nezir Zahirovic
|
|
@@ -105,9 +105,11 @@ files:
|
|
|
105
105
|
- app/views/quick_admin/resources/create.turbo_stream.erb
|
|
106
106
|
- app/views/quick_admin/resources/destroy.turbo_stream.erb
|
|
107
107
|
- app/views/quick_admin/resources/edit.html.erb
|
|
108
|
+
- app/views/quick_admin/resources/edit.turbo_stream.erb
|
|
108
109
|
- app/views/quick_admin/resources/index.html.erb
|
|
109
110
|
- app/views/quick_admin/resources/index.turbo_stream.erb
|
|
110
111
|
- app/views/quick_admin/resources/new.html.erb
|
|
112
|
+
- app/views/quick_admin/resources/new.turbo_stream.erb
|
|
111
113
|
- app/views/quick_admin/resources/show.html.erb
|
|
112
114
|
- app/views/quick_admin/resources/update.turbo_stream.erb
|
|
113
115
|
- config/routes.rb
|
|
@@ -118,11 +120,11 @@ files:
|
|
|
118
120
|
- lib/quick_admin/engine.rb
|
|
119
121
|
- lib/quick_admin/resource.rb
|
|
120
122
|
- lib/quick_admin/version.rb
|
|
121
|
-
homepage: https://
|
|
123
|
+
homepage: https://blog.rubyonrails.ba/articles/introducing-quickadmin-a-lightweight-modern-admin-interface-for-rails
|
|
122
124
|
licenses:
|
|
123
125
|
- MIT
|
|
124
126
|
metadata:
|
|
125
|
-
homepage_uri: https://
|
|
127
|
+
homepage_uri: https://blog.rubyonrails.ba/articles/introducing-quickadmin-a-lightweight-modern-admin-interface-for-rails
|
|
126
128
|
source_code_uri: https://github.com/nezirz/quick_admin
|
|
127
129
|
changelog_uri: https://github.com/nezirz/quick_admin/blob/main/CHANGELOG.md
|
|
128
130
|
bug_tracker_uri: https://github.com/nezirz/quick_admin/issues
|