headmin 0.2.2 → 0.2.6
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/.nvmrc +1 -1
- data/Gemfile.lock +3 -3
- data/README.md +17 -7
- data/app/helpers/headmin/admin_helper.rb +3 -59
- data/app/helpers/headmin/bootstrap_helper.rb +9 -0
- data/app/helpers/headmin/filter_helper.rb +7 -3
- data/app/helpers/headmin/form_helper.rb +36 -0
- data/app/helpers/headmin/request_helper.rb +39 -0
- data/app/models/concerns/headmin/fieldable.rb +53 -23
- data/app/services/block_service.rb +8 -4
- data/app/views/headmin/_blocks.html.erb +1 -1
- data/app/views/headmin/_filters.html.erb +1 -1
- data/app/views/headmin/_pagination.html.erb +4 -1
- data/app/views/headmin/dropdown/_devise.html.erb +20 -10
- data/app/views/headmin/dropdown/_list.html.erb +17 -7
- data/app/views/headmin/filters/_select.html.erb +3 -2
- data/app/views/headmin/filters/filter/_button.html.erb +0 -1
- data/app/views/headmin/forms/_blocks.html.erb +11 -4
- data/app/views/headmin/forms/_date.html.erb +1 -1
- data/app/views/headmin/forms/_label.html.erb +2 -2
- data/app/views/headmin/forms/_repeater.html.erb +6 -10
- data/app/views/headmin/table/_actions.html.erb +37 -11
- data/app/views/headmin/views/devise/confirmations/_new.html.erb +1 -1
- data/app/views/headmin/views/devise/passwords/_edit.html.erb +2 -2
- data/app/views/headmin/views/devise/passwords/_new.html.erb +1 -1
- data/app/views/headmin/views/devise/registrations/_edit.html.erb +4 -4
- data/app/views/headmin/views/devise/registrations/_new.html.erb +3 -3
- data/app/views/headmin/views/devise/shared/_links.html.erb +7 -7
- data/app/views/headmin/views/devise/unlocks/_new.html.erb +1 -1
- data/config/locales/activerecord/en.yml +9 -0
- data/config/locales/activerecord/nl.yml +9 -0
- data/config/locales/headmin/table/en.yml +5 -1
- data/config/locales/headmin/table/nl.yml +5 -1
- data/config/locales/headmin/views/en.yml +1 -1
- data/config/locales/headmin/views/nl.yml +14 -14
- data/dist/css/headmin.css +54 -13
- data/dist/js/headmin.js +45 -513
- data/docs/blocks-and-fields.md +54 -0
- data/docs/blocks.md +1 -54
- data/docs/devise.md +40 -2
- data/docs/fields.md +31 -9
- data/headmin.gemspec +1 -1
- data/lib/generators/headmin/blocks_generator.rb +4 -1
- data/lib/generators/headmin/devise_generator.rb +16 -0
- data/lib/generators/headmin/fields_generator.rb +5 -1
- data/lib/generators/templates/controllers/auth/confirmations_controller.rb +31 -0
- data/lib/generators/templates/controllers/auth/omniauth_callbacks_controller.rb +31 -0
- data/lib/generators/templates/controllers/auth/passwords_controller.rb +35 -0
- data/lib/generators/templates/controllers/auth/registrations_controller.rb +63 -0
- data/lib/generators/templates/controllers/auth/sessions_controller.rb +28 -0
- data/lib/generators/templates/controllers/auth/unlocks_controller.rb +31 -0
- data/lib/generators/templates/migrations/create_field_hierarchies.rb +16 -0
- data/lib/generators/templates/views/auth/confirmations/new.html.erb +1 -0
- data/lib/generators/templates/views/auth/mailer/confirmation_instructions.html.erb +1 -0
- data/lib/generators/templates/views/auth/mailer/email_changed.html.erb +1 -0
- data/lib/generators/templates/views/auth/mailer/password_change.html.erb +1 -0
- data/lib/generators/templates/views/auth/mailer/reset_password_instructions.html.erb +1 -0
- data/lib/generators/templates/views/auth/mailer/unlock_instructions.html.erb +1 -0
- data/lib/generators/templates/views/auth/passwords/edit.html.erb +1 -0
- data/lib/generators/templates/views/auth/passwords/new.html.erb +1 -0
- data/lib/generators/templates/views/auth/registrations/edit.html.erb +1 -0
- data/lib/generators/templates/views/auth/registrations/new.html.erb +1 -0
- data/lib/generators/templates/views/auth/sessions/new.html.erb +1 -0
- data/lib/generators/templates/views/auth/unlocks/new.html.erb +1 -0
- data/lib/generators/templates/views/layouts/auth.html.erb +20 -0
- data/lib/headmin/engine.rb +2 -0
- data/lib/headmin/version.rb +1 -1
- data/package.json +4 -3
- data/src/js/headmin/controllers/blocks_controller.js +1 -1
- data/src/js/headmin/controllers/filter_controller.js +1 -1
- data/src/js/headmin/controllers/filters_controller.js +1 -1
- data/src/js/headmin/controllers/popup_controller.js +1 -1
- data/src/js/headmin/controllers/repeater_controller.js +9 -10
- data/src/js/headmin/controllers/table_actions_controller.js +104 -9
- data/src/js/headmin/controllers/table_controller.js +28 -57
- data/src/js/headmin/headmin.js +2 -2
- data/src/scss/headmin/table.scss +1 -0
- data/yarn.lock +1159 -1237
- metadata +33 -7
- data/docs/README.md +0 -5
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: headmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jef Vlamings
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: closure_tree
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
description: A complete library of commonly used components to build an admin interface
|
28
28
|
in your Ruby on Rails project.
|
29
29
|
email:
|
@@ -52,8 +52,11 @@ files:
|
|
52
52
|
- app/controllers/concerns/headmin/searchable.rb
|
53
53
|
- app/controllers/concerns/headmin/sortable.rb
|
54
54
|
- app/helpers/headmin/admin_helper.rb
|
55
|
+
- app/helpers/headmin/bootstrap_helper.rb
|
55
56
|
- app/helpers/headmin/filter_helper.rb
|
57
|
+
- app/helpers/headmin/form_helper.rb
|
56
58
|
- app/helpers/headmin/notification_helper.rb
|
59
|
+
- app/helpers/headmin/request_helper.rb
|
57
60
|
- app/models/concerns/headmin/block.rb
|
58
61
|
- app/models/concerns/headmin/blockable.rb
|
59
62
|
- app/models/concerns/headmin/field.rb
|
@@ -174,6 +177,8 @@ files:
|
|
174
177
|
- bin/console
|
175
178
|
- bin/setup
|
176
179
|
- config/initializers/customize_input_error.rb
|
180
|
+
- config/locales/activerecord/en.yml
|
181
|
+
- config/locales/activerecord/nl.yml
|
177
182
|
- config/locales/defaults/en.yml
|
178
183
|
- config/locales/defaults/nl.yml
|
179
184
|
- config/locales/devise/en.yml
|
@@ -196,17 +201,38 @@ files:
|
|
196
201
|
- config/locales/nl.yml
|
197
202
|
- dist/css/headmin.css
|
198
203
|
- dist/js/headmin.js
|
199
|
-
- docs/
|
204
|
+
- docs/blocks-and-fields.md
|
200
205
|
- docs/blocks.md
|
201
206
|
- docs/devise.md
|
202
207
|
- docs/fields.md
|
203
208
|
- headmin.gemspec
|
204
209
|
- lib/generators/headmin/blocks_generator.rb
|
210
|
+
- lib/generators/headmin/devise_generator.rb
|
205
211
|
- lib/generators/headmin/fields_generator.rb
|
212
|
+
- lib/generators/templates/controllers/auth/confirmations_controller.rb
|
213
|
+
- lib/generators/templates/controllers/auth/omniauth_callbacks_controller.rb
|
214
|
+
- lib/generators/templates/controllers/auth/passwords_controller.rb
|
215
|
+
- lib/generators/templates/controllers/auth/registrations_controller.rb
|
216
|
+
- lib/generators/templates/controllers/auth/sessions_controller.rb
|
217
|
+
- lib/generators/templates/controllers/auth/unlocks_controller.rb
|
206
218
|
- lib/generators/templates/migrations/create_blocks.rb
|
219
|
+
- lib/generators/templates/migrations/create_field_hierarchies.rb
|
207
220
|
- lib/generators/templates/migrations/create_fields.rb
|
208
221
|
- lib/generators/templates/models/block.rb
|
209
222
|
- lib/generators/templates/models/field.rb
|
223
|
+
- lib/generators/templates/views/auth/confirmations/new.html.erb
|
224
|
+
- lib/generators/templates/views/auth/mailer/confirmation_instructions.html.erb
|
225
|
+
- lib/generators/templates/views/auth/mailer/email_changed.html.erb
|
226
|
+
- lib/generators/templates/views/auth/mailer/password_change.html.erb
|
227
|
+
- lib/generators/templates/views/auth/mailer/reset_password_instructions.html.erb
|
228
|
+
- lib/generators/templates/views/auth/mailer/unlock_instructions.html.erb
|
229
|
+
- lib/generators/templates/views/auth/passwords/edit.html.erb
|
230
|
+
- lib/generators/templates/views/auth/passwords/new.html.erb
|
231
|
+
- lib/generators/templates/views/auth/registrations/edit.html.erb
|
232
|
+
- lib/generators/templates/views/auth/registrations/new.html.erb
|
233
|
+
- lib/generators/templates/views/auth/sessions/new.html.erb
|
234
|
+
- lib/generators/templates/views/auth/unlocks/new.html.erb
|
235
|
+
- lib/generators/templates/views/layouts/auth.html.erb
|
210
236
|
- lib/headmin.rb
|
211
237
|
- lib/headmin/engine.rb
|
212
238
|
- lib/headmin/version.rb
|