avo 2.13.3.pre.1 → 2.13.3.pre.2
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 -3
- data/app/helpers/avo/application_helper.rb +2 -23
- data/app/views/layouts/avo/application.html.erb +1 -0
- data/lib/avo/engine.rb +3 -0
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d34394e93a3febeaf9ebc872f0282434b064d5a864e44f508674ff8e02ef3039
|
4
|
+
data.tar.gz: a0aaf952887563612ae4918081ca77a547cd7d47f683db0280154a3850675445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8a8f86f81575cc8fe3a0a6066608b886dc3d809525e41fc785ea2ef95a7a8ce3f38be558779c5f45824c4791fcedd77ea7959b5513c8bfd71e95206f8bb422e
|
7
|
+
data.tar.gz: 29a4cf34342c519d9b1d84f5c373b9f4a59e962ac558f2d0f1d98f0e716c0376b55fda6766c2a24ed9f03e5913ef32991fd3dd5cd62b3af7bc5e85210120967c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
avo (2.13.3.pre.
|
4
|
+
avo (2.13.3.pre.2)
|
5
5
|
active_link_to
|
6
6
|
addressable
|
7
7
|
breadcrumbs_on_rails
|
@@ -256,8 +256,6 @@ GEM
|
|
256
256
|
nokogiri (1.13.7)
|
257
257
|
mini_portile2 (~> 2.8.0)
|
258
258
|
racc (~> 1.4)
|
259
|
-
nokogiri (1.13.7-x86_64-linux)
|
260
|
-
racc (~> 1.4)
|
261
259
|
orm_adapter (0.5.0)
|
262
260
|
pagy (5.10.1)
|
263
261
|
activesupport
|
@@ -64,30 +64,9 @@ module Avo
|
|
64
64
|
classes
|
65
65
|
end
|
66
66
|
|
67
|
-
#
|
68
|
-
# - file inside the parent app's `app/assets/svgs` path
|
69
|
-
# - full path in the parent app
|
70
|
-
# - file inside the Avo's app/assets/svgs path
|
71
|
-
# - full path in Avo's assets
|
67
|
+
# Just use inline_svg gem.
|
72
68
|
def svg(file_name, **args)
|
73
|
-
|
74
|
-
|
75
|
-
file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
|
76
|
-
|
77
|
-
paths = [
|
78
|
-
Rails.root.join("app", "assets", "svgs", file_name).to_s,
|
79
|
-
Rails.root.join(file_name).to_s,
|
80
|
-
Avo::Engine.root.join("app", "assets", "svgs", file_name).to_s,
|
81
|
-
Avo::Engine.root.join(file_name).to_s,
|
82
|
-
]
|
83
|
-
|
84
|
-
path = paths.find do |path|
|
85
|
-
File.exist? path
|
86
|
-
end
|
87
|
-
|
88
|
-
return if path.nil?
|
89
|
-
|
90
|
-
inline_svg_tag path, **args
|
69
|
+
inline_svg_tag file_name, **args
|
91
70
|
end
|
92
71
|
|
93
72
|
def input_classes(extra_classes = "", has_error: false)
|
@@ -33,6 +33,7 @@
|
|
33
33
|
<div class="content p-4 lg:p-6 flex-1 flex flex-col justify-between items-stretch <%= @container_classes %>">
|
34
34
|
<%= render partial: "avo/partials/custom_tools_alert" %>
|
35
35
|
<div class="flex flex-1 flex-col justify-between items-stretch space-y-8">
|
36
|
+
<!-- <%= ::Rails.application.assets_manifest.inspect %> -->
|
36
37
|
<%= yield %>
|
37
38
|
<%= render partial: "avo/partials/footer" %>
|
38
39
|
</div>
|
data/lib/avo/engine.rb
CHANGED
@@ -53,6 +53,9 @@ module Avo
|
|
53
53
|
# app.config.logger = ::Logger.new(STDOUT)
|
54
54
|
end
|
55
55
|
|
56
|
+
# Add the outline heroicons to the path
|
57
|
+
config.assets.paths << Avo::Engine.root.join("app", "assets", "svgs", "heroicons", "outline")
|
58
|
+
|
56
59
|
config.app_middleware.use(
|
57
60
|
Rack::Static,
|
58
61
|
urls: ["/avo-assets"],
|
data/lib/avo/version.rb
CHANGED