avo 3.0.1.beta6 → 3.0.1.beta8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +23 -25
- data/{public/avo-assets/avo.css → app/assets/builds/avo.base.css} +2094 -1468
- data/app/assets/builds/avo.base.js +124556 -0
- data/app/assets/builds/avo.base.js.map +7 -0
- data/app/assets/builds/avo.custom.js +6 -0
- data/app/assets/builds/avo.custom.js.map +7 -0
- data/app/assets/stylesheets/avo.base.css +1 -0
- data/app/assets/stylesheets/css/fields/tags.css +32 -0
- data/app/components/avo/actions_component.rb +1 -1
- data/app/components/avo/field_wrapper_component.rb +1 -7
- data/app/components/avo/fields/common/badge_viewer_component.html.erb +1 -0
- data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
- data/app/components/avo/fields/common/key_value_component.rb +2 -2
- data/app/components/avo/fields/common/progress_bar_component.rb +3 -9
- data/app/components/avo/fields/edit_component.rb +1 -1
- data/app/components/avo/fields/index_component.rb +1 -1
- data/app/components/avo/fields/show_component.rb +1 -1
- data/app/components/avo/index/field_wrapper_component.rb +1 -1
- data/app/components/avo/index/resource_controls_component.rb +1 -1
- data/app/components/avo/index/resource_table_component.rb +6 -6
- data/app/components/avo/resource_component.rb +9 -4
- data/app/components/avo/sidebar_profile_component.html.erb +4 -4
- data/app/components/avo/tab_group_component.html.erb +1 -1
- data/app/components/avo/tab_switcher_component.rb +2 -2
- data/app/components/avo/views/resource_edit_component.rb +5 -5
- data/app/components/avo/views/resource_index_component.rb +1 -1
- data/app/components/avo/views/resource_show_component.rb +1 -1
- data/app/controllers/avo/actions_controller.rb +1 -1
- data/app/controllers/avo/application_controller.rb +5 -5
- data/app/controllers/avo/base_controller.rb +1 -1
- data/app/controllers/avo/search_controller.rb +17 -0
- data/app/controllers/concerns/avo/initializes_avo.rb +1 -0
- data/app/helpers/avo/url_helpers.rb +1 -1
- data/app/views/avo/actions/show.html.erb +1 -1
- data/config/routes.rb +4 -3
- data/db/factories.rb +1 -1
- data/lib/avo/base_action.rb +2 -2
- data/lib/avo/base_resource.rb +6 -5
- data/lib/avo/concerns/has_helpers.rb +18 -0
- data/lib/avo/concerns/has_items.rb +1 -1
- data/lib/avo/concerns/visible_in_different_views.rb +7 -1
- data/lib/avo/concerns/visible_items.rb +43 -0
- data/lib/avo/configuration.rb +8 -2
- data/lib/avo/current.rb +1 -0
- data/lib/avo/execution_context.rb +4 -1
- data/lib/avo/fields/badge_field.rb +1 -1
- data/lib/avo/fields/base_field.rb +9 -36
- data/lib/avo/fields/belongs_to_field.rb +1 -1
- data/lib/avo/fields/concerns/has_html_attributes.rb +2 -0
- data/lib/avo/fields/concerns/use_view_components.rb +45 -0
- data/lib/avo/fields/has_base_field.rb +2 -2
- data/lib/avo/resources/items/item_group.rb +2 -2
- data/lib/avo/resources/items/row.rb +3 -3
- data/lib/avo/resources/items/sidebar.rb +1 -1
- data/lib/avo/resources/items/tab.rb +2 -2
- data/lib/avo/resources/items/tab_group.rb +1 -1
- data/lib/avo/resources/resource_manager.rb +6 -1
- data/lib/avo/version.rb +1 -1
- data/lib/avo/view_inquirer.rb +36 -0
- data/lib/avo.rb +9 -0
- data/lib/generators/avo/eject_generator.rb +93 -16
- data/lib/generators/avo/resource_generator.rb +5 -5
- data/lib/generators/avo/templates/initializer/avo.tt +5 -0
- data/public/avo-assets/avo.base.css +50 -210
- metadata +12 -6
- data/config/master.key +0 -1
- data/public/avo-assets/avo.js +0 -513
- data/public/avo-assets/avo.js.map +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba8ff92bd87d9e0b8cfa4eb41412cfa4e919deb61bbd81612082ba0d439b329d
|
4
|
+
data.tar.gz: 9fb43629cf378585beb2d624f9fb9d83d1fdb60bc11053e3ea7f1fdfe9c868ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95a674b3c497843b0924d55021dee3480bfa86d7495d99c3aa7536340fc3dfcad258bd6aba6a5575f39bb6a4a714354a99bc3adf739dd8ab305f9f3a1d9fa1c
|
7
|
+
data.tar.gz: eaf7a6e8a66b13160777724fe9ff8e1e9052f0376023c5ddeabb0a14033d28ab5b6d46f82e72d7f9a90fbec341a535a8a8d4dd2f925b1c6d46e31a887ebe8314
|
data/Gemfile
CHANGED
@@ -88,7 +88,7 @@ group :test do
|
|
88
88
|
gem "capybara"
|
89
89
|
gem "selenium-webdriver"
|
90
90
|
# Easy installation and use of web drivers to run system tests with browsers
|
91
|
-
gem "webdrivers"
|
91
|
+
gem "webdrivers", ">= 5.3.0"
|
92
92
|
gem "fuubar"
|
93
93
|
gem "simplecov", require: false
|
94
94
|
gem "simplecov-cobertura"
|
@@ -127,7 +127,7 @@ gem "addressable"
|
|
127
127
|
gem 'meta-tags'
|
128
128
|
|
129
129
|
# Search
|
130
|
-
gem "ransack", "~>
|
130
|
+
gem "ransack", "~>4.0"
|
131
131
|
|
132
132
|
gem 'friendly_id', '~> 5.4.0'
|
133
133
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (3.0.1.
|
4
|
+
avo (3.0.1.beta8)
|
5
5
|
actionview (>= 6.1)
|
6
6
|
active_link_to
|
7
7
|
activerecord (>= 6.1)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
activerecord (>= 6.0, < 7.1)
|
94
94
|
acts_as_list (1.0.4)
|
95
95
|
activerecord (>= 4.2)
|
96
|
-
addressable (2.8.
|
96
|
+
addressable (2.8.5)
|
97
97
|
public_suffix (>= 2.0.2, < 6.0)
|
98
98
|
annotate (3.2.0)
|
99
99
|
activerecord (>= 3.2, < 8.0)
|
@@ -138,7 +138,7 @@ GEM
|
|
138
138
|
bump (0.10.0)
|
139
139
|
bundler-integrity (1.0.9)
|
140
140
|
byebug (11.1.3)
|
141
|
-
capybara (3.
|
141
|
+
capybara (3.39.2)
|
142
142
|
addressable
|
143
143
|
matrix
|
144
144
|
mini_mime (>= 0.1.3)
|
@@ -148,7 +148,6 @@ GEM
|
|
148
148
|
regexp_parser (>= 1.5, < 3.0)
|
149
149
|
xpath (~> 3.2)
|
150
150
|
chartkick (4.2.1)
|
151
|
-
childprocess (4.1.0)
|
152
151
|
concurrent-ruby (1.2.2)
|
153
152
|
countries (5.1.2)
|
154
153
|
sixarm_ruby_unaccent (~> 1.1)
|
@@ -211,7 +210,7 @@ GEM
|
|
211
210
|
httparty (0.20.0)
|
212
211
|
mime-types (~> 3.0)
|
213
212
|
multi_xml (>= 0.5.2)
|
214
|
-
i18n (1.
|
213
|
+
i18n (1.14.1)
|
215
214
|
concurrent-ruby (~> 1.0)
|
216
215
|
i18n-tasks (1.0.12)
|
217
216
|
activesupport (>= 4.0.2)
|
@@ -264,8 +263,8 @@ GEM
|
|
264
263
|
mime-types-data (~> 3.2015)
|
265
264
|
mime-types-data (3.2022.0105)
|
266
265
|
mini_magick (4.11.0)
|
267
|
-
mini_mime (1.1.
|
268
|
-
mini_portile2 (2.8.
|
266
|
+
mini_mime (1.1.5)
|
267
|
+
mini_portile2 (2.8.4)
|
269
268
|
minitest (5.18.0)
|
270
269
|
msgpack (1.5.6)
|
271
270
|
multi_xml (0.6.0)
|
@@ -281,10 +280,10 @@ GEM
|
|
281
280
|
net-protocol
|
282
281
|
timeout
|
283
282
|
nio4r (2.5.9)
|
284
|
-
nokogiri (1.
|
285
|
-
mini_portile2 (~> 2.8.
|
283
|
+
nokogiri (1.15.4)
|
284
|
+
mini_portile2 (~> 2.8.2)
|
286
285
|
racc (~> 1.4)
|
287
|
-
nokogiri (1.
|
286
|
+
nokogiri (1.15.4-x86_64-linux)
|
288
287
|
racc (~> 1.4)
|
289
288
|
orm_adapter (0.5.0)
|
290
289
|
pagy (6.0.3)
|
@@ -295,11 +294,11 @@ GEM
|
|
295
294
|
prefixed_ids (1.4.0)
|
296
295
|
hashids (>= 1.0.0, < 2.0.0)
|
297
296
|
rails (>= 6.0.0)
|
298
|
-
public_suffix (5.0.
|
297
|
+
public_suffix (5.0.3)
|
299
298
|
puma (6.0.2)
|
300
299
|
nio4r (~> 2.0)
|
301
|
-
racc (1.
|
302
|
-
rack (2.2.
|
300
|
+
racc (1.7.1)
|
301
|
+
rack (2.2.8)
|
303
302
|
rack-test (2.1.0)
|
304
303
|
rack (>= 1.3)
|
305
304
|
rails (6.1.7.3)
|
@@ -337,21 +336,21 @@ GEM
|
|
337
336
|
thor (~> 1.0)
|
338
337
|
rainbow (3.1.1)
|
339
338
|
rake (13.0.6)
|
340
|
-
ransack (
|
341
|
-
activerecord (>= 6.
|
342
|
-
activesupport (>= 6.
|
339
|
+
ransack (4.0.0)
|
340
|
+
activerecord (>= 6.1.5)
|
341
|
+
activesupport (>= 6.1.5)
|
343
342
|
i18n
|
344
343
|
rb-fsevent (0.11.1)
|
345
344
|
rb-inotify (0.10.1)
|
346
345
|
ffi (~> 1.0)
|
347
346
|
redis (4.8.0)
|
348
|
-
regexp_parser (2.
|
347
|
+
regexp_parser (2.8.1)
|
349
348
|
responders (3.0.1)
|
350
349
|
actionpack (>= 5.0)
|
351
350
|
railties (>= 5.0)
|
352
351
|
reverse_markdown (2.1.1)
|
353
352
|
nokogiri
|
354
|
-
rexml (3.2.
|
353
|
+
rexml (3.2.6)
|
355
354
|
ripper-tags (0.9.1)
|
356
355
|
rspec-core (3.11.0)
|
357
356
|
rspec-support (~> 3.11.0)
|
@@ -393,8 +392,7 @@ GEM
|
|
393
392
|
ruby-vips (2.1.4)
|
394
393
|
ffi (~> 1.12)
|
395
394
|
rubyzip (2.3.2)
|
396
|
-
selenium-webdriver (4.
|
397
|
-
childprocess (>= 0.5, < 5.0)
|
395
|
+
selenium-webdriver (4.10.0)
|
398
396
|
rexml (~> 3.2, >= 3.2.5)
|
399
397
|
rubyzip (>= 1.2.2, < 3.0)
|
400
398
|
websocket (~> 1.0)
|
@@ -464,10 +462,10 @@ GEM
|
|
464
462
|
activemodel (>= 6.0.0)
|
465
463
|
bindex (>= 0.4.0)
|
466
464
|
railties (>= 6.0.0)
|
467
|
-
webdrivers (5.
|
465
|
+
webdrivers (5.3.1)
|
468
466
|
nokogiri (~> 1.6)
|
469
467
|
rubyzip (>= 1.3.0)
|
470
|
-
selenium-webdriver (~> 4.0)
|
468
|
+
selenium-webdriver (~> 4.0, < 4.11)
|
471
469
|
webmock (3.18.1)
|
472
470
|
addressable (>= 2.8.0)
|
473
471
|
crack (>= 0.3.2)
|
@@ -481,7 +479,7 @@ GEM
|
|
481
479
|
nokogiri (~> 1.8)
|
482
480
|
yard (0.9.28)
|
483
481
|
webrick (~> 1.7.0)
|
484
|
-
zeitwerk (2.6.
|
482
|
+
zeitwerk (2.6.11)
|
485
483
|
|
486
484
|
PLATFORMS
|
487
485
|
ruby
|
@@ -537,7 +535,7 @@ DEPENDENCIES
|
|
537
535
|
puma (~> 6.0.2)
|
538
536
|
rails (~> 6.1.0)
|
539
537
|
rails-controller-testing
|
540
|
-
ransack (~>
|
538
|
+
ransack (~> 4.0)
|
541
539
|
redis (~> 4.0)
|
542
540
|
ripper-tags
|
543
541
|
rspec-rails (~> 4.0.0)
|
@@ -556,7 +554,7 @@ DEPENDENCIES
|
|
556
554
|
test-prof
|
557
555
|
tzinfo-data
|
558
556
|
web-console (>= 3.3.0)
|
559
|
-
webdrivers
|
557
|
+
webdrivers (>= 5.3.0)
|
560
558
|
webmock
|
561
559
|
zeitwerk
|
562
560
|
|