avo 2.3.1.pre.5 → 2.3.1.pre.6
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.lock +1 -1
- data/app/views/avo/debug/index.html.erb +5 -21
- data/app/views/avo/debug/report.html.erb +21 -0
- data/config/routes.rb +1 -0
- data/lib/avo/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa5d2395db02e3b37f787b0680a4cae6748c99049f369d8e2a3db2fb6c2a2dd8
|
4
|
+
data.tar.gz: 4de2e1dcc865e6ebbc693ddefd4e5407f9d6a6c60f3c1153deeb8d7dcc6ba17b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498b612171a47529d988c8ba89ac0330013afef141a0a4d74df9d41fe60b7d00543777be08b0fa35bf1a5972c06f512a2be76510f4b5a9fd90d779c7fc90a2e8
|
7
|
+
data.tar.gz: fefaff30ae62e0c5de60d64f3e5952bca7b1ae816d454613f3803ca268b2724505231dff2d9d9ce348a625a7ecf74fc9c669179fbbf03366f2c4c26a52c9b277
|
data/Gemfile.lock
CHANGED
@@ -46,8 +46,8 @@
|
|
46
46
|
<% end %>
|
47
47
|
<dt class="font-semibold text-sm">Last fetched at</dt>
|
48
48
|
<dd><%= license.response['fetched_at'] %> <br>
|
49
|
-
|
50
|
-
|
49
|
+
<% if license.response['fetched_at'].present? %>
|
50
|
+
(<%= time_ago_in_words license.response['fetched_at'] %> ago)</dd>
|
51
51
|
<% end %>
|
52
52
|
<dt class="font-semibold text-sm">Cache store</dt>
|
53
53
|
<dd><%= Avo::App.cache_store.class.to_s %> - <%= Avo::App.cache_store.options.inspect %></dd>
|
@@ -67,25 +67,9 @@
|
|
67
67
|
</div>
|
68
68
|
</div>
|
69
69
|
<div class="relative bg-white rounded shadow-panel p-4 space-y-4 col-span-2">
|
70
|
-
<
|
71
|
-
|
72
|
-
|
73
|
-
<%== ap Avo::App.debug_report(request) %>
|
74
|
-
<% else %>
|
75
|
-
<pre><%== JSON.pretty_generate(Avo::App.debug_report(request)) %></pre>
|
76
|
-
<% end %>
|
77
|
-
</div>
|
78
|
-
<div class="flex justify-end">
|
79
|
-
<%= a_button icon: 'heroicons/outline/clipboard',
|
80
|
-
style: :primary,
|
81
|
-
data: {
|
82
|
-
controller: 'copy-to-clipboard',
|
83
|
-
action: "click->copy-to-clipboard#copy",
|
84
|
-
text: Avo::App.debug_report(request),
|
85
|
-
} do %>
|
86
|
-
Copy debug info
|
87
|
-
<% end %>
|
88
|
-
</div>
|
70
|
+
<turbo-frame id="debug-report" src="/admin/avo_private/debug/report" target="_top" class="block">
|
71
|
+
Loading...
|
72
|
+
</turbo-frame>
|
89
73
|
</div>
|
90
74
|
</div>
|
91
75
|
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<turbo-frame id="debug-report">
|
2
|
+
<div class="font-semibold">Debug report</div>
|
3
|
+
<div>
|
4
|
+
<% if defined?(ap) %>
|
5
|
+
<%== ap Avo::App.debug_report(request) %>
|
6
|
+
<% else %>
|
7
|
+
<pre><%== JSON.pretty_generate(Avo::App.debug_report(request)) %></pre>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
<div class="flex justify-end">
|
11
|
+
<%= a_button icon: 'heroicons/outline/clipboard',
|
12
|
+
style: :primary,
|
13
|
+
data: {
|
14
|
+
controller: 'copy-to-clipboard',
|
15
|
+
action: "click->copy-to-clipboard#copy",
|
16
|
+
text: Avo::App.debug_report(request),
|
17
|
+
} do %>
|
18
|
+
Copy debug info
|
19
|
+
<% end %>
|
20
|
+
</div>
|
21
|
+
</turbo-frame>
|
data/config/routes.rb
CHANGED
@@ -41,6 +41,7 @@ Avo::Engine.routes.draw do
|
|
41
41
|
|
42
42
|
scope "/avo_private", as: "avo_private" do
|
43
43
|
get "/debug", to: "debug#index", as: "debug_index"
|
44
|
+
get "/debug/report", to: "debug#report", as: "debug_report"
|
44
45
|
post "/debug/refresh_license", to: "debug#refresh_license"
|
45
46
|
end
|
46
47
|
|
data/lib/avo/version.rb
CHANGED
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.3.1.pre.
|
4
|
+
version: 2.3.1.pre.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -1097,6 +1097,7 @@ files:
|
|
1097
1097
|
- app/views/avo/dashboards/card.html.erb
|
1098
1098
|
- app/views/avo/dashboards/show.html.erb
|
1099
1099
|
- app/views/avo/debug/index.html.erb
|
1100
|
+
- app/views/avo/debug/report.html.erb
|
1100
1101
|
- app/views/avo/home/_actions.html.erb
|
1101
1102
|
- app/views/avo/home/_docs.html.erb
|
1102
1103
|
- app/views/avo/home/_filters.html.erb
|