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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19d7fa7291b96d08eb059658e3307d86fc951c1dbc763b86eb4155e7bc4469fe
4
- data.tar.gz: 464032370f2878c9e5732605c92b07ba2a17750e753515537e007dbc582112f7
3
+ metadata.gz: d34394e93a3febeaf9ebc872f0282434b064d5a864e44f508674ff8e02ef3039
4
+ data.tar.gz: a0aaf952887563612ae4918081ca77a547cd7d47f683db0280154a3850675445
5
5
  SHA512:
6
- metadata.gz: 4e3a59ac9927ee6bb6ca10fc28127748cd1f5c0d3cb3583a827e8234d0a0c6307b25310deda8ae90635201721f3a574aefd0f1d5ecd18ad05d565e80426c6f71
7
- data.tar.gz: 69cea80ec1e817368f3bab0bb436d6a1085bb5fad708a5cc600c7f821296af8bc98216e15552954f0a924675bd0fde7dae40c37e90f7657a8e3f03332dae392c
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.1)
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
- # I takes a filename or a path and tries to find the asset in this order:
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
- return if file_name.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.13.3.pre.1" unless const_defined?(:VERSION)
2
+ VERSION = "2.13.3.pre.2" unless const_defined?(:VERSION)
3
3
  end
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.13.3.pre.1
4
+ version: 2.13.3.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin