active_element 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +2 -28
- data/app/views/active_element/components/button.html.erb +1 -1
- data/app/views/active_element/default_views/edit.html.erb +4 -0
- data/app/views/active_element/default_views/index.html.erb +4 -0
- data/app/views/active_element/default_views/new.html.erb +4 -0
- data/app/views/active_element/default_views/show.html.erb +3 -0
- data/example_app/Gemfile.lock +1 -1
- data/lib/active_element/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f38b4565ed14ef722b7acd88d3c75742d4f07bdd0ba1e83459d4ebeed6e2adf3
|
4
|
+
data.tar.gz: cbc7e900bf6d78d571602c172e6dcb535a14d328b426477d32ad0197ff584f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9561a790971bfc4a71d4fc18269f3b6a5972e3bcc788f12d448987d0483014a733eb16e04bfc3206f6c45a296fc2a5720955ddc4e45ed93261a72954013a64f
|
7
|
+
data.tar.gz: c0a6457abe28261de7f42e9b9e0802c04f6e40363cc92b72bce25736ddcd9dbbbf858a253ce5a0c083baa943ba72301110473cc2566303d5118fb5c66fb41df0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
active_element (0.0.
|
4
|
+
active_element (0.0.19)
|
5
5
|
bootstrap (~> 5.3.0alpha3)
|
6
6
|
kaminari (~> 1.2)
|
7
7
|
paintbrush (~> 0.1.2)
|
@@ -145,21 +145,21 @@ GEM
|
|
145
145
|
net-imap
|
146
146
|
net-pop
|
147
147
|
net-smtp
|
148
|
-
marcel (1.0.
|
148
|
+
marcel (1.0.4)
|
149
149
|
method_source (1.0.0)
|
150
150
|
mini_mime (1.1.5)
|
151
151
|
mini_portile2 (2.8.2)
|
152
152
|
minitest (5.18.1)
|
153
|
-
net-imap (0.4.
|
153
|
+
net-imap (0.4.10)
|
154
154
|
date
|
155
155
|
net-protocol
|
156
156
|
net-pop (0.1.2)
|
157
157
|
net-protocol
|
158
158
|
net-protocol (0.2.2)
|
159
159
|
timeout
|
160
|
-
net-smtp (0.
|
160
|
+
net-smtp (0.5.0)
|
161
161
|
net-protocol
|
162
|
-
nio4r (2.7.
|
162
|
+
nio4r (2.7.1)
|
163
163
|
nokogiri (1.15.2)
|
164
164
|
mini_portile2 (~> 2.8.2)
|
165
165
|
racc (~> 1.4)
|
data/README.md
CHANGED
@@ -1,31 +1,5 @@
|
|
1
1
|
# ActiveElement
|
2
2
|
|
3
|
-
|
3
|
+
ActiveElement is a framework for building admin applications in Rails.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
-
|
27
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/active_element.
|
5
|
+
See the [documentation](https://docs.bob.frl/active_element) to get started.
|
@@ -1,5 +1,9 @@
|
|
1
1
|
<%= active_element.component.page_title record.model_name.to_s.titleize %>
|
2
2
|
|
3
|
+
<%= render_active_element_hook "#{controller_path}/before_edit" %>
|
4
|
+
|
3
5
|
<%= active_element.component.form model: [namespace, record].compact,
|
4
6
|
destroy: active_element.state.deletable?,
|
5
7
|
fields: active_element.state.editable_fields %>
|
8
|
+
|
9
|
+
<%= render_active_element_hook "#{controller_path}/after_edit" %>
|
@@ -7,6 +7,8 @@
|
|
7
7
|
fields: active_element.state.searchable_fields %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
+
<%= render_active_element_hook "#{controller_path}/before_index" %>
|
11
|
+
|
10
12
|
<% if active_element.state.search_required && search_filters.compact_blank.blank? %>
|
11
13
|
<% if active_element.state.creatable? %>
|
12
14
|
<%= active_element.component.new_button(collection.model&.new, float: 'end', class: 'mb-3') %>
|
@@ -21,3 +23,5 @@
|
|
21
23
|
collection: collection,
|
22
24
|
fields: active_element.state.listable_fields %>
|
23
25
|
<% end %>
|
26
|
+
|
27
|
+
<%= render_active_element_hook "#{controller_path}/after_index" %>
|
@@ -1,4 +1,8 @@
|
|
1
1
|
<%= active_element.component.page_title record.model_name.to_s.titleize %>
|
2
2
|
|
3
|
+
<%= render_active_element_hook "#{controller_path}/before_new" %>
|
4
|
+
|
3
5
|
<%= active_element.component.form model: [namespace, record].compact,
|
4
6
|
fields: active_element.state.editable_fields %>
|
7
|
+
|
8
|
+
<%= render_active_element_hook "#{controller_path}/after_new" %>
|
@@ -1,7 +1,10 @@
|
|
1
1
|
<%= active_element.component.page_title record.model_name.to_s.titleize %>
|
2
2
|
|
3
|
+
<%= render_active_element_hook "#{controller_path}/before_show" %>
|
4
|
+
|
3
5
|
<%= active_element.component.table item: record,
|
4
6
|
edit: active_element.state.editable?,
|
5
7
|
destroy: active_element.state.deletable?,
|
6
8
|
fields: active_element.state.viewable_fields %>
|
7
9
|
|
10
|
+
<%= render_active_element_hook "#{controller_path}/after_show" %>
|
data/example_app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_element
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap
|