avo 2.0.0 → 2.1.0

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.

Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +3 -3
  4. data/app/assets/svgs/save.svg +8 -1
  5. data/app/components/avo/actions_component.html.erb +1 -1
  6. data/app/components/avo/alert_component.rb +5 -5
  7. data/app/components/avo/blank_field_component.html.erb +0 -0
  8. data/app/components/avo/blank_field_component.rb +4 -0
  9. data/app/components/avo/fields/badge_field/index_component.html.erb +1 -1
  10. data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
  11. data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -2
  12. data/app/components/avo/fields/file_field/index_component.html.erb +3 -3
  13. data/app/components/avo/fields/file_field/index_component.rb +11 -0
  14. data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
  15. data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
  16. data/app/components/avo/index/field_wrapper_component.html.erb +1 -1
  17. data/app/components/avo/index/field_wrapper_component.rb +12 -1
  18. data/app/components/avo/index/resource_controls_component.html.erb +5 -1
  19. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  20. data/app/components/avo/panel_component.html.erb +10 -2
  21. data/app/components/avo/panel_component.rb +9 -0
  22. data/app/components/avo/referrer_params_component.html.erb +4 -0
  23. data/app/components/avo/referrer_params_component.rb +9 -0
  24. data/app/components/avo/sidebar_component.rb +3 -1
  25. data/app/components/avo/views/resource_edit_component.html.erb +14 -1
  26. data/app/components/avo/views/resource_new_component.html.erb +13 -0
  27. data/app/components/avo/views/resource_show_component.html.erb +1 -0
  28. data/app/controllers/avo/application_controller.rb +1 -1
  29. data/app/controllers/avo/base_controller.rb +57 -27
  30. data/app/controllers/avo/dashboards_controller.rb +1 -1
  31. data/app/controllers/avo/search_controller.rb +5 -1
  32. data/app/javascript/avo.js +4 -3
  33. data/app/views/avo/actions/show.html.erb +1 -0
  34. data/app/views/avo/associations/new.html.erb +1 -0
  35. data/app/views/avo/home/failed_to_load.html.erb +21 -1
  36. data/app/views/layouts/avo/application.html.erb +7 -0
  37. data/bin/dev +7 -6
  38. data/lib/avo/app.rb +8 -1
  39. data/lib/avo/base_action.rb +4 -4
  40. data/lib/avo/base_resource.rb +26 -7
  41. data/lib/avo/configuration.rb +2 -0
  42. data/lib/avo/dashboards/base_dashboard.rb +17 -0
  43. data/lib/avo/dashboards/chartkick_card.rb +1 -1
  44. data/lib/avo/fields/base_field.rb +19 -6
  45. data/lib/avo/fields/belongs_to_field.rb +1 -1
  46. data/lib/avo/fields/external_image_field.rb +2 -2
  47. data/lib/avo/hosts/dashboard_visibility.rb +19 -0
  48. data/lib/avo/licensing/pro_license.rb +1 -0
  49. data/lib/avo/version.rb +1 -1
  50. data/lib/generators/avo/templates/dashboards/dashboard.tt +4 -1
  51. data/public/avo-assets/avo.css +37 -21
  52. data/public/avo-assets/avo.js +166 -165
  53. data/public/avo-assets/avo.js.map +3 -3
  54. metadata +7 -3
  55. data/app/views/avo/partials/_failed_state.html.erb +0 -16
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-25 00:00:00.000000000 Z
12
+ date: 2022-03-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -781,6 +781,8 @@ files:
781
781
  - app/components/avo/alert_component.html.erb
782
782
  - app/components/avo/alert_component.rb
783
783
  - app/components/avo/base_component.rb
784
+ - app/components/avo/blank_field_component.html.erb
785
+ - app/components/avo/blank_field_component.rb
784
786
  - app/components/avo/button_component.html.erb
785
787
  - app/components/avo/button_component.rb
786
788
  - app/components/avo/card_component.html.erb
@@ -981,6 +983,8 @@ files:
981
983
  - app/components/avo/panel_component.rb
982
984
  - app/components/avo/profile_item_component.html.erb
983
985
  - app/components/avo/profile_item_component.rb
986
+ - app/components/avo/referrer_params_component.html.erb
987
+ - app/components/avo/referrer_params_component.rb
984
988
  - app/components/avo/resource_component.rb
985
989
  - app/components/avo/show/field_wrapper_component.html.erb
986
990
  - app/components/avo/show/field_wrapper_component.rb
@@ -1072,7 +1076,6 @@ files:
1072
1076
  - app/views/avo/home/failed_to_load.html.erb
1073
1077
  - app/views/avo/home/index.html.erb
1074
1078
  - app/views/avo/partials/_custom_tools_alert.html.erb
1075
- - app/views/avo/partials/_failed_state.html.erb
1076
1079
  - app/views/avo/partials/_footer.html.erb
1077
1080
  - app/views/avo/partials/_global_search.html.erb
1078
1081
  - app/views/avo/partials/_head.html.erb
@@ -1173,6 +1176,7 @@ files:
1173
1176
  - lib/avo/grid_fields/title_field.rb
1174
1177
  - lib/avo/has_context.rb
1175
1178
  - lib/avo/hosts/dashboard_card.rb
1179
+ - lib/avo/hosts/dashboard_visibility.rb
1176
1180
  - lib/avo/hosts/ordering.rb
1177
1181
  - lib/avo/licensing/community_license.rb
1178
1182
  - lib/avo/licensing/h_q.rb
@@ -1,16 +0,0 @@
1
- <%
2
- classes = 'absolute inset-auto left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2'
3
- label = t 'avo.failed_to_load'
4
- %>
5
- <div class="relative flex-1 py-12">
6
- <div class="relative block text-gray-300 h-40 w-full">
7
- <%= svg 'avocado', class: "#{classes} h-20 text-gray-400" %>
8
- <%= svg 'code', class: "#{classes} h-8 -ml-20 -mt-12" %>
9
- <%= svg 'fire', class: "#{classes} h-8 -ml-10 -mt-24" %>
10
- <%= svg 'color-swatch', class: "#{classes} h-8 ml-8 -mt-24" %>
11
- <%= svg 'globe', class: "#{classes} h-8 ml-20 -mt-12" %>
12
- <%= svg 'library', class: "#{classes} h-8 -ml-20 mt-4" %>
13
- <%= svg 'photograph', class: "#{classes} h-8 ml-20 mt-4" %>
14
- </div>
15
- <div class="relative block text-center text-lg text-gray-400 font-semibold -mt-10"><%= label %> <%= params[:turbo_frame].to_s.humanize.downcase if params[:turbo_frame].present? %></div>
16
- </div>