avo 2.14.2 → 2.14.3.pre.1.branding

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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -1
  3. data/app/assets/stylesheets/avo.css +1 -34
  4. data/app/assets/stylesheets/css/fields/progress.css +3 -3
  5. data/app/assets/stylesheets/css/pagination.css +0 -4
  6. data/app/assets/stylesheets/css/search.css +1 -1
  7. data/app/assets/stylesheets/css/sidebar.css +1 -1
  8. data/app/assets/stylesheets/css/tags.css +7 -0
  9. data/app/assets/svgs/failed_to_load.svg +4 -5
  10. data/app/assets/svgs/grid-empty-state.svg +10 -11
  11. data/app/assets/svgs/table-empty-state.svg +11 -12
  12. data/app/components/avo/actions_component.html.erb +2 -2
  13. data/app/components/avo/actions_component.rb +1 -1
  14. data/app/components/avo/button_component.rb +2 -2
  15. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  16. data/app/components/avo/fields/common/progress_bar_component.html.erb +1 -1
  17. data/app/components/avo/fields/common/progress_bar_component.rb +11 -1
  18. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +1 -1
  19. data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
  20. data/app/components/avo/fields/progress_bar_field/show_component.html.erb +1 -1
  21. data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -1
  22. data/app/components/avo/index/resource_grid_component.html.erb +2 -1
  23. data/app/components/avo/index/resource_table_component.html.erb +2 -1
  24. data/app/components/avo/profile_item_component.html.erb +1 -1
  25. data/app/components/avo/sidebar_component.html.erb +1 -1
  26. data/app/components/avo/sidebar_profile_component.html.erb +1 -1
  27. data/app/helpers/avo/resources_helper.rb +20 -16
  28. data/app/javascript/avo.js +0 -1
  29. data/app/javascript/js/controllers/fields/trix_field_controller.js +4 -3
  30. data/app/javascript/js/controllers/item_select_all_controller.js +16 -9
  31. data/app/javascript/js/controllers/item_selector_controller.js +1 -1
  32. data/app/views/avo/actions/show.html.erb +2 -2
  33. data/app/views/avo/associations/new.html.erb +2 -2
  34. data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
  35. data/app/views/avo/base/_text_filter.html.erb +1 -1
  36. data/app/views/avo/partials/_branding.html.erb +5 -0
  37. data/app/views/avo/partials/_header.html.erb +1 -1
  38. data/app/views/avo/partials/_logo.html.erb +2 -2
  39. data/app/views/avo/private/_links_and_buttons.html.erb +1 -1
  40. data/app/views/avo/private/design.html.erb +3 -3
  41. data/app/views/layouts/avo/application.html.erb +1 -0
  42. data/config/master.key +1 -0
  43. data/lib/avo/configuration/branding.rb +70 -0
  44. data/lib/avo/configuration.rb +5 -0
  45. data/lib/avo/dashboards/chartkick_card.rb +1 -1
  46. data/lib/avo/licensing/pro_license.rb +1 -0
  47. data/lib/avo/version.rb +1 -1
  48. data/lib/generators/avo/templates/initializer/avo.tt +15 -0
  49. data/public/avo-assets/avo.css +298 -284
  50. data/public/avo-assets/avo.js +2 -2
  51. data/public/avo-assets/avo.js.map +2 -2
  52. metadata +6 -11
  53. data/app/components/avo/button_component.html.erb +0 -1
  54. data/app/helpers/avo/actions_helper.rb +0 -4
  55. data/app/helpers/avo/attachments_helper.rb +0 -4
  56. data/app/views/kaminari/_first_page.html.erb +0 -3
  57. data/app/views/kaminari/_last_page.html.erb +0 -3
  58. data/app/views/kaminari/_next_page.html.erb +0 -9
  59. data/app/views/kaminari/_page.html.erb +0 -12
  60. data/app/views/kaminari/_prev_page.html.erb +0 -9
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.14.2
4
+ version: 2.14.3.pre.1.branding
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -1384,7 +1384,6 @@ files:
1384
1384
  - app/components/avo/base_component.rb
1385
1385
  - app/components/avo/blank_field_component.html.erb
1386
1386
  - app/components/avo/blank_field_component.rb
1387
- - app/components/avo/button_component.html.erb
1388
1387
  - app/components/avo/button_component.rb
1389
1388
  - app/components/avo/card_component.html.erb
1390
1389
  - app/components/avo/card_component.rb
@@ -1642,9 +1641,7 @@ files:
1642
1641
  - app/controllers/avo/reorder_controller.rb
1643
1642
  - app/controllers/avo/resources_controller.rb
1644
1643
  - app/controllers/avo/search_controller.rb
1645
- - app/helpers/avo/actions_helper.rb
1646
1644
  - app/helpers/avo/application_helper.rb
1647
- - app/helpers/avo/attachments_helper.rb
1648
1645
  - app/helpers/avo/resources_helper.rb
1649
1646
  - app/helpers/avo/url_helpers.rb
1650
1647
  - app/javascript/avo.js
@@ -1712,6 +1709,7 @@ files:
1712
1709
  - app/views/avo/home/failed_to_load.html copy.erb
1713
1710
  - app/views/avo/home/failed_to_load.html.erb
1714
1711
  - app/views/avo/home/index.html.erb
1712
+ - app/views/avo/partials/_branding.html.erb
1715
1713
  - app/views/avo/partials/_custom_tools_alert.html.erb
1716
1714
  - app/views/avo/partials/_footer.html.erb
1717
1715
  - app/views/avo/partials/_global_search.html.erb
@@ -1730,11 +1728,6 @@ files:
1730
1728
  - app/views/avo/private/design.html.erb
1731
1729
  - app/views/avo/sidebar/_license_warning.html.erb
1732
1730
  - app/views/avo/sidebar/_license_warnings.html.erb
1733
- - app/views/kaminari/_first_page.html.erb
1734
- - app/views/kaminari/_last_page.html.erb
1735
- - app/views/kaminari/_next_page.html.erb
1736
- - app/views/kaminari/_page.html.erb
1737
- - app/views/kaminari/_prev_page.html.erb
1738
1731
  - app/views/layouts/avo/_filter_wrapper.html.erb
1739
1732
  - app/views/layouts/avo/application.html.erb
1740
1733
  - avo.gemspec
@@ -1748,6 +1741,7 @@ files:
1748
1741
  - config/cable.yml
1749
1742
  - config/credentials.yml.enc
1750
1743
  - config/initializers/pagy.rb
1744
+ - config/master.key
1751
1745
  - config/routes.rb
1752
1746
  - config/spring.rb
1753
1747
  - db/factories.rb
@@ -1767,6 +1761,7 @@ files:
1767
1761
  - lib/avo/concerns/is_resource_item.rb
1768
1762
  - lib/avo/concerns/model_class_constantized.rb
1769
1763
  - lib/avo/configuration.rb
1764
+ - lib/avo/configuration/branding.rb
1770
1765
  - lib/avo/configuration/resource_configuration.rb
1771
1766
  - lib/avo/dashboards/base_dashboard.rb
1772
1767
  - lib/avo/dashboards/base_divider.rb
@@ -1973,9 +1968,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1973
1968
  version: 2.4.0
1974
1969
  required_rubygems_version: !ruby/object:Gem::Requirement
1975
1970
  requirements:
1976
- - - ">="
1971
+ - - ">"
1977
1972
  - !ruby/object:Gem::Version
1978
- version: '0'
1973
+ version: 1.3.1
1979
1974
  requirements: []
1980
1975
  rubygems_version: 3.3.3
1981
1976
  signing_key:
@@ -1 +0,0 @@
1
- <%= output %>
@@ -1,4 +0,0 @@
1
- module Avo
2
- module ActionsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Avo
2
- module AttachmentsHelper
3
- end
4
- end
@@ -1,3 +0,0 @@
1
- <span class="first">
2
- <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: 'relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
3
- </span>
@@ -1,3 +0,0 @@
1
- <span class="last">
2
- <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote, class: 'ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
3
- </span>
@@ -1,9 +0,0 @@
1
- <% if !current_page.last? %>
2
- <%= link_to url, :id => 'pnnext',:remote => remote do %>
3
- <button type="button" class="-ml-px relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
4
- <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
5
- <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
6
- </svg>
7
- </button>
8
- <% end %>
9
- <% end %>
@@ -1,12 +0,0 @@
1
- <% url = resources_path(resource: @resource, page: page, keep_query_params: true) %>
2
- <% if page.current? %>
3
- <button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border bg-gray-100 text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 z-10 outline-none border-primary-300 active:bg-gray-100 transition ease-in-out duration-150">
4
- <%= page %>
5
- </button>
6
- <% else %>
7
- <%= link_to url, :remote => remote do %>
8
- <button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
9
- <%= page %>
10
- </button>
11
- <% end %>
12
- <% end %>
@@ -1,9 +0,0 @@
1
- <% if !current_page.first? %>
2
- <%= link_to url, :id => 'pnprev', :remote => remote do %>
3
- <button type="button" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
4
- <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
5
- <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd"/>
6
- </svg>
7
- </button>
8
- <% end %>
9
- <% end %>