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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/app/assets/svgs/save.svg +8 -1
- data/app/components/avo/actions_component.html.erb +1 -1
- data/app/components/avo/alert_component.rb +5 -5
- data/app/components/avo/blank_field_component.html.erb +0 -0
- data/app/components/avo/blank_field_component.rb +4 -0
- data/app/components/avo/fields/badge_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -2
- data/app/components/avo/fields/file_field/index_component.html.erb +3 -3
- data/app/components/avo/fields/file_field/index_component.rb +11 -0
- data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
- data/app/components/avo/index/field_wrapper_component.html.erb +1 -1
- data/app/components/avo/index/field_wrapper_component.rb +12 -1
- data/app/components/avo/index/resource_controls_component.html.erb +5 -1
- data/app/components/avo/index/resource_table_component.html.erb +1 -1
- data/app/components/avo/panel_component.html.erb +10 -2
- data/app/components/avo/panel_component.rb +9 -0
- data/app/components/avo/referrer_params_component.html.erb +4 -0
- data/app/components/avo/referrer_params_component.rb +9 -0
- data/app/components/avo/sidebar_component.rb +3 -1
- data/app/components/avo/views/resource_edit_component.html.erb +14 -1
- data/app/components/avo/views/resource_new_component.html.erb +13 -0
- data/app/components/avo/views/resource_show_component.html.erb +1 -0
- data/app/controllers/avo/application_controller.rb +1 -1
- data/app/controllers/avo/base_controller.rb +57 -27
- data/app/controllers/avo/dashboards_controller.rb +1 -1
- data/app/controllers/avo/search_controller.rb +5 -1
- data/app/javascript/avo.js +4 -3
- data/app/views/avo/actions/show.html.erb +1 -0
- data/app/views/avo/associations/new.html.erb +1 -0
- data/app/views/avo/home/failed_to_load.html.erb +21 -1
- data/app/views/layouts/avo/application.html.erb +7 -0
- data/bin/dev +7 -6
- data/lib/avo/app.rb +8 -1
- data/lib/avo/base_action.rb +4 -4
- data/lib/avo/base_resource.rb +26 -7
- data/lib/avo/configuration.rb +2 -0
- data/lib/avo/dashboards/base_dashboard.rb +17 -0
- data/lib/avo/dashboards/chartkick_card.rb +1 -1
- data/lib/avo/fields/base_field.rb +19 -6
- data/lib/avo/fields/belongs_to_field.rb +1 -1
- data/lib/avo/fields/external_image_field.rb +2 -2
- data/lib/avo/hosts/dashboard_visibility.rb +19 -0
- data/lib/avo/licensing/pro_license.rb +1 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/dashboards/dashboard.tt +4 -1
- data/public/avo-assets/avo.css +37 -21
- data/public/avo-assets/avo.js +166 -165
- data/public/avo-assets/avo.js.map +3 -3
- metadata +7 -3
- 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.
|
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-
|
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>
|